ReactOS 0.4.16-dev-2104-gb84fa49
io.h File Reference
#include <corecrt.h>
#include <corecrt_io.h>
Include dependency graph for io.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define _UMASK_DEFINED
 
#define _UNLINK_DEFINED
 
#define open   _open
 
#define sopen   _sopen
 

Functions

static int access (const char *path, int mode)
 
static int chmod (const char *path, int mode)
 
static int chsize (int fd, __msvcrt_long size)
 
static int close (int fd)
 
static int creat (const char *path, int mode)
 
static int dup (int od)
 
static int dup2 (int od, int nd)
 
static int eof (int fd)
 
static __msvcrt_long filelength (int fd)
 
static int isatty (int fd)
 
static int locking (int fd, int mode, __msvcrt_long size)
 
static __msvcrt_long lseek (int fd, __msvcrt_long off, int where)
 
static charmktemp (char *pat)
 
static int read (int fd, void *buf, unsigned int size)
 
static int setmode (int fd, int mode)
 
static __msvcrt_long tell (int fd)
 
static int umask (int fd)
 
static int unlink (const char *path)
 
static int write (int fd, const void *buf, unsigned int size)
 

Macro Definition Documentation

◆ _UMASK_DEFINED

#define _UMASK_DEFINED

Definition at line 32 of file io.h.

◆ _UNLINK_DEFINED

#define _UNLINK_DEFINED

Definition at line 36 of file io.h.

◆ open

#define open   _open

Definition at line 44 of file io.h.

◆ sopen

#define sopen   _sopen

Definition at line 45 of file io.h.

Function Documentation

◆ access()

static int access ( const char path,
int  mode 
)
inlinestatic

Definition at line 14 of file io.h.

14{ return _access(path, mode); }
int CDECL _access(const char *filename, int mode)
Definition: file.c:990
GLenum mode
Definition: glext.h:6217

◆ chmod()

static int chmod ( const char path,
int  mode 
)
inlinestatic

Definition at line 15 of file io.h.

15{ return _chmod(path, mode); }
int CDECL _chmod(const char *path, int flags)
Definition: file.c:1052

Referenced by recvrequest().

◆ chsize()

static int chsize ( int  fd,
__msvcrt_long  size 
)
inlinestatic

Definition at line 16 of file io.h.

16{ return _chsize(fd, size); }
int CDECL _chsize(int fd, __msvcrt_long size)
Definition: file.c:1663
GLsizeiptr size
Definition: glext.h:5919
static int fd
Definition: io.c:51

◆ close()

static int close ( int  fd)
inlinestatic

Definition at line 17 of file io.h.

17{ return _close(fd); }
int CDECL _close(int fd)
Definition: file.c:1219

◆ creat()

static int creat ( const char path,
int  mode 
)
inlinestatic

Definition at line 18 of file io.h.

18{ return _creat(path, mode); }
int CDECL _creat(const char *path, int pmode)
Definition: file.c:2693

◆ dup()

static int dup ( int  od)
inlinestatic

Definition at line 19 of file io.h.

19{ return _dup(od); }
int CDECL _dup(int od)
Definition: file.c:1317

◆ dup2()

static int dup2 ( int  od,
int  nd 
)
inlinestatic

Definition at line 20 of file io.h.

20{ return _dup2(od, nd); }
int CDECL _dup2(int od, int nd)
Definition: file.c:1258

Referenced by cmd_ctty(), fork_helper(), run_ex(), run_tests(), subprocess(), and test_readmode().

◆ eof()

◆ filelength()

static __msvcrt_long filelength ( int  fd)
inlinestatic

Definition at line 22 of file io.h.

22{ return _filelength(fd); }
__msvcrt_long CDECL _filelength(int fd)
Definition: file.c:1887

Referenced by tinyxml2::XMLDocument::LoadFile().

◆ isatty()

static int isatty ( int  fd)
inlinestatic

Definition at line 23 of file io.h.

23{ return _isatty(fd); }
int CDECL _isatty(int fd)
Definition: file.c:858

◆ locking()

static int locking ( int  fd,
int  mode,
__msvcrt_long  size 
)
inlinestatic

Definition at line 24 of file io.h.

24{ return _locking(fd, mode, size); }
int CDECL _locking(int fd, int mode, __msvcrt_long nbytes)
Definition: file.c:1513

◆ lseek()

static __msvcrt_long lseek ( int  fd,
__msvcrt_long  off,
int  where 
)
inlinestatic

Definition at line 25 of file io.h.

25{ return _lseek(fd, off, where); }
__msvcrt_long CDECL _lseek(int fd, __msvcrt_long offset, int whence)
Definition: file.c:1479

◆ mktemp()

static char * mktemp ( char pat)
inlinestatic

Definition at line 26 of file io.h.

26{ return _mktemp(pat); }
char *CDECL _mktemp(char *pattern)
Definition: file.c:2176

Referenced by remglob(), select_file_name(), and test_freopen().

◆ read()

static int read ( int  fd,
void buf,
unsigned int  size 
)
inlinestatic

Definition at line 27 of file io.h.

27{ return _read(fd, buf, size); }
int CDECL _read(int fd, void *buf, unsigned int count)
Definition: file.c:3127
GLenum GLuint GLenum GLsizei const GLchar * buf
Definition: glext.h:7751

◆ setmode()

static int setmode ( int  fd,
int  mode 
)
inlinestatic

Definition at line 28 of file io.h.

28{ return _setmode(fd, mode); }
#define _setmode(fd, mode)
Definition: cat.c:21

◆ tell()

static __msvcrt_long tell ( int  fd)
inlinestatic

Definition at line 29 of file io.h.

29{ return _tell(fd); }
__msvcrt_long CDECL _tell(int fd)
Definition: file.c:3425

◆ umask()

static int umask ( int  fd)
inlinestatic

Definition at line 31 of file io.h.

31{ return _umask(fd); }
int CDECL _umask(int umask)
Definition: file.c:3486

Referenced by _umask(), and SpoolX().

◆ unlink()

static int unlink ( const char path)
inlinestatic

Definition at line 35 of file io.h.

35{ return _unlink(path); }
int CDECL _unlink(const char *path)
Definition: file.c:1085

◆ write()

static int write ( int  fd,
const void buf,
unsigned int  size 
)
inlinestatic

Definition at line 38 of file io.h.

38{ return _write(fd, buf, size); }
int CDECL _write(int fd, const void *buf, unsigned int count)
Definition: file.c:3561