stropts.h(7POSIX) | POSIX Programmer's Manual | stropts.h(7POSIX) |
This manual page is part of the POSIX Programmer's Manual. The Linux implementation of this interface may differ (consult the corresponding Linux manual page for details of Linux behavior), or the interface may not be implemented on Linux.
stropts.h — STREAMS interface (STREAMS)
#include <stropts.h>
The <stropts.h> header shall define the bandinfo structure, which shall include at least the following members:
int bi_flag Flushing type. unsigned char bi_pri Priority band.
The <stropts.h> header shall define the strpeek structure, which shall include at least the following members:
struct strbuf ctlbuf The control portion of the message. struct strbuf databuf The data portion of the message. t_uscalar_t flags RS_HIPRI or 0.
The <stropts.h> header shall define the strbuf structure, which shall include at least the following members:
char *buf Pointer to buffer. int len Length of data. int maxlen Maximum buffer length.
The <stropts.h> header shall define the strfdinsert structure, which shall include at least the following members:
struct strbuf ctlbuf The control portion of the message. struct strbuf databuf The data portion of the message. int fildes File descriptor of the other STREAM. t_uscalar_t flags RS_HIPRI or 0. int offset Relative location of the stored value.
The <stropts.h> header shall define the strioctl structure, which shall include at least the following members:
int ic_cmd ioctl() command. char *ic_dp Pointer to buffer. int ic_len Length of data. int ic_timout Timeout for response.
The <stropts.h> header shall define the strrecvfd structure, which shall include at least the following members:
int fd Received file descriptor. gid_t gid GID of sender. uid_t uid UID of sender.
The <stropts.h> header shall define the uid_t and gid_t types through typedef, as described in <sys/types.h>.
The <stropts.h> header shall define the t_scalar_t and t_uscalar_t types, respectively, as signed and unsigned opaque types of equal length of at least 32 bits.
The <stropts.h> header shall define the str_list structure, which shall include at least the following members:
struct str_mlist *sl_modlist STREAMS module names. int sl_nmods Number of STREAMS module names.
The <stropts.h> header shall define the str_mlist structure, which shall include at least the following member:
char l_name[FMNAMESZ+1] A STREAMS module name.
The <stropts.h> header shall define at least the following symbolic constants for use as the request argument to ioctl():
The <stropts.h> header shall define at least the following symbolic constant for use with I_LOOK:
The <stropts.h> header shall define at least the following symbolic constants for use with I_FLUSH:
The <stropts.h> header shall define at least the following symbolic constants for use with I_SETSIG:
The <stropts.h> header shall define at least the following symbolic constant for use with I_PEEK:
The <stropts.h> header shall define at least the following symbolic constants for use with I_SRDOPT:
The <stropts.h> header shall define at least the following symbolic constant for use with I_SWOPT:
The <stropts.h> header shall define at least the following symbolic constants for use with I_ATMARK:
The <stropts.h> header shall define at least the following symbolic constant for use with I_UNLINK:
The <stropts.h> header shall define the following symbolic constants for getmsg(), getpmsg(), putmsg(), and putpmsg():
The <stropts.h> header may make visible all of the symbols from <unistd.h>.
The <stropts.h> header may also define macros for message types using names that start with M_.
The following shall be declared as functions and may also be defined as macros. Function prototypes shall be provided.
int fattach(int, const char *); int fdetach(const char *); int getmsg(int, struct strbuf *restrict, struct strbuf *restrict, int *restrict); int getpmsg(int, struct strbuf *restrict, struct strbuf *restrict, int *restrict, int *restrict); int ioctl(int, int, ...); int isastream(int); int putmsg(int, const struct strbuf *, const struct strbuf *, int); int putpmsg(int, const struct strbuf *, const struct strbuf *, int, int);
The following sections are informative.
None.
None.
None.
<sys_types.h>, <unistd.h>
The System Interfaces volume of POSIX.1‐2017, close(), fattach(), fcntl(), fdetach(), getmsg(), ioctl(), isastream(), open(), pipe(), read(), poll(), putmsg(), signal(), write()
Portions of this text are reprinted and reproduced in electronic form from IEEE Std 1003.1-2017, Standard for Information Technology -- Portable Operating System Interface (POSIX), The Open Group Base Specifications Issue 7, 2018 Edition, Copyright (C) 2018 by the Institute of Electrical and Electronics Engineers, Inc and The Open Group. In the event of any discrepancy between this version and the original IEEE and The Open Group Standard, the original IEEE and The Open Group Standard is the referee document. The original Standard can be obtained online at http://www.opengroup.org/unix/online.html .
Any typographical or formatting errors that appear in this page are most likely to have been introduced during the conversion of the source files to man page format. To report such errors, see https://www.kernel.org/doc/man-pages/reporting_bugs.html .
2017 | IEEE/The Open Group |