XNSLIB(3N) — Silicon Graphics
NAME
xnslib − XNS network support subroutines
SYNOPSIS
bcmp (buf1, buf2, count)
char *buf1, *buf2;
int count;
bcopy (from, to, count)
char *from, *to;
int count;
bzero (buf, size)
char *buf;
int size;
conserr (format, arg)
char *format, *arg;
makeproc ()
isolate ()
prw (shp, count)
short *shp;
int count;
mprw (string, shp, count)
char *string;
short *shp;
int count;
prc (cp, count)
char *cp;
int count;
mprc (string, cp, count)
char *string, *cp;
int count;
setvec ()
tread (fd, buf, count, secs)
int fd, count, secs;
char *buf;
twrite (fd, buf, count, secs)
int fd, count, secs;
char *buf;
tsend (fd, buf, count, secs, dtype)
int fd, count, secs, dtype;
char *buf;
rawmode (fd)
int fd;
normalmode (fd)
int fd;
restoremode (fd)
int fd;
DESCRIPTION
Bcmp compares count bytes of buf1 with buf2 and returns 0 if they are equal, −1 if not. bcmp has been copied for compatibility with 4.2BSD.
Bcopy copies count bytes from from to to. Bcopy has been copied for compatibility with 4.2BSD.
Bzero fills size bytes of buf with zeros. Bzero has been copied for compatibility with 4.2BSD.
Conserr uses fprintf to write the arguments to /dev/console .
Makeproc makes a child by forking twice, so that a wait need not be done. A −1 is returned by the parent after the resultant child has been started. Makeproc has been copied for compatibility with 4.2BSD.
Isolate starts a child process (makeproc) and opens a network special file (xnsfile). An NXSETPGRP ioctl is then done on the resultant file descriptor. Isolate has been copied for compatibility with 4.2BSD.
Isolate starts a child process (makeproc) and opens a network special file (xnsfile). An NXSETPGRP ioctl is then
Prw prints count shorts from array shp in hex, to the standard output.
Mprw is like prw, except that it first prints string.
Prc and mprc are like prw and mprw, except that they work on an array of chars, rather than shorts. Prc and mprc have been copied for compatibility with 4.2BSD.
Setvec initializes signal handling. Alarms and hangups are caught, while interrupts, broken pipes and termination signals are ignored.
Tread and twrite read and write from/to network file descriptors, using a timeout. If the read or write doesn’t complete within secs seconds, the operation is aborted, and a −1 is returned. A remote hangup on the connection will also cause the operation to return with a −1.
Tsend is like twrite, except that a data type can be specified, like xnswrite.
Rawmode sets the terminal specified by fd into raw mode. Normalmode does the inverse. normalmode has been copied for compatibility with 4.2BSD.
Restoremode sets fd back to what it was before rawmode was called.
SEE ALSO
sgboot(1M), sgbounce(1M), xcp(1), xnsd(1M), xx(1), utmp(3X), xcmd(3X), xconnect(3X), xnsfile(3X), xnsioctl(3X), xnswrite(3X)
Version 2.4 — May 08, 1986