/*++ /* NAME /* peekfd 3 /* SUMMARY /* determine amount of data ready to read /* SYNOPSIS /* #include <iostuff.h> /* /* ssize_t peekfd(fd) /* int fd; /* DESCRIPTION /* peekfd() attempts to find out how many bytes are available to /* be read from the named file descriptor. The result value is /* the number of available bytes. /* DIAGNOSTICS /* peekfd() returns -1 in case of trouble. The global \fIerrno\fR /* variable reflects the nature of the problem. /* BUGS /* On some systems, non-blocking read() may fail even after a /* positive return from peekfd(). The smtp-sink program works /* around this by using the readable() function instead. /* LICENSE /* .ad /* .fi /* The Secure Mailer license must be distributed with this software. /* AUTHOR(S) /* Wietse Venema /* IBM T.J. Watson Research /* P.O. Box 704 /* Yorktown Heights, NY 10598, USA /* /* Wietse Venema /* Google, Inc. /* 111 8th Avenue /* New York, NY 10011, USA
/*--*/
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.