-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdup.h
More file actions
30 lines (22 loc) · 528 Bytes
/
dup.h
File metadata and controls
30 lines (22 loc) · 528 Bytes
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
/* dup.h */
/* misc. prototypes for dup-related functions */
#ifndef __DUP_H__
#define __DUP_H__ 1
/* from dup.c: */
#ifndef rpl_dup
int rpl_dup(int fd);
#endif /* !rpl_dup */
/* from dup2.c: */
#ifndef rpl_dup2
int rpl_dup2(int fd, int desired_fd);
#endif /* !rpl_dup2 */
/* from dup3.c: */
#ifndef dup3
int dup3(int oldfd, int newfd, int flags);
#endif /* !dup3 */
/* from dup-safer-flag.c: */
#ifndef dup_safer_flag
int dup_safer_flag(int fd, int flag);
#endif /* !dup_safer_flag */
#endif /* !__DUP_H__ */
/* EOF */