xf86_libc.h revision 7278a2bf2db42887c3e7a665fa76b6488b3f3250
2N/A * Copyright (c) 1997-2003 by The XFree86 Project, Inc. 2N/A * Permission is hereby granted, free of charge, to any person obtaining a 2N/A * copy of this software and associated documentation files (the "Software"), 2N/A * to deal in the Software without restriction, including without limitation 2N/A * the rights to use, copy, modify, merge, publish, distribute, sublicense, 2N/A * and/or sell copies of the Software, and to permit persons to whom the 2N/A * Software is furnished to do so, subject to the following conditions: 2N/A * The above copyright notice and this permission notice shall be included in 2N/A * all copies or substantial portions of the Software. 2N/A * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 2N/A * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 2N/A * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 2N/A * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR 2N/A * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 2N/A * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 2N/A * OTHER DEALINGS IN THE SOFTWARE. 2N/A * Except as contained in this notice, the name of the copyright holder(s) 2N/A * and author(s) shall not be used in advertising or otherwise to promote 2N/A * the sale, use or other dealings in this Software without prior written 2N/A * authorization from the copyright holder(s) and author(s). 2N/A * This file is an attempt to make developing code for the new loadable module 2N/A * architecure simpler. It tries to use macros to hide all libc wrappers so 2N/A * that all that is needed to "port" a module to this architecture is to 2N/A * include this one header file 2N/A * 0.4 Apr 12 1997 add the ANSI defines 2N/A * 0.3 Feb 24 1997 handle getenv 2N/A * 0.2 Feb 24 1997 hide few FILE functions 2N/A * 0.1 Feb 24 1997 hide the trivial functions mem* str* 2N/A * The first set of definitions are required both for modules and 2N/A * First, the new data types 2N/A * note: if some pointer is declared "opaque" here, pass it between 2N/A * xf86* functions only, and don't rely on it having a whatever internal 2N/A * structure, even if some source file might reveal the existence of 2N/A /* (divisble by 8) */ 2N/A/* Note: the following is POSIX! POSIX only requires the d_name member. 2N/A * Normal Unix has often a number of other members, but don't rely on that 2N/A/* for open (XXX not complete) */ 2N/A * They start at 1000 just so they don't match real errnos at all #
define XF86SHM_RND 0
20000 /* round attach address to SHMLBA */#
endif /* defined(XFree86LOADER) || defined(NEED_XF86_TYPES) */ * the rest of this file should only be included for code that is supposed /* XXX Disable assert as if NDEBUG was defined */ /* Some X headers defined this away too */ /* non-ANSI C functions */ #
define ulong unsigned long * There should be no need to #undef any of these. If they are already * defined it is because some illegal header has been included. * XXX Basic I/O functions BAD,BAD,BAD! #
define mmap(a,b,c,d,e,f)
xf86mmap(a,b,c,d,e,f)
#
define _FILEDEFED /* Already have FILE defined, don't redefine it */#
endif /* XFree86LOADER && !DONT_DEFINE_WRAPPERS */