~vcs-imports/mammoth-replicator/trunk

« back to all changes in this revision

Viewing changes to src/include/port/ultrix4.h

  • Committer: alvherre
  • Date: 2005-12-16 21:24:52 UTC
  • Revision ID: svn-v4:db760fc0-0f08-0410-9d63-cc6633f64896:trunk:1
Initial import of the REL8_0_3 sources from the Pgsql CVS repository.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#define NOFIXADE
 
2
#define NEED_STRDUP
 
3
 
 
4
#ifndef                 BIG_ENDIAN
 
5
#define                 BIG_ENDIAN              4321
 
6
#endif
 
7
#ifndef                 LITTLE_ENDIAN
 
8
#define                 LITTLE_ENDIAN   1234
 
9
#endif
 
10
#ifndef                 PDP_ENDIAN
 
11
#define                 PDP_ENDIAN              3412
 
12
#endif
 
13
#ifndef                 BYTE_ORDER
 
14
#define                 BYTE_ORDER              LITTLE_ENDIAN
 
15
#endif
 
16
 
 
17
/*
 
18
 * Except for those system calls and library functions that are either
 
19
 * - covered by the C standard library and Posix.1
 
20
 * - or need a declaration to declare parameter or return types,
 
21
 * most Ultrix 4 calls are not declared in the system header files.
 
22
 * The rest of this header is used to remedy this for PostgreSQL to give a
 
23
 * warning-free compilation.
 
24
 */
 
25
 
 
26
#include <sys/types.h>                  /* Declare various types, e.g. size_t,
 
27
                                                                 * fd_set */
 
28
 
 
29
extern int      fp_class_d(double);
 
30
extern long random(void);
 
31
 
 
32
struct rusage;
 
33
extern int      getrusage(int, struct rusage *);
 
34
 
 
35
extern int      ioctl(int, unsigned long,...);
 
36
 
 
37
extern int      socket(int, int, int);
 
38
struct sockaddr;
 
39
extern int      connect(int, const struct sockaddr *, int);
 
40
typedef int ssize_t;
 
41
extern ssize_t send(int, const void *, size_t, int);
 
42
extern ssize_t recv(int, void *, size_t, int);
 
43
extern int      setsockopt(int, int, int, const void *, int);
 
44
extern int      bind(int, const struct sockaddr *, int);
 
45
extern int      listen(int, int);
 
46
extern int      accept(int, struct sockaddr *, int *);
 
47
extern int      getsockname(int, struct sockaddr *, int *);
 
48
extern ssize_t recvfrom(int, void *, size_t, int, struct sockaddr *, int *);
 
49
extern ssize_t sendto(int, const void *, size_t, int, const struct sockaddr *, int);
 
50
struct timeval;
 
51
extern int      select(int, fd_set *, fd_set *, fd_set *, struct timeval *);
 
52
 
 
53
extern int      gethostname(char *, int);
 
54
 
 
55
extern int      getopt(int, char *const *, const char *);
 
56
extern int      putenv(const char *);
 
57
 
 
58
struct itimerval;
 
59
extern int      setitimer(int, const struct itimerval *, struct itimerval *);
 
60
struct timezone;
 
61
extern int      gettimeofday(struct timeval *, struct timezone *);
 
62
 
 
63
extern int      fsync(int);
 
64
extern int      ftruncate(int, off_t);
 
65
 
 
66
extern char *crypt(char *, char *);
 
67
 
 
68
/* End of ultrix4.h */