From 5a8469f34281cb1675b6270c1d378da92670ad6b Mon Sep 17 00:00:00 2001 From: Jerry Jelinek Date: Tue, 29 Jul 2014 01:25:22 +0000 Subject: OS-3259 ltp fcntl missing F_DUPFD_CLOEXEC --- usr/src/lib/brand/lx/lx_brand/common/fcntl.c | 4 ++++ usr/src/lib/brand/lx/lx_brand/sys/lx_fcntl.h | 1 + 2 files changed, 5 insertions(+) (limited to 'usr/src') diff --git a/usr/src/lib/brand/lx/lx_brand/common/fcntl.c b/usr/src/lib/brand/lx/lx_brand/common/fcntl.c index cc2a8b5d51..fb27102706 100644 --- a/usr/src/lib/brand/lx/lx_brand/common/fcntl.c +++ b/usr/src/lib/brand/lx/lx_brand/common/fcntl.c @@ -170,6 +170,10 @@ lx_fcntl_com(int fd, int cmd, ulong_t arg) rc = fcntl(fd, F_DUPFD, arg); break; + case LX_F_DUPFD_CLOEXEC: + rc = fcntl(fd, F_DUPFD_CLOEXEC, arg); + break; + case LX_F_GETFD: rc = fcntl(fd, F_GETFD, 0); break; diff --git a/usr/src/lib/brand/lx/lx_brand/sys/lx_fcntl.h b/usr/src/lib/brand/lx/lx_brand/sys/lx_fcntl.h index 163909a445..06e05cbf5c 100644 --- a/usr/src/lib/brand/lx/lx_brand/sys/lx_fcntl.h +++ b/usr/src/lib/brand/lx/lx_brand/sys/lx_fcntl.h @@ -74,6 +74,7 @@ extern "C" { #define LX_F_SETLEASE 1024 #define LX_F_GETLEASE 1025 #define LX_F_NOTIFY 1026 +#define LX_F_DUPFD_CLOEXEC 1030 #define LX_F_RDLCK 0 #define LX_F_WRLCK 1 -- cgit v1.2.3