/usr/include/xview/sun.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 | /* @(#)sun.h 20.21 93/06/28 SMI */
/*
* (c) Copyright 1989 Sun Microsystems, Inc. Sun design patents
* pending in the U.S. and foreign countries. See LEGAL NOTICE
* file for terms of the license.
*/
#ifndef sunwindow_sun_DEFINED
#define sunwindow_sun_DEFINED
#include <xview/base.h>
#include <sys/types.h>
#include <stdio.h>
#ifndef FALSE
#define FALSE 0
#endif
#ifndef TRUE
#define TRUE 1
#endif
#ifndef Bool_DEFINED
#define Bool int
#define True 1
#define False 0
#endif
#define strequal(s1, s2) (strcmp(s1, s2) == 0)
#define STRDUP(str) (strcpy(xv_malloc((unsigned) strlen(str) + 1), str))
/*
* Get some storage and copy a string. Note that str is evaluated twice,
* so no side effects.
*/
#define ord(e) ((int) (e))
/*
* Make an enum usable as an integer
* Successor or predecessor macros might also be convenient, but
* much less so.
*/
#define FOREVER for (;;)
#ifndef MIN
#define MIN(x, y) ( ((x) < (y)) ? (x) : (y) )
#endif
#ifndef MAX
#define MAX(x, y) ( ((x) > (y)) ? (x) : (y) )
#endif
#endif
|