File: bsd.h

package info (click to toggle)
sendfile 2.1b.20080616-5.2
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 1,568 kB
  • sloc: ansic: 13,128; sh: 4,043; perl: 844; makefile: 145; java: 36; csh: 3
file content (38 lines) | stat: -rw-r--r-- 950 bytes parent folder | download | duplicates (11)
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
/*
 * File:	bsd.h
 *
 * Author:	Ulli Horlacher (framstag@rus.uni-stuttgart.de)
 * 
 * History:	11 Aug 95   Framstag	initial version
 *              19 Nov 96   Framstag	fix for broken AIX include-files
 *
 * missing prototype definitions in the AIX and Ultrix system include files
 *
 * Copyright  1995,1996 Ulli Horlacher
 * This file is covered by the GNU General Public License
 */


#ifndef _BSD
  #define _BSD 43
#endif

int socket(int, int, int);
int connect(int, const struct sockaddr *, int);
int shutdown(int, int);
int getpeername(int, struct sockaddr *, int *);
int getsockname(int, struct sockaddr *, int *);
/* int getopt(int, char **, const char *); */
int chown(const char *, uid_t, gid_t);
int chdir(const char *);
time_t time(time_t *);

#if !defined(HAVE_GETTIMEOFDAY)
#if defined(ULTRIX)
  int gettimeofday(struct timeval *, struct timezone *);
#endif

#if defined(AIX)
  int gettimeofday(struct timeval *, void *);
#endif
#endif