Article View: comp.sys.next.programmer
Article #172Re: man page for "table" system call?
From: Eric P. Scott
Date: Wed, 22 Jul 1992 07:12
Date: Wed, 22 Jul 1992 07:12
26 lines
1188 bytes
1188 bytes
In article <63894@hydra.gatech.EDU> roy@prism.gatech.EDU
(Roy Mongiovi) writes:
>Where do I find the documentation for table(2)?
NeXTanswers' hardware.422 and whatever you can glean from the
#include files (and, of course, any examples you just happen to
find lying around, such as
#include <stdio.h>
#include <sys/types.h>
#include <sys/table.h>
main() {
struct tbl_loadavg avg;
(void)table(TBL_LOADAVG, 0, (caddr_t)&avg, 1, sizeof avg);
(void)printf("load average:%5.2f,%5.2f,%5.2f\n",
(double)avg.tl_avenrun[0]/(double)avg.tl_lscale,
(double)avg.tl_avenrun[1]/(double)avg.tl_lscale,
(double)avg.tl_avenrun[2]/(double)avg.tl_lscale);
exit(0);
}
which I posted a few weeks ago, or the "locate the loginwindow
process" code in iwf.)
-=EPS=-
Technical Details
Message-ID:
<1992Jul22.071210.25470@csus.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!decwrl!csus.edu!newsReferences:
<63894@hydra.gatech.EDU>Show Full Headers
Complete Article Headers
Newsgroups: comp.sys.next.programmer Path: arc1-ca.pugleaf.net!sparky!uunet!decwrl!csus.edu!news From: eps@futon.SFSU.EDU (Eric P. Scott) Subject: Re: man page for "table" system call? Message-ID: <1992Jul22.071210.25470@csus.edu> Sender: news@csus.edu Reply-To: eps@cs.sfsu.edu Organization: San Francisco State University References: <63894@hydra.gatech.EDU> Date: Wed, 22 Jul 1992 07:12:10 GMT Lines: 26