3 #ifndef _IOSTUFF_H_INCLUDED_
4 #define _IOSTUFF_H_INCLUDED_
10 /* miscellaneous I/O primitives
12 /* #include <iostuff.h>
18 extern int non_blocking(int, int);
19 extern int close_on_exec(int, int);
20 extern int open_limit(int);
21 extern int readable(int);
22 extern int writable(int);
23 extern off_t
get_file_limit(void);
24 extern void set_file_limit(off_t
);
25 extern ssize_t
peekfd(int);
26 extern int read_wait(int, int);
27 extern int write_wait(int, int);
28 extern ssize_t
write_buf(int, const char *, ssize_t
, int);
29 extern ssize_t
timed_read(int, void *, size_t, int, void *);
30 extern ssize_t
timed_write(int, void *, size_t, int, void *);
31 extern void doze(unsigned);
32 extern void rand_sleep(unsigned, unsigned);
33 extern int duplex_pipe(int *);
34 extern int stream_recv_fd(int);
35 extern int stream_send_fd(int, int);
36 extern int unix_recv_fd(int);
37 extern int unix_send_fd(int, int);
38 extern ssize_t
dummy_read(int, void *, size_t, int, void *);
39 extern ssize_t
dummy_write(int, void *, size_t, int, void *);
41 extern int inet_windowsize
;
42 extern void set_inet_windowsize(int, int);
45 #define NON_BLOCKING 1
47 #define CLOSE_ON_EXEC 1
48 #define PASS_ON_EXEC 0
53 /* The Secure Mailer license must be distributed with this software.
56 /* IBM T.J. Watson Research
58 /* Yorktown Heights, NY 10598, USA
60 /* Sat Jan 25 16:54:13 EST 1997