1999-04-17 08:37:12 +08:00
|
|
|
/*
|
|
|
|
+----------------------------------------------------------------------+
|
|
|
|
| PHP HTML Embedded Scripting Language Version 3.0 |
|
|
|
|
+----------------------------------------------------------------------+
|
* fixed some #if/#ifdef issues
* hand-patched in php3 changes from 3.0.6 to HEAD in these files:
fopen-wrappers.[ch] ext/standard/file.[ch] ext/standard/fsock.[ch]
ext/standard/php3_string.h ext/standard/string.c
* added some new file/socket macros for more readable code:
FP_FGETS(buf,len,sock,fp,issock)
FP_FREAD(buf,len,sock,fp,issock)
FP_FEOF(sock,fp,issock)
FP_FGETC(sock,fp,issock)
1999-06-17 01:06:53 +08:00
|
|
|
| Copyright (c) 1997-1999 PHP Development Team (See Credits file) |
|
1999-04-17 08:37:12 +08:00
|
|
|
+----------------------------------------------------------------------+
|
|
|
|
| This program is free software; you can redistribute it and/or modify |
|
|
|
|
| it under the terms of one of the following licenses: |
|
|
|
|
| |
|
|
|
|
| A) the GNU General Public License as published by the Free Software |
|
|
|
|
| Foundation; either version 2 of the License, or (at your option) |
|
|
|
|
| any later version. |
|
|
|
|
| |
|
|
|
|
| B) the PHP License as published by the PHP Development Team and |
|
|
|
|
| included in the distribution in the file: LICENSE |
|
|
|
|
| |
|
|
|
|
| This program is distributed in the hope that it will be useful, |
|
|
|
|
| but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
|
|
|
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
|
|
|
| GNU General Public License for more details. |
|
|
|
|
| |
|
|
|
|
| You should have received a copy of both licenses referred to here. |
|
|
|
|
| If you did not, or have any questions about PHP licensing, please |
|
|
|
|
| contact core@php.net. |
|
|
|
|
+----------------------------------------------------------------------+
|
|
|
|
| Authors: Rasmus Lerdorf <rasmus@lerdorf.on.ca> |
|
|
|
|
+----------------------------------------------------------------------+
|
|
|
|
*/
|
|
|
|
|
|
|
|
/* $Id$ */
|
|
|
|
|
* fixed some #if/#ifdef issues
* hand-patched in php3 changes from 3.0.6 to HEAD in these files:
fopen-wrappers.[ch] ext/standard/file.[ch] ext/standard/fsock.[ch]
ext/standard/php3_string.h ext/standard/string.c
* added some new file/socket macros for more readable code:
FP_FGETS(buf,len,sock,fp,issock)
FP_FREAD(buf,len,sock,fp,issock)
FP_FEOF(sock,fp,issock)
FP_FGETC(sock,fp,issock)
1999-06-17 01:06:53 +08:00
|
|
|
/* Synced with php3 revision 1.30 1999-06-16 [ssb] */
|
|
|
|
|
1999-04-17 08:37:12 +08:00
|
|
|
#ifndef _FILE_H
|
|
|
|
#define _FILE_H
|
|
|
|
|
1999-10-13 02:50:05 +08:00
|
|
|
extern zend_module_entry file_module_entry;
|
|
|
|
#define file_module_ptr &file_module_entry
|
1999-04-17 08:37:12 +08:00
|
|
|
|
1999-07-27 04:09:08 +08:00
|
|
|
extern PHP_MINIT_FUNCTION(file);
|
|
|
|
|
1999-06-16 05:51:00 +08:00
|
|
|
PHP_FUNCTION(tempnam);
|
|
|
|
PHP_FUNCTION(fopen);
|
|
|
|
PHP_FUNCTION(fclose);
|
|
|
|
PHP_FUNCTION(popen);
|
|
|
|
PHP_FUNCTION(pclose);
|
|
|
|
PHP_FUNCTION(feof);
|
|
|
|
PHP_FUNCTION(fread);
|
|
|
|
PHP_FUNCTION(fgetc);
|
|
|
|
PHP_FUNCTION(fgets);
|
|
|
|
PHP_FUNCTION(fgetss);
|
|
|
|
PHP_FUNCTION(fgetcsv);
|
|
|
|
PHP_FUNCTION(fwrite);
|
|
|
|
PHP_FUNCTION(rewind);
|
|
|
|
PHP_FUNCTION(ftell);
|
|
|
|
PHP_FUNCTION(fseek);
|
|
|
|
PHP_FUNCTION(mkdir);
|
|
|
|
PHP_FUNCTION(rmdir);
|
|
|
|
PHP_FUNCTION(fpassthru);
|
|
|
|
PHP_FUNCTION(readfile);
|
* fixed some #if/#ifdef issues
* hand-patched in php3 changes from 3.0.6 to HEAD in these files:
fopen-wrappers.[ch] ext/standard/file.[ch] ext/standard/fsock.[ch]
ext/standard/php3_string.h ext/standard/string.c
* added some new file/socket macros for more readable code:
FP_FGETS(buf,len,sock,fp,issock)
FP_FREAD(buf,len,sock,fp,issock)
FP_FEOF(sock,fp,issock)
FP_FGETC(sock,fp,issock)
1999-06-17 01:06:53 +08:00
|
|
|
PHP_FUNCTION(umask);
|
1999-06-16 05:51:00 +08:00
|
|
|
PHP_FUNCTION(rename);
|
* fixed some #if/#ifdef issues
* hand-patched in php3 changes from 3.0.6 to HEAD in these files:
fopen-wrappers.[ch] ext/standard/file.[ch] ext/standard/fsock.[ch]
ext/standard/php3_string.h ext/standard/string.c
* added some new file/socket macros for more readable code:
FP_FGETS(buf,len,sock,fp,issock)
FP_FREAD(buf,len,sock,fp,issock)
FP_FEOF(sock,fp,issock)
FP_FGETC(sock,fp,issock)
1999-06-17 01:06:53 +08:00
|
|
|
PHP_FUNCTION(copy);
|
1999-06-16 05:51:00 +08:00
|
|
|
PHP_FUNCTION(file);
|
|
|
|
PHP_FUNCTION(set_socket_blocking);
|
|
|
|
PHP_FUNCTION(set_socket_timeout);
|
* fixed some #if/#ifdef issues
* hand-patched in php3 changes from 3.0.6 to HEAD in these files:
fopen-wrappers.[ch] ext/standard/file.[ch] ext/standard/fsock.[ch]
ext/standard/php3_string.h ext/standard/string.c
* added some new file/socket macros for more readable code:
FP_FGETS(buf,len,sock,fp,issock)
FP_FREAD(buf,len,sock,fp,issock)
FP_FEOF(sock,fp,issock)
FP_FGETC(sock,fp,issock)
1999-06-17 01:06:53 +08:00
|
|
|
PHP_FUNCTION(set_file_buffer);
|
1999-06-16 05:51:00 +08:00
|
|
|
PHP_FUNCTION(get_meta_tags);
|
|
|
|
PHP_FUNCTION(flock);
|
1999-04-17 08:37:12 +08:00
|
|
|
|
* fixed some #if/#ifdef issues
* hand-patched in php3 changes from 3.0.6 to HEAD in these files:
fopen-wrappers.[ch] ext/standard/file.[ch] ext/standard/fsock.[ch]
ext/standard/php3_string.h ext/standard/string.c
* added some new file/socket macros for more readable code:
FP_FGETS(buf,len,sock,fp,issock)
FP_FREAD(buf,len,sock,fp,issock)
FP_FEOF(sock,fp,issock)
FP_FGETC(sock,fp,issock)
1999-06-17 01:06:53 +08:00
|
|
|
PHPAPI int _php3_set_sock_blocking(int socketd, int block);
|
|
|
|
|
1999-10-13 02:50:05 +08:00
|
|
|
#define phpext_file_ptr file_module_ptr
|
1999-04-17 08:37:12 +08:00
|
|
|
#endif /* _FILE_H */
|