ReactOS 0.4.15-dev-7659-ga55345b
reactos_support_code.c
Go to the documentation of this file.
2
3void
4isohybrid_error(int eval, const char* fmt, ...)
5{
8 fprintf(stderr, "isohybrid: ");
10 va_end(ap);
11 exit(eval);
12}
13
14void
15isohybrid_warning(const char *fmt, ...)
16{
17 va_list ap;
18 va_start(ap, fmt);
19 fprintf(stderr, "isohybrid: ");
21 va_end(ap);
22}
23
24#ifdef _WIN32
25int
26fsync(int fd)
27{
30 return 1;
31
32 return !FlushFileBuffers(hFile);
33}
34
35int
36getppid(void)
37{
38 // Just return any nonzero value under Windows to enable isohybrid's usage
39 // as a part of srand initialization.
40 return 1;
41}
42#endif
char * va_list
Definition: acmsvcex.h:78
#define va_end(ap)
Definition: acmsvcex.h:90
#define va_start(ap, A)
Definition: acmsvcex.h:91
#define INVALID_HANDLE_VALUE
Definition: compat.h:731
BOOL WINAPI FlushFileBuffers(IN HANDLE hFile)
Definition: fileinfo.c:25
#define stderr
Definition: stdio.h:100
_Check_return_opt_ _CRTIMP int __cdecl fprintf(_Inout_ FILE *_File, _In_z_ _Printf_format_string_ const char *_Format,...)
_Check_return_opt_ _CRTIMP int __cdecl vfprintf(_Inout_ FILE *_File, _In_z_ _Printf_format_string_ const char *_Format, va_list _ArgList)
_In_ HANDLE hFile
Definition: mswsock.h:90
void isohybrid_error(int eval, const char *fmt,...)
void isohybrid_warning(const char *fmt,...)
_CRTIMP intptr_t __cdecl _get_osfhandle(_In_ int _FileHandle)
#define exit(n)
Definition: config.h:202
static int fd
Definition: io.c:51
Definition: dsound.c:943
PVOID HANDLE
Definition: typedefs.h:73
void int int ULONGLONG int va_list * ap
Definition: winesup.h:36