home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / sys / hp / 14667 < prev    next >
Encoding:
Internet Message Format  |  1993-01-08  |  853 b 

  1. Path: sparky!uunet!olivea!charnel!rat!usc!sdd.hp.com!hpscit.sc.hp.com!cupnews0.cup.hp.com!pdg
  2. From: pdg@cup.hp.com (Paul Gootherts)
  3. Newsgroups: comp.sys.hp
  4. Subject: Re: HP-UX version of setpriority/getpriority
  5. Message-ID: <C0K18G.EwE@cup.hp.com>
  6. Date: 8 Jan 93 21:33:52 GMT
  7. References: <1ikka3INNn6m@nz12.rz.uni-karlsruhe.de>
  8. Sender: news@cup.hp.com (News Admin)
  9. Organization: Hewlett-Packard
  10. Lines: 15
  11. X-Newsreader: TIN [version 1.1.8 PL6]
  12.  
  13. > #include <sys/syscall.h>
  14. > #define getpriority(which, who) \
  15. >            syscall(SYS_GETPRIORITY,which,who)
  16. > #define setpriority(which, who, niceval) \
  17. >            syscall(SYS_SETPRIORITY, which, who, niceval)
  18. > Hope that helps.
  19.  
  20. This is not supported and not recommended.  The only supported way to
  21. make a system call is through the entry point supplied in libc.
  22.  
  23. --
  24.  
  25. Paul Gootherts, pdg@cup.hp.com
  26.