Commit fed44d49 authored by Kurt Zeilenga's avatar Kurt Zeilenga
Browse files

Add some basic detection of restartable syscalls, sigaction,

socketpair.  Use dependent on useful detection is.
parent 6632e41e
/* $OpenLDAP$ */
/* /*
* Copyright 1998,1999 The OpenLDAP Foundation, Redwood City, California, USA * Copyright 1998,1999 The OpenLDAP Foundation, Redwood City, California, USA
* All rights reserved. * All rights reserved.
......
This diff is collapsed.
...@@ -639,12 +639,15 @@ dnl hopefully we won't include too many libraries ...@@ -639,12 +639,15 @@ dnl hopefully we won't include too many libraries
dnl require select dnl require select
AC_CHECK_FUNC(select, :, AC_MSG_ERROR([select() required.])) AC_CHECK_FUNC(select, :, AC_MSG_ERROR([select() required.]))
AC_CHECK_FUNCS(socketpair)
dnl Select arg types dnl Select arg types
dnl (if this detection becomes permenent, it and the select() detection dnl (if this detection becomes permenent, it and the select() detection
dnl should be done before the yielding select test) dnl should be done before the yielding select test)
AC_FUNC_SELECT_ARGTYPES AC_FUNC_SELECT_ARGTYPES
dnl check to see if system call automatically restart
AC_SYS_RESTARTABLE_SYSCALLS
dnl require POSIX regex dnl require POSIX regex
AC_CHECK_HEADERS( regex.h ) AC_CHECK_HEADERS( regex.h )
...@@ -1844,6 +1847,7 @@ AC_CHECK_FUNCS( \ ...@@ -1844,6 +1847,7 @@ AC_CHECK_FUNCS( \
setsid \ setsid \
setuid \ setuid \
seteuid \ seteuid \
sigaction \
signal \ signal \
sigset \ sigset \
snprintf \ snprintf \
......
...@@ -34,6 +34,10 @@ ...@@ -34,6 +34,10 @@
/* Define if you don't have vprintf but do have _doprnt. */ /* Define if you don't have vprintf but do have _doprnt. */
#undef HAVE_DOPRNT #undef HAVE_DOPRNT
/* Define if system calls automatically restart after interruption
by a signal. */
#undef HAVE_RESTARTABLE_SYSCALLS
/* Define if your struct stat has st_blksize. */ /* Define if your struct stat has st_blksize. */
#undef HAVE_ST_BLKSIZE #undef HAVE_ST_BLKSIZE
...@@ -261,6 +265,9 @@ ...@@ -261,6 +265,9 @@
/* Define if you have the setuid function. */ /* Define if you have the setuid function. */
#undef HAVE_SETUID #undef HAVE_SETUID
/* Define if you have the sigaction function. */
#undef HAVE_SIGACTION
/* Define if you have the signal function. */ /* Define if you have the signal function. */
#undef HAVE_SIGNAL #undef HAVE_SIGNAL
...@@ -270,6 +277,9 @@ ...@@ -270,6 +277,9 @@
/* Define if you have the snprintf function. */ /* Define if you have the snprintf function. */
#undef HAVE_SNPRINTF #undef HAVE_SNPRINTF
/* Define if you have the socketpair function. */
#undef HAVE_SOCKETPAIR
/* Define if you have the strdup function. */ /* Define if you have the strdup function. */
#undef HAVE_STRDUP #undef HAVE_STRDUP
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment