1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-02 08:42:48 +00:00

Use the closefrom(2) system call.

Reviewed by:	des
This commit is contained in:
John Baldwin 2009-06-16 15:30:10 +00:00
parent 01ed174831
commit 5d54b264b7
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=194297
3 changed files with 2 additions and 3 deletions

View File

@ -211,7 +211,7 @@
#define HAVE_CLOCK_T 1
/* Define to 1 if you have the `closefrom' function. */
/* #undef HAVE_CLOSEFROM */
#define HAVE_CLOSEFROM 1
/* Define if gai_strerror() returns const char * */
#define HAVE_CONST_GAI_STRERROR_PROTO 1

View File

@ -153,7 +153,6 @@
#define ciphers_valid ssh_ciphers_valid
#define cleanhostname ssh_cleanhostname
#define cleanup_exit ssh_cleanup_exit
#define closefrom ssh_closefrom
#define colon ssh_colon
#define compat_cipher_proposal ssh_compat_cipher_proposal
#define compat_datafellows ssh_compat_datafellows

View File

@ -19,7 +19,7 @@ SRCS= acss.c authfd.c authfile.c bufaux.c bufbn.c buffer.c \
# compiled directly into sshd instead.
# Portability layer
SRCS+= bsd-closefrom.c bsd-misc.c fmt_scaled.c getrrsetbyname.c \
SRCS+= bsd-misc.c fmt_scaled.c getrrsetbyname.c \
openssl-compat.c port-tun.c strtonum.c vis.c xcrypt.c xmmap.c
# FreeBSD additions
SRCS+= version.c