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
GETPENT (3) (AT&T UNIX PC only ) GETPENT (3) NAME getpent, endpent - get and clean up printer status file entries SYNOPSIS #include < lp.h > int getpent(p) struct pstat *p; int endpent() DESCRIPTION Getpent returns a structure describing a printer that is installed in the lp spooler subsystem. EOF is returned when no more printers are available. Endpent is used to clean up after the last call to getpent. FILES struct pstat /* printer status entry * / { char p_dest[DESTMAX+ll; /* destination name of printer */ int p_pid; /* if busy, process id that is * / /* printing, otherwise 0 * / char p_rdest[DESTMAX+ll;/* if busy, the destination */ /* requested by user at time or * / /* request, otherwise "- " * / int p_seqno; /* if busy, sequence # or */ /* printing request * / time_t p_date; /* date last enabled/disabled * / char pJeason[P _RSIZEI; /* if enabled, then "enabled" * / /* otherwise the reason the * / /* printer has been disabled. * / short p_flags; /* See below for flag values. * / }; /* Value interpretation for p_flags: */ #define #define #define P_ENAB 1 P_AUTO 2 P _BUSY 4 /* printer enabled * / /* disable printer automatically * / /* printer now printing a request * / These subroutines are located in the libdev library (/usr/lib/libdev). - 1 -
- Page 821 and 822: DRAND48 ( 3C ) DRAND48 ( 3C ) NAME
- Page 823 and 824: DRAND48 ( 3C ) DRAND48 ( 3C ) have
- Page 825: ECVT (3C) ECVT (3C) NAME ecvt, fcvt
- Page 829 and 830: EPRINTF ( 3T ) ( AT&T UNIX PC only
- Page 831 and 832: ERF (3M) ERF (3M) NAME erf1 erfc -
- Page 833: EXP ( 3M ) EXP ( 3M ) NAME exp, log
- Page 837: FERROR (3S) FERROR (3S) NAME ferror
- Page 841 and 842: FOPEN(3S) FOPEN (3S) NAME fopen, fr
- Page 843 and 844: FORM ( 3T ) ( AT&T UNIX PC only ) F
- Page 845 and 846: FORM (3T) (AT&T UNIX PC only ) fiel
- Page 847 and 848: FORM (3T) }; (AT&T UNIX PC only ) F
- Page 849: FREAD ( 3S ) FREAD ( 3S ) NAME frea
- Page 853: FSEEK ( 3S ) FSEEK ( 3S ) NAME fsee
- Page 857 and 858: GAMMA ( 3M ) GAMMA ( 3M ) NAME gamm
- Page 859 and 860: GETC ( 3S ) GETC ( 3S ) NAME getc,
- Page 861: GETCWD ( 3C } GETCWD ( 3C ) NAME ge
- Page 865 and 866: GETGRENT ( 3C ) GETGRENT ( 3C ) NAM
- Page 867: GETLOGIN ( 3C ) GETLOGIN ( 3C ) NAM
- Page 870 and 871: GETOPT (3C) } SEE ALSO getopt(l). e
- Page 874 and 875: � ' ) '"- '
- Page 877 and 878: GETPWENT ( 30 ) GETPWENT ( 30 ) NAM
- Page 879: GETS ( 3S ) GETS ( 3S ) NAME gets,
- Page 882 and 883: GETUT (3C) GETUT (3C) line-> ut_lin
- Page 884 and 885: HSEARCH ( 3C ) HSEARCH ( 3C ) START
- Page 886 and 887: I� ', ...____... .. � · � \
- Page 889 and 890: LDAHREAD ( 3X ) LDAI-IREAD ( 3X ) N
- Page 891: LDCLOSE ( 3X ) LDCLOSE ( 3X ) NAME
- Page 895: LDLREAD ( 3X ) LDLREAD ( 3X ) NAME
- Page 898 and 899: . \
- Page 900 and 901: �� · ·. � ·
- Page 902 and 903: LDOPEN(3X) LDOPEN(3X) example, one
- Page 904 and 905: 1 "� "
- Page 907 and 908: LDSSEEK ( 3X ) LDSSEEK ( 3X ) NAME
- Page 909 and 910: � LDTBINDEX ( 3X ) LDTBINDEX ( 3X
- Page 911 and 912: LDTBREAD ( 3X ) LDTBREAD ( 3X ) NAM
- Page 913 and 914: LDTBSEEK ( 3X ) LDTBSEEK ( 3X ) NAM
- Page 915 and 916: ("" LOCKF ( 3C ) LOCKF ( 3C ) NAME
- Page 917 and 918: LOGNAME ( 3X ) LOGNAME ( 3X ) NAME
- Page 919 and 920: LSEARCH ( 3C ) LSEARCH ( 3C ) NAME
- Page 921 and 922: MALLOC (3C) MALLOC ( 3C ) NAME mall
GETPENT (3) (AT&T UNIX PC only ) GETPENT (3)<br />
NAME<br />
getpent, endpent - get and clean up printer status file entries<br />
SYNOPSIS<br />
#include < lp.h ><br />
int getpent(p)<br />
struct pstat *p;<br />
int endpent()<br />
DESCRIPTION<br />
Getpent returns a structure describing a printer that is installed in<br />
the lp spooler subsystem. EOF is returned when no more printers<br />
are available.<br />
Endpent is used to clean up after the last call to getpent.<br />
FILES<br />
struct pstat /* printer status entry * /<br />
{<br />
char p_dest[DESTMAX+ll; /* destination name of printer */<br />
int p_pid; /* if busy, process id that is * /<br />
/* printing, otherwise 0 * /<br />
char p_rdest[DESTMAX+ll;/* if busy, the destination */<br />
/* requested by user at time or * /<br />
/* request, otherwise "- " * /<br />
int p_seqno; /* if busy, sequence # or */<br />
/* printing request * /<br />
time_t p_date; /* date last enabled/disabled * /<br />
char pJeason[P _RSIZEI; /* if enabled, then "enabled" * /<br />
/* otherwise the reason the * /<br />
/* printer has been disabled. * /<br />
short p_flags; /* See below for flag values. * /<br />
};<br />
/* Value interpretation for p_flags: */<br />
#define<br />
#define<br />
#define<br />
P_ENAB 1<br />
P_AUTO 2<br />
P _BUSY 4<br />
/* printer enabled * /<br />
/* disable printer automatically * /<br />
/* printer now printing a request * /<br />
These subroutines are located in the libdev library<br />
(/usr/lib/libdev).<br />
- 1 -