File: bsdport.h

package info (click to toggle)
bsd-ftpd 0.3.3-11
  • links: PTS
  • area: main
  • in suites: woody
  • size: 464 kB
  • ctags: 468
  • sloc: ansic: 4,055; yacc: 1,529; sh: 156; makefile: 88
file content (28 lines) | stat: -rw-r--r-- 673 bytes parent folder | download
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
#ifndef ORIGINAL_SOURCE

/* arc4random() is a BSD feature */

u_int32_t arc4random(void);

/* strvis() is a BSD feature */

#define VIS_SAFE        0x20    /* only encode "unsafe" characters */
#define VIS_NOSLASH     0x40    /* inhibit printing '\' */

extern int strvis (char *dst, char *src, int flag);

/* hosts_ctl() doesn't seem to have a prototype anywhere */

int hosts_ctl(char *daemon, char *client_name, char *client_addr,
	char *client_user);

/* Some types which don't exist under Linux */

typedef unsigned int useconds_t;
typedef u_int16_t in_port_t;

#ifndef SA_LEN
#define SA_LEN(_x) __libc_sa_len((_x)->sa_family)
#endif

#endif /* not ORIGINAL_SOURCE */