![]() |
![]()
| ![]() |
![]()
NAME
LIBRARYStandard C Library (libc, -lc) SYNOPSIS
int
DESCRIPTIONTo find out if the read pointer is currently pointing at the mark
in the data stream, the
#include <sys/socket.h> ... oob() { int out = FWRITE, mark; char waste[BUFSIZ]; /* flush local terminal output */ ioctl(1, TIOCFLUSH, (char *)&out); for (;;) { if ((mark = sockatmark(rem)) < 0) { perror("sockatmark"); break; } if (mark) break; (void) read(rem, waste, sizeof (waste)); } if (recv(rem, &mark, 1, MSG_OOB) < 0) { perror("recv"); ... } ... } RETURN VALUESUpon successful completion, the
ERRORSThe SEE ALSOStuart Sechrest, An Introductory 4.4BSD Interprocess Communication Tutorial. https://docs.freebsd.org/44doc/psd/20.ipctut/paper.pdf Samuel J. Leffler, Robert S. Fabry, William N. Joy, Phil Lapsley, Steve Miller, and Chris Torek, An Advanced 4.4BSD Interprocess Communication Tutorial, https://docs.freebsd.org/44doc/psd/21.ipc/paper.pdf. HISTORYThe
|