Back to index

glibc  2.9
Defines | Typedefs | Functions
stropts.h File Reference
#include <features.h>
#include <bits/types.h>
#include <bits/xtitypes.h>
#include <bits/stropts.h>
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define __gid_t_defined
#define __uid_t_defined

Typedefs

typedef __gid_t gid_t
typedef __uid_t uid_t
typedef __t_uscalar_t t_uscalar_t

Functions

__BEGIN_DECLS int isastream (int __fildes) __THROW
int getmsg (int __fildes, struct strbuf *__restrict __ctlptr, struct strbuf *__restrict __dataptr, int *__restrict __flagsp)
int getpmsg (int __fildes, struct strbuf *__restrict __ctlptr, struct strbuf *__restrict __dataptr, int *__restrict __bandp, int *__restrict __flagsp)
int ioctl (int __fd, unsigned long int __request,...) __THROW
int putmsg (int __fildes, __const struct strbuf *__ctlptr, __const struct strbuf *__dataptr, int __flags)
int putpmsg (int __fildes, __const struct strbuf *__ctlptr, __const struct strbuf *__dataptr, int __band, int __flags)
int fattach (int __fildes, __const char *__path) __THROW
int fdetach (__const char *__path) __THROW

Define Documentation

#define __gid_t_defined

Definition at line 28 of file stropts.h.

#define __uid_t_defined

Definition at line 33 of file stropts.h.


Typedef Documentation

typedef __gid_t gid_t

Definition at line 27 of file stropts.h.

Definition at line 36 of file stropts.h.

typedef __uid_t uid_t

Definition at line 32 of file stropts.h.


Function Documentation

int fattach ( int  __fildes,
__const char *  __path 
)
int fdetach ( __const char *  __path)
int getmsg ( int  __fildes,
struct strbuf *__restrict  __ctlptr,
struct strbuf *__restrict  __dataptr,
int *__restrict  __flagsp 
)
int getpmsg ( int  __fildes,
struct strbuf *__restrict  __ctlptr,
struct strbuf *__restrict  __dataptr,
int *__restrict  __bandp,
int *__restrict  __flagsp 
)
int ioctl ( int  __fd,
unsigned long int  __request,
  ... 
)
__BEGIN_DECLS int isastream ( int  __fildes)

Definition at line 24 of file isastream.c.

{
  /* In general we do not have a STREAMS implementation and therefore
     return 0.  But for invalid file descriptors we have to return an
     error.  */
  if (__fcntl (fildes, F_GETFD) < 0)
    return -1;

  /* No STREAM.  */
  return 0;
}

Here is the call graph for this function:

int putmsg ( int  __fildes,
__const struct strbuf __ctlptr,
__const struct strbuf __dataptr,
int  __flags 
)
int putpmsg ( int  __fildes,
__const struct strbuf __ctlptr,
__const struct strbuf __dataptr,
int  __band,
int  __flags 
)