ReactOS 0.4.16-dev-2104-gb84fa49
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
#define INVALID_HANDLE_VALUE
Definition: compat.h:731
BOOL WINAPI FlushFileBuffers(IN HANDLE hFile)
Definition: fileinfo.c:25
int WINAPIV fprintf(FILE *file, const char *format,...)
Definition: file.c:5549
int CDECL vfprintf(FILE *file, const char *format, va_list valist)
Definition: file.c:5349
intptr_t CDECL _get_osfhandle(int fd)
Definition: file.c:2117
#define stderr
#define va_end(v)
Definition: stdarg.h:28
#define va_start(v, l)
Definition: stdarg.h:26
char * va_list
Definition: vadefs.h:50
_In_ HANDLE hFile
Definition: mswsock.h:90
void isohybrid_error(int eval, const char *fmt,...)
void isohybrid_warning(const char *fmt,...)
#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