pkopen man page on UNIXv7

Printed from http://www.polarhome.com/service/man/?qf=pkopen&af=0&tf=2&of=UNIXv7

PKOPEN(3)							     PKOPEN(3)

NAME
       pkopen, pkclose, pkread, pkwrite, pkfail - packet driver simulator

SYNOPSIS
       char *pkopen(fd)

       pkclose(ptr)
       char *ptr;

       pkread(ptr, buffer, count)
       char *ptr, *buffer;

       pkwrite(ptr, buffer, count)
       char *ptr, *buffer;

       pkfail()

DESCRIPTION
       These  routines are a user-level implementation of the full-duplex end-
       to-end communication protocol described in pk(4).   If  fd  is  a  file
       descriptor open for reading and writing, pkopen carries out the initial
       synchronization and returns an identifying  pointer.   The  pointer  is
       used as the first parameter to pkread, pkwrite, and pkclose.

       Pkread,	pkwrite	 and  pkclose  behave  analogously  to read, write and
       close(2).  However, a write of zero bytes is meaningful and  will  pro‐
       duce a corresponding read of zero bytes.

SEE ALSO
       pk(4), pkon(2)

DIAGNOSTICS
       Pkfail  is  called  upon persistent breakdown of communication.	Pkfail
       must be supplied by the user.

       Pkopen returns a null (0) pointer if packet protocol can not be	estab‐
       lished.

       Pkread  returns	-1 on end of file, 0 in correspondence with a 0-length
       write.

BUGS
       This simulation of pk(4) leaves something to be desired in needing spe‐
       cial read and write routines, and in not being inheritable across calls
       of exec(2).  Its prime use is on systems that lack pk.
       These functions use alarm(2);  simultaneous  use	 of  alarm  for	 other
       puposes may cause trouble.

				  deprecated			     PKOPEN(3)
[top]

List of man pages available for UNIXv7

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net