1999-04-17 00:37:12 +00:00
|
|
|
/*
|
|
|
|
+----------------------------------------------------------------------+
|
2000-07-24 01:40:02 +00:00
|
|
|
| PHP version 4.0 |
|
1999-04-17 00:37:12 +00:00
|
|
|
+----------------------------------------------------------------------+
|
2000-07-24 01:40:02 +00:00
|
|
|
| Copyright (c) 1997, 1998, 1999, 2000 The PHP Group |
|
1999-04-17 00:37:12 +00:00
|
|
|
+----------------------------------------------------------------------+
|
2000-07-24 01:40:02 +00:00
|
|
|
| This source file is subject to version 2.02 of the PHP license, |
|
|
|
|
| that is bundled with this package in the file LICENSE, and is |
|
|
|
|
| available at through the world-wide-web at |
|
|
|
|
| http://www.php.net/license/2_02.txt. |
|
|
|
|
| If you did not receive a copy of the PHP license and are unable to |
|
|
|
|
| obtain it through the world-wide-web, please send a note to |
|
|
|
|
| license@php.net so we can mail you a copy immediately. |
|
1999-04-17 00:37:12 +00:00
|
|
|
+----------------------------------------------------------------------+
|
|
|
|
| Authors: Rasmus Lerdorf <rasmus@lerdorf.on.ca> |
|
|
|
|
+----------------------------------------------------------------------+
|
2000-07-24 01:40:02 +00:00
|
|
|
*/
|
1999-04-17 00:37:12 +00:00
|
|
|
|
|
|
|
/* $Id$ */
|
|
|
|
|
1999-12-18 04:01:20 +00:00
|
|
|
/* Synced with php 3.0 revision 1.30 1999-06-16 [ssb] */
|
* 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-16 17:06:53 +00:00
|
|
|
|
2000-07-02 23:46:51 +00:00
|
|
|
#ifndef FILE_H
|
|
|
|
#define FILE_H
|
1999-04-17 00:37:12 +00:00
|
|
|
|
1999-07-26 20:09:08 +00:00
|
|
|
extern PHP_MINIT_FUNCTION(file);
|
|
|
|
|
1999-06-15 21:51:00 +00:00
|
|
|
PHP_FUNCTION(tempnam);
|
1999-11-14 11:05:37 +00:00
|
|
|
PHP_FUNCTION(tmpfile);
|
1999-06-15 21:51:00 +00:00
|
|
|
PHP_FUNCTION(fopen);
|
|
|
|
PHP_FUNCTION(fclose);
|
|
|
|
PHP_FUNCTION(popen);
|
|
|
|
PHP_FUNCTION(pclose);
|
|
|
|
PHP_FUNCTION(feof);
|
|
|
|
PHP_FUNCTION(fread);
|
|
|
|
PHP_FUNCTION(fgetc);
|
|
|
|
PHP_FUNCTION(fgets);
|
2000-06-06 18:58:15 +00:00
|
|
|
PHP_FUNCTION(fscanf);
|
1999-06-15 21:51:00 +00:00
|
|
|
PHP_FUNCTION(fgetss);
|
|
|
|
PHP_FUNCTION(fgetcsv);
|
|
|
|
PHP_FUNCTION(fwrite);
|
2000-06-06 12:16:44 +00:00
|
|
|
PHP_FUNCTION(fflush);
|
1999-06-15 21:51:00 +00:00
|
|
|
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-16 17:06:53 +00:00
|
|
|
PHP_FUNCTION(umask);
|
1999-06-15 21:51:00 +00:00
|
|
|
PHP_FUNCTION(rename);
|
2000-07-02 15:12:34 +00:00
|
|
|
PHP_FUNCTION(unlink);
|
* 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-16 17:06:53 +00:00
|
|
|
PHP_FUNCTION(copy);
|
1999-06-15 21:51:00 +00:00
|
|
|
PHP_FUNCTION(file);
|
2000-02-01 20:02:44 +00:00
|
|
|
PHP_FUNCTION(set_socket_blocking); /* deprecated */
|
|
|
|
PHP_FUNCTION(socket_set_blocking);
|
|
|
|
PHP_FUNCTION(socket_set_timeout);
|
|
|
|
PHP_FUNCTION(socket_get_status);
|
* 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-16 17:06:53 +00:00
|
|
|
PHP_FUNCTION(set_file_buffer);
|
1999-06-15 21:51:00 +00:00
|
|
|
PHP_FUNCTION(get_meta_tags);
|
|
|
|
PHP_FUNCTION(flock);
|
1999-11-24 03:05:10 +00:00
|
|
|
PHP_FUNCTION(fd_set);
|
1999-11-24 03:47:58 +00:00
|
|
|
PHP_FUNCTION(fd_isset);
|
1999-11-24 03:05:10 +00:00
|
|
|
PHP_FUNCTION(select);
|
2000-02-01 06:06:03 +00:00
|
|
|
PHP_FUNCTION(realpath);
|
2000-03-04 17:23:03 +00:00
|
|
|
PHP_FUNCTION(ftruncate);
|
|
|
|
PHP_FUNCTION(fstat);
|
1999-04-17 00:37:12 +00:00
|
|
|
|
1999-12-18 04:01:20 +00:00
|
|
|
PHPAPI int php_set_sock_blocking(int socketd, int block);
|
1999-10-15 15:22:25 +00:00
|
|
|
PHPAPI int php_file_le_fopen(void);
|
2000-03-12 19:42:29 +00:00
|
|
|
PHPAPI int php_file_le_popen(void);
|
1999-10-15 15:22:25 +00:00
|
|
|
PHPAPI int php_file_le_socket(void);
|
2000-09-08 22:31:21 +00:00
|
|
|
PHPAPI int php_copy_file(char *src, char *dest);
|
* 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-16 17:06:53 +00:00
|
|
|
|
2000-07-02 23:46:51 +00:00
|
|
|
#endif /* FILE_H */
|