AT&T UNIX™PC Unix System V Users Manual - tenox

AT&T UNIX™PC Unix System V Users Manual - tenox AT&T UNIX™PC Unix System V Users Manual - tenox

01.01.2013 Views

'� '---- ··

SYSLOCAL ( 2) SYSLOCAL ( 2) NAME Syslocal - local system calls SYNOPSIS #include int syslocal (cmd [ , arg ] ... ) DESCRIPTION Syslocal executes special AT&T UNIX PC system calls. Cmd is the name of one of the system calls described below. SYSL_REBOOT Reboots the system. You must be superuser to execute. No additional arguments are required. SYSL_KADDR Returns certain kernel addresses or values. This call is used by programs like ps ( 1) so that they don't have to read the kernel symbol table. The second argument is one of the following: SLA_ V returns address of V SLA_PROC returns address of proc table SLA_TIME returns address of system time SLA_USRSTK returns top of user stack SLA_USIGN returns signature, unique # for each version SLA_BLDDATE returns address of build date string SLA_BLDPWD returns address of build directory string SLA_MEM returns size of physical memory SLA_BDEVCNT returns maximum number of block devices SLA_CDEVCNT returns maximum number of character devices SYSL_LED Turns on/off user LED. The second argument is either 0 for off or 1 for on. The following two calls support the hardware real-time clock. Their use requires the additional include file: #include SYSL_RDRTC Reads the real-time clock. The second argument is a struct rtc * . SYSL_WRTRTC Writes the real-time clock. The second argument is a struct rtc * . The following two calls support loadable device drivers. Their use requires the additional include file: #include - 1 -

'� '---- ··

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!