From: Matthew Fernandez Date: Thu, 1 Jul 2021 00:24:33 +0000 (-0700) Subject: remove unused sfio fork/vfork declarations X-Git-Tag: 2.48.0~18^2~8 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d085b0c560083e7c66dc78da3e571eb079d8df68;p=graphviz remove unused sfio fork/vfork declarations The last usage of fork in this library was removed in f552c0dece1435773de62334dee3310d1728e22f. --- diff --git a/lib/sfio/sfhdr.h b/lib/sfio/sfhdr.h index c02483714..fcb3c99ce 100644 --- a/lib/sfio/sfhdr.h +++ b/lib/sfio/sfhdr.h @@ -48,9 +48,6 @@ extern "C" { #undef HAVE_STAT_H #undef _stream_peek #undef _socket_peek -#undef HAVE_VFORK_H -#undef _HAVE_SYS_VFORK_H -#undef HAVE_VFORK #undef HAVE_SYS_IOCTL_H #endif @@ -86,17 +83,6 @@ extern "C" { #define SFMTXSTART(f,v) { if(!f) return(v); } #define SFMTXRETURN(f,v) { return(v); } -/* alternative process forking */ -#if defined(HAVE_VFORK) && !defined(fork) && !defined(sparc) && !defined(__sparc) -#ifdef HAVE_VFORK_H -#include -#endif -#ifdef HAVE_SYS_VFORK_H -#include -#endif -#define fork vfork -#endif - #ifdef HAVE_UNLINK #define remove unlink #endif @@ -662,9 +648,6 @@ extern "C" { extern uint sleep(uint); extern int execl(const char *, const char *, ...); extern int execv(const char *, char **); -#ifndef fork - extern int fork(void); -#endif #ifdef HAVE_UNLINK extern int unlink(const char *); #endif @@ -676,10 +659,6 @@ extern "C" { extern int fstat(int, Stat_t *); #endif -#if defined(HAVE_VFORK) && !defined(HAVE_VFORK_H) && !defined(_HAVE_SYS_VFORK_H) - extern pid_t vfork(void); -#endif /*HAVE_VFORK*/ - #endif /*_SFHDR_H*/ #ifdef __cplusplus }