ReactOS  0.4.13-dev-73-gcfe54aa
io.h File Reference
#include <crtdefs.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  _finddatai64_t
 
struct  _finddata32i64_t
 
struct  _finddata64i32_t
 
struct  __finddata64_t
 
struct  _wfinddata_t
 
struct  _wfinddata32_t
 
struct  _wfinddatai64_t
 
struct  _wfinddata32i64_t
 
struct  _wfinddata64i32_t
 
struct  _wfinddata64_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_ __MINGW_EXTENSION _CRTIMP __int64 __cdecl _filelengthi64 (_In_ int _FileHandle)
 
_Check_return_ _CRTIMP intptr_t __cdecl _findfirst32i64 (_In_z_ const char *_Filename, _Out_ struct _finddata32i64_t *_FindData)
 
_Check_return_ _CRTIMP intptr_t __cdecl _findfirst64i32 (_In_z_ const char *_Filename, _Out_ struct _finddata64i32_t *_FindData)
 
_Check_return_ _CRTIMP intptr_t __cdecl _findfirst64 (_In_z_ const char *_Filename, _Out_ struct __finddata64_t *_FindData)
 
_Check_return_ _CRTIMP int __cdecl _findnext32i64 (_In_ intptr_t _FindHandle, _Out_ struct _finddata32i64_t *_FindData)
 
_Check_return_ _CRTIMP int __cdecl _findnext64i32 (_In_ intptr_t _FindHandle, _Out_ struct _finddata64i32_t *_FindData)
 
_Check_return_ _CRTIMP int __cdecl _findnext64 (_In_ intptr_t _FindHandle, _Out_ struct __finddata64_t *_FindData)
 
_Check_return_opt_ __MINGW_EXTENSION _CRTIMP __int64 __cdecl _lseeki64 (_In_ int _FileHandle, _In_ __int64 _Offset, _In_ int _Origin)
 
_Check_return_ __MINGW_EXTENSION _CRTIMP __int64 __cdecl _telli64 (_In_ int _FileHandle)
 
__CRT_INLINE intptr_t __cdecl _findfirst64i32 (const char *_Filename, struct _finddata64i32_t *_FindData)
 
__CRT_INLINE int __cdecl _findnext64i32 (intptr_t _FindHandle, struct _finddata64i32_t *_FindData)
 
_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_ _CRTIMP intptr_t __cdecl _wfindfirst32i64 (_In_z_ const wchar_t *_Filename, _Out_ struct _wfinddata32i64_t *_FindData)
 
_Check_return_ _CRTIMP intptr_t __cdecl _wfindfirst64i32 (_In_z_ const wchar_t *_Filename, _Out_ struct _wfinddata64i32_t *_FindData)
 
_Check_return_ _CRTIMP intptr_t __cdecl _wfindfirst64 (_In_z_ const wchar_t *_Filename, _Out_ struct _wfinddata64_t *_FindData)
 
_Check_return_ _CRTIMP int __cdecl _wfindnext32i64 (_In_ intptr_t _FindHandle, _Out_ struct _wfinddata32i64_t *_FindData)
 
_Check_return_ _CRTIMP int __cdecl _wfindnext64i32 (_In_ intptr_t _FindHandle, _Out_ struct _wfinddata64i32_t *_FindData)
 
_Check_return_ _CRTIMP int __cdecl _wfindnext64 (_In_ intptr_t _FindHandle, _Out_ struct _wfinddata64_t *_FindData)
 
_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 585 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

typedef unsigned long _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 
)

Referenced by applyPatch(), HaveSpool(), main(), and MkDirs().

◆ _chmod()

◆ _chsize()

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

Referenced by ftruncate().

◆ _close()

◆ _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)

Referenced by DllMain().

◆ _dup2()

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

Referenced by _tWinMain(), and DllMain().

◆ _eof()

_Check_return_ _CRTIMP int __cdecl _eof ( _In_ int  _FileHandle)

◆ _filelength()

_Check_return_ _CRTIMP long __cdecl _filelength ( _In_ int  _FileHandle)

Referenced by File::length().

◆ _filelengthi64()

_Check_return_ __MINGW_EXTENSION _CRTIMP __int64 __cdecl _filelengthi64 ( _In_ int  _FileHandle)

◆ _findclose()

_Check_return_opt_ _CRTIMP int __cdecl _findclose ( _In_ intptr_t  _FindHandle)

Referenced by main().

◆ _findfirst()

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

Referenced by main().

◆ _findfirst32()

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

◆ _findfirst32i64()

_Check_return_ _CRTIMP intptr_t __cdecl _findfirst32i64 ( _In_z_ const char _Filename,
_Out_ struct _finddata32i64_t _FindData 
)

◆ _findfirst64()

_Check_return_ _CRTIMP intptr_t __cdecl _findfirst64 ( _In_z_ const char _Filename,
_Out_ struct __finddata64_t _FindData 
)

Referenced by _findfirst64i32().

◆ _findfirst64i32() [1/2]

_Check_return_ _CRTIMP intptr_t __cdecl _findfirst64i32 ( _In_z_ const char _Filename,
_Out_ struct _finddata64i32_t _FindData 
)

◆ _findfirst64i32() [2/2]

__CRT_INLINE intptr_t __cdecl _findfirst64i32 ( const char _Filename,
struct _finddata64i32_t _FindData 
)

Definition at line 480 of file io.h.

483  {
484  struct __finddata64_t fd;
485  intptr_t ret = _findfirst64(_Filename,&fd);
486  _FindData->attrib=fd.attrib;
487  _FindData->time_create=fd.time_create;
488  _FindData->time_access=fd.time_access;
489  _FindData->time_write=fd.time_write;
490  _FindData->size=(_fsize_t) fd.size;
491  strncpy(_FindData->name,fd.name,260);
492  return ret;
493  }
char name[260]
Definition: io.h:81
_fsize_t size
Definition: io.h:80
char * strncpy(char *DstString, const char *SrcString, ACPI_SIZE Count)
Definition: utclib.c:427
_Check_return_ _CRTIMP intptr_t __cdecl _findfirst64(_In_z_ const char *_Filename, _Out_ struct __finddata64_t *_FindData)
static int fd
Definition: io.c:51
unsigned attrib
Definition: io.h:76
__time64_t time_access
Definition: io.h:78
unsigned long _fsize_t
Definition: io.h:31
__time64_t time_create
Definition: io.h:77
int intptr_t
Definition: crtdefs.h:283
int ret
__time64_t time_write
Definition: io.h:79

◆ _findnext()

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

Referenced by main().

◆ _findnext32()

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

◆ _findnext32i64()

_Check_return_ _CRTIMP int __cdecl _findnext32i64 ( _In_ intptr_t  _FindHandle,
_Out_ struct _finddata32i64_t _FindData 
)

◆ _findnext64()

_Check_return_ _CRTIMP int __cdecl _findnext64 ( _In_ intptr_t  _FindHandle,
_Out_ struct __finddata64_t _FindData 
)

Referenced by _findnext64i32().

◆ _findnext64i32() [1/2]

_Check_return_ _CRTIMP int __cdecl _findnext64i32 ( _In_ intptr_t  _FindHandle,
_Out_ struct _finddata64i32_t _FindData 
)

◆ _findnext64i32() [2/2]

__CRT_INLINE int __cdecl _findnext64i32 ( intptr_t  _FindHandle,
struct _finddata64i32_t _FindData 
)

Definition at line 498 of file io.h.

501  {
502  struct __finddata64_t fd;
503  int ret = _findnext64(_FindHandle,&fd);
504  _FindData->attrib=fd.attrib;
505  _FindData->time_create=fd.time_create;
506  _FindData->time_access=fd.time_access;
507  _FindData->time_write=fd.time_write;
508  _FindData->size=(_fsize_t) fd.size;
509  strncpy(_FindData->name,fd.name,260);
510  return ret;
511  }
char name[260]
Definition: io.h:81
_fsize_t size
Definition: io.h:80
char * strncpy(char *DstString, const char *SrcString, ACPI_SIZE Count)
Definition: utclib.c:427
static int fd
Definition: io.c:51
unsigned attrib
Definition: io.h:76
__time64_t time_access
Definition: io.h:78
unsigned long _fsize_t
Definition: io.h:31
__time64_t time_create
Definition: io.h:77
int ret
_Check_return_ _CRTIMP int __cdecl _findnext64(_In_ intptr_t _FindHandle, _Out_ struct __finddata64_t *_FindData)
__time64_t time_write
Definition: io.h:79

◆ _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)

Referenced by GetPass(), and gl_init().

◆ _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 
)

Referenced by process_file(), and rd_lseek_file().

◆ _lseeki64()

_Check_return_opt_ __MINGW_EXTENSION _CRTIMP __int64 __cdecl _lseeki64 ( _In_ int  _FileHandle,
_In_ __int64  _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 2001 of file file.c.

2002 {
2003  va_list ap;
2004 
2005  if (flags & _O_CREAT)
2006  {
2007  int pmode;
2008  va_start(ap, flags);
2009  pmode = va_arg(ap, int);
2010  va_end(ap);
2011  return _sopen( path, flags, _SH_DENYNO, pmode );
2012  }
2013  else
2014  return _sopen( path, flags, _SH_DENYNO);
2015 }
#define _O_CREAT
Definition: cabinet.h:46
#define _SH_DENYNO
Definition: share.h:17
#define va_end(ap)
Definition: acmsvcex.h:90
char * va_list
Definition: acmsvcex.h:78
int CDECL _sopen(const char *path, int oflags, int shflags,...)
Definition: file.c:1978
GLbitfield flags
Definition: glext.h:7161
#define va_arg(ap, T)
Definition: acmsvcex.h:89
Definition: services.c:325
#define va_start(ap, A)
Definition: acmsvcex.h:91
void int int ULONGLONG int va_list * ap
Definition: winesup.h:32

Referenced by _creat(), compat_open(), install_from_unix_file(), main(), process_file(), rd_open_file(), test_chsize(), test_file_write_read(), test_get_osfhandle(), 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 
)

Referenced by fork_helper().

◆ _read()

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

Referenced by process_file(), and rd_read_file().

◆ _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 1978 of file file.c.

1979 {
1980  int pmode;
1981  int fd;
1982 
1983  if (oflags & _O_CREAT)
1984  {
1985  va_list ap;
1986 
1987  va_start(ap, shflags);
1988  pmode = va_arg(ap, int);
1989  va_end(ap);
1990  }
1991  else
1992  pmode = 0;
1993 
1994  _sopen_s(&fd, path, oflags, shflags, pmode);
1995  return fd;
1996 }
#define _O_CREAT
Definition: cabinet.h:46
static int fd
Definition: io.c:51
int CDECL _sopen_s(int *fd, const char *path, int oflags, int shflags, int pmode)
Definition: file.c:1962
#define va_end(ap)
Definition: acmsvcex.h:90
char * va_list
Definition: acmsvcex.h:78
#define va_arg(ap, T)
Definition: acmsvcex.h:89
Definition: services.c:325
#define va_start(ap, A)
Definition: acmsvcex.h:91
void int int ULONGLONG int va_list * ap
Definition: winesup.h:32

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)

◆ _telli64()

◆ _umask()

_CRTIMP int __cdecl _umask ( _In_ int  _Mode)

◆ _unlink()

◆ _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 
)

◆ _wfindfirst32i64()

_Check_return_ _CRTIMP intptr_t __cdecl _wfindfirst32i64 ( _In_z_ const wchar_t _Filename,
_Out_ struct _wfinddata32i64_t _FindData 
)

◆ _wfindfirst64()

_Check_return_ _CRTIMP intptr_t __cdecl _wfindfirst64 ( _In_z_ const wchar_t _Filename,
_Out_ struct _wfinddata64_t _FindData 
)

◆ _wfindfirst64i32()

_Check_return_ _CRTIMP intptr_t __cdecl _wfindfirst64i32 ( _In_z_ const wchar_t _Filename,
_Out_ struct _wfinddata64i32_t _FindData 
)

◆ _wfindnext32()

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

◆ _wfindnext32i64()

_Check_return_ _CRTIMP int __cdecl _wfindnext32i64 ( _In_ intptr_t  _FindHandle,
_Out_ struct _wfinddata32i64_t _FindData 
)

◆ _wfindnext64()

_Check_return_ _CRTIMP int __cdecl _wfindnext64 ( _In_ intptr_t  _FindHandle,
_Out_ struct _wfinddata64_t _FindData 
)

◆ _wfindnext64i32()

_Check_return_ _CRTIMP int __cdecl _wfindnext64i32 ( _In_ intptr_t  _FindHandle,
_Out_ struct _wfinddata64i32_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 2020 of file file.c.

2021 {
2022  va_list ap;
2023 
2024  if (flags & _O_CREAT)
2025  {
2026  int pmode;
2027  va_start(ap, flags);
2028  pmode = va_arg(ap, int);
2029  va_end(ap);
2030  return _wsopen( path, flags, _SH_DENYNO, pmode );
2031  }
2032  else
2033  return _wsopen( path, flags, _SH_DENYNO);
2034 }
#define _O_CREAT
Definition: cabinet.h:46
#define _SH_DENYNO
Definition: share.h:17
#define va_end(ap)
Definition: acmsvcex.h:90
char * va_list
Definition: acmsvcex.h:78
GLbitfield flags
Definition: glext.h:7161
#define va_arg(ap, T)
Definition: acmsvcex.h:89
Definition: services.c:325
#define va_start(ap, A)
Definition: acmsvcex.h:91
int CDECL _wsopen(const wchar_t *path, int oflags, int shflags,...)
Definition: file.c:1939
void int int ULONGLONG int va_list * ap
Definition: winesup.h:32

Referenced by compat_open(), and gz_open().

◆ _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 
)

Referenced by _flsbuf(), perror(), and rd_write_file().

◆ _wsopen()

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

Definition at line 1939 of file file.c.

1940 {
1941  int pmode;
1942  int fd;
1943 
1944  if (oflags & _O_CREAT)
1945  {
1946  __ms_va_list ap;
1947 
1948  __ms_va_start(ap, shflags);
1949  pmode = va_arg(ap, int);
1950  __ms_va_end(ap);
1951  }
1952  else
1953  pmode = 0;
1954 
1955  _wsopen_s(&fd, path, oflags, shflags, pmode);
1956  return fd;
1957 }
static const char __ms_va_list
Definition: printf.c:70
#define _O_CREAT
Definition: cabinet.h:46
static int fd
Definition: io.c:51
int CDECL _wsopen_s(int *fd, const wchar_t *path, int oflags, int shflags, int pmode)
Definition: file.c:1778
#define va_arg(ap, T)
Definition: acmsvcex.h:89
Definition: services.c:325
#define __ms_va_end(list)
Definition: windef.h:443
#define __ms_va_start(list, arg)
Definition: windef.h:442
void int int ULONGLONG int va_list * ap
Definition: winesup.h:32

◆ _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 
)

Referenced by recvrequest().

◆ 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()

◆ dup2()

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

◆ eof()

Referenced by __pushback(), __stlp_string_fill(), _Noconv_input< _Traits >::_M_doit(), _Underflow< _CharT, _Traits >::_M_doit(), _Underflow< char, char_traits< char > >::_M_doit(), istreambuf_iterator< _CharT, _Traits >::_M_getc(), basic_filebuf< char, char_traits< char > >::_M_input_error(), basic_filebuf< char, char_traits< char > >::_M_output_error(), basic_filebuf< char, char_traits< char > >::_M_seek_init(), basic_streambuf< char, char_traits< char > >::_M_snextc_aux(), basic_filebuf< char, char_traits< char > >::_M_underflow_aux(), basic_streambuf< char, char_traits< char > >::_M_xsputnc(), basic_ios< char, char_traits< char > >::_S_eof(), basic_filebuf< char, char_traits< char > >::close(), kjk::copy_argument(), file_layout_read_thread(), basic_istream< char, char_traits< char > >::get(), get_ea_value(), getline(), handle_readdir(), NETCON_recv(), netconn_recv(), operator >>(), ostreambuf_iterator< _CharT, _Traits >::operator=(), operator>>(), full_streambuf::overflow(), basic_stringbuf< _CharT, _Traits, _Alloc >::overflow(), basic_streambuf< char, char_traits< char > >::overflow(), basic_filebuf< char, char_traits< char > >::overflow(), basic_stringbuf< _CharT, _Traits, _Alloc >::pbackfail(), basic_streambuf< char, char_traits< char > >::pbackfail(), basic_filebuf< char, char_traits< char > >::pbackfail(), basic_istream< char, char_traits< char > >::peek(), proclog(), basic_istream< char, char_traits< char > >::putback(), basic_istream< char, char_traits< char > >::read(), read_entire_dir(), read_from_mds(), read_ssl_chunk(), basic_istream< char, char_traits< char > >::readsome(), basic_filebuf< char, char_traits< char > >::sync(), tcp_recv(), test_eof_state(), basic_stringbuf< _CharT, _Traits, _Alloc >::uflow(), basic_streambuf< char, char_traits< char > >::uflow(), basic_stringbuf< _CharT, _Traits, _Alloc >::underflow(), basic_streambuf< char, char_traits< char > >::underflow(), basic_streambuf< char, char_traits< char > >::xsgetn(), and basic_streambuf< char, char_traits< char > >::xsputn().

◆ 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()

◆ mkdir()

◆ mktemp()

_CRTIMP char *__cdecl mktemp ( _Inout_z_ char _TemplateName)

Referenced by remglob(), and select_file_name().

◆ 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 
)

Referenced by _check_pipe_handle_state(), _lzx_get_bytes(), _read_request_data(), _receive_simple_request(), _test_stream_read(), _tiffReadProc(), async_read_file_proc(), AVIFILE_LoadIndex(), BindStatusCallback_OnDataAvailable(), BlockChainStream_ReadAt(), BlockChainStream_WriteAt(), bsc_OnDataAvailable(), BufferGets(), cabinet_read(), cabinet_read_stream(), calc_crc32(), check_version(), CheckTestFile(), chmc_appendfile(), chunked_read(), compare_file_data(), compare_pf_data(), copy_headers_to_buf(), create_body_offset_list(), create_pipe_pair(), create_stream_on_file(), CRYPT_ReadBlobFromFile(), CRYPT_ReadSerializedStore(), ddraw_surface_update_frontbuffer(), disk_read(), do_check(), fallback_read(), fdi_decomp(), ffileread(), file_has_content(), FileProtocol_Read(), fill_boot_desc(), FindContextAlias(), fread(), fs_read(), fs_test(), fs_write(), FsVolumeInfo(), ft_stroke_border_export(), FTPFILE_ReadFile(), FTPGetOneF(), FTPPutOneF(), GdipCreateMetafileFromWmf(), genboot_write(), generate_random(), get_compsysproduct_uuid(), GetChmString(), gz_load(), HANDLE_CustomType21_22(), hhp_reader::hhp_reader(), HTTP_ReceiveRequestData(), HTTPREQ_Read(), HTTPREQ_ReadFile(), ILockBytes_ReadAt_Proxy(), inf_load(), IPersistStream_fnLoad(), ISequentialStream_Read_Proxy(), IStream_CopyTo_Proxy(), load_blackbox(), load_dib(), load_emf(), load_licence(), load_mf_pict(), load_ole_stream(), tinyxml2::XMLDocument::LoadFile(), main(), MimeHtmlProtocol_Read(), MimeProtocol_Read(), MimeProtocolSink_ReportData(), msi_read_text_archive(), netconn_read(), CSHEnumClassesOfCategories::Next(), nfs41_Read(), nfs41_recover_stateid(), nfs41_unmount(), nsInputStream_Read(), OpenColorProfileW(), parallel_read(), PersistHistory_LoadHistory(), pipe_thread(), pipeServer(), posix_read(), PRead(), printercache_load_blob(), protocol_read(), ProtocolHandler_Read(), ProtocolSink_ReportData(), ProtocolSinkHandler_ReportData(), ProtocolStream_Read(), ps_mask_table_merge(), ps_mask_table_set_bits(), psh_blues_set_zones_0(), psh_globals_new(), psh_hint_table_init(), r_verify_inifile(), rd_read_file(), read_clipformat(), read_data(), NtObjDirectory::read_directory(), read_file(), read_file_data(), read_hex_data(), read_hlink_string(), read_http_stream(), read_line(), read_pipe(), read_pipe_test(), read_protocol_data(), read_stdin(), read_stream_data(), read_vc(), ReadCharsFromConsole(), ReadChmSystem(), readerinput_growraw(), readsecs(), readstdin(), RECORD_StreamFromFile(), refill_read_buffer(), sendmail_extended_mapi(), sendrequest(), serial_read(), SRead(), StgIsStorageILockBytes(), StorageImpl_GetNextBlockInChain(), StorageImpl_GetNextFreeBigBlock(), StorageImpl_ReadBigBlock(), StorageImpl_ReadDWordFromBigBlock(), stream_in(), stream_read(), stream_Read(), stream_to_storage(), subprocess(), sunboot_write(), sunlabel_write(), system_icmp(), SystemFunction036(), test_cache_read_gzipped(), test_CoGetStandardMarshal(), test_convert(), test_create_typelib_lcid(), test_CreateBinding(), test_CreatePipe(), test_DfMarshal_custom_marshaling(), test_file_inherit(), test_file_inherit_child(), test_file_write_read(), test_freed_hglobal(), test_invalid_stdin_child(), test_iocp_fileio(), test_LoopbackRead(), test_no_cache(), test_olestream(), test_pipes(), test_read(), test_read_device(), test_ReadConsoleOutputCharacterA(), test_ReadConsoleOutputCharacterW(), test_ReadTimeOut(), test_readwrite(), test_RealizationInfo(), test_riff_write(), test_save(), test_SHCreateStreamOnFileEx_CopyTo(), test_SHPropStg_functions(), test_streamonhglobal(), test_stringtable(), test_volume_info(), TestMessageHandler(), textstream_read(), thread_proc(), tlb_read(), tt_name_ascii_from_other(), tt_name_ascii_from_utf16(), unintr_read(), valid_offset(), WCacheUpdatePacket(), WinHttpReadData(), WriteToFlash(), xmlreader_ReadValueChunk(), and zstd_decompress().

◆ remove()

_Check_return_ int __cdecl remove ( _In_z_ const char _Filename)

◆ rename()

◆ 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()

◆ umask()

_CRTIMP int __cdecl umask ( _In_ int  _Mode)

Referenced by _umask(), and SpoolX().

◆ 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 
)