From 73a46efa3c40fb51b1d82f9ab043217e1f22589f Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Wed, 30 Jun 2021 17:24:51 -0700 Subject: [PATCH] remove unused SETCLOEXEC and FD_CLOEXEC The last use of these was removed in f552c0dece1435773de62334dee3310d1728e22f. --- lib/sfio/sfhdr.h | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/lib/sfio/sfhdr.h b/lib/sfio/sfhdr.h index e7a90bd4e..3d8eef3d4 100644 --- a/lib/sfio/sfhdr.h +++ b/lib/sfio/sfhdr.h @@ -190,19 +190,6 @@ extern "C" { #define SF_CREATMODE 0666 #endif -/* set close-on-exec */ -#ifdef F_SETFD -# ifndef FD_CLOEXEC -# define FD_CLOEXEC 1 -# endif /*FD_CLOEXEC */ -# define SETCLOEXEC(fd) ((void)fcntl((fd),F_SETFD,FD_CLOEXEC)) -#else -# ifdef FIOCLEX -# define SETCLOEXEC(fd) ((void)ioctl((fd),FIOCLEX,0)) -# else -# define SETCLOEXEC(fd) -# endif /*FIOCLEX*/ -#endif /*F_SETFD */ /* a couple of error number that we use, default values are like Linux */ #ifndef EINTR #define EINTR 4 -- 2.40.0