view modules/dup @ 17935:0ad1f4c9eed5 default tip

tests: support stderr verification with returns_() * tests/init.sh (returns_): Disable tracing for this wrapper function, so that stderr of the wrapped command is unchanged, allowing for verification of the contents.
author Pádraig Brady <P@draigBrady.com>
date Mon, 16 Feb 2015 17:20:39 +0000
parents 1f14c6dd175d
children
line wrap: on
line source

Description:
dup() function: duplicate an open file descriptor.

Files:
lib/dup.c
m4/dup.m4

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

configure.ac:
gl_FUNC_DUP
if test $REPLACE_DUP = 1; then
  AC_LIBOBJ([dup])
  gl_PREREQ_DUP
fi
gl_UNISTD_MODULE_INDICATOR([dup])

Makefile.am:

Include:
<unistd.h>

License:
LGPLv2+

Maintainer:
all