diff options
Diffstat (limited to 'usr/src/lib/libnsl/common/nsl_stdio_prv.c')
-rw-r--r-- | usr/src/lib/libnsl/common/nsl_stdio_prv.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/usr/src/lib/libnsl/common/nsl_stdio_prv.c b/usr/src/lib/libnsl/common/nsl_stdio_prv.c index 37049d1963..efa8388262 100644 --- a/usr/src/lib/libnsl/common/nsl_stdio_prv.c +++ b/usr/src/lib/libnsl/common/nsl_stdio_prv.c @@ -19,14 +19,15 @@ * * CDDL HEADER END */ + /* - * Copyright 2004 Sun Microsystems, Inc. All rights reserved. + * Copyright 2006 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ - #pragma ident "%Z%%M% %I% %E% SMI" +#include "mt.h" #include <stdlib.h> #include <fcntl.h> #include <errno.h> @@ -60,12 +61,12 @@ _raise_fd(int fd) if (fd >= min_fd) return (fd); - if ((nfd = _fcntl(fd, F_DUPFD, min_fd)) == -1) { + if ((nfd = fcntl(fd, F_DUPFD, min_fd)) == -1) { /* * If the shell limits [See limit(1)] the - * descriptors to 256, _fcntl will fail + * descriptors to 256, fcntl will fail * and errno will be set to EINVAL. Since - * the intention is to ignore _fcntl failures + * the intention is to ignore fcntl failures * and continue working with 'fd', we should * reset errno to _prevent_ apps relying on errno * to treat this as an error. |