]> granicus.if.org Git - php/commitdiff
- Renamed the shm_ to shmop_ and created aliases for the old shm_
authorDerick Rethans <derick@php.net>
Thu, 19 Oct 2000 22:50:41 +0000 (22:50 +0000)
committerDerick Rethans <derick@php.net>
Thu, 19 Oct 2000 22:50:41 +0000 (22:50 +0000)
  functions
@- Renamed the shm_* functions to shmop_* and added aliases for the
@  old functions (Derick)

ext/shmop/php_shmop.h
ext/shmop/shmop.c

index fb2a06f5034a756510da485a7a020ee6f92b9fb1..d54e45e9d3fd0890370b7b26633bfe5daee6ac76 100644 (file)
@@ -36,12 +36,12 @@ PHP_RINIT_FUNCTION(shmop);
 PHP_RSHUTDOWN_FUNCTION(shmop);
 PHP_MINFO_FUNCTION(shmop);
 
-PHP_FUNCTION(shm_open);
-PHP_FUNCTION(shm_read);
-PHP_FUNCTION(shm_close);
-PHP_FUNCTION(shm_size);
-PHP_FUNCTION(shm_write);
-PHP_FUNCTION(shm_delete);
+PHP_FUNCTION(shmop_open);
+PHP_FUNCTION(shmop_read);
+PHP_FUNCTION(shmop_close);
+PHP_FUNCTION(shmop_size);
+PHP_FUNCTION(shmop_write);
+PHP_FUNCTION(shmop_delete);
 
 struct php_shmop
 {
index f40e524c987be86c1e3da373e8c22eb8745c8d69..7d892583bad108484c436d6a7b84edd231d19216 100644 (file)
@@ -36,12 +36,19 @@ int shm_type;
 /* Every user visible function must have an entry in shmop_functions[].
 */
 function_entry shmop_functions[] = {
-       PHP_FE(shm_open, NULL)
-       PHP_FE(shm_read, NULL)
-       PHP_FE(shm_close, NULL)
-       PHP_FE(shm_size, NULL)
-       PHP_FE(shm_write, NULL)
-       PHP_FE(shm_delete, NULL)
+       PHP_FE(shmop_open, NULL)
+       PHP_FE(shmop_read, NULL)
+       PHP_FE(shmop_close, NULL)
+       PHP_FE(shmop_size, NULL)
+       PHP_FE(shmop_write, NULL)
+       PHP_FE(shmop_delete, NULL)
+
+       PHP_FALIAS(shm_open, shmop_open, NULL)
+       PHP_FALIAS(shm_read, shmop_read, NULL)
+       PHP_FALIAS(shm_close, shmop_close, NULL)
+       PHP_FALIAS(shm_size, shmop_size, NULL)
+       PHP_FALIAS(shm_write, shmop_write, NULL)
+       PHP_FALIAS(shm_delete, shmop_delete, NULL)
        {NULL, NULL, NULL}      /* Must be the last line in shmop_functions[] */
 };
 
@@ -87,9 +94,9 @@ PHP_MINFO_FUNCTION(shmop)
        php_info_print_table_end();
 }
 
-/* {{{ proto int shm_open (int key, int flags, int mode, int size)
-   shm_open - gets and attaches a shared memory segment */
-PHP_FUNCTION(shm_open)
+/* {{{ proto int shmop_open (int key, int flags, int mode, int size)
+   shmop_open - gets and attaches a shared memory segment */
+PHP_FUNCTION(shmop_open)
 {
        zval **key, **flags, **mode, **size;
        struct php_shmop *shmop;        
@@ -154,9 +161,9 @@ PHP_FUNCTION(shm_open)
 /* }}} */
 
 
-/* {{{ proto string shm_read (int shmid, int start, int count)
-   shm_read - reads from a shm segment */
-PHP_FUNCTION(shm_read)
+/* {{{ proto string shmop_read (int shmid, int start, int count)
+   shmop_read - reads from a shm segment */
+PHP_FUNCTION(shmop_read)
 {
        zval **shmid, **start, **count;
        struct php_shmop *shmop;
@@ -206,9 +213,9 @@ PHP_FUNCTION(shm_read)
 /* }}} */
 
 
-/* {{{ proto void shm_close (int shmid)
-   shm_close - closes a shared memory segment */
-PHP_FUNCTION(shm_close)
+/* {{{ proto void shmop_close (int shmid)
+   shmop_close - closes a shared memory segment */
+PHP_FUNCTION(shmop_close)
 {
        zval **shmid;
        struct php_shmop *shmop;
@@ -231,9 +238,9 @@ PHP_FUNCTION(shm_close)
 /* }}} */
 
 
-/* {{{ proto int shm_size (int shmid)
-   shm_size - returns the shm size */
-PHP_FUNCTION(shm_size)
+/* {{{ proto int shmop_size (int shmid)
+   shmop_size - returns the shm size */
+PHP_FUNCTION(shmop_size)
 {
        zval **shmid;
        struct php_shmop *shmop;
@@ -257,9 +264,9 @@ PHP_FUNCTION(shm_size)
 /* }}} */
 
 
-/* {{{ proto int shm_write (int shmid, string data, int offset)
-   shm_write - writes to a shared memory segment */
-PHP_FUNCTION(shm_write)
+/* {{{ proto int shmop_write (int shmid, string data, int offset)
+   shmop_write - writes to a shared memory segment */
+PHP_FUNCTION(shmop_write)
 {
        zval **shmid, **data, **offset;
        struct php_shmop *shmop;
@@ -294,9 +301,9 @@ PHP_FUNCTION(shm_write)
 /* }}} */
 
 
-/* {{{ proto bool shm_delete (int shmid)
-   shm_delete - mark segment for deletion */
-PHP_FUNCTION(shm_delete)
+/* {{{ proto bool shmop_delete (int shmid)
+   shmop_delete - mark segment for deletion */
+PHP_FUNCTION(shmop_delete)
 {
        zval **shmid;
        struct php_shmop *shmop;