cvs: php4 /ext/posix posix.c

From: Date: Mon, 09 Oct 2000 15:12:34 +0000
Subject: cvs: php4 /ext/posix posix.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-1959@lists.php.net to get a copy of this message
hholzgra Mon Oct 9 08:12:34 2000 EDT Modified files: /php4/ext/posix posix.c Log: added support for GNU-specific domainname field in uname Index: php4/ext/posix/posix.c diff -u php4/ext/posix/posix.c:1.24 php4/ext/posix/posix.c:1.25 --- php4/ext/posix/posix.c:1.24 Thu Oct 5 11:26:54 2000 +++ php4/ext/posix/posix.c Mon Oct 9 08:12:34 2000 @@ -27,7 +27,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: posix.c,v 1.24 2000/10/05 18:26:54 andi Exp $ */ +/* $Id: posix.c,v 1.25 2000/10/09 15:12:34 hholzgra Exp $ */ #include "php.h" @@ -138,7 +138,7 @@ static PHP_MINFO_FUNCTION(posix) { php_info_print_table_start(); - php_info_print_table_row(2, "Revision", "$Revision: 1.24 $"); + php_info_print_table_row(2, "Revision", "$Revision: 1.25 $"); php_info_print_table_end(); } @@ -515,6 +515,10 @@ add_assoc_string(return_value, "release", u.release, 1); add_assoc_string(return_value, "version", u.version, 1); add_assoc_string(return_value, "machine", u.machine, 1); + +#ifdef _GNU_SOURCE + add_assoc_string(return_value, "domainname", u.domainname, 1); +#endif } /* }}} */

« previous php.cvs (#1959) next »