tony2001 Sun May 4 09:34:16 2008 UTC Modified files: (Branch: PHP_5_3) /php-src/ext/posix posix.c Log: MFH: fix folding http://cvs.php.net/viewvc.cgi/php-src/ext/posix/posix.c?r1=1.70.2.3.2.16.2.4&r2=1.70.2.3.2.16.2.5&diff_format=u Index: php-src/ext/posix/posix.c diff -u php-src/ext/posix/posix.c:1.70.2.3.2.16.2.4 php-src/ext/posix/posix.c:1.70.2.3.2.16.2.5 --- php-src/ext/posix/posix.c:1.70.2.3.2.16.2.4 Fri Apr 11 11:00:03 2008 +++ php-src/ext/posix/posix.c Sun May 4 09:34:16 2008 @@ -16,7 +16,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: posix.c,v 1.70.2.3.2.16.2.4 2008/04/11 11:00:03 tony2001 Exp $ */ +/* $Id: posix.c,v 1.70.2.3.2.16.2.5 2008/05/04 09:34:16 tony2001 Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -147,15 +147,16 @@ static PHP_MINFO_FUNCTION(posix) { php_info_print_table_start(); - php_info_print_table_row(2, "Revision", "$Revision: 1.70.2.3.2.16.2.4 $"); + php_info_print_table_row(2, "Revision", "$Revision: 1.70.2.3.2.16.2.5 $"); php_info_print_table_end(); } /* }}} */ -static PHP_GINIT_FUNCTION(posix) +static PHP_GINIT_FUNCTION(posix) /* {{{ */ { posix_globals->last_error = 0; } +/* }}} */ /* {{{ PHP_MINIT_FUNCTION(posix) */ @@ -528,7 +529,7 @@ /* }}} */ /* Checks if the provides resource is a stream and if it provides a file descriptor */ -static int php_posix_stream_get_fd(zval *zfp, int *fd TSRMLS_DC) +static int php_posix_stream_get_fd(zval *zfp, int *fd TSRMLS_DC) /* {{{ */ { php_stream *stream; @@ -547,6 +548,7 @@ } return 1; } +/* }}} */ /* {{{ proto string posix_ttyname(int fd) Determine terminal device name (POSIX.1, 4.7.2) */ @@ -744,7 +746,8 @@ /* Takes a pointer to posix group and a pointer to an already initialized ZVAL * array container and fills the array with the posix group member data. */ -int php_posix_group_to_array(struct group *g, zval *array_group) { +int php_posix_group_to_array(struct group *g, zval *array_group) /* {{{ */ +{ zval *array_members; int count; @@ -766,6 +769,7 @@ add_assoc_long(array_group, "gid", g->gr_gid); return 1; } +/* }}} */ /* POSIX.1, 5.5.1 unlink() @@ -919,7 +923,8 @@ } /* }}} */ -int php_posix_passwd_to_array(struct passwd *pw, zval *return_value) { +int php_posix_passwd_to_array(struct passwd *pw, zval *return_value) /* {{{ */ +{ if (NULL == pw) return 0; if (NULL == return_value || Z_TYPE_P(return_value) != IS_ARRAY) @@ -934,6 +939,7 @@ add_assoc_string(return_value, "shell", pw->pw_shell, 1); return 1; } +/* }}} */ /* {{{ proto array posix_getpwnam(string groupname) User database access (POSIX.1, 9.2.2) */
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php