view modules/dup3 @ 14730:f0a9a2cd267c

fclose: preserve fflush errors Caught by gcc -Werror=unused-but-set-variable. * lib/fclose.c (rpl_fclose): Don't lose fflush errors. Reported by Jim Meyering. Signed-off-by: Eric Blake <eblake@redhat.com>
author Eric Blake <eblake@redhat.com>
date Wed, 11 May 2011 11:35:06 -0600
parents 1f4382233fbe
children
line wrap: on
line source

Description:
dup3() function: copy a file descriptor, applying specific flags.

Files:
lib/dup3.c
m4/dup3.m4

Depends-on:
unistd
fcntl
binary-io
getdtablesize
extensions

configure.ac:
gl_FUNC_DUP3
gl_UNISTD_MODULE_INDICATOR([dup3])

Makefile.am:
lib_SOURCES += dup3.c

Include:
<unistd.h>

License:
LGPL

Maintainer:
Bruno Haible, Jim Meyering