File: sun_headers.h

package info (click to toggle)
afterstep 2.2.12-18.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 33,184 kB
  • sloc: ansic: 201,695; sh: 5,894; xml: 3,721; makefile: 2,094; perl: 1,558; cpp: 811
file content (65 lines) | stat: -rw-r--r-- 1,757 bytes parent folder | download | duplicates (8)
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
55
56
57
58
59
60
61
62
63
64
65
/**************************************************************************/
/* Prototypes that don't exist on suns */
/* If I do ALL this, I can compile OK with -Wall -Wstrict-prototypes on the
 * Sun's
 */

#if defined(sun) && !defined(SVR4)
#include <sys/types.h>
#include <sys/time.h>
#include <sys/resource.h>

#ifdef __cplusplus
extern "C" {
#endif

extern int select (int, fd_set *, fd_set *, fd_set *, struct timeval *);

extern int system (char *command);
extern int toupper (int);
extern int tolower (int);

/* stdio things */
extern int fputc (char, FILE *);
extern int fgetc (FILE *);
extern int fputs (char *, FILE *);
extern char *mktemp (char *);
extern int pclose (FILE *);
extern int sscanf (char *input, char *format,...);
extern int printf (char *format,...);
extern int fprintf (FILE * file, char *format,...);
extern int fseek (FILE * file, long offset, int);
extern int fclose (FILE * file);
extern int fread (char *data, int size, int count, FILE * file);
extern int fflush (FILE * file);
extern void perror (char *s);

/* string manipulation */
extern int strncasecmp (char *str1, char *str2, int length);
extern int strcasecmp (char *str1, char *str2);
extern int putenv (char *);

/* sunOS defines SIG_IGN, but they get it wrong, as far as GCC
 * is concerned */
#ifdef SIG_IGN
#undef SIG_IGN
#endif
#define SIG_IGN         (void (*)(int))1
int wait3 (int *, int, struct rusage *);
int sigsetmask (int);
int sigblock (int);

int setitimer (int, struct itimerval *, struct itimerval *);
int getitimer (int, struct itimerval *);
int bzero (char *, int);

long time (long *);
int gethostname (char *name, int namelen);
/**************************************************************************/

#ifdef __cplusplus
}
#endif


#endif