003 File Manager
Current Path:
/usr/src/contrib/ntp/sntp/m4
usr
/
src
/
contrib
/
ntp
/
sntp
/
m4
/
📁
..
📄
ax_c99_struct_init.m4
(1.64 KB)
📄
define_dir.m4
(1.16 KB)
📄
hms_search_lib.m4
(701 B)
📄
libtool.m4
(298.56 KB)
📄
ltoptions.m4
(14.17 KB)
📄
ltsugar.m4
(4.28 KB)
📄
ltversion.m4
(699 B)
📄
lt~obsolete.m4
(6 KB)
📄
ntp_af_unspec.m4
(597 B)
📄
ntp_cacheversion.m4
(4.08 KB)
📄
ntp_compiler.m4
(5.15 KB)
📄
ntp_crosscompile.m4
(300 B)
📄
ntp_crypto_rand.m4
(1.41 KB)
📄
ntp_debug.m4
(549 B)
📄
ntp_dir_sep.m4
(589 B)
📄
ntp_facilitynames.m4
(797 B)
📄
ntp_googletest.m4
(1.35 KB)
📄
ntp_harden.m4
(1.19 KB)
📄
ntp_ipv6.m4
(10.55 KB)
📄
ntp_lib_m.m4
(388 B)
📄
ntp_libevent.m4
(6.34 KB)
📄
ntp_libntp.m4
(24.98 KB)
📄
ntp_lineeditlibs.m4
(2.9 KB)
📄
ntp_locinfo.m4
(3.2 KB)
📄
ntp_openssl.m4
(9.84 KB)
📄
ntp_pkg_config.m4
(673 B)
📄
ntp_problemtests.m4
(1.96 KB)
📄
ntp_prog_cc.m4
(460 B)
📄
ntp_rlimit.m4
(2.55 KB)
📄
ntp_sntp.m4
(643 B)
📄
ntp_sysexits.m4
(352 B)
📄
ntp_unitytest.m4
(531 B)
📄
ntp_ver_suffix.m4
(404 B)
📄
ntp_vpathhack.m4
(1.52 KB)
📄
openldap-thread-check.m4
(18.72 KB)
📄
openldap.m4
(32.08 KB)
📄
os_cflags.m4
(3.27 KB)
📄
snprintf.m4
(11.16 KB)
📄
sntp_problemtests.m4
(1.35 KB)
📄
version.m4
(39 B)
Editing: ntp_rlimit.m4
dnl ###################################################################### dnl rlimit capabilities checks AC_DEFUN([NTP_RLIMIT_ITEMS], [ AC_CACHE_CHECK( [for RLIMIT_MEMLOCK], [ntp_cv_rlimit_memlock], [AC_COMPILE_IFELSE( [AC_LANG_PROGRAM( [[ #ifdef HAVE_SYS_TYPES_H # include <sys/types.h> #endif #ifdef HAVE_SYS_TIME_H # include <sys/time.h> #endif #ifdef HAVE_SYS_RESOURCE_H # include <sys/resource.h> #endif ]], [[ getrlimit(RLIMIT_MEMLOCK, 0); ]] )], [ntp_cv_rlimit_memlock=yes], [ntp_cv_rlimit_memlock=no] )] ) case "$host" in *-*-*linux*) ntp_dflt_rlimit_memlock="-1" ;; *) ntp_dflt_rlimit_memlock="32" ;; esac case "$ntp_cv_rlimit_memlock" in yes) AC_SUBST([HAVE_RLIMIT_MEMLOCK]) HAVE_RLIMIT_MEMLOCK=" memlock $ntp_dflt_rlimit_memlock" ;; esac AC_CACHE_CHECK( [for RLIMIT_STACK], [ntp_cv_rlimit_stack], [AC_COMPILE_IFELSE( [AC_LANG_PROGRAM( [[ #ifdef HAVE_SYS_TYPES_H # include <sys/types.h> #endif #ifdef HAVE_SYS_TIME_H # include <sys/time.h> #endif #ifdef HAVE_SYS_RESOURCE_H # include <sys/resource.h> #endif ]], [[ getrlimit(RLIMIT_STACK, 0); ]] )], [ntp_cv_rlimit_stack=yes], [ntp_cv_rlimit_stack=no] )] ) case "$ntp_cv_rlimit_stack" in yes) AC_SUBST([HAVE_RLIMIT_STACK]) HAVE_RLIMIT_STACK=" stacksize 50" esac # HMS: Only if we are doing the MLOCKALL stuff... AC_MSG_CHECKING([for the default number of 4k stack pages]) AC_ARG_WITH( [stack-limit], [AS_HELP_STRING( [--with-stack-limit], [? =50 (200 for openbsd) 4k pages] )], [ans=$withval], [ans=yes] ) case "$ans" in yes | no) case "$host" in *-*-openbsd*) ans=200 ;; *) ans=50 ;; esac ;; [[1-9]][[0-9]]*) ;; *) AC_MSG_ERROR(["--with-stack-limit requires an integer argument."]) ;; esac AC_MSG_RESULT([$ans]) AC_DEFINE_UNQUOTED([DFLT_RLIMIT_STACK], [$ans], [Default number of 4k pages for RLIMIT_STACK]) # HMS: only if we have RLIMIT_MEMLOCK AC_MSG_CHECKING([for the default number of megabytes to MEMLOCK]) AC_ARG_WITH( [memlock], [AS_HELP_STRING( [--with-memlock], [? =32 (-1 on linux) megabytes] )], [ans=$withval], [ans=yes] ) case "$ans" in yes | no) ans=$ntp_dflt_rlimit_memlock ;; [[1-9]][[0-9]]*) ;; *) AC_MSG_ERROR(["--with-memlock requires an integer argument."]) ;; esac AC_MSG_RESULT([$ans]) AC_DEFINE_UNQUOTED([DFLT_RLIMIT_MEMLOCK], [$ans], [Default number of megabytes for RLIMIT_MEMLOCK]) ])dnl dnl ======================================================================
Upload File
Create Folder