CVS update: php3/functions

From: Date: Mon, 28 Jun 1999 19:57:52 +0000
Subject: CVS update: php3/functions
Groups: php.dev 
Request: Send a blank email to php-dev+get-7710@lists.php.net to get a copy of this message
Date: Monday June 28, 1999 @ 15:57 Author: jimjag Update of /repository/php3/functions In directory php:/tmp/cvs-serv5248/functions Modified Files: posix.c Log Message: Detect missing getrlimit() and react accordingly in the code Index: php3/functions/posix.c diff -u php3/functions/posix.c:1.6 php3/functions/posix.c:1.7 --- php3/functions/posix.c:1.6 Sun Jun 27 13:39:11 1999 +++ php3/functions/posix.c Mon Jun 28 15:57:52 1999 @@ -273,6 +273,7 @@ } /* }}} */ +#if HAVE_GETRLIMIT static int posix_addlimit(int limit, char *name, pval *return_value) { int result; struct rlimit rl; @@ -356,11 +357,14 @@ { 0, NULL } }; +#endif / * HAVE_GETRLIMIT */ + /* {{{ proto long posix_getrlimit(void) get system resource consumption limits */ void php3_posix_getrlimit(INTERNAL_FUNCTION_PARAMETERS) { +#if HAVE_GETRLIMIT struct limitlist *l = NULL; if (array_init(return_value) == FAILURE) { @@ -371,6 +375,9 @@ if (posix_addlimit(l->limit, l->name, return_value) == FAILURE) RETURN_FALSE; } +#else + RETURN_FALSE; +#endif } /* }}} */

« previous php.dev (#7710) next »