This is m_next40.c in view mode; [Download] [Up]
/* * top - a top users display for Unix * NEXTSTEP v.0.5 11/26/1996 tpugh * * SYNOPSIS: any motorola NEXTSTEP v4.x system * * DESCRIPTION: * This is the machine-dependent module for OPENSTEP v4.x * Reported to work for: * NEXTSTEP v4.0 on NeXTstation machines. * NEXTSTEP v4.1 on NeXTstation machines. * Install "top" with the permissions 4755. * tsunami# chmod 4755 top * tsunami# ls -lg top * -rwsr-xr-x 1 root kmem 121408 Sep 1 10:14 top* * With the kmem group sticky bit set, we can read kernal memory without problems, * but to communicate with the Mach kernal for task and thread info, it requires * root privileges. * * LIBS: * * Need the compiler flag, "-DSHOW_UTT", to see the user task and thread task * data structures to report process info. * Need the compiler flag, "-DNEXTSTEP40", to use the proper task structure. * Need -I. for all the top include files which are searched for in machine/, * because of the way include "file" finds files. * * CFLAGS: -I. -DSHOW_UTT -DNEXTSTEP40 * * * AUTHORS: Tim Pugh <tpugh@oce.orst.edu> */ #include "machine/m_next32.c"
These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Netfuture.ch.