1sockio(7I) Ioctl Requests sockio(7I)
2
3
4
6 sockio - ioctls that operate directly on sockets
7
9 #include <sys/sockio.h>
10
11
13 The ioctls listed in this manual page apply directly to sockets, inde‐
14 pendent of any underlying protocol. The setsockopt() call (see getsock‐
15 opt(3SOCKET)) is the primary method for operating on sockets, rather
16 than on the underlying protocol or network interface. ioctls for a spe‐
17 cific network interface or protocol are documented in the manual page
18 for that interface or protocol.
19
20 SIOCSPGRP The argument is a pointer to an int. Set the process-
21 group ID that will subsequently receive SIGIO or SIGURG
22 signals for the socket referred to by the descriptor
23 passed to ioctl to the value of that int. The argument
24 must be either positive (in which case it must be a
25 process ID) or negative (in which case it must be a
26 process group).
27
28
29 SIOCGPGRP The argument is a pointer to an int. Set the value of
30 that int to the process-group ID that is receiving SIGIO
31 or SIGURG signals for the socket referred to by the
32 descriptor passed to ioctl.
33
34
35 SIOCCATMARK The argument is a pointer to an int. Set the value of
36 that int to 1 if the read pointer for the socket
37 referred to by the descriptor passed to ioctl points to
38 a mark in the data stream for an out-of-band message.
39 Set the value of that int to 0 if the read pointer for
40 the socket referred to by the descriptor passed to ioctl
41 does not point to a mark in the data stream for an out-
42 of-band message.
43
44
46 ioctl(2), getsockopt(3SOCKET)
47
48
49
50SunOS 5.11 8 Nov 1996 sockio(7I)