VirtualBox

source: vbox/trunk/src/VBox/Additions/x11/x11include/XFree86-4.3/Xserver/xf86_libc.h@ 69098

Last change on this file since 69098 was 69098, checked in by vboxsync, 7 years ago

Clean up XFree86 driver header files.
bugref:3810: X11 Guest Additions maintenance
Over the years we have cleaned up the layout in the tree of the X.Org
header files we use to build drivers. The XFree86 ones were still in their
original, rather sub-optimal layout. This change fixes that.

  • Property svn:eol-style set to native
File size: 16.9 KB
Line 
1/* $XFree86: xc/programs/Xserver/hw/xfree86/os-support/xf86_libc.h,v 3.56 2003/02/22 06:00:39 dawes Exp $ */
2
3
4
5/*
6 * This file is an attempt to make developing code for the new loadable module
7 * architecure simpler. It tries to use macros to hide all libc wrappers so
8 * that all that is needed to "port" a module to this architecture is to
9 * include this one header file
10 *
11 * Revision history:
12 *
13 *
14 * 0.4 Apr 12 1997 add the ANSI defines
15 * 0.3 Feb 24 1997 handle getenv
16 * 0.2 Feb 24 1997 hide few FILE functions
17 * 0.1 Feb 24 1997 hide the trivial functions mem* str*
18 */
19
20#ifndef XF86_LIBC_H
21#define XF86_LIBC_H 1
22
23#include "Xfuncs.h"
24
25/*
26 * The first set of definitions are required both for modules and
27 * libc_wrapper.c.
28 */
29
30#if defined(XFree86LOADER) || defined(NEED_XF86_TYPES)
31
32/*
33 * First, the new data types
34 *
35 * note: if some pointer is declared "opaque" here, pass it between
36 * xf86* functions only, and don't rely on it having a whatever internal
37 * structure, even if some source file might reveal the existence of
38 * such a structure.
39 */
40typedef void XF86FILE; /* opaque FILE replacement */
41extern XF86FILE* xf86stdin;
42extern XF86FILE* xf86stdout;
43extern XF86FILE* xf86stderr;
44
45typedef void XF86fpos_t; /* opaque fpos_t replacement */
46
47#define _XF86NAMELEN 263 /* enough for a larger filename */
48 /* (divisble by 8) */
49typedef void XF86DIR; /* opaque DIR replacement */
50
51/* Note: the following is POSIX! POSIX only requires the d_name member.
52 * Normal Unix has often a number of other members, but don't rely on that
53 */
54struct _xf86dirent { /* types in struct dirent/direct: */
55 char d_name[_XF86NAMELEN+1]; /* char [MAXNAMLEN]; might be smaller or unaligned */
56};
57typedef struct _xf86dirent XF86DIRENT;
58
59typedef unsigned long xf86size_t;
60typedef signed long xf86ssize_t;
61typedef unsigned long xf86dev_t;
62typedef unsigned int xf86mode_t;
63typedef unsigned int xf86uid_t;
64typedef unsigned int xf86gid_t;
65
66struct xf86stat_s {
67 xf86dev_t st_rdev; /* This is incomplete, and makes assumptions */
68};
69
70/* sysv IPC */
71typedef int xf86key_t;
72
73/* setjmp/longjmp */
74typedef int xf86jmp_buf[1024];
75
76/* for setvbuf */
77#define XF86_IONBF 1
78#define XF86_IOFBF 2
79#define XF86_IOLBF 3
80
81/* for open (XXX not complete) */
82#define XF86_O_RDONLY 0x0000
83#define XF86_O_WRONLY 0x0001
84#define XF86_O_RDWR 0x0002
85#define XF86_O_CREAT 0x0200
86
87/* for mmap */
88#define XF86_PROT_EXEC 0x0001
89#define XF86_PROT_READ 0x0002
90#define XF86_PROT_WRITE 0x0004
91#define XF86_PROT_NONE 0x0008
92#define XF86_MAP_FIXED 0x0001
93#define XF86_MAP_SHARED 0x0002
94#define XF86_MAP_PRIVATE 0x0004
95#define XF86_MAP_32BIT 0x0040
96#define XF86_MAP_FAILED ((void *)-1)
97
98/* for fseek */
99#define XF86_SEEK_SET 0
100#define XF86_SEEK_CUR 1
101#define XF86_SEEK_END 2
102
103/* for access */
104#define XF86_R_OK 0
105#define XF86_W_OK 1
106#define XF86_X_OK 2
107#define XF86_F_OK 3
108
109/* for chmod */
110#define XF86_S_ISUID 04000 /* set user ID on execution */
111#define XF86_S_ISGID 02000 /* set group ID on execution */
112#define XF86_S_ISVTX 01000 /* sticky bit */
113#define XF86_S_IRUSR 00400 /* read by owner */
114#define XF86_S_IWUSR 00200 /* write by owner */
115#define XF86_S_IXUSR 00100 /* execute/search by owner */
116#define XF86_S_IRGRP 00040 /* read by group */
117#define XF86_S_IWGRP 00020 /* write by group */
118#define XF86_S_IXGRP 00010 /* execute/search by group */
119#define XF86_S_IROTH 00004 /* read by others */
120#define XF86_S_IWOTH 00002 /* write by others */
121#define XF86_S_IXOTH 00001 /* execute/search by others */
122
123/* for mknod */
124#define XF86_S_IFREG 0010000
125#define XF86_S_IFCHR 0020000
126#define XF86_S_IFBLK 0040000
127#define XF86_S_IFIFO 0100000
128
129/*
130 * errno values
131 * They start at 1000 just so they don't match real errnos at all
132 */
133#define xf86_UNKNOWN 1000
134#define xf86_EACCES 1001
135#define xf86_EAGAIN 1002
136#define xf86_EBADF 1003
137#define xf86_EEXIST 1004
138#define xf86_EFAULT 1005
139#define xf86_EINTR 1006
140#define xf86_EINVAL 1007
141#define xf86_EISDIR 1008
142#define xf86_ELOOP 1009
143#define xf86_EMFILE 1010
144#define xf86_ENAMETOOLONG 1011
145#define xf86_ENFILE 1012
146#define xf86_ENOENT 1013
147#define xf86_ENOMEM 1014
148#define xf86_ENOSPC 1015
149#define xf86_ENOTDIR 1016
150#define xf86_EPIPE 1017
151#define xf86_EROFS 1018
152#define xf86_ETXTBSY 1019
153#define xf86_ENOTTY 1020
154#define xf86_ENOSYS 1021
155#define xf86_EBUSY 1022
156#define xf86_ENODEV 1023
157#define xf86_EIO 1024
158
159/* sysv IPV */
160/* xf86shmget() */
161#define XF86IPC_CREAT 01000
162#define XF86IPC_EXCL 02000
163#define XF86IPC_NOWAIT 04000
164#define XF86SHM_R 0400
165#define XF86SHM_W 0200
166#define XF86IPC_PRIVATE ((xf86key_t)0)
167/* xf86shmat() */
168#define XF86SHM_RDONLY 010000 /* attach read-only else read-write */
169#define XF86SHM_RND 020000 /* round attach address to SHMLBA */
170#define XF86SHM_REMAP 040000 /* take-over region on attach */
171/* xf86shmclt() */
172#define XF86IPC_RMID 0
173
174#endif /* defined(XFree86LOADER) || defined(NEED_XF86_TYPES) */
175
176/*
177 * the rest of this file should only be included for code that is supposed
178 * to go into modules
179 */
180
181#if defined(XFree86LOADER) && !defined(DONT_DEFINE_WRAPPERS)
182
183#undef abort
184#define abort() xf86abort()
185#undef abs
186#define abs(i) xf86abs(i)
187#undef acos
188#define acos(d) xf86acos(d)
189#undef asin
190#define asin(d) xf86asin(d)
191#undef atan
192#define atan(d) xf86atan(d)
193#undef atan2
194#define atan2(d1,d2) xf86atan2(d1,d2)
195#undef atof
196#define atof(ccp) xf86atof(ccp)
197#undef atoi
198#define atoi(ccp) xf86atoi(ccp)
199#undef atol
200#define atol(ccp) xf86atol(ccp)
201#undef bsearch
202#define bsearch(a,b,c,d,e) xf86bsearch(a,b,c,d,e)
203#undef ceil
204#define ceil(d) xf86ceil(d)
205#undef calloc
206#define calloc(I1,I2) xf86calloc(I1,I2)
207#undef clearerr
208#define clearerr(FP) xf86clearerr(FP)
209#undef cos
210#define cos(d) xf86cos(d)
211#undef exit
212#define exit(i) xf86exit(i)
213#undef exp
214#define exp(d) xf86exp(d)
215#undef fabs
216#define fabs(d) xf86fabs(d)
217#undef fclose
218#define fclose(FP) xf86fclose(FP)
219#undef feof
220#define feof(FP) xf86feof(FP)
221#undef ferror
222#define ferror(FP) xf86ferror(FP)
223#undef fflush
224#define fflush(FP) xf86fflush(FP)
225#undef fgetc
226#define fgetc(FP) xf86fgetc(FP)
227#undef getc
228#define getc(FP) xf86getc(FP)
229#undef fgetpos
230#define fgetpos(FP,fpp) xf86fgetpos(FP,fpp)
231#undef fgets
232#define fgets(cp,i,FP) xf86fgets(cp,i,FP)
233#undef finite
234#define finite(d) xf86finite(d)
235#undef floor
236#define floor(d) xf86floor(d)
237#undef fmod
238#define fmod(d1,d2) xf86fmod(d1,d2)
239#undef fopen
240#define fopen(ccp1,ccp2) xf86fopen(ccp1,ccp2)
241#undef printf
242#define printf xf86printf
243#undef fprintf
244#define fprintf xf86fprintf
245#undef fputc
246#define fputc(i,FP) xf86fputc(i,FP)
247#undef fputs
248#define fputs(ccp,FP) xf86fputs(ccp,FP)
249#undef fread
250#define fread(vp,I1,I2,FP) xf86fread(vp,I1,I2,FP)
251#undef free
252#define free(vp) xf86free(vp)
253#undef freopen
254#define freopen(ccp1,ccp2,FP) xf86freopen(ccp1,ccp2,FP)
255#undef frexp
256#define frexp(x,exp) xf86frexp(x,exp)
257#undef fscanf
258#define fscanf xf86fscanf
259#undef fseek
260#define fseek(FP,l,i) xf86fseek(FP,l,i)
261#undef fsetpos
262#define fsetpos(FP,cfpp) xf86fsetpos(FP,cfpp)
263#undef ftell
264#define ftell(FP) xf86ftell(FP)
265#undef fwrite
266#define fwrite(cvp,I1,I2,FP) xf86fwrite(cvp,I1,I2,FP)
267#undef getenv
268#define getenv(ccp) xf86getenv(ccp)
269#undef isalnum
270#define isalnum(i) xf86isalnum(i)
271#undef isalpha
272#define isalpha(i) xf86isalpha(i)
273#undef iscntrl
274#define iscntrl(i) xf86iscntrl(i)
275#undef isdigit
276#define isdigit(i) xf86isdigit(i)
277#undef isgraph
278#define isgraph(i) xf86isgraph(i)
279#undef islower
280#define islower(i) xf86islower(i)
281#undef isprint
282#define isprint(i) xf86isprint(i)
283#undef ispunct
284#define ispunct(i) xf86ispunct(i)
285#undef isspace
286#define isspace(i) xf86isspace(i)
287#undef isupper
288#define isupper(i) xf86isupper(i)
289#undef isxdigit
290#define isxdigit(i) xf86isxdigit(i)
291#undef labs
292#define labs(l) xf86labs(l)
293#undef ldexp
294#define ldexp(x, exp) xf86ldexp(x, exp)
295#undef log
296#define log(d) xf86log(d)
297#undef log10
298#define log10(d) xf86log10(d)
299#undef malloc
300#define malloc(I) xf86malloc(I)
301#undef memchr
302#define memchr(cvp,i,I) xf86memchr(cvp,i,I)
303#undef memcmp
304#define memcmp(cvp1,cvp2,I) xf86memcmp(cvp1,cvp2,I)
305#undef memcpy
306#define memcpy(vp,cvp,I) xf86memcpy(vp,cvp,I)
307#undef memmove
308#define memmove(vp,cvp,I) xf86memmove(vp,cvp,I)
309#undef memset
310#define memset(vp,int,I) xf86memset(vp,int,I)
311#undef modf
312#define modf(d,dp) xf86modf(d,dp)
313#undef perror
314#define perror(ccp) xf86perror(ccp)
315#undef pow
316#define pow(d1,d2) xf86pow(d1,d2)
317#undef realloc
318#define realloc(vp,I) xf86realloc(vp,I)
319#undef remove
320#define remove(ccp) xf86remove(ccp)
321#undef rename
322#define rename(ccp1,ccp2) xf86rename(ccp1,ccp2)
323#undef rewind
324#define rewind(FP) xf86rewind(FP)
325#undef setbuf
326#define setbuf(FP,cp) xf86setbuf(FP,cp)
327#undef setvbuf
328#define setvbuf(FP,cp,i,I) xf86setvbuf(FP,cp,i,I)
329#undef sin
330#define sin(d) xf86sin(d)
331#undef snprintf
332#define snprintf xf86snprintf
333#undef sprintf
334#define sprintf xf86sprintf
335#undef sqrt
336#define sqrt(d) xf86sqrt(d)
337#undef sscanf
338#define sscanf xf86sscanf
339#undef strcat
340#define strcat(cp,ccp) xf86strcat(cp,ccp)
341#undef strcmp
342#define strcmp(ccp1,ccp2) xf86strcmp(ccp1,ccp2)
343#undef strcasecmp
344#define strcasecmp(ccp1,ccp2) xf86strcasecmp(ccp1,ccp2)
345#undef strcpy
346#define strcpy(cp,ccp) xf86strcpy(cp,ccp)
347#undef strcspn
348#define strcspn(ccp1,ccp2) xf86strcspn(ccp1,ccp2)
349#undef strerror
350#define strerror(i) xf86strerror(i)
351#undef strlen
352#define strlen(ccp) xf86strlen(ccp)
353#undef strncmp
354#define strncmp(ccp1,ccp2,I) xf86strncmp(ccp1,ccp2,I)
355#undef strncasecmp
356#define strncasecmp(ccp1,ccp2,I) xf86strncasecmp(ccp1,ccp2,I)
357#undef strncpy
358#define strncpy(cp,ccp,I) xf86strncpy(cp,ccp,I)
359#undef strpbrk
360#define strpbrk(ccp1,ccp2) xf86strpbrk(ccp1,ccp2)
361#undef strchr
362#define strchr(ccp,i) xf86strchr(ccp,i)
363#undef strrchr
364#define strrchr(ccp,i) xf86strrchr(ccp,i)
365#undef strspn
366#define strspn(ccp1,ccp2) xf86strspn(ccp1,ccp2)
367#undef strstr
368#define strstr(ccp1,ccp2) xf86strstr(ccp1,ccp2)
369#undef srttod
370#define strtod(ccp,cpp) xf86strtod(ccp,cpp)
371#undef strtok
372#define strtok(cp,ccp) xf86strtok(cp,ccp)
373#undef strtol
374#define strtol(ccp,cpp,i) xf86strtol(ccp,cpp,i)
375#undef strtoul
376#define strtoul(ccp,cpp,i) xf86strtoul(ccp,cpp,i)
377#undef tan
378#define tan(d) xf86tan(d)
379#undef tmpfile
380#define tmpfile() xf86tmpfile()
381#undef tolower
382#define tolower(i) xf86tolower(i)
383#undef toupper
384#define toupper(i) xf86toupper(i)
385#undef ungetc
386#define ungetc(i,FP) xf86ungetc(i,FP)
387#undef vfprinf
388#define vfprintf xf86vfprintf
389#undef vsnprintf
390#define vsnprintf xf86vsnprintf
391#undef vsprintf
392#define vsprintf xf86vsprintf
393/* XXX Disable assert as if NDEBUG was defined */
394/* Some X headers defined this away too */
395#undef assert
396#define assert(a) ((void)0)
397#undef HUGE_VAL
398#define HUGE_VAL xf86HUGE_VAL
399
400#undef hypot
401#define hypot(x,y) xf86hypot(x,y)
402
403#undef qsort
404#define qsort(b, n, s, f) xf86qsort(b, n, s, f)
405
406/* non-ANSI C functions */
407#undef opendir
408#define opendir(cp) xf86opendir(cp)
409#undef closedir
410#define closedir(DP) xf86closedir(DP)
411#undef readdir
412#define readdir(DP) xf86readdir(DP)
413#undef rewinddir
414#define rewinddir(DP) xf86rewinddir(DP)
415#undef bcopy
416#define bcopy(vp,cvp,I) xf86memmove(cvp,vp,I)
417#undef ffs
418#define ffs(i) xf86ffs(i)
419#undef strdup
420#define strdup(ccp) xf86strdup(ccp)
421#undef bzero
422#define bzero(vp,ui) xf86bzero(vp,ui)
423#undef execl
424#define execl xf86execl
425#undef chmod
426#define chmod(a,b) xf86chmod(a,b)
427#undef chown
428#define chown(a,b,c) xf86chown(a,b,c)
429#undef geteuid
430#define geteuid xf86geteuid
431#undef getegid
432#define getegid xf86getegid
433#undef getpid
434#define getpid xf86getpid
435#undef mknod
436#define mknod(a,b,c) xf86mknod(a,b,c)
437#undef sleep
438#define sleep(a) xf86sleep(a)
439#undef mkdir
440#define mkdir(a,b) xf86mkdir(a,b)
441#undef getpagesize
442#define getpagesize xf86getpagesize
443#undef shmget
444#define shmget(a,b,c) xf86shmget(a,b,c)
445#undef shmat
446#define shmat(a,b,c) xf86shmat(a,b,c)
447#undef shmdt
448#define shmdt(a) xf86shmdt(a)
449#undef shmctl
450#define shmctl(a,b,c) xf86shmctl(a,b,c)
451
452#undef S_ISUID
453#define S_ISUID XF86_S_ISUID
454#undef S_ISGID
455#define S_ISGID XF86_S_ISGID
456#undef S_ISVTX
457#define S_ISVTX XF86_S_ISVTX
458#undef S_IRUSR
459#define S_IRUSR XF86_S_IRUSR
460#undef S_IWUSR
461#define S_IWUSR XF86_S_IWUSR
462#undef S_IXUSR
463#define S_IXUSR XF86_S_IXUSR
464#undef S_IRGRP
465#define S_IRGRP XF86_S_IRGRP
466#undef S_IWGRP
467#define S_IWGRP XF86_S_IWGRP
468#undef S_IXGRP
469#define S_IXGRP XF86_S_IXGRP
470#undef S_IROTH
471#define S_IROTH XF86_S_IROTH
472#undef S_IWOTH
473#define S_IWOTH XF86_S_IWOTH
474#undef S_IXOTH
475#define S_IXOTH XF86_S_IXOTH
476#undef S_IFREG
477#define S_IFREG XF86_S_IFREG
478#undef S_IFCHR
479#define S_IFCHR XF86_S_IFCHR
480#undef S_IFBLK
481#define S_IFBLK XF86_S_IFBLK
482#undef S_IFIFO
483#define S_IFIFO XF86_S_IFIFO
484
485/* some types */
486#undef FILE
487#define FILE XF86FILE
488#undef fpos_t
489#define fpos_t XF86fpos_t
490#undef DIR
491#define DIR XF86DIR
492#undef DIRENT
493#define DIRENT XF86DIRENT
494#undef size_t
495#define size_t xf86size_t
496#undef ssize_t
497#define ssize_t xf86ssize_t
498#undef dev_t
499#define dev_t xf86dev_t
500#undef mode_t
501#define mode_t xf86mode_t
502#undef uid_t
503#define uid_t xf86uid_t
504#undef gid_t
505#define gid_t xf86gid_t
506#undef stat_t
507#define stat_t struct xf86stat_s
508
509#undef ulong
510#define ulong unsigned long
511
512/*
513 * There should be no need to #undef any of these. If they are already
514 * defined it is because some illegal header has been included.
515 */
516
517/* some vars */
518#undef stdin
519#define stdin xf86stdin
520#undef stdout
521#define stdout xf86stdout
522#undef stderr
523#define stderr xf86stderr
524
525#undef SEEK_SET
526#define SEEK_SET XF86_SEEK_SET
527#undef SEEK_CUR
528#define SEEK_CUR XF86_SEEK_CUR
529#undef SEEK_END
530#define SEEK_END XF86_SEEK_END
531
532/*
533 * XXX Basic I/O functions BAD,BAD,BAD!
534 */
535#define open xf86open
536#define close(a) xf86close(a)
537#define lseek(a,b,c) xf86lseek(a,b,c)
538#define ioctl(a,b,c) xf86ioctl(a,b,c)
539#define read(a,b,c) xf86read(a,b,c)
540#define write(a,b,c) xf86write(a,b,c)
541#define mmap(a,b,c,d,e,f) xf86mmap(a,b,c,d,e,f)
542#define munmap(a,b) xf86munmap(a,b)
543#define stat(a,b) xf86stat(a,b)
544#define fstat(a,b) xf86fstat(a,b)
545#define access(a,b) xf86access(a,b)
546#undef O_RDONLY
547#define O_RDONLY XF86_O_RDONLY
548#undef O_WRONLY
549#define O_WRONLY XF86_O_WRONLY
550#undef O_RDWR
551#define O_RDWR XF86_O_RDWR
552#undef O_CREAT
553#define O_CREAT XF86_O_CREAT
554#undef PROT_EXEC
555#define PROT_EXEC XF86_PROT_EXEC
556#undef PROT_READ
557#define PROT_READ XF86_PROT_READ
558#undef PROT_WRITE
559#define PROT_WRITE XF86_PROT_WRITE
560#undef PROT_NONE
561#define PROT_NONE XF86_PROT_NONE
562#undef MAP_FIXED
563#define MAP_FIXED XF86_MAP_FIXED
564#undef MAP_SHARED
565#define MAP_SHARED XF86_MAP_SHARED
566#undef MAP_PRIVATE
567#define MAP_PRIVATE XF86_MAP_PRIVATE
568#undef MAP_FAILED
569#define MAP_FAILED XF86_MAP_FAILED
570#undef R_OK
571#define R_OK XF86_R_OK
572#undef W_OK
573#define W_OK XF86_W_OK
574#undef X_OK
575#define X_OK XF86_X_OK
576#undef F_OK
577#define F_OK XF86_F_OK
578#undef errno
579#define errno xf86errno
580#undef putchar
581#define putchar(i) xf86fputc(i, xf86stdout)
582#undef puts
583#define puts(s) xf86fputs(s, xf86stdout)
584
585#undef EACCES
586#define EACCES xf86_EACCES
587#undef EAGAIN
588#define EAGAIN xf86_EAGAIN
589#undef EBADF
590#define EBADF xf86_EBADF
591#undef EEXIST
592#define EEXIST xf86_EEXIST
593#undef EFAULT
594#define EFAULT xf86_EFAULT
595#undef EINTR
596#define EINTR xf86_EINTR
597#undef EINVAL
598#define EINVAL xf86_EINVAL
599#undef EISDIR
600#define EISDIR xf86_EISDIR
601#undef ELOOP
602#define ELOOP xf86_ELOOP
603#undef EMFILE
604#define EMFILE xf86_EMFILE
605#undef ENAMETOOLONG
606#define ENAMETOOLONG xf86_ENAMETOOLONG
607#undef ENFILE
608#define ENFILE xf86_ENFILE
609#undef ENOENT
610#define ENOENT xf86_ENOENT
611#undef ENOMEM
612#define ENOMEM xf86_ENOMEM
613#undef ENOSPC
614#define ENOSPC xf86_ENOSPC
615#undef ENOTDIR
616#define ENOTDIR xf86_ENOTDIR
617#undef EPIPE
618#define EPIPE xf86_EPIPE
619#undef EROFS
620#define EROFS xf86_EROFS
621#undef ETXTBSY
622#define ETXTBSY xf86_ETXTBSY
623#undef ENOTTY
624#define ENOTTY xf86_ENOTTY
625#undef ENOSYS
626#define ENOSYS xf86_ENOSYS
627#undef EBUSY
628#define EBUSY xf86_EBUSY
629#undef ENODEV
630#define ENODEV xf86_ENODEV
631#undef EIO
632#define EIO xf86_EIO
633
634/* IPC stuff */
635#undef SHM_RDONLY
636#define SHM_RDONLY XF86SHM_RDONLY
637#undef SHM_RND
638#define SHM_RND XF86SHM_RND
639#undef SHM_REMAP
640#define SHM_REMAP XF86SHM_REMAP
641#undef IPC_RMID
642#define IPC_RMID XF86IPC_RMID
643#undef IPC_CREAT
644#define IPC_CREAT XF86IPC_CREAT
645#undef IPC_EXCL
646#define IPC_EXCL XF86IPC_EXCL
647#undef PC_NOWAIT
648#define IPC_NOWAIT XF86IPC_NOWAIT
649#undef SHM_R
650#define SHM_R XF86SHM_R
651#undef SHM_W
652#define SHM_W XF86SHM_W
653#undef IPC_PRIVATE
654#define IPC_PRIVATE XF86IPC_PRIVATE
655
656/* Some ANSI macros */
657#undef FILENAME_MAX
658#define FILENAME_MAX 1024
659
660#endif /* XFree86LOADER && !DONT_DEFINE_WRAPPERS */
661
662#if defined(XFree86LOADER) && \
663 (!defined(DONT_DEFINE_WRAPPERS) || defined(DEFINE_SETJMP_WRAPPERS))
664#undef setjmp
665#define setjmp(a) xf86setjmp_macro(a)
666#undef longjmp
667#define longjmp(a,b) xf86longjmp(a,b)
668#undef jmp_buf
669#define jmp_buf xf86jmp_buf
670#endif
671
672#endif /* XF86_LIBC_H */
Note: See TracBrowser for help on using the repository browser.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette