ReactOS 0.4.16-dev-2104-gb84fa49
io.h File Reference
#include <corecrt.h>
#include <string.h>
#include <sec_api/io_s.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.

Classes

struct  _finddata_t
 
struct  _finddata32_t
 
struct  _wfinddata_t
 
struct  _wfinddata32_t
 

Macros

#define _FSIZE_T_DEFINED
 
#define _FINDDATA_T_DEFINED
 
#define _WFINDDATA_T_DEFINED
 
#define _A_NORMAL   0x00
 
#define _A_RDONLY   0x01
 
#define _A_HIDDEN   0x02
 
#define _A_SYSTEM   0x04
 
#define _A_SUBDIR   0x10
 
#define _A_ARCH   0x20
 
#define F_OK   0 /* Check for file existence */
 
#define X_OK   1 /* Check for execute permission. */
 
#define W_OK   2 /* Check for write permission */
 
#define R_OK   4 /* Check for read permission */
 
#define _CRT_DIRECTORY_DEFINED
 
#define _WIO_DEFINED
 

Typedefs

typedef unsigned long _fsize_t
 

Functions

_Check_return_ _Ret_opt_z_ _CRTIMP char *__cdecl _getcwd (_Out_writes_opt_(_SizeInBytes) char *_DstBuf, _In_ int _SizeInBytes)
 
_Check_return_ _CRTIMP int __cdecl _access (_In_z_ const char *_Filename, _In_ int _AccessMode)
 
_Check_return_ _CRTIMP int __cdecl _chmod (_In_z_ const char *_Filename, _In_ int _Mode)
 
_Check_return_ _CRTIMP int __cdecl _chsize (_In_ int _FileHandle, _In_ long _Size)
 
_Check_return_opt_ _CRTIMP int __cdecl _close (_In_ int _FileHandle)
 
_Check_return_opt_ _CRTIMP int __cdecl _commit (_In_ int _FileHandle)
 
_Check_return_ _CRTIMP int __cdecl _creat (_In_z_ const char *_Filename, _In_ int _PermissionMode)
 
_Check_return_ _CRTIMP int __cdecl _dup (_In_ int _FileHandle)
 
_Check_return_ _CRTIMP int __cdecl _dup2 (_In_ int _FileHandleSrc, _In_ int _FileHandleDst)
 
_Check_return_ _CRTIMP int __cdecl _eof (_In_ int _FileHandle)
 
_Check_return_ _CRTIMP long __cdecl _filelength (_In_ int _FileHandle)
 
_CRTIMP intptr_t __cdecl _findfirst (const char *_Filename, struct _finddata_t *_FindData)
 
_Check_return_ _CRTIMP intptr_t __cdecl _findfirst32 (_In_z_ const char *_Filename, _Out_ struct _finddata32_t *_FindData)
 
_CRTIMP int __cdecl _findnext (intptr_t _FindHandle, struct _finddata_t *_FindData)
 
_Check_return_ _CRTIMP int __cdecl _findnext32 (_In_ intptr_t _FindHandle, _Out_ struct _finddata32_t *_FindData)
 
_Check_return_opt_ _CRTIMP int __cdecl _findclose (_In_ intptr_t _FindHandle)
 
_Check_return_ _CRTIMP int __cdecl _isatty (_In_ int _FileHandle)
 
_CRTIMP int __cdecl _locking (_In_ int _FileHandle, _In_ int _LockMode, _In_ long _NumOfBytes)
 
_Check_return_opt_ _CRTIMP long __cdecl _lseek (_In_ int _FileHandle, _In_ long _Offset, _In_ int _Origin)
 
_Check_return_ _CRTIMP char *__cdecl _mktemp (_Inout_z_ char *_TemplateName)
 
_Check_return_ _CRTIMP int __cdecl _pipe (_Inout_updates_(2) int *_PtHandles, _In_ unsigned int _PipeSize, _In_ int _TextMode)
 
_Check_return_ _CRTIMP int __cdecl _read (_In_ int _FileHandle, _Out_writes_bytes_(_MaxCharCount) void *_DstBuf, _In_ unsigned int _MaxCharCount)
 
_Check_return_ int __cdecl remove (_In_z_ const char *_Filename)
 
_Check_return_ int __cdecl rename (_In_z_ const char *_OldFilename, _In_z_ const char *_NewFilename)
 
_Check_return_ _CRTIMP int __cdecl _unlink (_In_z_ const char *_Filename)
 
_Check_return_ _CRTIMP int __cdecl unlink (_In_z_ const char *_Filename)
 
_Check_return_ _CRTIMP int __cdecl _setmode (_In_ int _FileHandle, _In_ int _Mode)
 
_Check_return_ _CRTIMP long __cdecl _tell (_In_ int _FileHandle)
 
_CRTIMP int __cdecl _umask (_In_ int _Mode)
 
_CRTIMP int __cdecl _write (_In_ int _FileHandle, _In_reads_bytes_(_MaxCharCount) const void *_Buf, _In_ unsigned int _MaxCharCount)
 
_Check_return_ _CRTIMP int __cdecl chdir (_In_z_ const char *_Path)
 
_Check_return_ _Ret_opt_z_ _CRTIMP char *__cdecl getcwd (_Out_writes_opt_(_SizeInBytes) char *_DstBuf, _In_ int _SizeInBytes)
 
_Check_return_ _CRTIMP int __cdecl mkdir (_In_z_ const char *_Path)
 
_CRTIMP char *__cdecl mktemp (_Inout_z_ char *_TemplateName)
 
_Check_return_ _CRTIMP int __cdecl rmdir (_In_z_ const char *_Path)
 
_Check_return_ _CRTIMP int __cdecl chmod (_In_z_ const char *_Filename, _In_ int _AccessMode)
 
_Check_return_wat_ _CRTIMP errno_t __cdecl _sopen_s (_Out_ int *_FileHandle, _In_z_ const char *_Filename, _In_ int _OpenFlag, _In_ int _ShareFlag, _In_ int _PermissionMode)
 
_CRTIMP int __cdecl _open (const char *_Filename, int _OpenFlag,...)
 
_CRTIMP int __cdecl _sopen (const char *_Filename, int _OpenFlag, int _ShareFlag,...)
 
_Check_return_ _CRTIMP int __cdecl _waccess (_In_z_ const wchar_t *_Filename, _In_ int _AccessMode)
 
_Check_return_ _CRTIMP int __cdecl _wchmod (_In_z_ const wchar_t *_Filename, _In_ int _Mode)
 
_Check_return_ _CRTIMP int __cdecl _wcreat (_In_z_ const wchar_t *_Filename, _In_ int _PermissionMode)
 
_Check_return_ _CRTIMP intptr_t __cdecl _wfindfirst32 (_In_z_ const wchar_t *_Filename, _Out_ struct _wfinddata32_t *_FindData)
 
_Check_return_ _CRTIMP int __cdecl _wfindnext32 (_In_ intptr_t _FindHandle, _Out_ struct _wfinddata32_t *_FindData)
 
_Check_return_ _CRTIMP int __cdecl _wunlink (_In_z_ const wchar_t *_Filename)
 
_Check_return_ _CRTIMP int __cdecl _wrename (_In_z_ const wchar_t *_NewFilename, _In_z_ const wchar_t *_OldFilename)
 
_CRTIMP wchar_t *__cdecl _wmktemp (_Inout_z_ wchar_t *_TemplateName)
 
_Check_return_wat_ _CRTIMP errno_t __cdecl _wsopen_s (_Out_ int *_FileHandle, _In_z_ const wchar_t *_Filename, _In_ int _OpenFlag, _In_ int _ShareFlag, _In_ int _PermissionFlag)
 
_CRTIMP int __cdecl _wopen (const wchar_t *_Filename, int _OpenFlag,...)
 
_CRTIMP int __cdecl _wsopen (const wchar_t *_Filename, int _OpenFlag, int _ShareFlag,...)
 
int __cdecl __lock_fhandle (_In_ int _Filehandle)
 
void __cdecl _unlock_fhandle (_In_ int _Filehandle)
 
_CRTIMP intptr_t __cdecl _get_osfhandle (_In_ int _FileHandle)
 
_CRTIMP int __cdecl _open_osfhandle (_In_ intptr_t _OSFileHandle, _In_ int _Flags)
 
_Check_return_ _CRTIMP int __cdecl access (_In_z_ const char *_Filename, _In_ int _AccessMode)
 
_Check_return_ _CRTIMP int __cdecl chsize (_In_ int _FileHandle, _In_ long _Size)
 
_Check_return_opt_ _CRTIMP int __cdecl close (_In_ int _FileHandle)
 
_Check_return_ _CRTIMP int __cdecl creat (_In_z_ const char *_Filename, _In_ int _PermissionMode)
 
_Check_return_ _CRTIMP int __cdecl dup (_In_ int _FileHandle)
 
_Check_return_ _CRTIMP int __cdecl dup2 (_In_ int _FileHandleSrc, _In_ int _FileHandleDst)
 
_Check_return_ _CRTIMP int __cdecl __cdecl eof (_In_ int _FileHandle)
 
_Check_return_ _CRTIMP long __cdecl filelength (_In_ int _FileHandle)
 
_Check_return_ _CRTIMP int __cdecl isatty (_In_ int _FileHandle)
 
_Check_return_ _CRTIMP int __cdecl locking (_In_ int _FileHandle, _In_ int _LockMode, _In_ long _NumOfBytes)
 
_Check_return_opt_ _CRTIMP long __cdecl lseek (_In_ int _FileHandle, _In_ long _Offset, _In_ int _Origin)
 
_Check_return_ _CRTIMP int __cdecl open (_In_z_ const char *_Filename, _In_ int _OpenFlag,...)
 
_CRTIMP int __cdecl read (_In_ int _FileHandle, _Out_writes_bytes_(_MaxCharCount) void *_DstBuf, _In_ unsigned int _MaxCharCount)
 
_Check_return_ _CRTIMP int __cdecl setmode (_In_ int _FileHandle, _In_ int _Mode)
 
_CRTIMP int __cdecl sopen (const char *_Filename, int _OpenFlag, int _ShareFlag,...)
 
_Check_return_ _CRTIMP long __cdecl tell (_In_ int _FileHandle)
 
_CRTIMP int __cdecl umask (_In_ int _Mode)
 
_Check_return_ _CRTIMP int __cdecl write (_In_ int _Filehandle, _In_reads_bytes_(_MaxCharCount) const void *_Buf, _In_ unsigned int _MaxCharCount)
 
chargetlogin (void)
 

Macro Definition Documentation

◆ _A_ARCH

#define _A_ARCH   0x20

Definition at line 164 of file io.h.

◆ _A_HIDDEN

#define _A_HIDDEN   0x02

Definition at line 161 of file io.h.

◆ _A_NORMAL

#define _A_NORMAL   0x00

Definition at line 159 of file io.h.

◆ _A_RDONLY

#define _A_RDONLY   0x01

Definition at line 160 of file io.h.

◆ _A_SUBDIR

#define _A_SUBDIR   0x10

Definition at line 163 of file io.h.

◆ _A_SYSTEM

#define _A_SYSTEM   0x04

Definition at line 162 of file io.h.

◆ _CRT_DIRECTORY_DEFINED

#define _CRT_DIRECTORY_DEFINED

Definition at line 335 of file io.h.

◆ _FINDDATA_T_DEFINED

#define _FINDDATA_T_DEFINED

Definition at line 94 of file io.h.

◆ _FSIZE_T_DEFINED

#define _FSIZE_T_DEFINED

Definition at line 32 of file io.h.

◆ _WFINDDATA_T_DEFINED

#define _WFINDDATA_T_DEFINED

Definition at line 156 of file io.h.

◆ _WIO_DEFINED

#define _WIO_DEFINED

Definition at line 587 of file io.h.

◆ F_OK

#define F_OK   0 /* Check for file existence */

Definition at line 168 of file io.h.

◆ R_OK

#define R_OK   4 /* Check for read permission */

Definition at line 171 of file io.h.

◆ W_OK

#define W_OK   2 /* Check for write permission */

Definition at line 170 of file io.h.

◆ X_OK

#define X_OK   1 /* Check for execute permission. */

Definition at line 169 of file io.h.

Typedef Documentation

◆ _fsize_t

Definition at line 31 of file io.h.

Function Documentation

◆ __lock_fhandle()

int __cdecl __lock_fhandle ( _In_ int  _Filehandle)

◆ _access()

_Check_return_ _CRTIMP int __cdecl _access ( _In_z_ const char _Filename,
_In_ int  _AccessMode 
)

◆ _chmod()

_Check_return_ _CRTIMP int __cdecl _chmod ( _In_z_ const char _Filename,
_In_ int  _Mode 
)

◆ _chsize()

_Check_return_ _CRTIMP int __cdecl _chsize ( _In_ int  _FileHandle,
_In_ long  _Size 
)

◆ _close()

_Check_return_opt_ _CRTIMP int __cdecl _close ( _In_ int  _FileHandle)

◆ _commit()

_Check_return_opt_ _CRTIMP int __cdecl _commit ( _In_ int  _FileHandle)

◆ _creat()

_Check_return_ _CRTIMP int __cdecl _creat ( _In_z_ const char _Filename,
_In_ int  _PermissionMode 
)

◆ _dup()

_Check_return_ _CRTIMP int __cdecl _dup ( _In_ int  _FileHandle)

◆ _dup2()

_Check_return_ _CRTIMP int __cdecl _dup2 ( _In_ int  _FileHandleSrc,
_In_ int  _FileHandleDst 
)

◆ _eof()

_Check_return_ _CRTIMP int __cdecl _eof ( _In_ int  _FileHandle)

◆ _filelength()

_Check_return_ _CRTIMP long __cdecl _filelength ( _In_ int  _FileHandle)

◆ _findclose()

_Check_return_opt_ _CRTIMP int __cdecl _findclose ( _In_ intptr_t  _FindHandle)

◆ _findfirst()

_CRTIMP intptr_t __cdecl _findfirst ( const char _Filename,
struct _finddata_t _FindData 
)

Definition at line 326 of file dir.c.

327{
329 HANDLE hfind;
330
331 hfind = FindFirstFileA(fspec, &find_data);
332 if (hfind == INVALID_HANDLE_VALUE)
333 {
335 return -1;
336 }
338 TRACE(":got handle %p\n",hfind);
339 return (intptr_t)hfind;
340}
static int find_data(const struct Vector *v, const BYTE *pData, int size)
Definition: filtermapper.c:162
#define INVALID_HANDLE_VALUE
Definition: compat.h:731
HANDLE WINAPI FindFirstFileA(IN LPCSTR lpFileName, OUT LPWIN32_FIND_DATAA lpFindFileData)
Definition: find.c:263
static void msvcrt_fttofd(const WIN32_FIND_DATAA *fd, struct _finddata_t *ft)
Definition: dir.c:61
int intptr_t
Definition: corecrt.h:176
#define msvcrt_set_errno
Definition: heap.c:50
#define TRACE(s)
Definition: solgame.cpp:4
DWORD WINAPI GetLastError(void)
Definition: except.c:1042

◆ _findfirst32()

_Check_return_ _CRTIMP intptr_t __cdecl _findfirst32 ( _In_z_ const char _Filename,
_Out_ struct _finddata32_t _FindData 
)

◆ _findnext()

_CRTIMP int __cdecl _findnext ( intptr_t  _FindHandle,
struct _finddata_t _FindData 
)

Definition at line 578 of file dir.c.

579{
581
582 if (!FindNextFileA((HANDLE)hand, &find_data))
583 {
584 *_errno() = ENOENT;
585 return -1;
586 }
587
589 return 0;
590}
BOOL WINAPI FindNextFileA(IN HANDLE hFindFile, OUT LPWIN32_FIND_DATAA lpFindFileData)
Definition: find.c:336
int *CDECL _errno(void)
Definition: errno.c:215
#define ENOENT
Definition: errno.h:25

◆ _findnext32()

_Check_return_ _CRTIMP int __cdecl _findnext32 ( _In_ intptr_t  _FindHandle,
_Out_ struct _finddata32_t _FindData 
)

◆ _get_osfhandle()

_CRTIMP intptr_t __cdecl _get_osfhandle ( _In_ int  _FileHandle)

◆ _getcwd()

_Check_return_ _Ret_opt_z_ _CRTIMP char *__cdecl _getcwd ( _Out_writes_opt_(_SizeInBytes) char _DstBuf,
_In_ int  _SizeInBytes 
)

This file has no copyright assigned and is placed in the Public Domain. This file is part of the w64 mingw-runtime package. No warranty is given; refer to the file DISCLAIMER within this package.

◆ _isatty()

_Check_return_ _CRTIMP int __cdecl _isatty ( _In_ int  _FileHandle)

◆ _locking()

_CRTIMP int __cdecl _locking ( _In_ int  _FileHandle,
_In_ int  _LockMode,
_In_ long  _NumOfBytes 
)

◆ _lseek()

_Check_return_opt_ _CRTIMP long __cdecl _lseek ( _In_ int  _FileHandle,
_In_ long  _Offset,
_In_ int  _Origin 
)

◆ _mktemp()

_Check_return_ _CRTIMP char *__cdecl _mktemp ( _Inout_z_ char _TemplateName)

◆ _open()

_CRTIMP int __cdecl _open ( const char _Filename,
int  _OpenFlag,
  ... 
)

Definition at line 2655 of file file.c.

2656{
2657 va_list ap;
2658
2659 if (flags & _O_CREAT)
2660 {
2661 int pmode;
2662 va_start(ap, flags);
2663 pmode = va_arg(ap, int);
2664 va_end(ap);
2665 return _sopen( path, flags, _SH_DENYNO, pmode );
2666 }
2667 else
2668 return _sopen( path, flags, _SH_DENYNO);
2669}
#define _O_CREAT
Definition: cabinet.h:46
int WINAPIV _sopen(const char *path, int oflags, int shflags,...)
Definition: file.c:2633
#define _SH_DENYNO
Definition: share.h:40
#define va_end(v)
Definition: stdarg.h:28
#define va_arg(v, l)
Definition: stdarg.h:27
#define va_start(v, l)
Definition: stdarg.h:26
char * va_list
Definition: vadefs.h:50
GLbitfield flags
Definition: glext.h:7161
void int int ULONGLONG int va_list * ap
Definition: winesup.h:36

Referenced by _creat(), _utime64(), compat_open(), install_from_unix_file(), main(), rd_open_file(), rw(), test__popen(), test__sopen_s(), test_chsize(), test_file_write_read(), test_get_osfhandle(), test_ioinfo_flags(), test_setmode(), and tmpfile().

◆ _open_osfhandle()

_CRTIMP int __cdecl _open_osfhandle ( _In_ intptr_t  _OSFileHandle,
_In_ int  _Flags 
)

◆ _pipe()

_Check_return_ _CRTIMP int __cdecl _pipe ( _Inout_updates_(2) int _PtHandles,
_In_ unsigned int  _PipeSize,
_In_ int  _TextMode 
)

◆ _read()

_Check_return_ _CRTIMP int __cdecl _read ( _In_ int  _FileHandle,
_Out_writes_bytes_(_MaxCharCount) void _DstBuf,
_In_ unsigned int  _MaxCharCount 
)

◆ _setmode()

_Check_return_ _CRTIMP int __cdecl _setmode ( _In_ int  _FileHandle,
_In_ int  _Mode 
)

◆ _sopen()

_CRTIMP int __cdecl _sopen ( const char _Filename,
int  _OpenFlag,
int  _ShareFlag,
  ... 
)

Definition at line 2633 of file file.c.

2634{
2635 int pmode;
2636 int fd;
2637
2638 if (oflags & _O_CREAT)
2639 {
2640 va_list ap;
2641
2642 va_start(ap, shflags);
2643 pmode = va_arg(ap, int);
2644 va_end(ap);
2645 }
2646 else
2647 pmode = 0;
2648
2649 return _sopen_dispatch(path, oflags, shflags, pmode, &fd, 0) ? -1 : fd;
2650}
int CDECL _sopen_dispatch(const char *path, int oflags, int shflags, int pmode, int *fd, int secure)
Definition: file.c:2606
static int fd
Definition: io.c:51

Referenced by _open(), and test_get_osfhandle().

◆ _sopen_s()

_Check_return_wat_ _CRTIMP errno_t __cdecl _sopen_s ( _Out_ int _FileHandle,
_In_z_ const char _Filename,
_In_ int  _OpenFlag,
_In_ int  _ShareFlag,
_In_ int  _PermissionMode 
)

◆ _tell()

_Check_return_ _CRTIMP long __cdecl _tell ( _In_ int  _FileHandle)

◆ _umask()

_CRTIMP int __cdecl _umask ( _In_ int  _Mode)

◆ _unlink()

_Check_return_ _CRTIMP int __cdecl _unlink ( _In_z_ const char _Filename)

◆ _unlock_fhandle()

void __cdecl _unlock_fhandle ( _In_ int  _Filehandle)

◆ _waccess()

_Check_return_ _CRTIMP int __cdecl _waccess ( _In_z_ const wchar_t _Filename,
_In_ int  _AccessMode 
)

◆ _wchmod()

_Check_return_ _CRTIMP int __cdecl _wchmod ( _In_z_ const wchar_t _Filename,
_In_ int  _Mode 
)

◆ _wcreat()

_Check_return_ _CRTIMP int __cdecl _wcreat ( _In_z_ const wchar_t _Filename,
_In_ int  _PermissionMode 
)

◆ _wfindfirst32()

_Check_return_ _CRTIMP intptr_t __cdecl _wfindfirst32 ( _In_z_ const wchar_t _Filename,
_Out_ struct _wfinddata32_t _FindData 
)

◆ _wfindnext32()

_Check_return_ _CRTIMP int __cdecl _wfindnext32 ( _In_ intptr_t  _FindHandle,
_Out_ struct _wfinddata32_t _FindData 
)

◆ _wmktemp()

_CRTIMP wchar_t *__cdecl _wmktemp ( _Inout_z_ wchar_t _TemplateName)

◆ _wopen()

_CRTIMP int __cdecl _wopen ( const wchar_t _Filename,
int  _OpenFlag,
  ... 
)

Definition at line 2674 of file file.c.

2675{
2676 va_list ap;
2677
2678 if (flags & _O_CREAT)
2679 {
2680 int pmode;
2681 va_start(ap, flags);
2682 pmode = va_arg(ap, int);
2683 va_end(ap);
2684 return _wsopen( path, flags, _SH_DENYNO, pmode );
2685 }
2686 else
2687 return _wsopen( path, flags, _SH_DENYNO);
2688}
int WINAPIV _wsopen(const wchar_t *path, int oflags, int shflags,...)
Definition: file.c:2583

◆ _wrename()

_Check_return_ _CRTIMP int __cdecl _wrename ( _In_z_ const wchar_t _NewFilename,
_In_z_ const wchar_t _OldFilename 
)

◆ _write()

_CRTIMP int __cdecl _write ( _In_ int  _FileHandle,
_In_reads_bytes_(_MaxCharCount) const void _Buf,
_In_ unsigned int  _MaxCharCount 
)

◆ _wsopen()

_CRTIMP int __cdecl _wsopen ( const wchar_t _Filename,
int  _OpenFlag,
int  _ShareFlag,
  ... 
)

Definition at line 2583 of file file.c.

2584{
2585 int pmode;
2586 int fd;
2587
2588 if (oflags & _O_CREAT)
2589 {
2590 va_list ap;
2591
2592 va_start(ap, shflags);
2593 pmode = va_arg(ap, int);
2594 va_end(ap);
2595 }
2596 else
2597 pmode = 0;
2598
2599 return _wsopen_dispatch(path, oflags, shflags, pmode, &fd, 0) ? -1 : fd;
2600}
int CDECL _wsopen_dispatch(const wchar_t *path, int oflags, int shflags, int pmode, int *fd, int secure)
Definition: file.c:2397

◆ _wsopen_s()

_Check_return_wat_ _CRTIMP errno_t __cdecl _wsopen_s ( _Out_ int _FileHandle,
_In_z_ const wchar_t _Filename,
_In_ int  _OpenFlag,
_In_ int  _ShareFlag,
_In_ int  _PermissionFlag 
)

◆ _wunlink()

_Check_return_ _CRTIMP int __cdecl _wunlink ( _In_z_ const wchar_t _Filename)

◆ access()

_Check_return_ _CRTIMP int __cdecl access ( _In_z_ const char _Filename,
_In_ int  _AccessMode 
)

◆ chdir()

◆ chmod()

_Check_return_ _CRTIMP int __cdecl chmod ( _In_z_ const char _Filename,
_In_ int  _AccessMode 
)

◆ chsize()

_Check_return_ _CRTIMP int __cdecl chsize ( _In_ int  _FileHandle,
_In_ long  _Size 
)

◆ close()

_Check_return_opt_ _CRTIMP int __cdecl close ( _In_ int  _FileHandle)

◆ creat()

_Check_return_ _CRTIMP int __cdecl creat ( _In_z_ const char _Filename,
_In_ int  _PermissionMode 
)

◆ dup()

_Check_return_ _CRTIMP int __cdecl dup ( _In_ int  _FileHandle)

◆ dup2()

_Check_return_ _CRTIMP int __cdecl dup2 ( _In_ int  _FileHandleSrc,
_In_ int  _FileHandleDst 
)

◆ eof()

◆ filelength()

_Check_return_ _CRTIMP long __cdecl filelength ( _In_ int  _FileHandle)

◆ getcwd()

◆ getlogin()

char * getlogin ( void  )

◆ isatty()

_Check_return_ _CRTIMP int __cdecl isatty ( _In_ int  _FileHandle)

◆ locking()

_Check_return_ _CRTIMP int __cdecl locking ( _In_ int  _FileHandle,
_In_ int  _LockMode,
_In_ long  _NumOfBytes 
)

◆ lseek()

_Check_return_opt_ _CRTIMP long __cdecl lseek ( _In_ int  _FileHandle,
_In_ long  _Offset,
_In_ int  _Origin 
)

◆ mkdir()

◆ mktemp()

_CRTIMP char *__cdecl mktemp ( _Inout_z_ char _TemplateName)

◆ open()

_Check_return_ _CRTIMP int __cdecl open ( _In_z_ const char _Filename,
_In_ int  _OpenFlag,
  ... 
)

◆ read()

_CRTIMP int __cdecl read ( _In_ int  _FileHandle,
_Out_writes_bytes_(_MaxCharCount) void _DstBuf,
_In_ unsigned int  _MaxCharCount 
)

◆ remove()

_Check_return_ int __cdecl remove ( _In_z_ const char _Filename)

◆ rename()

_Check_return_ int __cdecl rename ( _In_z_ const char _OldFilename,
_In_z_ const char _NewFilename 
)

◆ rmdir()

◆ setmode()

_Check_return_ _CRTIMP int __cdecl setmode ( _In_ int  _FileHandle,
_In_ int  _Mode 
)

◆ sopen()

_CRTIMP int __cdecl sopen ( const char _Filename,
int  _OpenFlag,
int  _ShareFlag,
  ... 
)

◆ tell()

_Check_return_ _CRTIMP long __cdecl tell ( _In_ int  _FileHandle)

◆ umask()

_CRTIMP int __cdecl umask ( _In_ int  _Mode)

◆ unlink()

_Check_return_ _CRTIMP int __cdecl unlink ( _In_z_ const char _Filename)

◆ write()

_Check_return_ _CRTIMP int __cdecl write ( _In_ int  _Filehandle,
_In_reads_bytes_(_MaxCharCount) const void _Buf,
_In_ unsigned int  _MaxCharCount 
)