cvs: /php3/functions posix.c
| From: | Egon Schmid | Date: | Sun, 12 Sep 1999 15:29:44 +0000 |
| Subject: | cvs: /php3/functions posix.c | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-10826@lists.php.net to get a copy of this message | ||
eschmid Sun Sep 12 11:29:44 1999 EDT
Modified files:
/php3/functions posix.c
Log:
According to the CODING_STANDARDS: And yes, please keep everything on a
single line, even if that line is massive.
These functions are useless if there is no documentation and the functions
are not in PHP4.
Index: php3/functions/posix.c
diff -u php3/functions/posix.c:1.9 php3/functions/posix.c:1.10
--- php3/functions/posix.c:1.9 Sun Sep 12 10:07:27 1999
+++ php3/functions/posix.c Sun Sep 12 11:29:44 1999
@@ -27,7 +27,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: posix.c,v 1.9 1999/09/12 14:07:27 kk Exp $ */
+/* $Id: posix.c,v 1.10 1999/09/12 15:29:44 eschmid Exp $ */
#include "php.h"
@@ -128,7 +128,7 @@
void php3_info_posix(void)
{
- php3_printf("$Revision: 1.9 $\n");
+ php3_printf("$Revision: 1.10 $\n");
}
/* {{{ proto int posix_kill(int pid, int sig)
@@ -158,7 +158,6 @@
RETURN_TRUE;
}
-
/* }}} */
/* {{{ proto long posix_getpid(void)
@@ -228,7 +227,7 @@
/* }}} */
/* {{{ proto long posix_setuid(long uid)
- Set User ID (POSIX.1, 4.2.2) */
+ Set user id (POSIX.1, 4.2.2) */
void php3_posix_setuid(INTERNAL_FUNCTION_PARAMETERS)
{
pval *uid;
@@ -253,7 +252,7 @@
/* }}} */
/* {{{ proto long posix_setgid(long uid)
- Set Group ID (POSIX.1, 4.2.2) */
+ Set group id (POSIX.1, 4.2.2) */
void php3_posix_setgid(INTERNAL_FUNCTION_PARAMETERS)
{
pval *gid;
@@ -278,7 +277,7 @@
/* }}} */
/* {{{ proto long posix_getgroups(void)
- Get Supplementary Group IDs (POSIX.1, 4.2.3) */
+ Get supplementary group id's (POSIX.1, 4.2.3) */
void php3_posix_getgroups(INTERNAL_FUNCTION_PARAMETERS)
{
gid_t gidlist[NGROUPS_MAX];
@@ -303,7 +302,7 @@
/* }}} */
/* {{{ proto string posix_getlogin(void)
- Get User Name (POSIX.1, 4.2.4) */
+ Get user name (POSIX.1, 4.2.4) */
void php3_posix_getlogin(INTERNAL_FUNCTION_PARAMETERS)
{
char *p;
@@ -319,7 +318,7 @@
/* }}} */
/* {{{ proto long posix_getpgrp(void)
- Get current Process Group ID (POSIX.1, 4.3.1) */
+ Get current process group id (POSIX.1, 4.3.1) */
void php3_posix_getpgrp(INTERNAL_FUNCTION_PARAMETERS)
{
pid_t pgrp;
@@ -330,7 +329,7 @@
/* }}} */
/* {{{ proto long posix_setsid(void)
- Create Session and Set Process Group ID (POSIX.1, 4.3.2) */
+ Create session and set process group id (POSIX.1, 4.3.2) */
void php3_posix_setsid(INTERNAL_FUNCTION_PARAMETERS)
{
pid_t sid;
@@ -341,7 +340,7 @@
/* }}} */
/* {{{ proto long posix_setpgid(long pid, long pgid)
- Set Process Group ID for Job Control (POSIX.1, 4.3.3) */
+ Set process group id for job control (POSIX.1, 4.3.3) */
void php3_posix_setpgid(INTERNAL_FUNCTION_PARAMETERS)
{
pval *pid;
@@ -369,9 +368,7 @@
/* }}} */
/* {{{ proto long posix_getpgid(void)
- Get the process group id of the specified process
- (This is not a POSIX function, but a SVR4ism, so
- we compile conditionally) */
+ Get the process group id of the specified process (This is not a POSIX function, but a SVR4ism,
so we compile conditionally) */
void php3_posix_getpgid(INTERNAL_FUNCTION_PARAMETERS)
{
#if HAVE_GETPGID
@@ -400,9 +397,7 @@
/* }}} */
/* {{{ proto long posix_getsid(void)
- get process group ID of session leader
- (This is not a POSIX function, but a SVR4ism, so
- be compile conditionally) */
+ Get process group id of session leader (This is not a POSIX function, but a SVR4ism, so be
compile conditionally) */
void php3_posix_getsid(INTERNAL_FUNCTION_PARAMETERS)
{
#if HAVE_GETSID
@@ -431,8 +426,7 @@
/* }}} */
/* {{{ proto array posix_uname(void)
- Get System Name (POSIX.1, 4.4.1) */
-
+ Get system name (POSIX.1, 4.4.1) */
void php3_posix_uname(INTERNAL_FUNCTION_PARAMETERS)
{
struct utsname u;
@@ -455,8 +449,7 @@
*/
/* {{{ proto array posix_times(void)
- Get Process Times (POSIX.1, 4.5.2) */
-
+ Get process times (POSIX.1, 4.5.2) */
void php3_posix_times(INTERNAL_FUNCTION_PARAMETERS)
{
struct tms t;
@@ -484,7 +477,7 @@
*/
/* {{{ proto string posix_ctermid(void)
- Generate Terminal Pathname (POSIX.1, 4.7.1) */
+ Generate terminal path name (POSIX.1, 4.7.1) */
void php3_posix_ctermid(INTERNAL_FUNCTION_PARAMETERS)
{
char buffer[L_ctermid];
@@ -502,7 +495,7 @@
/* }}} */
/* {{{ proto string posix_ttyname(int fd)
- Determine Terminal Devicename (POSIX.1, 4.7.2) */
+ Determine terminal device name (POSIX.1, 4.7.2) */
void php3_posix_ttyname(INTERNAL_FUNCTION_PARAMETERS)
{
pval *fd;
@@ -639,11 +632,7 @@
#endif / * HAVE_GETRLIMIT */
/* {{{ proto long posix_getrlimit(void)
- get system resource consumption limits
- (This is not a POSIX function, but a BSDism
- and a SVR4ism. We compile conditionally.
- */
-
+ Get system resource consumption limits (This is not a POSIX function, but a BSDism and a
SVR4ism. We compile conditionally) */
void php3_posix_getrlimit(INTERNAL_FUNCTION_PARAMETERS)
{
#if HAVE_GETRLIMIT