head 1.2; access; symbols trunk-20040613:1.2 mach64-last-merge:1.2 driinterface-0-0-3-20040303-merge:1.2 driinterface-0-0-3-20040303-premerge:1.2 driinterface-0-0-3-20040303:1.2 driinterface-0-0-3-branch:1.2.0.16 mach64-0-0-7-branch:1.2.0.14 driinterface-0-0-2-branch:1.2.0.12 newmesa-0-0-1-20031209-merge:1.2 trunk-20031209:1.2 newmesa-0-0-1-20031209:1.2 newmesa-0-0-1-branch:1.2.0.10 driinterface-0-0-1-branch:1.2.0.8 savage-2-0-0-branch:1.2.0.6 savage-2-0-0-fork:1.2 dynamic-0-0-1-branch:1.2.0.4 config-0-0-1-20031005-freeze:1.1.1.11 savage-1_0_0-20031002-trunk-premerge:1.1.1.11 cle266-0-0-1-branch:1.2.0.2 i865-agp-0-1-20030929:1.1.1.11 trunk-20030916:1.2 XFree86-4_3_99_12-merge:1.2 trunk-20030912:1.1.1.11 i865-agp-0-1-20030905:1.1.1.11 i865-agp-0-1-20030728:1.1.1.11 i865-agp-0-1-20030707:1.1.1.11 savage-1_0_0-branch:1.1.1.11.0.24 newdrm-0-0-1-branch:1.1.1.11.0.22 i865-agp-0-1-branch:1.1.1.11.0.20 config-0-0-1-branch:1.1.1.11.0.18 texmem-0-0-1-20030429-merge:1.1.1.11 texmem-0-0-1-20030429-premerge:1.1.1.11 texmem-0-0-1-20030407:1.1.1.10.36.1 trident-0-0-2-branch:1.1.1.11.0.16 mach64-0-0-6-20030330:1.1.1.11 mach64-0-0-6-20030329-freeze:1.1.1.11 texmem-0-0-1-20030328-freeze:1.1.1.10.36.1 X_4_3_0-20030324-merge:1.1.1.11 X_4_3_0-20020324-preimport:1.1.1.11 drm-filp-0-1-branch:1.1.1.11.0.14 mesa-4-0-4-20030222:1.1.1.11 bsd-4-0-0-20030221-merge:1.1.1.11 bsd-4-0-0-20030220:1.1.1.11 bsd-4-0-0-20030220-freeze:1.1.1.11 mesa-4-0-4-20030216:1.1.1.11 mach64-0-0-6-branch:1.1.1.11.0.12 mesa-4-0-4-20030208:1.1.1.11 texmem-0-0-1-20030204-trunk-merge:1.1.1.10.36.1 texmem-0-0-1-20030204-trunk-premerge:1.1.1.10.36.1 mesa-4-0-4-20030203:1.1.1.11 mesa-4-0-4-20030129:1.1.1.11 texmem-0-0-1-20030125-trunk-merge:1.1.1.10.36.1 texmem-0-0-1-20030123-trunk-premerge:1.1.1.10.36.1 mesa-4-0-4-20030114:1.1.1.11 agpgart_2_0_branch:1.1.1.11.0.10 mesa-4-0-4-20021220:1.1.1.11 mesa-4-0-4-20021216:1.1.1.11 mesa-4-0-4-20021215:1.1.1.11 mesa-4-0-4-20021214:1.1.1.11 mesa-4-0-4-branch:1.1.1.11.0.8 dmx-1-0-20021129-final:1.1.1.10 texmem-0-0-1-20021127-mesa-4-1-merge:1.1.1.10.36.1 trunk-20021125:1.1.1.11 dmx-1-0-20021115-beta:1.1.1.10 bsd-4-0-0-branch:1.1.1.11.0.6 nv-0-0-1-branch:1.1.1.11.0.4 savage-0-0-1-branch:1.1.1.11.0.2 stable-1-0-branch:1.1.1.10.0.42 r200-stable-1-0-20021028:1.1.1.10 dmx-1-0-20021025-alpha:1.1.1.10 X_4_2_99_2-20021023-merge:1.1.1.11 X_4_2_99_2:1.1.1.11 trunk-20021022:1.1.1.10 r200-stable-1-0-branch:1.1.1.10.0.40 mesa-4-1-branch:1.1.1.10.0.38 texmem-0-0-1:1.1.1.10.0.36 trunk-20021002:1.1.1.10 dmx-1-0-20020926-final:1.1.1.10 dmx-1-0-20020830-beta:1.1.1.10 r200-0-2-branch:1.1.1.10.0.34 r200-0-1-20020822-merge:1.1.1.10 r200-0-1-20020822:1.1.1.10 r200-0-1-20020826-freeze:1.1.1.10 xv845g-0-1-branch:1.1.1.10.0.32 xv845g-0-1-bp:1.1.1.10 GEODE-BASE-DRIVER:1.1.1.10 geode-0-0-1-branch:1.1.1.10.0.30 tdlabs-0-0-1-branch:1.1.1.10.0.28 reinit-0-0-1-branch:1.1.1.10.0.26 dmx-1-0-20020719-alpha:1.1.1.10 r200-0-1-20020715:1.1.1.10 r200-0-1-20020714-freeze:1.1.1.10 bsd-3-0-0-20020705-merge:1.1.1.10 bsd-3-0-0-freeze:1.1.1.10 trunk-20020705:1.1.1.10 bsd-3-0-0-20020705:1.1.1.10 trunk-20020703:1.1.1.10 mach64-0-0-5-branch:1.1.1.10.0.22 trunk-20020626:1.1.1.10 trunk-20020617:1.1.1.10 tcl-0-0-20020612-merge:1.1.1.10 tcl-0-0-20020612:1.1.1.10 tcl-0-0-20020612-freeze:1.1.1.10 r200-0-1-branch:1.1.1.10.0.24 dmx-1-0-20020604-phase1:1.1.1.10 dmx-1-0-20020603-base:1.1.1.10 dmx-1-0-branch:1.1.1.10.0.20 dmx-0-1-20020531-final:1.1.1.9 mach64-0-0-4-dma-branch:1.1.1.10.0.18 dmx-0-1-20020419-beta:1.1.1.9 mach64-0-0-4-branch:1.1.1.10.0.16 drmcommand-0-0-1-20020409-merge:1.1.1.10 drmcommand-0-0-1-20020409:1.1.1.10 drmcommand-0-0-1-20020409-freeze:1.1.1.10 trunk-20020328:1.1.1.10 s3virge-0-0-1-branch:1.1.1.10.0.14 drmcommand-0-0-1-branch:1.1.1.10.0.12 trident-0-0-1-branch:1.1.1.10.0.10 mach64-0-0-3-dma-branch:1.1.1.10.0.8 bsd-3-0-0-branch:1.1.1.10.0.6 dmx-0-1-20020228-alpha:1.1.1.9 mach64-0-0-3-branch:1.1.1.10.0.4 trunk-20020221:1.1.1.10 tcl-0-0-branch:1.1.1.10.0.2 mesa-4-0-20020214-merge:1.1.1.10 mesa-4-0-20020214:1.1.1.9.2.1 mesa-4-0-20020213:1.1.1.9.2.1 mesa-4-0-20020211-freeze:1.1.1.9 X_4_2_0-20020128-merge:1.1.1.10 X_4_2_0:1.1.1.10 X_4_2_0-20020127-preimport:1.1.1.9 X_4_2_0-20020123-preimport:1.1.1.9 dmx-0-1-20020112:1.1.1.9 dmx-0-1-20011128-snapshot:1.1.1.9 dmx-0-1-20011115:1.1.1.9 dmx-0-1-branch:1.1.1.9.0.6 mach64-0-0-2-branch:1.1.1.9.0.4 mesa-4-0-branch:1.1.1.9.0.2 X_4_1_99_1-20010822-merge:1.1.1.9 X_4_1_99_1:1.1.1.9 X_4_1_99_1-20010822-preimport:1.1.1.8 multihead-1-0-0-20010730:1.1.1.8 multihead-1-0-0-20010730-merge:1.1.1.8 multihead-1-0-0-20010727-freeze:1.1.1.8 X_4_1_0-20010615-merge:1.1.1.8 mesa-3-5-20010621-freeze:1.1.1.6.20.1 X_4_1_0:1.1.1.8 X_4_1_0-20010614-preimport:1.1.1.8 multihead-1-0-0-branch:1.1.1.8.0.2 X_4_0_99_3-20010502-merge:1.1.1.8 X_4_0_99_3:1.1.1.8 X_4_0_99_3-20010501-preimport:1.1.1.7 bsd-2-0-0-branch:1.1.1.7.0.4 X_4_0_99_2-20010410-merge:1.1.1.7 X_4_0_99_2:1.1.1.7 X_4_0_99_2-20010409-preimport:1.1.1.7 ati-pcigart-1-0-0-20010405-merge:1.1.1.7 ati-pcigart-1-0-0-20010405:1.1.1.7 ati-pcigart-1-0-0-20010405-freeze:1.1.1.7 ati-pcigart-1-0-0-branch:1.1.1.7.0.2 mesa-3-5-20010323-freeze:1.1.1.6 X_4_0_99_1-20010321-merge:1.1.1.7 X_4_0_99_1:1.1.1.7 X_4_0_99_1-20010319-preimport:1.1.1.6 full-1-0-0-20010315-head:1.1.1.6 sarea-1-0-0-20010314-merge:1.1.1.6 sarea-1-0-0-20010314:1.1.1.6 full-1-0-0-branch:1.1.1.6 sarea-1-0-0-20010307:1.1.1.6 sarea-1-0-0-20010307-freeze:1.1.1.6 tdfx-3-1-0-20010306-merge:1.1.1.6 tdfx-3-1-0-20010306-freeze:1.1.1.6 tdfx-3-1-0-20010306:1.1.1.6 tdfx-3-1-0-20010305-merge:1.1.1.6 tdfx-3-1-0-20010305-freeze2:1.1.1.6 tdfx-3-1-0-20010305-freeze:1.1.1.6 tdfx-3-1-0-20010301-freeze:1.1.1.6 ati-pcigart-0-0-1-branch-02282001-freeze:1.1.1.6 ati-5-0-1-20010220-head:1.1.1.6 ati-5-0-1-branch:1.1.1.6.0.28 sarea-1-0-0-branch:1.1.1.6.0.26 mga-1-0-0-20010215-merge:1.1.1.6 mga-1-0-0-20010215-freeze:1.1.1.6 tdfx-3-1-0-branch:1.1.1.6.0.24 tdfx-3-0-1-branch:1.1.1.6 ati-pcigart-0-0-1-branch:1.1.1.6.0.22 mesa-3-5-branch:1.1.1.6.0.20 tdfx-3-0-0-20010109-merge:1.1.1.6 tdfx-3-0-0-20010108:1.1.1.6 ati-5-0-0-20010105-merge:1.1.1.6 ati-5-0-0-20010105:1.1.1.6 ati-5-0-0-20000104-freeze:1.1.1.6 tdfx-3-0-0-20010104-freeze:1.1.1.6 ati-5-0-0-20001223-merge:1.1.1.6 ati-5-0-0-20001223-freeze:1.1.1.6 X_4_0_2-20001221-merge:1.1.1.6 X_4_0_2:1.1.1.6 mga-1-0-0-branch:1.1.1.6.0.18 X_4_0_1h-20001207-merge:1.1.1.6 X_4_0_1h-20001205-merge:1.1.1.6 X_4_0_1h:1.1.1.6 ati-4-1-1-20001202-merge-trunk:1.1.1.6 sse-1-0-1-branch:1.1.1.6.0.16 ati-4-1-1-20001202-merge:1.1.1.4 tdfx-3-0-0-20001201:1.1.1.6 ati-4-1-1-20001201-freeze:1.1.1.4 tdfx-3-0-0-20001201-freeze:1.1.1.6 X_4_0_1g-20001130-merge:1.1.1.6 X_4_0_1g:1.1.1.6 X_4_0_1f-20001130-merge:1.1.1.6 X_4_0_1f:1.1.1.6 ati-4-1-1-20001125-freeze:1.1.1.4 mach64-0-0-1-branch:1.1.1.6.0.14 ati-5-0-0-branch:1.1.1.6.0.12 X_4_0_1e-20001107-merge:1.1.1.6 X_4_0_1e:1.1.1.6 X_4_0_1d-20001107-merge:1.1.1.6 X_4_0_1d:1.1.1.6 ppc-1-0-1-branch:1.1.1.6.0.10 radeon-1-0-0-20001017:1.1.1.4 full-0-0-2-branch:1.1.1.6.0.8 full-0-0-1-branch:1.1.1.6.0.6 ati-4-1-1-20001009-freeze:1.1.1.4 mga-readpix-0-0-1-branch:1.1.1.6.0.4 tdfx-3-0-0-branch:1.1.1.6.0.2 X_4_0_1d-pre:1.1.1.6 ati-4-1-1-20000919-stable:1.1.1.4 radeon-1-0-0-branch:1.1.1.4.0.16 ppc-1-0-0-20000912:1.1.1.3.6.1 mga-lock-debug-0-2-0-branch:1.1.1.4.0.14 sse-1-0-0-branch:1.1.1.4.0.12 mga-lock-debug-0-0-1-branch:1.1.1.4.0.10 gamma-2-0-0-branch:1.1.1.4.0.8 tdfx-2-1-20000907-merge:1.1.1.4 tdfx-2-1-20000906:1.1.1.2.38.2 tdfx-2-1-20000905-freeze:1.1.1.2.38.1 ppc-1-0-0-2000-09-01-freeze:1.1.1.3 m3-0-0-1-branch:1.1.1.4.0.6 mach64-0-0-0-branch:1.1.1.4.0.4 ati-4-1-1-branch:1.1.1.4.0.2 X_4_0_1b-20000816-merge:1.1.1.4 X_4_0_1b:1.1.1.4 ati-4-0-2-branch:1.1.1.3.0.8 ppc-1-0-0-branch:1.1.1.3.0.6 tdfx-2-1-20000711:1.1.1.2.38.1 tdfx-2-1-20000711-freeze:1.1.1.2 X_4_0_1-20000711-merge:1.1.1.3.0.4 xc_4_0_1-20000711-merge:1.1.1.3.0.2 X_4_0_1:1.1.1.3 tdfx-2-1-branch:1.1.1.2.0.38 pre401-20000613-freeze:1.1.1.2 bsd-1-0-1-20000613-merge:1.1.1.2 bsd-1-0-1-20000613:1.1.1.2 bsd-1-0-1-20000612-freeze:1.1.1.2 tdfx-2-0-20000612-merge:1.1.1.2 ati-4-1-0-20000613-merge:1.1.1.2 ati-4-1-0-20000613:1.1.1.2 tdfx-2-0-20000608-merge:1.1.1.2 tdfx-2-0-20000608-freeze:1.1.1.2 ati-4-1-0-branch:1.1.1.2.0.36 glxmisc-3-0-0-20000608-merge:1.1.1.2 glxmisc-3-0-0-20000607:1.1.1.2 glxmisc-3-0-0-20000606-freeze:1.1.1.2 bsd-1-0-1-branch:1.1.1.2.0.34 bsd-1-0-0-20000531-merge:1.1.1.2 bsd-1-0-0-20000530-merge:1.1.1.2 bsd-1-0-0-20000530-freeze:1.1.1.2 tdfx-2-0-20000222-merge:1.1.1.2 tdfx-2-0-20000222-freeze:1.1.1.2 ati-4-0-1-20000518-merge:1.1.1.2 ati-4-0-1-20000518:1.1.1.2 video-1-0-0-branch:1.1.1.2.0.32 gamma-1-0-0-branch:1.1.1.2.0.30 mgadh-0-0-3-branch:1.1.1.2.0.28 glxmisc-3-0-0-branch:1.1.1.2.0.26 glxmisc-2-0-0-20000503-merge:1.1.1.2 bsd-1-0-0-branch:1.1.1.2.0.24 glxmisc-2-0-0-20000503:1.1.1.2 glxmisc-2-0-0-branch:1.1.1.2.0.22 tdfx-2-0-branch:1.1.1.2.0.20 tdfx-2-0-trunk:1.1.1.2 glxmisc-1-0-0-20000420-merge:1.1.1.2 glxmisc-1-0-0-20000420:1.1.1.2 ati-4-0-1-beta:1.1.1.2 glxmisc-1-0-0-branch:1.1.1.2.0.18 mga-0-0-3-branch:1.1.1.2.0.16 mga-0-0-2-20000404-merge:1.1.1.2 ati-4-0-1-alpha:1.1.1.2 ati-4-0-1-20000319-base:1.1.1.2 ati-4-0-1-branch:1.1.1.2.0.14 ati-4-0-0-20000319:1.1.1.1 X_4_0-20000315-merge:1.1.1.2 X_4_0:1.1.1.2 freeze-20000226:1.1.1.2 dispatch-0-0-3-20000225-merge:1.1.1.2 dispatch-0-0-3-20000225:1.1.1.2 mga-0-0-1-20000225-merge:1.1.1.1 mga-0-0-2-branch:1.1.1.2.0.12 smt-0-0-2-branch:1.1.1.2.0.10 smt-0-0-1-20000222-freeze:1.1.1.2 X_3_9_18-20000222-merge:1.1.1.2 X_3_9_18:1.1.1.2 smt-0-0-1-stage2c:1.1.1.2 smt-0-0-1-stage2b:1.1.1.2.0.8 dispatch-0-0-3-branch:1.1.1.2.0.6 i810-20000214-beta2:1.1.1.1 dispatch-0-0-2-20000212:1.1.1.2 dispatch-0-0-2-branch:1.1.1.2.0.4 i810-20000201-beta1:1.1.1.1 dispatch-0-0-1-20000129-merge:1.1.1.2 dispatch-0-0-1-20000128:1.1.1.1 smt-0-0-1-20000112-base:1.1.1.2 smt-0-0-1-branch:1.1.1.2.0.2 dispatch-0-0-1-branch:1.1.1.1.0.10 tdfx-1-1:1.1.1.1.0.4 X_3_9_17:1.1.1.2 ati-4-0-0-branch:1.1.1.1.0.8 mga-0-0-1-branch:1.1.1.1.0.2 X_3_9_16:1.1.1.1 XFree:1.1.1; locks; strict; comment @ * @; 1.2 date 2003.09.12.18.35.41; author alanh; state Exp; branches; next 1.1; 1.1 date 99.12.05.01.05.39; author daryll; state Exp; branches 1.1.1.1; next ; 1.1.1.1 date 99.12.05.01.05.39; author daryll; state Exp; branches 1.1.1.1.4.1; next 1.1.1.2; 1.1.1.2 date 2000.01.06.12.45.30; author faith; state Exp; branches 1.1.1.2.38.1; next 1.1.1.3; 1.1.1.3 date 2000.07.10.20.49.39; author alanh; state Exp; branches 1.1.1.3.6.1; next 1.1.1.4; 1.1.1.4 date 2000.08.16.17.22.15; author dawes; state Exp; branches; next 1.1.1.5; 1.1.1.5 date 2000.09.22.17.15.00; author alanh; state Exp; branches; next 1.1.1.6; 1.1.1.6 date 2000.09.23.20.48.14; author alanh; state Exp; branches 1.1.1.6.20.1; next 1.1.1.7; 1.1.1.7 date 2001.03.19.17.45.15; author dawes; state Exp; branches 1.1.1.7.4.1; next 1.1.1.8; 1.1.1.8 date 2001.05.01.17.07.12; author dawes; state Exp; branches; next 1.1.1.9; 1.1.1.9 date 2001.08.22.18.00.12; author dawes; state Exp; branches 1.1.1.9.2.1; next 1.1.1.10; 1.1.1.10 date 2002.01.27.18.21.36; author dawes; state Exp; branches 1.1.1.10.36.1 1.1.1.10.38.1; next 1.1.1.11; 1.1.1.11 date 2002.10.22.13.49.27; author alanh; state Exp; branches; next ; 1.1.1.10.36.1 date 2002.11.11.23.31.46; author idr; state Exp; branches; next ; 1.1.1.10.38.1 date 2002.11.15.01.58.06; author brianp; state Exp; branches; next ; 1.1.1.9.2.1 date 2002.02.12.00.31.55; author dawes; state Exp; branches; next ; 1.1.1.7.4.1 date 2001.05.09.11.53.16; author alanh; state Exp; branches; next 1.1.1.7.4.2; 1.1.1.7.4.2 date 2001.08.29.17.24.47; author alanh; state Exp; branches; next ; 1.1.1.6.20.1 date 2001.03.27.20.01.38; author gareth; state Exp; branches; next 1.1.1.6.20.2; 1.1.1.6.20.2 date 2001.06.26.02.07.51; author brianp; state Exp; branches; next ; 1.1.1.3.6.1 date 2000.09.12.19.17.26; author mdaenzer; state Exp; branches; next ; 1.1.1.2.38.1 date 2000.07.11.19.36.06; author daryll; state Exp; branches; next 1.1.1.2.38.2; 1.1.1.2.38.2 date 2000.09.06.12.11.20; author alanh; state Exp; branches; next ; 1.1.1.1.4.1 date 2000.01.21.02.02.14; author daryll; state Exp; branches; next ; desc @@ 1.2 log @second round. @ text @/* * $Xorg: Xos.h,v 1.6 2001/02/09 02:03:22 xorgcvs Exp $ * * Copyright 1987, 1998 The Open Group Permission to use, copy, modify, distribute, and sell this software and its documentation for any purpose is hereby granted without fee, provided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in supporting documentation. The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. Except as contained in this notice, the name of The Open Group shall not be used in advertising or otherwise to promote the sale, use or other dealings in this Software without prior written authorization from The Open Group. * * The X Window System is a Trademark of The Open Group. * */ /* $XFree86: xc/include/Xos.h,v 3.39 2003/03/25 04:18:07 dawes Exp $ */ /* This is a collection of things to try and minimize system dependencies * in a "signficant" number of source files. */ #ifndef _XOS_H_ #define _XOS_H_ #include /* * Get major data types (esp. caddr_t) */ #ifdef USG #ifndef __TYPES__ #ifdef CRAY #define word word_t #endif /* CRAY */ #include /* forgot to protect it... */ #define __TYPES__ #endif /* __TYPES__ */ #else /* USG */ #if defined(_POSIX_SOURCE) && defined(MOTOROLA) #undef _POSIX_SOURCE #include #define _POSIX_SOURCE #else #include #endif #endif /* USG */ #ifdef _SEQUENT_ /* * in_systm.h compatibility between SysV and BSD types u_char u_short u_long * select.h for typedef of args to select, fd_set, may use SVR4 later */ #include #include #endif /* _SEQUENT_ */ /* * Just about everyone needs the strings routines. We provide both forms here, * index/rindex and strchr/strrchr, so any systems that don't provide them all * need to have #defines here. * * These macros are defined this way, rather than, e.g.: * #defined index(s,c) strchr(s,c) * because someone might be using them as function pointers, and such * a change would break compatibility for anyone who's relying on them * being the way they currently are. So we're stuck with them this way, * which can be really inconvenient. :-( */ #ifndef X_NOT_STDC_ENV #include #ifdef __STDC__ #ifndef index #define index(s,c) (strchr((s),(c))) #endif #ifndef rindex #define rindex(s,c) (strrchr((s),(c))) #endif #else #ifndef index #define index strchr #endif #ifndef rindex #define rindex strrchr #endif #endif #else #ifdef SYSV #if defined(clipper) || defined(__clipper__) #include #endif #include #define index strchr #define rindex strrchr #else #include #define strchr index #define strrchr rindex #endif #endif /* X_NOT_STDC_ENV */ /* * strerror() */ #if (defined(X_NOT_STDC_ENV) || (defined(sun) && !defined(SVR4)) || defined(macII)) && !defined(__GLIBC__) #ifndef strerror extern char *sys_errlist[]; extern int sys_nerr; #define strerror(n) \ (((n) >= 0 && (n) < sys_nerr) ? sys_errlist[n] : "unknown error") #endif #endif /* * Get open(2) constants */ #if defined(X_NOT_POSIX) #include #if defined(USL) || defined(CRAY) || defined(MOTOROLA) || (defined(i386) && (defined(SYSV) || defined(SVR4))) || defined(__sxg__) #include #endif #ifdef WIN32 #include #else #include #endif #else /* X_NOT_POSIX */ #if !defined(_POSIX_SOURCE) && defined(macII) #define _POSIX_SOURCE #include #include #undef _POSIX_SOURCE #else #include #include #endif #endif /* X_NOT_POSIX else */ /* * Get struct timeval and struct tm */ #if defined(SYSV) && !defined(_SEQUENT_) #ifndef USL #include #endif #include #ifdef CRAY #undef word #endif /* CRAY */ #if defined(USG) && !defined(CRAY) && !defined(MOTOROLA) && !defined(uniosu) && !defined(__sxg__) && !defined(clipper) && !defined(__clipper__) struct timeval { long tv_sec; long tv_usec; }; #ifndef USL_SHARELIB struct timezone { int tz_minuteswest; int tz_dsttime; }; #endif /* USL_SHARELIB */ #endif /* USG */ #ifdef _SEQUENT_ struct timezone { int tz_minuteswest; int tz_dsttime; }; #endif /* _SEQUENT_ */ #else /* not SYSV */ #if defined(_POSIX_SOURCE) && defined(SVR4) /* need to omit _POSIX_SOURCE in order to get what we want in SVR4 */ #undef _POSIX_SOURCE #include #define _POSIX_SOURCE #elif defined(WIN32) #include #if !defined(_WINSOCKAPI_) && !defined(_WILLWINSOCK_) struct timeval { long tv_sec; /* seconds */ long tv_usec; /* and microseconds */ }; #endif #include #define gettimeofday(t) \ { \ struct _timeb _gtodtmp; \ _ftime (&_gtodtmp); \ (t)->tv_sec = _gtodtmp.time; \ (t)->tv_usec = _gtodtmp.millitm * 1000; \ } #elif defined(_SEQUENT_) || defined(Lynx) #include #elif defined (__QNX__) typedef unsigned long fd_mask; /* Make sure we get 256 bit select masks */ #define FD_SETSIZE 256 #include #include #include #else #include #include #endif /* defined(_POSIX_SOURCE) && defined(SVR4) */ #endif /* SYSV */ /* define X_GETTIMEOFDAY macro, a portable gettimeofday() */ #if defined(_XOPEN_XPG4) || defined(_XOPEN_UNIX) /* _XOPEN_UNIX is XPG4.2 */ #define X_GETTIMEOFDAY(t) gettimeofday(t, (struct timezone*)0) #else #if defined(SVR4) || defined(VMS) || defined(WIN32) #define X_GETTIMEOFDAY(t) gettimeofday(t) #else #define X_GETTIMEOFDAY(t) gettimeofday(t, (struct timezone*)0) #endif #endif /* XPG4 else */ #ifdef __UNIXOS2__ typedef unsigned long fd_mask; #include #define MAX_PATH _POSIX_PATH_MAX #endif #ifdef __GNU__ #define PATH_MAX 4096 #define MAXPATHLEN 4096 #define OPEN_MAX 256 /* We define a reasonable limit. */ #endif /* use POSIX name for signal */ #if defined(X_NOT_POSIX) && defined(SYSV) && !defined(SIGCHLD) && !defined(ISC) #define SIGCHLD SIGCLD #endif #ifdef ISC #include #include #define NGROUPS 16 #endif #if defined(ISC) || defined(__UNIXOS2__) || \ (defined(linux) && !defined(__GLIBC__)) || \ (defined(__QNX__) && !defined(UNIXCONN)) /* * Some OS's may not have this */ #define X_NO_SYS_UN 1 struct sockaddr_un { short sun_family; char sun_path[108]; }; #endif #include #endif /* _XOS_H_ */ @ 1.1 log @Initial revision @ text @d2 1 a2 1 * $TOG: Xos.h /main/71 1998/02/09 11:18:52 kaleb $ d7 5 a11 1 All Rights Reserved. d30 1 a30 1 /* $XFree86: xc/include/Xos.h,v 3.26 1998/10/25 07:11:11 dawes Exp $ */ d54 1 a54 1 #if defined(_POSIX_SOURCE) && (defined(MOTOROLA) || defined(AMOEBA)) d63 8 d136 1 a136 1 #ifdef X_NOT_POSIX a157 5 #ifdef CSRG_BASED #include #include #endif /* CSRG_BASED */ d159 1 a159 1 * Get struct timeval d162 1 a162 1 #ifdef SYSV d214 1 a214 1 #elif defined(AMOEBA) d216 5 a221 1 #elif defined(MINIX) || defined(_SEQUENT_) || defined(Lynx) d225 1 d241 1 a241 34 #ifdef MINIX #include #include #include #include #include struct sockaddr { u16_t sa_family; char sa_data[14]; }; struct sockaddr_in { u16_t sin_family; u16_t sin_port; struct { ipaddr_t s_addr; } sin_addr; char sin_zero[8]; }; struct in_addr { ipaddr_t s_addr; }; typedef char *caddr_t; typedef unsigned char u_char; #endif /* MINIX */ #ifdef __EMX__ d264 3 a266 1 #if defined(ISC) || defined(__EMX__) @ 1.1.1.1 log @Import XFree 3.9.16 @ text @@ 1.1.1.1.4.1 log @ All the changes to get the trunk (which includes 3.9.17) onto the tdfx-1-1 branch. @ text @d26 1 a26 1 /* $XFree86: xc/include/Xos.h,v 3.27 1999/12/27 00:39:19 robin Exp $ */ a212 8 #ifdef __QNX__ typedef unsigned long fd_mask; /* Make sure we get 256 bit select masks */ #define FD_SETSIZE 256 #include #include #include #else a213 1 #endif /* QNX */ d285 1 a285 1 #if defined(ISC) || defined(__EMX__) || (defined(__QNX__) && !defined(UNIXCONN)) @ 1.1.1.2 log @Import of XFree86 3.9.17 @ text @d26 1 a26 1 /* $XFree86: xc/include/Xos.h,v 3.27 1999/12/27 00:39:19 robin Exp $ */ a212 8 #ifdef __QNX__ typedef unsigned long fd_mask; /* Make sure we get 256 bit select masks */ #define FD_SETSIZE 256 #include #include #include #else a213 1 #endif /* QNX */ d285 1 a285 1 #if defined(ISC) || defined(__EMX__) || (defined(__QNX__) && !defined(UNIXCONN)) @ 1.1.1.2.38.1 log @ Merge the trunk onto the tdfx-2-1 branch. Now up to date with 4.0.1. @ text @d26 1 a26 1 /* $XFree86: xc/include/Xos.h,v 3.28 2000/04/05 18:13:15 dawes Exp $ */ d294 1 a294 1 #if defined(ISC) || (defined(__QNX__) && !defined(UNIXCONN)) @ 1.1.1.2.38.2 log @Merge trunk into tdfx-2-1-branch @ text @d26 1 a26 1 /* $XFree86: xc/include/Xos.h,v 3.30 2000/08/10 17:40:27 dawes Exp $ */ d124 1 a124 1 #if defined(X_NOT_POSIX) && !defined(__CYGWIN__) d294 1 a294 1 #if defined(ISC) || (defined(__QNX__) && !defined(UNIXCONN)) || defined(__CYGWIN__) @ 1.1.1.3 log @Import of XFree86 4.0.1 @ text @d26 1 a26 1 /* $XFree86: xc/include/Xos.h,v 3.28 2000/04/05 18:13:15 dawes Exp $ */ d294 1 a294 1 #if defined(ISC) || (defined(__QNX__) && !defined(UNIXCONN)) @ 1.1.1.3.6.1 log @merge trunk to ppc-1-0-0-branch @ text @d26 1 a26 1 /* $XFree86: xc/include/Xos.h,v 3.30 2000/08/10 17:40:27 dawes Exp $ */ d124 1 a124 1 #if defined(X_NOT_POSIX) && !defined(__CYGWIN__) d294 1 a294 1 #if defined(ISC) || (defined(__QNX__) && !defined(UNIXCONN)) || defined(__CYGWIN__) @ 1.1.1.4 log @Import of XFree86 4.0.1b @ text @d26 1 a26 1 /* $XFree86: xc/include/Xos.h,v 3.30 2000/08/10 17:40:27 dawes Exp $ */ d124 1 a124 1 #if defined(X_NOT_POSIX) && !defined(__CYGWIN__) d294 1 a294 1 #if defined(ISC) || (defined(__QNX__) && !defined(UNIXCONN)) || defined(__CYGWIN__) @ 1.1.1.5 log @Import of XFree86 4.0.1d-pre @ text @d26 1 a26 1 /* $XFree86: xc/include/Xos.h,v 3.29 2000/08/09 23:40:11 dawes Exp $ */ @ 1.1.1.6 log @Import of XFree86 4.0.1d-pre (2) @ text @d26 1 a26 1 /* $XFree86: xc/include/Xos.h,v 3.30 2000/08/10 17:40:27 dawes Exp $ */ @ 1.1.1.6.20.1 log @Initial merge of trunk onto branch. @ text @d2 1 a2 1 * $Xorg: Xos.h,v 1.5 2000/08/18 04:05:44 coskrey Exp $ d26 1 a26 1 /* $XFree86: xc/include/Xos.h,v 3.32 2001/02/15 18:20:28 dawes Exp $ */ a58 8 #ifdef _SEQUENT_ /* * in_systm.h compatibility between SysV and BSD types u_char u_short u_long * select.h for typedef of args to select, fd_set, may use SVR4 later */ #include #include #endif /* _SEQUENT_ */ d152 1 a152 1 * Get struct timeval and struct tm d155 1 a155 1 #if defined(SYSV) && !defined(_SEQUENT_) d212 2 a213 1 #elif defined (__QNX__) d222 1 a222 1 #include @ 1.1.1.6.20.2 log @merge from DRI trunk (first pass) @ text @d26 1 a26 1 /* $XFree86: xc/include/Xos.h,v 3.33 2001/04/16 20:33:08 tsi Exp $ */ d301 1 a301 4 #if defined(ISC) || \ (defined(linux) && !defined(__GLIBC__)) || \ (defined(__QNX__) && !defined(UNIXCONN)) || \ defined(__CYGWIN__) @ 1.1.1.7 log @Import of XFree86 4.0.99.1 @ text @d2 1 a2 1 * $Xorg: Xos.h,v 1.5 2000/08/18 04:05:44 coskrey Exp $ d26 1 a26 1 /* $XFree86: xc/include/Xos.h,v 3.32 2001/02/15 18:20:28 dawes Exp $ */ a58 8 #ifdef _SEQUENT_ /* * in_systm.h compatibility between SysV and BSD types u_char u_short u_long * select.h for typedef of args to select, fd_set, may use SVR4 later */ #include #include #endif /* _SEQUENT_ */ d152 1 a152 1 * Get struct timeval and struct tm d155 1 a155 1 #if defined(SYSV) && !defined(_SEQUENT_) d212 2 a213 1 #elif defined (__QNX__) d222 1 a222 1 #include @ 1.1.1.7.4.1 log @merge 4.0.99.3 (from trunk) into bsd-2-0-0-branch @ text @d26 1 a26 1 /* $XFree86: xc/include/Xos.h,v 3.33 2001/04/16 20:33:08 tsi Exp $ */ d301 1 a301 4 #if defined(ISC) || \ (defined(linux) && !defined(__GLIBC__)) || \ (defined(__QNX__) && !defined(UNIXCONN)) || \ defined(__CYGWIN__) @ 1.1.1.7.4.2 log @merge from trunk. @ text @d26 1 a26 1 /* $XFree86: xc/include/Xos.h,v 3.34 2001/07/23 13:15:40 dawes Exp $ */ d50 1 a50 1 #if defined(_POSIX_SOURCE) && defined(MOTOROLA) d215 4 a218 1 #elif defined(_SEQUENT_) || defined(Lynx) d244 33 @ 1.1.1.8 log @Import of XFree86 4.0.99.3 @ text @d26 1 a26 1 /* $XFree86: xc/include/Xos.h,v 3.33 2001/04/16 20:33:08 tsi Exp $ */ d301 1 a301 4 #if defined(ISC) || \ (defined(linux) && !defined(__GLIBC__)) || \ (defined(__QNX__) && !defined(UNIXCONN)) || \ defined(__CYGWIN__) @ 1.1.1.9 log @Import of XFree86 4.1.99.1 @ text @d26 1 a26 1 /* $XFree86: xc/include/Xos.h,v 3.34 2001/07/23 13:15:40 dawes Exp $ */ d50 1 a50 1 #if defined(_POSIX_SOURCE) && defined(MOTOROLA) d215 4 a218 1 #elif defined(_SEQUENT_) || defined(Lynx) d244 33 @ 1.1.1.9.2.1 log @Initial merge of trunk into mesa-4-0 branch. @ text @d2 1 a2 1 * $Xorg: Xos.h,v 1.6 2001/02/09 02:03:22 xorgcvs Exp $ d7 1 a7 5 Permission to use, copy, modify, distribute, and sell this software and its documentation for any purpose is hereby granted without fee, provided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in supporting documentation. d26 1 a26 1 /* $XFree86: xc/include/Xos.h,v 3.36 2001/12/14 19:53:26 dawes Exp $ */ d132 1 a132 1 #if defined(X_NOT_POSIX) d267 2 a268 1 (defined(__QNX__) && !defined(UNIXCONN)) @ 1.1.1.10 log @Import of XFree86 4.2.0 @ text @d2 1 a2 1 * $Xorg: Xos.h,v 1.6 2001/02/09 02:03:22 xorgcvs Exp $ d7 1 a7 5 Permission to use, copy, modify, distribute, and sell this software and its documentation for any purpose is hereby granted without fee, provided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in supporting documentation. d26 1 a26 1 /* $XFree86: xc/include/Xos.h,v 3.36 2001/12/14 19:53:26 dawes Exp $ */ d132 1 a132 1 #if defined(X_NOT_POSIX) d267 2 a268 1 (defined(__QNX__) && !defined(UNIXCONN)) @ 1.1.1.10.38.1 log @merge from trunk @ text @d30 1 a30 1 /* $XFree86: xc/include/Xos.h,v 3.38 2002/05/31 18:45:39 dawes Exp $ */ d158 5 d246 1 a246 1 #ifdef __UNIXOS2__ @ 1.1.1.10.36.1 log @Massive merge from trunk. @ text @d30 1 a30 1 /* $XFree86: xc/include/Xos.h,v 3.38 2002/05/31 18:45:39 dawes Exp $ */ d158 5 d246 1 a246 1 #ifdef __UNIXOS2__ @ 1.1.1.11 log @Import of XFree86 4.2.99.2 @ text @d30 1 a30 1 /* $XFree86: xc/include/Xos.h,v 3.38 2002/05/31 18:45:39 dawes Exp $ */ d158 5 d246 1 a246 1 #ifdef __UNIXOS2__ @