VirtualBox

source: vbox/trunk/src/VBox/Additions/x11/x11include/xorg-server-1.18.0/os.h@ 99743

Last change on this file since 99743 was 58634, checked in by vboxsync, 9 years ago

Additions/x11: added header files for building X.Org video driver against X.Org Server 1.18.

  • Property svn:eol-style set to native
File size: 19.8 KB
Line 
1/***********************************************************
2
3Copyright 1987, 1998 The Open Group
4
5Permission to use, copy, modify, distribute, and sell this software and its
6documentation for any purpose is hereby granted without fee, provided that
7the above copyright notice appear in all copies and that both that
8copyright notice and this permission notice appear in supporting
9documentation.
10
11The above copyright notice and this permission notice shall be included in
12all copies or substantial portions of the Software.
13
14THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
18AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
19CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
20
21Except as contained in this notice, the name of The Open Group shall not be
22used in advertising or otherwise to promote the sale, use or other dealings
23in this Software without prior written authorization from The Open Group.
24
25Copyright 1987 by Digital Equipment Corporation, Maynard, Massachusetts.
26
27 All Rights Reserved
28
29Permission to use, copy, modify, and distribute this software and its
30documentation for any purpose and without fee is hereby granted,
31provided that the above copyright notice appear in all copies and that
32both that copyright notice and this permission notice appear in
33supporting documentation, and that the name of Digital not be
34used in advertising or publicity pertaining to distribution of the
35software without specific, written prior permission.
36
37DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
38ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
39DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
40ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
41WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
42ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
43SOFTWARE.
44
45******************************************************************/
46
47#ifndef OS_H
48#define OS_H
49
50#include "misc.h"
51#include <stdarg.h>
52#include <stdint.h>
53#include <string.h>
54
55#define SCREEN_SAVER_ON 0
56#define SCREEN_SAVER_OFF 1
57#define SCREEN_SAVER_FORCER 2
58#define SCREEN_SAVER_CYCLE 3
59
60#ifndef MAX_REQUEST_SIZE
61#define MAX_REQUEST_SIZE 65535
62#endif
63#ifndef MAX_BIG_REQUEST_SIZE
64#define MAX_BIG_REQUEST_SIZE 4194303
65#endif
66
67typedef struct _FontPathRec *FontPathPtr;
68typedef struct _NewClientRec *NewClientPtr;
69
70#ifndef xnfalloc
71#define xnfalloc(size) XNFalloc((unsigned long)(size))
72#define xnfcalloc(_num, _size) XNFcallocarray((_num), (_size))
73#define xnfrealloc(ptr, size) XNFrealloc((void *)(ptr), (unsigned long)(size))
74
75#define xstrdup(s) Xstrdup(s)
76#define xnfstrdup(s) XNFstrdup(s)
77
78#define xallocarray(num, size) reallocarray(NULL, (num), (size))
79#define xnfallocarray(num, size) XNFreallocarray(NULL, (num), (size))
80#define xnfreallocarray(ptr, num, size) XNFreallocarray((ptr), (num), (size))
81#endif
82
83#include <stdio.h>
84#include <stdarg.h>
85
86#ifdef DDXBEFORERESET
87extern void ddxBeforeReset(void);
88#endif
89
90#ifdef DDXOSVERRORF
91extern _X_EXPORT void (*OsVendorVErrorFProc) (const char *,
92 va_list args)
93_X_ATTRIBUTE_PRINTF(1, 0);
94#endif
95
96extern _X_EXPORT int WaitForSomething(int * /*pClientsReady */
97 );
98
99extern _X_EXPORT int ReadRequestFromClient(ClientPtr /*client */ );
100
101#if XTRANS_SEND_FDS
102extern _X_EXPORT int ReadFdFromClient(ClientPtr client);
103
104extern _X_EXPORT int WriteFdToClient(ClientPtr client, int fd, Bool do_close);
105#endif
106
107extern _X_EXPORT Bool InsertFakeRequest(ClientPtr /*client */ ,
108 char * /*data */ ,
109 int /*count */ );
110
111extern _X_EXPORT void ResetCurrentRequest(ClientPtr /*client */ );
112
113extern _X_EXPORT void FlushAllOutput(void);
114
115extern _X_EXPORT void FlushIfCriticalOutputPending(void);
116
117extern _X_EXPORT void SetCriticalOutputPending(void);
118
119extern _X_EXPORT int WriteToClient(ClientPtr /*who */ , int /*count */ ,
120 const void * /*buf */ );
121
122extern _X_EXPORT void ResetOsBuffers(void);
123
124extern _X_EXPORT void InitConnectionLimits(void);
125
126extern _X_EXPORT void NotifyParentProcess(void);
127
128extern _X_EXPORT void CreateWellKnownSockets(void);
129
130extern _X_EXPORT void ResetWellKnownSockets(void);
131
132extern _X_EXPORT void CloseWellKnownConnections(void);
133
134extern _X_EXPORT XID AuthorizationIDOfClient(ClientPtr /*client */ );
135
136extern _X_EXPORT const char *ClientAuthorized(ClientPtr /*client */ ,
137 unsigned int /*proto_n */ ,
138 char * /*auth_proto */ ,
139 unsigned int /*string_n */ ,
140 char * /*auth_string */ );
141
142extern _X_EXPORT Bool EstablishNewConnections(ClientPtr clientUnused,
143 void *closure);
144
145extern _X_EXPORT void CheckConnections(void);
146
147extern _X_EXPORT void CloseDownConnection(ClientPtr /*client */ );
148
149extern _X_EXPORT void AddGeneralSocket(int /*fd */ );
150
151extern _X_EXPORT void RemoveGeneralSocket(int /*fd */ );
152
153extern _X_EXPORT void AddEnabledDevice(int /*fd */ );
154
155extern _X_EXPORT void RemoveEnabledDevice(int /*fd */ );
156
157extern _X_EXPORT int OnlyListenToOneClient(ClientPtr /*client */ );
158
159extern _X_EXPORT void ListenToAllClients(void);
160
161extern _X_EXPORT void IgnoreClient(ClientPtr /*client */ );
162
163extern _X_EXPORT void AttendClient(ClientPtr /*client */ );
164
165extern _X_EXPORT void MakeClientGrabImpervious(ClientPtr /*client */ );
166
167extern _X_EXPORT void MakeClientGrabPervious(ClientPtr /*client */ );
168
169extern _X_EXPORT void ListenOnOpenFD(int /* fd */ , int /* noxauth */ );
170
171extern _X_EXPORT Bool AddClientOnOpenFD(int /* fd */ );
172
173extern _X_EXPORT CARD32 GetTimeInMillis(void);
174extern _X_EXPORT CARD64 GetTimeInMicros(void);
175
176extern _X_EXPORT void AdjustWaitForDelay(void *waitTime,
177 unsigned long newdelay);
178
179typedef struct _OsTimerRec *OsTimerPtr;
180
181typedef CARD32 (*OsTimerCallback) (OsTimerPtr timer,
182 CARD32 time,
183 void *arg);
184
185extern _X_EXPORT void TimerInit(void);
186
187extern _X_EXPORT Bool TimerForce(OsTimerPtr /* timer */ );
188
189#define TimerAbsolute (1<<0)
190#define TimerForceOld (1<<1)
191
192extern _X_EXPORT OsTimerPtr TimerSet(OsTimerPtr timer,
193 int flags,
194 CARD32 millis,
195 OsTimerCallback func,
196 void *arg);
197
198extern _X_EXPORT void TimerCheck(void);
199extern _X_EXPORT void TimerCancel(OsTimerPtr /* pTimer */ );
200extern _X_EXPORT void TimerFree(OsTimerPtr /* pTimer */ );
201
202extern _X_EXPORT void SetScreenSaverTimer(void);
203extern _X_EXPORT void FreeScreenSaverTimer(void);
204
205extern _X_EXPORT void AutoResetServer(int /*sig */ );
206
207extern _X_EXPORT void GiveUp(int /*sig */ );
208
209extern _X_EXPORT void UseMsg(void);
210
211extern _X_EXPORT void ProcessCommandLine(int /*argc */ , char * /*argv */ []);
212
213extern _X_EXPORT int set_font_authorizations(char **authorizations,
214 int *authlen,
215 void *client);
216
217/*
218 * This function malloc(3)s buffer, terminating the server if there is not
219 * enough memory.
220 */
221extern _X_EXPORT void *
222XNFalloc(unsigned long /*amount */ );
223
224/*
225 * This function calloc(3)s buffer, terminating the server if there is not
226 * enough memory.
227 */
228extern _X_EXPORT void *
229XNFcalloc(unsigned long /*amount */ ) _X_DEPRECATED;
230
231/*
232 * This function calloc(3)s buffer, terminating the server if there is not
233 * enough memory or the arguments overflow when multiplied
234 */
235extern _X_EXPORT void *
236XNFcallocarray(size_t nmemb, size_t size);
237
238/*
239 * This function realloc(3)s passed buffer, terminating the server if there is
240 * not enough memory.
241 */
242extern _X_EXPORT void *
243XNFrealloc(void * /*ptr */ , unsigned long /*amount */ );
244
245/*
246 * This function reallocarray(3)s passed buffer, terminating the server if
247 * there is not enough memory or the arguments overflow when multiplied.
248 */
249extern _X_EXPORT void *
250XNFreallocarray(void *ptr, size_t nmemb, size_t size);
251
252/*
253 * This function strdup(3)s passed string. The only difference from the library
254 * function that it is safe to pass NULL, as NULL will be returned.
255 */
256extern _X_EXPORT char *
257Xstrdup(const char *s);
258
259/*
260 * This function strdup(3)s passed string, terminating the server if there is
261 * not enough memory. If NULL is passed to this function, NULL is returned.
262 */
263extern _X_EXPORT char *
264XNFstrdup(const char *s);
265
266/* Include new X*asprintf API */
267#include "Xprintf.h"
268
269/* Older api deprecated in favor of the asprintf versions */
270extern _X_EXPORT char *
271Xprintf(const char *fmt, ...)
272_X_ATTRIBUTE_PRINTF(1, 2)
273 _X_DEPRECATED;
274extern _X_EXPORT char *
275Xvprintf(const char *fmt, va_list va)
276_X_ATTRIBUTE_PRINTF(1, 0)
277 _X_DEPRECATED;
278extern _X_EXPORT char *
279XNFprintf(const char *fmt, ...)
280_X_ATTRIBUTE_PRINTF(1, 2)
281 _X_DEPRECATED;
282extern _X_EXPORT char *
283XNFvprintf(const char *fmt, va_list va)
284_X_ATTRIBUTE_PRINTF(1, 0)
285 _X_DEPRECATED;
286
287typedef void (*OsSigHandlerPtr) (int /* sig */ );
288typedef int (*OsSigWrapperPtr) (int /* sig */ );
289
290extern _X_EXPORT OsSigHandlerPtr
291OsSignal(int /* sig */ , OsSigHandlerPtr /* handler */ );
292extern _X_EXPORT OsSigWrapperPtr
293OsRegisterSigWrapper(OsSigWrapperPtr newWrap);
294
295extern _X_EXPORT int auditTrailLevel;
296
297extern _X_EXPORT void
298LockServer(void);
299extern _X_EXPORT void
300UnlockServer(void);
301
302extern _X_EXPORT int
303OsLookupColor(int /*screen */ ,
304 char * /*name */ ,
305 unsigned /*len */ ,
306 unsigned short * /*pred */ ,
307 unsigned short * /*pgreen */ ,
308 unsigned short * /*pblue */ );
309
310extern _X_EXPORT void
311OsInit(void);
312
313extern _X_EXPORT void
314OsCleanup(Bool);
315
316extern _X_EXPORT void
317OsVendorFatalError(const char *f, va_list args)
318_X_ATTRIBUTE_PRINTF(1, 0);
319
320extern _X_EXPORT void
321OsVendorInit(void);
322
323extern _X_EXPORT void
324OsBlockSignals(void);
325
326extern _X_EXPORT void
327OsReleaseSignals(void);
328
329extern _X_EXPORT int
330OsBlockSIGIO(void);
331
332extern _X_EXPORT void
333OsReleaseSIGIO(void);
334
335extern void
336OsResetSignals(void);
337
338extern _X_EXPORT void
339OsAbort(void)
340 _X_NORETURN;
341
342#if !defined(WIN32)
343extern _X_EXPORT int
344System(const char *);
345extern _X_EXPORT void *
346Popen(const char *, const char *);
347extern _X_EXPORT int
348Pclose(void *);
349extern _X_EXPORT void *
350Fopen(const char *, const char *);
351extern _X_EXPORT int
352Fclose(void *);
353#else
354
355extern const char *
356Win32TempDir(void);
357
358extern int
359System(const char *cmdline);
360
361#define Fopen(a,b) fopen(a,b)
362#define Fclose(a) fclose(a)
363#endif
364
365extern _X_EXPORT void
366CheckUserParameters(int argc, char **argv, char **envp);
367extern _X_EXPORT void
368CheckUserAuthorization(void);
369
370extern _X_EXPORT int
371AddHost(ClientPtr /*client */ ,
372 int /*family */ ,
373 unsigned /*length */ ,
374 const void * /*pAddr */ );
375
376extern _X_EXPORT Bool
377ForEachHostInFamily(int family,
378 Bool (*func)(
379 unsigned char *addr,
380 short len,
381 void *closure),
382 void *closure);
383
384extern _X_EXPORT int
385RemoveHost(ClientPtr client,
386 int family,
387 unsigned length,
388 void *pAddr);
389
390extern _X_EXPORT int
391GetHosts(void ** /*data */ ,
392 int * /*pnHosts */ ,
393 int * /*pLen */ ,
394 BOOL * /*pEnabled */ );
395
396typedef struct sockaddr *sockaddrPtr;
397
398extern _X_EXPORT int
399InvalidHost(sockaddrPtr /*saddr */ , int /*len */ , ClientPtr client);
400
401#define LCC_UID_SET (1 << 0)
402#define LCC_GID_SET (1 << 1)
403#define LCC_PID_SET (1 << 2)
404#define LCC_ZID_SET (1 << 3)
405
406typedef struct {
407 int fieldsSet; /* Bit mask of fields set */
408 int euid; /* Effective uid */
409 int egid; /* Primary effective group id */
410 int nSuppGids; /* Number of supplementary group ids */
411 int *pSuppGids; /* Array of supplementary group ids */
412 int pid; /* Process id */
413 int zoneid; /* Only set on Solaris 10 & later */
414} LocalClientCredRec;
415
416extern _X_EXPORT int
417GetLocalClientCreds(ClientPtr, LocalClientCredRec **);
418
419extern _X_EXPORT void
420FreeLocalClientCreds(LocalClientCredRec *);
421
422extern _X_EXPORT int
423ChangeAccessControl(ClientPtr /*client */ , int /*fEnabled */ );
424
425extern _X_EXPORT int
426GetClientFd(ClientPtr);
427
428extern _X_EXPORT Bool
429ClientIsLocal(ClientPtr client);
430
431extern _X_EXPORT int
432GetAccessControl(void);
433
434extern _X_EXPORT void
435AddLocalHosts(void);
436
437extern _X_EXPORT void
438ResetHosts(const char *display);
439
440extern _X_EXPORT void
441EnableLocalAccess(void);
442
443extern _X_EXPORT void
444DisableLocalAccess(void);
445
446extern _X_EXPORT void
447EnableLocalHost(void);
448
449extern _X_EXPORT void
450DisableLocalHost(void);
451
452#ifndef NO_LOCAL_CLIENT_CRED
453extern _X_EXPORT void
454EnableLocalUser(void);
455
456extern _X_EXPORT void
457DisableLocalUser(void);
458
459extern _X_EXPORT void
460LocalAccessScopeUser(void);
461#endif
462
463extern _X_EXPORT void
464AccessUsingXdmcp(void);
465
466extern _X_EXPORT void
467DefineSelf(int /*fd */ );
468
469#if XDMCP
470extern _X_EXPORT void
471AugmentSelf(void *from, int len);
472
473extern _X_EXPORT void
474RegisterAuthorizations(void);
475#endif
476
477extern _X_EXPORT void
478InitAuthorization(const char * /*filename */ );
479
480/* extern int LoadAuthorization(void); */
481
482extern _X_EXPORT int
483AuthorizationFromID(XID id,
484 unsigned short *name_lenp,
485 const char **namep,
486 unsigned short *data_lenp, char **datap);
487
488extern _X_EXPORT XID
489CheckAuthorization(unsigned int /*namelength */ ,
490 const char * /*name */ ,
491 unsigned int /*datalength */ ,
492 const char * /*data */ ,
493 ClientPtr /*client */ ,
494 const char ** /*reason */
495 );
496
497extern _X_EXPORT void
498ResetAuthorization(void);
499
500extern _X_EXPORT int
501RemoveAuthorization(unsigned short name_length,
502 const char *name,
503 unsigned short data_length, const char *data);
504
505extern _X_EXPORT int
506AddAuthorization(unsigned int /*name_length */ ,
507 const char * /*name */ ,
508 unsigned int /*data_length */ ,
509 char * /*data */ );
510
511#ifdef XCSECURITY
512extern _X_EXPORT XID
513GenerateAuthorization(unsigned int /* name_length */ ,
514 const char * /* name */ ,
515 unsigned int /* data_length */ ,
516 const char * /* data */ ,
517 unsigned int * /* data_length_return */ ,
518 char ** /* data_return */ );
519#endif
520
521extern _X_EXPORT int
522ddxProcessArgument(int /*argc */ , char * /*argv */ [], int /*i */ );
523
524extern _X_EXPORT void
525ddxUseMsg(void);
526
527/* stuff for ReplyCallback */
528extern _X_EXPORT CallbackListPtr ReplyCallback;
529typedef struct {
530 ClientPtr client;
531 const void *replyData;
532 unsigned long dataLenBytes; /* actual bytes from replyData + pad bytes */
533 unsigned long bytesRemaining;
534 Bool startOfReply;
535 unsigned long padBytes; /* pad bytes from zeroed array */
536} ReplyInfoRec;
537
538/* stuff for FlushCallback */
539extern _X_EXPORT CallbackListPtr FlushCallback;
540
541enum ExitCode {
542 EXIT_NO_ERROR = 0,
543 EXIT_ERR_ABORT = 1,
544 EXIT_ERR_CONFIGURE = 2,
545 EXIT_ERR_DRIVERS = 3,
546};
547
548extern _X_EXPORT void
549AbortDDX(enum ExitCode error);
550extern _X_EXPORT void
551ddxGiveUp(enum ExitCode error);
552extern _X_EXPORT int
553TimeSinceLastInputEvent(void);
554
555/* Function fallbacks provided by AC_REPLACE_FUNCS in configure.ac */
556
557#ifndef HAVE_REALLOCARRAY
558#define reallocarray xreallocarray
559extern _X_EXPORT void *
560reallocarray(void *optr, size_t nmemb, size_t size);
561#endif
562
563#ifndef HAVE_STRCASECMP
564#define strcasecmp xstrcasecmp
565extern _X_EXPORT int
566xstrcasecmp(const char *s1, const char *s2);
567#endif
568
569#ifndef HAVE_STRNCASECMP
570#define strncasecmp xstrncasecmp
571extern _X_EXPORT int
572xstrncasecmp(const char *s1, const char *s2, size_t n);
573#endif
574
575#ifndef HAVE_STRCASESTR
576#define strcasestr xstrcasestr
577extern _X_EXPORT char *
578xstrcasestr(const char *s, const char *find);
579#endif
580
581#ifndef HAVE_STRLCPY
582extern _X_EXPORT size_t
583strlcpy(char *dst, const char *src, size_t siz);
584extern _X_EXPORT size_t
585strlcat(char *dst, const char *src, size_t siz);
586#endif
587
588#ifndef HAVE_STRNDUP
589extern _X_EXPORT char *
590strndup(const char *str, size_t n);
591#endif
592
593/* Logging. */
594typedef enum _LogParameter {
595 XLOG_FLUSH,
596 XLOG_SYNC,
597 XLOG_VERBOSITY,
598 XLOG_FILE_VERBOSITY
599} LogParameter;
600
601/* Flags for log messages. */
602typedef enum {
603 X_PROBED, /* Value was probed */
604 X_CONFIG, /* Value was given in the config file */
605 X_DEFAULT, /* Value is a default */
606 X_CMDLINE, /* Value was given on the command line */
607 X_NOTICE, /* Notice */
608 X_ERROR, /* Error message */
609 X_WARNING, /* Warning message */
610 X_INFO, /* Informational message */
611 X_NONE, /* No prefix */
612 X_NOT_IMPLEMENTED, /* Not implemented */
613 X_DEBUG, /* Debug message */
614 X_UNKNOWN = -1 /* unknown -- this must always be last */
615} MessageType;
616
617extern _X_EXPORT const char *
618LogInit(const char *fname, const char *backup);
619extern _X_EXPORT void
620LogClose(enum ExitCode error);
621extern _X_EXPORT Bool
622LogSetParameter(LogParameter param, int value);
623extern _X_EXPORT void
624LogVWrite(int verb, const char *f, va_list args)
625_X_ATTRIBUTE_PRINTF(2, 0);
626extern _X_EXPORT void
627LogWrite(int verb, const char *f, ...)
628_X_ATTRIBUTE_PRINTF(2, 3);
629extern _X_EXPORT void
630LogVMessageVerb(MessageType type, int verb, const char *format, va_list args)
631_X_ATTRIBUTE_PRINTF(3, 0);
632extern _X_EXPORT void
633LogMessageVerb(MessageType type, int verb, const char *format, ...)
634_X_ATTRIBUTE_PRINTF(3, 4);
635extern _X_EXPORT void
636LogMessage(MessageType type, const char *format, ...)
637_X_ATTRIBUTE_PRINTF(2, 3);
638extern _X_EXPORT void
639LogMessageVerbSigSafe(MessageType type, int verb, const char *format, ...)
640_X_ATTRIBUTE_PRINTF(3, 4);
641extern _X_EXPORT void
642LogVMessageVerbSigSafe(MessageType type, int verb, const char *format, va_list args)
643_X_ATTRIBUTE_PRINTF(3, 0);
644
645extern _X_EXPORT void
646LogVHdrMessageVerb(MessageType type, int verb,
647 const char *msg_format, va_list msg_args,
648 const char *hdr_format, va_list hdr_args)
649_X_ATTRIBUTE_PRINTF(3, 0)
650_X_ATTRIBUTE_PRINTF(5, 0);
651extern _X_EXPORT void
652LogHdrMessageVerb(MessageType type, int verb,
653 const char *msg_format, va_list msg_args,
654 const char *hdr_format, ...)
655_X_ATTRIBUTE_PRINTF(3, 0)
656_X_ATTRIBUTE_PRINTF(5, 6);
657extern _X_EXPORT void
658LogHdrMessage(MessageType type, const char *msg_format,
659 va_list msg_args, const char *hdr_format, ...)
660_X_ATTRIBUTE_PRINTF(2, 0)
661_X_ATTRIBUTE_PRINTF(4, 5);
662
663extern _X_EXPORT void
664FreeAuditTimer(void);
665extern _X_EXPORT void
666AuditF(const char *f, ...)
667_X_ATTRIBUTE_PRINTF(1, 2);
668extern _X_EXPORT void
669VAuditF(const char *f, va_list args)
670_X_ATTRIBUTE_PRINTF(1, 0);
671extern _X_EXPORT void
672FatalError(const char *f, ...)
673_X_ATTRIBUTE_PRINTF(1, 2)
674 _X_NORETURN;
675
676#ifdef DEBUG
677#define DebugF ErrorF
678#else
679#define DebugF(...) /* */
680#endif
681
682extern _X_EXPORT void
683VErrorF(const char *f, va_list args)
684_X_ATTRIBUTE_PRINTF(1, 0);
685extern _X_EXPORT void
686ErrorF(const char *f, ...)
687_X_ATTRIBUTE_PRINTF(1, 2);
688extern _X_EXPORT void
689VErrorFSigSafe(const char *f, va_list args)
690_X_ATTRIBUTE_PRINTF(1, 0);
691extern _X_EXPORT void
692ErrorFSigSafe(const char *f, ...)
693_X_ATTRIBUTE_PRINTF(1, 2);
694extern _X_EXPORT void
695LogPrintMarkers(void);
696
697extern _X_EXPORT void
698xorg_backtrace(void);
699
700extern _X_EXPORT int
701os_move_fd(int fd);
702
703#endif /* OS_H */
Note: See TracBrowser for help on using the repository browser.

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