home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!olivea!charnel!rat!usc!sdd.hp.com!hpscit.sc.hp.com!cupnews0.cup.hp.com!pdg
- From: pdg@cup.hp.com (Paul Gootherts)
- Newsgroups: comp.sys.hp
- Subject: Re: HP-UX version of setpriority/getpriority
- Message-ID: <C0K18G.EwE@cup.hp.com>
- Date: 8 Jan 93 21:33:52 GMT
- References: <1ikka3INNn6m@nz12.rz.uni-karlsruhe.de>
- Sender: news@cup.hp.com (News Admin)
- Organization: Hewlett-Packard
- Lines: 15
- X-Newsreader: TIN [version 1.1.8 PL6]
-
- > #include <sys/syscall.h>
- >
- > #define getpriority(which, who) \
- > syscall(SYS_GETPRIORITY,which,who)
- > #define setpriority(which, who, niceval) \
- > syscall(SYS_SETPRIORITY, which, who, niceval)
- >
- > Hope that helps.
-
- This is not supported and not recommended. The only supported way to
- make a system call is through the entry point supplied in libc.
-
- --
-
- Paul Gootherts, pdg@cup.hp.com
-