1 /* Copyright (C) 1998 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.
4 The GNU C Library is free software; you can redistribute it and/or
5 modify it under the terms of the GNU Library General Public License as
6 published by the Free Software Foundation; either version 2 of the
7 License, or (at your option) any later version.
9 The GNU C Library is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 Library General Public License for more details.
14 You should have received a copy of the GNU Library General Public
15 License along with the GNU C Library; see the file COPYING.LIB. If not,
16 write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
17 Boston, MA 02111-1307, USA. */
23 #include <bits/types.h>
25 /* Get system specific contants. */
26 #include <bits/stropts.h>
31 /* Test whether FILDES is associated with a STREAM-based file. */
32 extern int isastream
__P ((int __fildes
));
34 /* Receive next message from a STREAMS file. */
35 extern int getmsg
__P ((int __fildes
, struct strbuf
*__ctlptr
,
36 struct strbuf
*__dataptr
, int *__flagsp
));
38 /* Receive next message from a STREAMS file, with *FLAGSP allowing to
39 control which message. */
40 extern int getpmsg
__P ((int __fildes
, struct strbuf
*__ctlptr
,
41 struct strbuf
*__dataptr
, int *__bandp
,
44 /* Perform the I/O control operation specified by REQUEST on FD.
45 One argument may follow; its presence and type depend on REQUEST.
46 Return value depends on REQUEST. Usually -1 indicates error. */
47 extern int ioctl
__P ((int __fd
, unsigned long int __request
, ...));
49 /* Send a message on a STREAM. */
50 extern int putmsg
__P ((int __fildes
, __const
struct strbuf
*__ctlptr
,
51 __const
struct strbuf
*__dataptr
, int __flags
));
53 /* Send a message on a STREAM to the BAND. */
54 extern int putpmsg
__P ((int __fildes
, __const
struct strbuf
*__ctlptr
,
55 __const
struct strbuf
*__dataptr
, int __band
,
58 /* Attach a STREAMS-based file descriptor FILDES to a file PATH in the
59 file system name space. */
60 extern int fattach
__P ((int __fildes
, __const
char *__path
));
62 /* Detach a name PATH from a STREAMS-based file descriptor. */
63 extern int fdetach
__P ((__const
char *__path
));
67 #endif /* stropts.h */