Download include/X11/Xos.h from michaelu0826/phantom_env: direct link, hf CLI and curl.
- Browser
- Download file 4.39 kB
-
https://huggingface.co/datasets/michaelu0826/phantom_env/resolve/main/include/X11/Xos.h
- Command line
-
hf download hf://datasets/michaelu0826/phantom_env/include/X11/Xos.h
-
curl -L -o Xos.h https://huggingface.co/datasets/michaelu0826/phantom_env/resolve/main/include/X11/Xos.h
4.39 kB
| /* | |
| * | |
| 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. | |
| * | |
| */ | |
| /* This is a collection of things to try and minimize system dependencies | |
| * in a "significant" number of source files. | |
| */ | |
| /* | |
| * Get major data types (esp. caddr_t) | |
| */ | |
| /* | |
| * 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. :-( | |
| */ | |
| /* | |
| * Get open(2) constants | |
| */ | |
| /* | |
| * Get struct timeval and struct tm | |
| */ | |
| /* need to omit _POSIX_SOURCE in order to get what we want in SVR4 */ | |
| struct timeval { | |
| long tv_sec; /* seconds */ | |
| long tv_usec; /* and microseconds */ | |
| }; | |
| /* define X_GETTIMEOFDAY macro, a portable gettimeofday() */ | |
| /* use POSIX name for signal */ | |