2.9BSD/usr/man/cat2/pkon.2

Compare this file to the similar file:
Show the results in this format:


PKON(2)             UNIX Programmer's Manual              PKON(2)

NAME
     pkon, pkoff - establish packet protocol

SYNOPSIS
     pkon(fd, size)

     pkoff(fd)

DESCRIPTION
     _P_k_o_n establishes packet protocol (see _p_k(4)) on the open
     character special file whose file descriptor is _f_d. _S_i_z_e is
     a desired packet size, a power of 2 in the range
     32<__s_i_z_e<_4096.  The size is negotiated with a remote packet
     driver, and a possibly smaller actual packet size is
     returned.

     An asynchronous line used for packet communication should be
     in raw mode; see _t_t_y(4).

     _P_k_o_f_f turns off the packet driver on the channel whose file
     descriptor is _f_d.

RETURN VALUE
     Upon successful completion, a value of 0 is returned.  Oth-
     erwise, a value of -1 is returned and _e_r_r_n_o is set to indi-
     cate the error.

SEE ALSO
     signal(2), pkopen(3), pk(4), tty(4)

BUGS
     The packet protocol is not supported by the operating sys-
     tem.

Printed 5/23/83                                                 1