1 /* Copyright (C) 1998, 1999, 2000, 2002 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 Lesser General Public
6 License as published by the Free Software Foundation; either
7 version 2.1 of the 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 Lesser General Public License for more details.
14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, write to the Free
16 Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
23 #include <bits/types.h>
24 #include <bits/xtitypes.h>
26 #ifndef __gid_t_defined
27 typedef __gid_t gid_t
;
28 # define __gid_t_defined
31 #ifndef __uid_t_defined
32 typedef __uid_t uid_t
;
33 # define __uid_t_defined
36 typedef __t_uscalar_t t_uscalar_t
;
38 /* Get system specific contants. */
39 #include <bits/stropts.h>
44 /* Test whether FILDES is associated with a STREAM-based file. */
45 extern int isastream (int __fildes
) __THROW
;
47 /* Receive next message from a STREAMS file. */
48 extern int getmsg (int __fildes
, struct strbuf
*__restrict __ctlptr
,
49 struct strbuf
*__restrict __dataptr
,
50 int *__restrict __flagsp
) __THROW
;
52 /* Receive next message from a STREAMS file, with *FLAGSP allowing to
53 control which message. */
54 extern int getpmsg (int __fildes
, struct strbuf
*__restrict __ctlptr
,
55 struct strbuf
*__restrict __dataptr
,
56 int *__restrict __bandp
, int *__restrict __flagsp
)
59 /* Perform the I/O control operation specified by REQUEST on FD.
60 One argument may follow; its presence and type depend on REQUEST.
61 Return value depends on REQUEST. Usually -1 indicates error. */
62 extern int ioctl (int __fd
, unsigned long int __request
, ...) __THROW
;
64 /* Send a message on a STREAM. */
65 extern int putmsg (int __fildes
, __const
struct strbuf
*__ctlptr
,
66 __const
struct strbuf
*__dataptr
, int __flags
) __THROW
;
68 /* Send a message on a STREAM to the BAND. */
69 extern int putpmsg (int __fildes
, __const
struct strbuf
*__ctlptr
,
70 __const
struct strbuf
*__dataptr
, int __band
, int __flags
)
73 /* Attach a STREAMS-based file descriptor FILDES to a file PATH in the
74 file system name space. */
75 extern int fattach (int __fildes
, __const
char *__path
) __THROW
;
77 /* Detach a name PATH from a STREAMS-based file descriptor. */
78 extern int fdetach (__const
char *__path
) __THROW
;
82 #endif /* stropts.h */