XSI Streams (_XOPEN_STREAMS) option.
More...
|
| #define | RS_HIPRI BIT(0) |
| | Flag: message carries high-priority data.
|
| |
|
| int | putmsg (int fildes, const struct strbuf *ctlptr, const struct strbuf *dataptr, int flags) |
| | Send a STREAMS message downstream.
|
| |
| int | fdetach (const char *path) |
| | Detach a STREAMS-based file descriptor from a mount point.
|
| |
| int | fattach (int fildes, const char *path) |
| | Attach a STREAMS file descriptor to a pathname in the filesystem.
|
| |
| int | getmsg (int fildes, struct strbuf *ctlptr, struct strbuf *dataptr, int *flagsp) |
| | Receive the next message from a STREAMS file descriptor.
|
| |
| int | getpmsg (int fildes, struct strbuf *ctlptr, struct strbuf *dataptr, int *bandp, int *flagsp) |
| | Receive a priority-banded message from a STREAMS file descriptor.
|
| |
| int | isastream (int fildes) |
| | Test whether a file descriptor refers to a STREAMS file.
|
| |
XSI Streams (_XOPEN_STREAMS) option.
- See also
- XSI_STREAMS (_XOPEN_STREAMS)
◆ RS_HIPRI
Flag: message carries high-priority data.
Definition at line 28 of file stropts.h.
◆ fattach()
| int fattach |
( |
int |
fildes, |
|
|
const char * |
path |
|
) |
| |
◆ fdetach()
| int fdetach |
( |
const char * |
path | ) |
|
◆ getmsg()
| int getmsg |
( |
int |
fildes, |
|
|
struct strbuf * |
ctlptr, |
|
|
struct strbuf * |
dataptr, |
|
|
int * |
flagsp |
|
) |
| |
Receive the next message from a STREAMS file descriptor.
- Parameters
-
| fildes | STREAMS file descriptor. |
| ctlptr | Output: control part buffer, or NULL. |
| dataptr | Output: data part buffer, or NULL. |
| flagsp | Input/output: 0 or RS_HIPRI to request high-priority messages only. |
- Returns
- 0 if complete message received, 1 if more to follow, -1 on failure.
- See also
- https://pubs.opengroup.org/onlinepubs/9699919799/functions/getmsg.html
◆ getpmsg()
| int getpmsg |
( |
int |
fildes, |
|
|
struct strbuf * |
ctlptr, |
|
|
struct strbuf * |
dataptr, |
|
|
int * |
bandp, |
|
|
int * |
flagsp |
|
) |
| |
Receive a priority-banded message from a STREAMS file descriptor.
- Parameters
-
| fildes | STREAMS file descriptor. |
| ctlptr | Output: control part buffer, or NULL. |
| dataptr | Output: data part buffer, or NULL. |
| bandp | Input/output: priority band. |
| flagsp | Input/output: message flags. |
- Returns
- 0 if complete message received, 1 if more to follow, -1 on failure.
- See also
- https://pubs.opengroup.org/onlinepubs/9699919799/functions/getpmsg.html
◆ isastream()
| int isastream |
( |
int |
fildes | ) |
|
◆ putmsg()
| int putmsg |
( |
int |
fildes, |
|
|
const struct strbuf * |
ctlptr, |
|
|
const struct strbuf * |
dataptr, |
|
|
int |
flags |
|
) |
| |