Edit File by line
/home/barbar84/www/wp-conte.../plugins/sujqvwi/ExeBy/exe_root.../usr/include/X11
File: Xos.h
/*
[0] Fix | Delete
*
[1] Fix | Delete
Copyright 1987, 1998 The Open Group
[2] Fix | Delete
[3] Fix | Delete
Permission to use, copy, modify, distribute, and sell this software and its
[4] Fix | Delete
documentation for any purpose is hereby granted without fee, provided that
[5] Fix | Delete
the above copyright notice appear in all copies and that both that
[6] Fix | Delete
copyright notice and this permission notice appear in supporting
[7] Fix | Delete
documentation.
[8] Fix | Delete
[9] Fix | Delete
The above copyright notice and this permission notice shall be included in
[10] Fix | Delete
all copies or substantial portions of the Software.
[11] Fix | Delete
[12] Fix | Delete
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
[13] Fix | Delete
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
[14] Fix | Delete
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
[15] Fix | Delete
OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
[16] Fix | Delete
AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
[17] Fix | Delete
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
[18] Fix | Delete
[19] Fix | Delete
Except as contained in this notice, the name of The Open Group shall not be
[20] Fix | Delete
used in advertising or otherwise to promote the sale, use or other dealings
[21] Fix | Delete
in this Software without prior written authorization from The Open Group.
[22] Fix | Delete
*
[23] Fix | Delete
* The X Window System is a Trademark of The Open Group.
[24] Fix | Delete
*
[25] Fix | Delete
*/
[26] Fix | Delete
[27] Fix | Delete
/* This is a collection of things to try and minimize system dependencies
[28] Fix | Delete
* in a "significant" number of source files.
[29] Fix | Delete
*/
[30] Fix | Delete
[31] Fix | Delete
#ifndef _XOS_H_
[32] Fix | Delete
# define _XOS_H_
[33] Fix | Delete
[34] Fix | Delete
# include <X11/Xosdefs.h>
[35] Fix | Delete
[36] Fix | Delete
/*
[37] Fix | Delete
* Get major data types (esp. caddr_t)
[38] Fix | Delete
*/
[39] Fix | Delete
[40] Fix | Delete
# include <sys/types.h>
[41] Fix | Delete
[42] Fix | Delete
# if defined(__SCO__) || defined(__UNIXWARE__)
[43] Fix | Delete
# include <stdint.h>
[44] Fix | Delete
# endif
[45] Fix | Delete
[46] Fix | Delete
[47] Fix | Delete
/*
[48] Fix | Delete
* Just about everyone needs the strings routines. We provide both forms here,
[49] Fix | Delete
* index/rindex and strchr/strrchr, so any systems that don't provide them all
[50] Fix | Delete
* need to have #defines here.
[51] Fix | Delete
*
[52] Fix | Delete
* These macros are defined this way, rather than, e.g.:
[53] Fix | Delete
* #defined index(s,c) strchr(s,c)
[54] Fix | Delete
* because someone might be using them as function pointers, and such
[55] Fix | Delete
* a change would break compatibility for anyone who's relying on them
[56] Fix | Delete
* being the way they currently are. So we're stuck with them this way,
[57] Fix | Delete
* which can be really inconvenient. :-(
[58] Fix | Delete
*/
[59] Fix | Delete
[60] Fix | Delete
# include <string.h>
[61] Fix | Delete
# if defined(__SCO__) || defined(__UNIXWARE__) || defined(__sun) || defined(__CYGWIN__) || defined(_AIX) || defined(__APPLE__)
[62] Fix | Delete
# include <strings.h>
[63] Fix | Delete
# else
[64] Fix | Delete
# ifndef index
[65] Fix | Delete
# define index(s,c) (strchr((s),(c)))
[66] Fix | Delete
# endif
[67] Fix | Delete
# ifndef rindex
[68] Fix | Delete
# define rindex(s,c) (strrchr((s),(c)))
[69] Fix | Delete
# endif
[70] Fix | Delete
# endif
[71] Fix | Delete
[72] Fix | Delete
/*
[73] Fix | Delete
* Get open(2) constants
[74] Fix | Delete
*/
[75] Fix | Delete
# if defined(X_NOT_POSIX)
[76] Fix | Delete
# include <fcntl.h>
[77] Fix | Delete
# if defined(USL) || defined(__i386__) && (defined(SYSV) || defined(SVR4))
[78] Fix | Delete
# include <unistd.h>
[79] Fix | Delete
# endif
[80] Fix | Delete
# ifdef WIN32
[81] Fix | Delete
# include <X11/Xw32defs.h>
[82] Fix | Delete
# else
[83] Fix | Delete
# include <sys/file.h>
[84] Fix | Delete
# endif
[85] Fix | Delete
# else /* X_NOT_POSIX */
[86] Fix | Delete
# include <fcntl.h>
[87] Fix | Delete
# include <unistd.h>
[88] Fix | Delete
# endif /* X_NOT_POSIX else */
[89] Fix | Delete
[90] Fix | Delete
/*
[91] Fix | Delete
* Get struct timeval and struct tm
[92] Fix | Delete
*/
[93] Fix | Delete
[94] Fix | Delete
# if defined(_POSIX_SOURCE) && defined(SVR4)
[95] Fix | Delete
/* need to omit _POSIX_SOURCE in order to get what we want in SVR4 */
[96] Fix | Delete
# undef _POSIX_SOURCE
[97] Fix | Delete
# include <sys/time.h>
[98] Fix | Delete
# define _POSIX_SOURCE
[99] Fix | Delete
# elif defined(WIN32)
[100] Fix | Delete
# include <time.h>
[101] Fix | Delete
# if !defined(_WINSOCKAPI_) && !defined(_WILLWINSOCK_) && !defined(_TIMEVAL_DEFINED) && !defined(_STRUCT_TIMEVAL)
[102] Fix | Delete
struct timeval {
[103] Fix | Delete
long tv_sec; /* seconds */
[104] Fix | Delete
long tv_usec; /* and microseconds */
[105] Fix | Delete
};
[106] Fix | Delete
# define _TIMEVAL_DEFINED
[107] Fix | Delete
# endif
[108] Fix | Delete
# include <sys/timeb.h>
[109] Fix | Delete
# define gettimeofday(t) \
[110] Fix | Delete
{ \
[111] Fix | Delete
struct _timeb _gtodtmp; \
[112] Fix | Delete
_ftime (&_gtodtmp); \
[113] Fix | Delete
(t)->tv_sec = _gtodtmp.time; \
[114] Fix | Delete
(t)->tv_usec = _gtodtmp.millitm * 1000; \
[115] Fix | Delete
}
[116] Fix | Delete
# else
[117] Fix | Delete
# include <sys/time.h>
[118] Fix | Delete
# include <time.h>
[119] Fix | Delete
# endif /* defined(_POSIX_SOURCE) && defined(SVR4) */
[120] Fix | Delete
[121] Fix | Delete
/* define X_GETTIMEOFDAY macro, a portable gettimeofday() */
[122] Fix | Delete
# if defined(_XOPEN_XPG4) || defined(_XOPEN_UNIX) /* _XOPEN_UNIX is XPG4.2 */
[123] Fix | Delete
# define X_GETTIMEOFDAY(t) gettimeofday(t, (struct timezone*)0)
[124] Fix | Delete
# else
[125] Fix | Delete
# if defined(SVR4) || defined(__SVR4) || defined(WIN32)
[126] Fix | Delete
# define X_GETTIMEOFDAY(t) gettimeofday(t)
[127] Fix | Delete
# else
[128] Fix | Delete
# define X_GETTIMEOFDAY(t) gettimeofday(t, (struct timezone*)0)
[129] Fix | Delete
# endif
[130] Fix | Delete
# endif /* XPG4 else */
[131] Fix | Delete
[132] Fix | Delete
[133] Fix | Delete
# ifdef __GNU__
[134] Fix | Delete
# define PATH_MAX 4096
[135] Fix | Delete
# define MAXPATHLEN 4096
[136] Fix | Delete
# define OPEN_MAX 256 /* We define a reasonable limit. */
[137] Fix | Delete
# endif
[138] Fix | Delete
[139] Fix | Delete
/* use POSIX name for signal */
[140] Fix | Delete
# if defined(X_NOT_POSIX) && defined(SYSV) && !defined(SIGCHLD)
[141] Fix | Delete
# define SIGCHLD SIGCLD
[142] Fix | Delete
# endif
[143] Fix | Delete
[144] Fix | Delete
# include <X11/Xarch.h>
[145] Fix | Delete
[146] Fix | Delete
#endif /* _XOS_H_ */
[147] Fix | Delete
[148] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function