syscall.c
contents ::
address.c
atquick_sort.c
bits.c
countspace.c
ctof.c
hextoint.c
hist.c
indexof.c
itob.c
linkage.c
lzw.c
maxval.c
merge.c
merge_sort.c
peof.c
pointer.c
quick2.c
quick.c
quick_sort.c
reverse.c
rftoc.c
rmultiblank.c
rtabs.c
squeeze.c
structoo.c
syscall.c
tempfunc.c
tfc.c
word.c
NOT MINE, JUST INTERESTING TO SEE SYS CALLS ON LINUX

#include
#include /* for _syscallX macros/related stuff */
#include /* for struct sysinfo */

_syscall1(int, sysinfo, struct sysinfo *, info);

/* Note: if you copy directly from the nroff source, remember to
REMOVE the extra backslashes in the printf statement. */

int main(void)
{
struct sysinfo s_info;
int error;

error = sysinfo(&s_info);
printf("code error = %d\n", error);
printf("Uptime = %ds\nLoad: 1 min %d / 5 min %d / 15 min %d\n"
"RAM: total %d / free %d / shared %d\n"
"Memory in buffers = %d\nSwap: total %d / free %d\n"
"Number of processes = %d\n",
s_info.uptime, s_info.loads[0],
s_info.loads[1], s_info.loads[2],
s_info.totalram, s_info.freeram,
s_info.sharedram, s_info.bufferram,
s_info.totalswap, s_info.freeswap,
s_info.procs);
return(0);
}

James Little