/* Copyright (C) 1998-2018 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. The GNU C Library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with the GNU C Library; if not, see <http://www.gnu.org/licenses/>. */ #ifndef _STROPTS_H # error "Never include <bits/stropts.h> directly; use <stropts.h> instead." #endif #ifndef _BITS_STROPTS_H #define _BITS_STROPTS_H 1 #include <bits/types.h> /* Macros used as `request' argument to `ioctl'. */ #define __SID ('S' << 8) #define I_NREAD (__SID | 1) /* Counts the number of data bytes in the data block in the first message. */ #define I_PUSH (__SID | 2) /* Push STREAMS module onto top of the current STREAM, just below the STREAM head. */ #define I_POP (__SID | 3) /* Remove STREAMS module from just below the STREAM head. */ #define I_LOOK (__SID | 4) /* Retrieve the name of the module just below the STREAM head and place it in a character string. */ #define I_FLUSH (__SID | 5) /* Flush all input and/or output. */ #define I_SRDOPT (__SID | 6) /* Sets the read mode. */ #define I_GRDOPT (__SID | 7) /* Returns the current read mode setting. */ #define I_STR (__SID | 8) /* Construct an internal STREAMS `ioctl' message and send that message downstream. */ #define I_SETSIG (__SID | 9) /* Inform the STREAM head that the process wants the SIGPOLL signal issued. */ #define I_GETSIG (__SID |10) /* Return the events for which the calling process is currently registered to be sent a SIGPOLL signal. */ #define I_FIND (__SID |11) /* Compares the names of all modules currently present in the STREAM to the name pointed to by `arg'. */ #define I_LINK (__SID |12) /* Connect two STREAMs. */ #define I_UNLINK (__SID |13) /* Disconnects the two STREAMs. */ #define I_PEEK (__SID |15) /* Allows a process to retrieve the information in the first message on the STREAM head read queue without taking the message off the queue. */ #define I_FDINSERT (__SID |16) /* Create a message from the specified buffer(s), adds information about another STREAM, and send the message downstream. */ #define I_SENDFD (__SID |17) /* Requests the STREAM associated with `fildes' to send a message, containing a file pointer, to the STREAM head at the other end of a STREAMS pipe. */ #define I_RECVFD (__SID |14) /* Non-EFT definition. */ #define I_SWROPT (__SID |19) /* Set the write mode. */ #define I_GWROPT (__SID |20) /* Return the current write mode setting. */ #define I_LIST (__SID |21) /* List all the module names on the STREAM, up to and including the topmost driver name. */ #define I_PLINK (__SID |22) /* Connect two STREAMs with a persistent link. */ #define I_PUNLINK (__SID |23) /* Disconnect the two STREAMs that were connected with a persistent link. */ #define I_FLUSHBAND (__SID |28) /* Flush only band specified. */ #define I_CKBAND (__SID |29) /* Check if the message of a given priority band exists on the STREAM head read queue. */ #define I_GETBAND (__SID |30) /* Return the priority band of the first message on the STREAM head read queue. */ #define I_ATMARK (__SID |31) /* See if the current message on the STREAM head read queue is "marked" by some module downstream. */ #define I_SETCLTIME (__SID |32) /* Set the time the STREAM head will delay when a STREAM is closing and there is data on the write queues. */ #define I_GETCLTIME (__SID |33) /* Get current value for closing timeout. */ #define I_CANPUT (__SID |34) /* Check if a certain band is writable. */ /* Used in `I_LOOK' request. */ #define FMNAMESZ 8 /* compatibility w/UnixWare/Solaris. */ /* Flush options. */ #define FLUSHR 0x01 /* Flush read queues. */ #define FLUSHW 0x02 /* Flush write queues. */ #define FLUSHRW 0x03 /* Flush read and write queues. */ #ifdef __USE_GNU # define FLUSHBAND 0x04 /* Flush only specified band. */ #endif /* Possible arguments for `I_SETSIG'. */ #define S_INPUT 0x0001 /* A message, other than a high-priority message, has arrived. */ #define S_HIPRI 0x0002 /* A high-priority message is present. */ #define S_OUTPUT 0x0004 /* The write queue for normal data is no longer full. */ #define S_MSG 0x0008 /* A STREAMS signal message that contains the SIGPOLL signal reaches the front of the STREAM head read queue. */ #define S_ERROR 0x0010 /* Notification of an error condition. */ #define S_HANGUP 0x0020 /* Notification of a hangup. */ #define S_RDNORM 0x0040 /* A normal message has arrived. */ #define S_WRNORM S_OUTPUT #define S_RDBAND 0x0080 /* A message with a non-zero priority has arrived. */ #define S_WRBAND 0x0100 /* The write queue for a non-zero priority band is no longer full. */ #define S_BANDURG 0x0200 /* When used in conjunction with S_RDBAND, SIGURG is generated instead of SIGPOLL when a priority message reaches the front of the STREAM head read queue. */ /* Option for `I_PEEK'. */ #define RS_HIPRI 0x01 /* Only look for high-priority messages. */ /* Options for `I_SRDOPT'. */ #define RNORM 0x0000 /* Byte-STREAM mode, the default. */ #define RMSGD 0x0001 /* Message-discard mode. */ #define RMSGN 0x0002 /* Message-nondiscard mode. */ #define RPROTDAT 0x0004 /* Deliver the control part of a message as data. */ #define RPROTDIS 0x0008 /* Discard the control part of a message, delivering any data part. */ #define RPROTNORM 0x0010 /* Fail `read' with EBADMSG if a message containing a control part is at the front of the STREAM head read queue. */ #ifdef __USE_GNU # define RPROTMASK 0x001C /* The RPROT bits */ #endif /* Possible mode for `I_SWROPT'. */ #define SNDZERO 0x001 /* Send a zero-length message downstream when a `write' of 0 bytes occurs. */ #ifdef __USE_GNU # define SNDPIPE 0x002 /* Send SIGPIPE on write and putmsg if sd_werror is set. */ #endif /* Arguments for `I_ATMARK'. */ #define ANYMARK 0x01 /* Check if the message is marked. */ #define LASTMARK 0x02 /* Check if the message is the last one marked on the queue. */ /* Argument for `I_UNLINK'. */ #ifdef __USE_GNU # define MUXID_ALL (-1) /* Unlink all STREAMs linked to the STREAM associated with `fildes'. */ #endif /* Macros for `getmsg', `getpmsg', `putmsg' and `putpmsg'. */ #define MSG_HIPRI 0x01 /* Send/receive high priority message. */ #define MSG_ANY 0x02 /* Receive any message. */ #define MSG_BAND 0x04 /* Receive message from specified band. */ /* Values returned by getmsg and getpmsg */ #define MORECTL 1 /* More control information is left in message. */ #define MOREDATA 2 /* More data is left in message. */ /* Structure used for the I_FLUSHBAND ioctl on streams. */ struct bandinfo { unsigned char bi_pri; int bi_flag; }; struct strbuf { int maxlen; /* Maximum buffer length. */ int len; /* Length of data. */ char *buf; /* Pointer to buffer. */ }; struct strpeek { struct strbuf ctlbuf; struct strbuf databuf; t_uscalar_t flags; /* UnixWare/Solaris compatibility. */ }; struct strfdinsert { struct strbuf ctlbuf; struct strbuf databuf; t_uscalar_t flags; /* UnixWare/Solaris compatibility. */ int fildes; int offset; }; struct strioctl { int ic_cmd; int ic_timout; int ic_len; char *ic_dp; }; struct strrecvfd { int fd; uid_t uid; gid_t gid; char __fill[8]; /* UnixWare/Solaris compatibility */ }; struct str_mlist { char l_name[FMNAMESZ + 1]; }; struct str_list { int sl_nmods; struct str_mlist *sl_modlist; }; #endif /* bits/stropts.h */
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
types | Folder | 0755 |
|
|
_G_config.h | File | 1.41 KB | 0644 |
|
a.out.h | File | 268 B | 0644 |
|
auxv.h | File | 3.39 KB | 0644 |
|
byteswap-16.h | File | 1.69 KB | 0644 |
|
byteswap.h | File | 5.53 KB | 0644 |
|
cmathcalls.h | File | 4.04 KB | 0644 |
|
confname.h | File | 23.15 KB | 0644 |
|
cpu-set.h | File | 4.41 KB | 0644 |
|
dirent.h | File | 1.69 KB | 0644 |
|
dlfcn.h | File | 2.46 KB | 0644 |
|
elfclass.h | File | 426 B | 0644 |
|
endian.h | File | 176 B | 0644 |
|
environments.h | File | 3.7 KB | 0644 |
|
epoll.h | File | 1.04 KB | 0644 |
|
errno.h | File | 1.39 KB | 0644 |
|
error.h | File | 2.62 KB | 0644 |
|
eventfd.h | File | 1.1 KB | 0644 |
|
fcntl-linux.h | File | 14.02 KB | 0644 |
|
fcntl.h | File | 2.19 KB | 0644 |
|
fcntl2.h | File | 5.44 KB | 0644 |
|
fenv.h | File | 4.5 KB | 0644 |
|
fenvinline.h | File | 190 B | 0644 |
|
floatn-common.h | File | 9.2 KB | 0644 |
|
floatn.h | File | 4.32 KB | 0644 |
|
flt-eval-method.h | File | 1.19 KB | 0644 |
|
fp-fast.h | File | 1.19 KB | 0644 |
|
fp-logb.h | File | 1011 B | 0644 |
|
getopt_core.h | File | 3.58 KB | 0644 |
|
getopt_ext.h | File | 2.97 KB | 0644 |
|
getopt_posix.h | File | 1.77 KB | 0644 |
|
hwcap.h | File | 971 B | 0644 |
|
in.h | File | 9.22 KB | 0644 |
|
initspin.h | File | 25 B | 0644 |
|
inotify.h | File | 1.05 KB | 0644 |
|
ioctl-types.h | File | 2.4 KB | 0644 |
|
ioctls.h | File | 4.37 KB | 0644 |
|
ipc.h | File | 2.02 KB | 0644 |
|
ipctypes.h | File | 1.15 KB | 0644 |
|
iscanonical.h | File | 2.42 KB | 0644 |
|
libc-header-start.h | File | 2.55 KB | 0644 |
|
libio-ldbl.h | File | 1.06 KB | 0644 |
|
libio.h | File | 16.82 KB | 0644 |
|
libm-simd-decl-stubs.h | File | 2.93 KB | 0644 |
|
link.h | File | 4.18 KB | 0644 |
|
local_lim.h | File | 3.11 KB | 0644 |
|
locale.h | File | 1.33 KB | 0644 |
|
long-double.h | File | 923 B | 0644 |
|
math-finite.h | File | 5.25 KB | 0644 |
|
math-vector.h | File | 2.25 KB | 0644 |
|
mathcalls-helper-functions.h | File | 1.72 KB | 0644 |
|
mathcalls.h | File | 12.81 KB | 0644 |
|
mathdef.h | File | 890 B | 0644 |
|
mathinline.h | File | 26.54 KB | 0644 |
|
mman-linux.h | File | 4.69 KB | 0644 |
|
mman-shared.h | File | 2.67 KB | 0644 |
|
mman.h | File | 1.83 KB | 0644 |
|
monetary-ldbl.h | File | 1.02 KB | 0644 |
|
mqueue.h | File | 1.22 KB | 0644 |
|
mqueue2.h | File | 2.1 KB | 0644 |
|
msq.h | File | 2.55 KB | 0644 |
|
netdb.h | File | 1.23 KB | 0644 |
|
param.h | File | 1.4 KB | 0644 |
|
poll.h | File | 2.03 KB | 0644 |
|
poll2.h | File | 2.87 KB | 0644 |
|
posix1_lim.h | File | 4.81 KB | 0644 |
|
posix2_lim.h | File | 2.8 KB | 0644 |
|
posix_opt.h | File | 5.57 KB | 0644 |
|
printf-ldbl.h | File | 991 B | 0644 |
|
pthreadtypes-arch.h | File | 3.21 KB | 0644 |
|
pthreadtypes.h | File | 3 KB | 0644 |
|
ptrace-shared.h | File | 2.83 KB | 0644 |
|
resource.h | File | 6.15 KB | 0644 |
|
sched.h | File | 3.72 KB | 0644 |
|
select.h | File | 2.06 KB | 0644 |
|
select2.h | File | 1.4 KB | 0644 |
|
sem.h | File | 2.53 KB | 0644 |
|
semaphore.h | File | 1.21 KB | 0644 |
|
setjmp.h | File | 1.26 KB | 0644 |
|
setjmp2.h | File | 1.66 KB | 0644 |
|
shm.h | File | 3.48 KB | 0644 |
|
sigaction.h | File | 2.8 KB | 0644 |
|
sigcontext.h | File | 4.16 KB | 0644 |
|
sigevent-consts.h | File | 1.44 KB | 0644 |
|
siginfo-arch.h | File | 729 B | 0644 |
|
siginfo-consts-arch.h | File | 204 B | 0644 |
|
siginfo-consts.h | File | 5.83 KB | 0644 |
|
signalfd.h | File | 1.04 KB | 0644 |
|
signum-generic.h | File | 4.24 KB | 0644 |
|
signum.h | File | 1.59 KB | 0644 |
|
sigstack.h | File | 1.14 KB | 0644 |
|
sigthread.h | File | 1.65 KB | 0644 |
|
sockaddr.h | File | 1.48 KB | 0644 |
|
socket.h | File | 13.99 KB | 0644 |
|
socket2.h | File | 2.95 KB | 0644 |
|
socket_type.h | File | 2.16 KB | 0644 |
|
ss_flags.h | File | 1.16 KB | 0644 |
|
stab.def | File | 8.83 KB | 0644 |
|
stat.h | File | 7.44 KB | 0644 |
|
statfs.h | File | 1.87 KB | 0644 |
|
statvfs.h | File | 3.34 KB | 0644 |
|
stdint-intn.h | File | 1.01 KB | 0644 |
|
stdint-uintn.h | File | 1.02 KB | 0644 |
|
stdio-ldbl.h | File | 2.94 KB | 0644 |
|
stdio.h | File | 5.36 KB | 0644 |
|
stdio2.h | File | 12.25 KB | 0644 |
|
stdio_lim.h | File | 1.18 KB | 0644 |
|
stdlib-bsearch.h | File | 1.34 KB | 0644 |
|
stdlib-float.h | File | 1.09 KB | 0644 |
|
stdlib-ldbl.h | File | 1.34 KB | 0644 |
|
stdlib.h | File | 5.53 KB | 0644 |
|
string_fortified.h | File | 4.21 KB | 0644 |
|
strings_fortified.h | File | 1.18 KB | 0644 |
|
stropts.h | File | 8.25 KB | 0644 |
|
sys_errlist.h | File | 1.19 KB | 0644 |
|
syscall.h | File | 39.59 KB | 0644 |
|
sysctl.h | File | 898 B | 0644 |
|
syslog-ldbl.h | File | 1.18 KB | 0644 |
|
syslog-path.h | File | 1.04 KB | 0644 |
|
syslog.h | File | 1.64 KB | 0644 |
|
sysmacros.h | File | 2.88 KB | 0644 |
|
termios.h | File | 5.24 KB | 0644 |
|
thread-shared-types.h | File | 6.56 KB | 0644 |
|
time.h | File | 2.93 KB | 0644 |
|
timerfd.h | File | 1.08 KB | 0644 |
|
timex.h | File | 4.49 KB | 0644 |
|
types.h | File | 7.8 KB | 0644 |
|
typesizes.h | File | 3.32 KB | 0644 |
|
uintn-identity.h | File | 1.5 KB | 0644 |
|
uio-ext.h | File | 1.88 KB | 0644 |
|
uio_lim.h | File | 1.35 KB | 0644 |
|
unistd.h | File | 13 KB | 0644 |
|
ustat.h | File | 1.06 KB | 0644 |
|
utmp.h | File | 3.96 KB | 0644 |
|
utmpx.h | File | 3.38 KB | 0644 |
|
utsname.h | File | 1.18 KB | 0644 |
|
waitflags.h | File | 2.17 KB | 0644 |
|
waitstatus.h | File | 2.23 KB | 0644 |
|
wchar-ldbl.h | File | 2.37 KB | 0644 |
|
wchar.h | File | 1.86 KB | 0644 |
|
wchar2.h | File | 20.02 KB | 0644 |
|
wctype-wchar.h | File | 6.15 KB | 0644 |
|
wordsize.h | File | 442 B | 0644 |
|
xopen_lim.h | File | 3.77 KB | 0644 |
|
xtitypes.h | File | 1.19 KB | 0644 |
|