summaryrefslogtreecommitdiff
path: root/modules/dup2
blob: acbc017069befd558726f7dd9fb4dc442145c3d2 (plain)
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
Description:
dup2() function: duplicate an open file descriptor.

Files:
lib/dup2.c
m4/dup2.m4

Depends-on:
unistd
msvc-inval      [test $REPLACE_DUP2 = 1]
msvc-nothrow    [test $REPLACE_DUP2 = 1]

configure.ac:
gl_FUNC_DUP2
gl_CONDITIONAL([GL_COND_OBJ_DUP2], [test $REPLACE_DUP2 = 1])
AM_COND_IF([GL_COND_OBJ_DUP2], [
  gl_PREREQ_DUP2
])
gl_UNISTD_MODULE_INDICATOR([dup2])

Makefile.am:
if GL_COND_OBJ_DUP2
lib_SOURCES += dup2.c
endif

Include:
<unistd.h>

License:
LGPLv2+

Maintainer:
Paul Eggert, Jim Meyering