ReactOS 0.4.17-dev-573-g8315b8c
accygwin.h File Reference
#include <unistd.h>
Include dependency graph for accygwin.h:

Go to the source code of this file.

Macros

#define ACPI_USE_STANDARD_HEADERS
 
#define ACPI_USE_SYSTEM_CLIBRARY
 
#define ACPI_USE_DO_WHILE_0
 
#define ACPI_FLUSH_CPU_CACHE()
 
#define ACPI_USE_ALTERNATE_TIMEOUT
 
#define ACPI_MACHINE_WIDTH   32
 
#define COMPILER_DEPENDENT_INT64   long long
 
#define COMPILER_DEPENDENT_UINT64   unsigned long long
 
#define ACPI_USE_NATIVE_DIVIDE
 
#define ACPI_USE_NATIVE_MATH64
 
#define __cdecl
 
#define ACPI_ACQUIRE_GLOBAL_LOCK(GLptr, Acq)   if (GLptr) Acq=1; else Acq=0;
 
#define ACPI_RELEASE_GLOBAL_LOCK(GLptr, Pending)   Pending = 1
 
#define ACPI_CAST_PTHREAD_T(pthread)   ((ACPI_THREAD_ID) ACPI_TO_INTEGER (pthread))
 

Functions

int vsnprintf (char *s, size_t n, const char *format, va_list ap)
 
int snprintf (char *s, size_t n, const char *format,...)
 

Macro Definition Documentation

◆ __cdecl

#define __cdecl

Definition at line 79 of file accygwin.h.

◆ ACPI_ACQUIRE_GLOBAL_LOCK

#define ACPI_ACQUIRE_GLOBAL_LOCK (   GLptr,
  Acq 
)    if (GLptr) Acq=1; else Acq=0;

Definition at line 82 of file accygwin.h.

◆ ACPI_CAST_PTHREAD_T

#define ACPI_CAST_PTHREAD_T (   pthread)    ((ACPI_THREAD_ID) ACPI_TO_INTEGER (pthread))

Definition at line 87 of file accygwin.h.

◆ ACPI_FLUSH_CPU_CACHE

#define ACPI_FLUSH_CPU_CACHE ( )

Definition at line 53 of file accygwin.h.

◆ ACPI_MACHINE_WIDTH

#define ACPI_MACHINE_WIDTH   32

Definition at line 71 of file accygwin.h.

◆ ACPI_RELEASE_GLOBAL_LOCK

#define ACPI_RELEASE_GLOBAL_LOCK (   GLptr,
  Pending 
)    Pending = 1

Definition at line 83 of file accygwin.h.

◆ ACPI_USE_ALTERNATE_TIMEOUT

#define ACPI_USE_ALTERNATE_TIMEOUT

Definition at line 59 of file accygwin.h.

◆ ACPI_USE_DO_WHILE_0

#define ACPI_USE_DO_WHILE_0

Definition at line 52 of file accygwin.h.

◆ ACPI_USE_NATIVE_DIVIDE

#define ACPI_USE_NATIVE_DIVIDE

Definition at line 74 of file accygwin.h.

◆ ACPI_USE_NATIVE_MATH64

#define ACPI_USE_NATIVE_MATH64

Definition at line 75 of file accygwin.h.

◆ ACPI_USE_STANDARD_HEADERS

#define ACPI_USE_STANDARD_HEADERS

Definition at line 50 of file accygwin.h.

◆ ACPI_USE_SYSTEM_CLIBRARY

#define ACPI_USE_SYSTEM_CLIBRARY

Definition at line 51 of file accygwin.h.

◆ COMPILER_DEPENDENT_INT64

#define COMPILER_DEPENDENT_INT64   long long

Definition at line 72 of file accygwin.h.

◆ COMPILER_DEPENDENT_UINT64

#define COMPILER_DEPENDENT_UINT64   unsigned long long

Definition at line 73 of file accygwin.h.

Function Documentation

◆ snprintf()

int snprintf ( char s,
size_t  n,
const char format,
  ... 
)

Definition at line 39 of file c99_printf_hacks.c.

40{
41 va_list argptr;
42 int result;
43
44 va_start(argptr, format);
45 result = vsnprintf(buffer, count, format, argptr);
46 va_end(argptr);
47
48 return result;
49}
#define vsnprintf
Definition: acwin.h:108
#define va_end(v)
Definition: stdarg.h:28
#define va_start(v, l)
Definition: stdarg.h:26
char * va_list
Definition: vadefs.h:50
GLuint GLuint GLsizei count
Definition: gl.h:1545
GLuint buffer
Definition: glext.h:5915
GLuint64EXT * result
Definition: glext.h:11304
Definition: format.c:58

◆ vsnprintf()

int vsnprintf ( char s,
size_t  n,
const char format,
va_list  ap 
)

Definition at line 16 of file c99_printf_hacks.c.

17{
18 va_list ap;
19 int result;
20
21 va_copy(ap, argptr);
23 va_end(ap);
24
25 if (result >= 0 && (size_t)result < count)
26 return result;
27
28 /* Truncated: terminate and return the would-be length */
29 if (count != 0)
30 buffer[count - 1] = '\0';
31
32 va_copy(ap, argptr);
34 va_end(ap);
35
36 return result;
37}
#define va_copy(d, s)
Definition: stdarg.h:29
#define _vscprintf
Definition: _vscprintf.c:25
#define _vsnprintf
Definition: _vsnprintf.c:28
void int int ULONGLONG int va_list * ap
Definition: winesup.h:36