/usr/include/xview_private/ultrix_cpt.h is in xviewg-dev 3.2p1.4-28.1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 | /* @(#)ultrix_cpt.h 1.11 93/06/28 SMI */
/*
* Ultrix 2.X, SunOS 3.X, BSD 4.2 Compatibility Header File
*
* This file provides a limited compatibility with older BSD variants
* that do not provide macros for dealing with fd sets.
*
* BIG NOTE!!! This will only allow fd_sets of 32 bits (assuming that's
* the size of an int)
*
*/
#ifndef xview_ultrix_compat_DEFINED
#define xview_ultrix_compat_DEFINED
#ifdef OLD_BSD_FDSETS
#ifndef NBBY
#define NBBY 8 /* number of bits in a byte */
#endif
#ifndef NFDBITS
#define NFDBITS (sizeof(int) * NBBY)
#define I_DEFINED_NFDBITS /* register the fact that I defined this */
#endif
#ifndef FD_SETSIZE
#define FD_SETSIZE NFDBITS
#define I_DEFINED_FDSETSIZE /* register the fact that I defined this */
#endif
/*
* Here we assume that the only use of howmany(x, y) is
* howmany(FD_SETSIZE, NFDBITS). If we defined both FD_SETSIZE and
* NFDBITS, then we already know what howmany(x, y) will be: 1.
* If we did not define FD_SETSIZE and NFDBITS, then we'll have
* to calculate the value of howmany(x, y).
*/
#if defined(I_DEFINED_FDSETSIZE) && defined(I_DEFINED_NFDBITS)
#define howmany(x, y) 1
#else
#define howmany(x, y) (((x)+((y)-1))/(y))
#endif
#define FD_SET(n, p) ((p)->fds_bits[0] |= (1 << ((n) % NFDBITS)))
#define FD_CLR(n, p) ((p)->fds_bits[0] &= ~(1 << ((n) % NFDBITS)))
#define FD_ISSET(n, p) ((p)->fds_bits[0] & (1 << ((n) % NFDBITS)))
#define FD_ZERO(p) ((p)->fds_bits[0] = 0)
#endif /* OLD_BSD_FDSETS */
#endif /* ~xview_ultrix_compat_DEFINED */
|