From: Matthew Fernandez Date: Thu, 1 Jul 2021 00:24:51 +0000 (-0700) Subject: remove unused SETCLOEXEC and FD_CLOEXEC X-Git-Tag: 2.48.0~18^2~1 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=73a46efa3c40fb51b1d82f9ab043217e1f22589f;p=graphviz remove unused SETCLOEXEC and FD_CLOEXEC The last use of these was removed in f552c0dece1435773de62334dee3310d1728e22f. --- 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