Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!att!pacbell.com!ucsd!mvb.saic.com!ncr-sd!ncrcae!nncrcae!wescott From: wescott@Columbia.NCR.COM (Mike Wescott) Newsgroups: comp.unix.programmer Subject: Re: Nice() in Sys V.4 Keywords: nice(), priocntl(), ioctl() Message-ID: <1991Mar21.141753.28726@nncrcae.Columbia.NCR.COM> Date: 21 Mar 91 19:17:52 GMT References: <318@secola.Columbia.NCR.COM> Organization: NCR Corp Lines: 35 Nntp-Posting-Host: micky In article <318@secola.Columbia.NCR.COM> krupczak@secola.Columbia.NCR.COM (Bobby Krupczak) writes: > In V.4, there is a /proc file system. [...] > I found > a ioctl() option that will allow one to set the nice value of a process. > Unforntunately, the header files do not tell what the arguments are. See proc(4) in the FM: Information and control operations are provided through ioctl. These have the form: #include #include #include #include #include void *p; retval = ioctl(fildes, code, p); The argument p is a generic pointer whose type depends on the specific ioctl code. Where not specifically mentioned below, its value should be zero. contains [...] PIOCNICE* The traced process's nice priority is incremented by the amount contained in the int addressed by p. Only the super-user may better a process's priority in this way, but any user may make the priority worse. -- -Mike Wescott mike.wescott@ncrcae.Columbia.NCR.COM