01.01.2013 Views

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

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

SYSLOCAL ( 2) SYSLOCAL ( 2)<br />

NAME<br />

Syslocal - local system calls<br />

SYNOPSIS<br />

#include <br />

int syslocal (cmd [ , arg ] ... )<br />

DESCRIPTION<br />

Syslocal executes special AT&T UNIX PC system calls. Cmd is the<br />

name of one of the system calls described below.<br />

SYSL_REBOOT Reboots the system. You must be superuser<br />

to execute. No additional arguments are<br />

required.<br />

SYSL_KADDR Returns certain kernel addresses or values.<br />

This call is used by programs like ps ( 1) so<br />

that they don't have to read the kernel symbol<br />

table. The second argument is one of the<br />

following:<br />

SLA_ V returns address of V<br />

SLA_PROC returns address of proc<br />

table<br />

SLA_TIME returns address of system<br />

time<br />

SLA_USRSTK returns top of user stack<br />

SLA_USIGN returns signature, unique #<br />

for each version<br />

SLA_BLDDATE returns address of build<br />

date string<br />

SLA_BLDPWD returns address of build<br />

directory string<br />

SLA_MEM returns size of physical<br />

memory<br />

SLA_BDEVCNT returns maximum number<br />

of block devices<br />

SLA_CDEVCNT returns maximum number<br />

of character devices<br />

SYSL_LED Turns on/off user LED. The second argument<br />

is either 0 for off or 1 for on.<br />

The following two calls support the hardware real-time clock.<br />

Their use requires the additional include file:<br />

#include <br />

SYSL_RDRTC Reads the real-time clock. The second argument<br />

is a struct rtc * .<br />

SYSL_WRTRTC Writes the real-time clock. The second argument<br />

is a struct rtc * .<br />

The following two calls support loadable device drivers. Their use<br />

requires the additional include file:<br />

#include <br />

- 1 -

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

Saved successfully!

Ooh no, something went wrong!