ReactOS 0.4.16-dev-91-g764881a
schilyio.h File Reference
#include <schily/mconfig.h>
#include <schily/stdio.h>
#include <schily/standard.h>
#include <schily/types.h>
#include <schily/unistd.h>
#include <schily/fcntl.h>
#include <schily/schily.h>
#include <schily/errno.h>
Include dependency graph for schilyio.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  _io_flags
 

Macros

#define _openfd(name, omode)   (open(name, omode, (mode_t)0666))
 
#define DO_MYFLAG   /* use local flags */
 
#define FI_NONE   0x0000 /* no flags defined */
 
#define FI_READ   0x0001 /* open for reading */
 
#define FI_WRITE   0x0002 /* open for writing */
 
#define FI_BINARY   0x0004 /* open in binary mode */
 
#define FI_APPEND   0x0008 /* append on each write */
 
#define FI_CREATE   0x0010 /* create if nessecary */
 
#define FI_TRUNC   0x0020 /* truncate file on open */
 
#define FI_UNBUF   0x0080 /* dont't buffer io */
 
#define FI_CLOSE   0x1000 /* close file on error */
 
#define _JS_IONORAISE   01 /* do no raisecond() on errors */
 
#define _JS_IOUNBUF   02 /* do unbuffered i/o */
 
#define flp(p)   (&_io_myfl[fileno(p)])
 
#define my_flag(p)   _io_get_my_flag(p)
 
#define set_my_flag(p, v)   _io_set_my_flag(p, v)
 
#define add_my_flag(p, v)   _io_add_my_flag(p, v)
 
#define __c
 
#define down(f)
 
#define down1(f, fl1)
 
#define down2(f, fl1, fl2)
 

Typedefs

typedef struct _io_flags _io_fl
 

Functions

int _io_get_my_flag __PR ((FILE *))
 
void _io_set_my_flag __PR ((FILE *, int))
 

Variables

int _io_glflag
 
_io_fl_io_myfl
 
int _fl_max
 
char _badfile []
 
char _badmode []
 
char _badop []
 

Macro Definition Documentation

◆ __c

#define __c

Definition at line 209 of file schilyio.h.

◆ _JS_IONORAISE

#define _JS_IONORAISE   01 /* do no raisecond() on errors */

Definition at line 99 of file schilyio.h.

◆ _JS_IOUNBUF

#define _JS_IOUNBUF   02 /* do unbuffered i/o */

Definition at line 100 of file schilyio.h.

◆ _openfd

#define _openfd (   name,
  omode 
)    (open(name, omode, (mode_t)0666))

Definition at line 75 of file schilyio.h.

◆ add_my_flag

#define add_my_flag (   p,
  v 
)    _io_add_my_flag(p, v)

Definition at line 141 of file schilyio.h.

◆ DO_MYFLAG

#define DO_MYFLAG   /* use local flags */

Definition at line 78 of file schilyio.h.

◆ down

#define down (   f)

Definition at line 216 of file schilyio.h.

◆ down1

#define down1 (   f,
  fl1 
)

Definition at line 217 of file schilyio.h.

◆ down2

#define down2 (   f,
  fl1,
  fl2 
)

Definition at line 218 of file schilyio.h.

◆ FI_APPEND

#define FI_APPEND   0x0008 /* append on each write */

Definition at line 88 of file schilyio.h.

◆ FI_BINARY

#define FI_BINARY   0x0004 /* open in binary mode */

Definition at line 87 of file schilyio.h.

◆ FI_CLOSE

#define FI_CLOSE   0x1000 /* close file on error */

Definition at line 93 of file schilyio.h.

◆ FI_CREATE

#define FI_CREATE   0x0010 /* create if nessecary */

Definition at line 90 of file schilyio.h.

◆ FI_NONE

#define FI_NONE   0x0000 /* no flags defined */

Definition at line 83 of file schilyio.h.

◆ FI_READ

#define FI_READ   0x0001 /* open for reading */

Definition at line 85 of file schilyio.h.

◆ FI_TRUNC

#define FI_TRUNC   0x0020 /* truncate file on open */

Definition at line 91 of file schilyio.h.

◆ FI_UNBUF

#define FI_UNBUF   0x0080 /* dont't buffer io */

Definition at line 92 of file schilyio.h.

◆ FI_WRITE

#define FI_WRITE   0x0002 /* open for writing */

Definition at line 86 of file schilyio.h.

◆ flp

#define flp (   p)    (&_io_myfl[fileno(p)])

Definition at line 128 of file schilyio.h.

◆ my_flag

#define my_flag (   p)    _io_get_my_flag(p)

Definition at line 137 of file schilyio.h.

◆ set_my_flag

#define set_my_flag (   p,
  v 
)    _io_set_my_flag(p, v)

Definition at line 140 of file schilyio.h.

Typedef Documentation

◆ _io_fl

Definition at line 112 of file schilyio.h.

Function Documentation

◆ __PR() [1/2]

int _io_get_my_flag __PR ( (FILE *)  )

◆ __PR() [2/2]

void _io_set_my_flag __PR ( (FILE *, int )

Variable Documentation

◆ _badfile

char _badfile[]
extern

Definition at line 17 of file dat.c.

◆ _badmode

char _badmode[]
extern

Definition at line 18 of file dat.c.

Referenced by _cvmod().

◆ _badop

char _badop[]
extern

Definition at line 19 of file dat.c.

◆ _fl_max

int _fl_max
extern

Definition at line 34 of file flag.c.

Referenced by _io_get_my_flag(), _io_set_my_flag(), and _more_flags().

◆ _io_glflag

int _io_glflag
extern

Definition at line 31 of file flag.c.

Referenced by _fcons(), and filewrite().

◆ _io_myfl

_io_fl* _io_myfl
extern

Definition at line 36 of file flag.c.

Referenced by _io_get_my_flag(), _io_set_my_flag(), and _more_flags().