This repository has been archived by the owner on Nov 13, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
file.h
48 lines (41 loc) · 2.5 KB
/
file.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
/*
+------------------------------------------------------------------------+
| Zephir Language |
+------------------------------------------------------------------------+
| Copyright (c) 2011-2014 Zephir Team (http://www.zephir-lang.com) |
+------------------------------------------------------------------------+
| This source file is subject to the New BSD License that is bundled |
| with this package in the file docs/LICENSE.txt. |
| |
| If you did not receive a copy of the license and are unable to |
| obtain it through the world-wide-web, please send an email |
| to [email protected] so we can send you a copy immediately. |
+------------------------------------------------------------------------+
| Authors: Andres Gutierrez <[email protected]> |
| Eduar Carvajal <[email protected]> |
+------------------------------------------------------------------------+
*/
#ifndef ZEPHIR_KERNEL_FILE_H
#define ZEPHIR_KERNEL_FILE_H
int zephir_file_exists(zval *filename TSRMLS_DC);
int zephir_compare_mtime(zval *filename1, zval *filename2 TSRMLS_DC);
void zephir_fix_path(zval **return_value, zval *path, zval *directory_separator TSRMLS_DC);
void zephir_prepare_virtual_path(zval *return_value, zval *path, zval *virtual_separator TSRMLS_DC);
void zephir_unique_path_key(zval *return_value, zval *path TSRMLS_DC);
void zephir_realpath(zval *return_value, zval *filename TSRMLS_DC);
void zephir_file_get_contents(zval *return_value, zval *filename TSRMLS_DC);
void zephir_file_put_contents(zval *return_value, zval *filename, zval *data TSRMLS_DC);
void zephir_possible_autoload_filepath(zval *return_value, zval *prefix, zval *class_name, zval *virtual_separator, zval *separator TSRMLS_DC);
void zephir_is_dir(zval *return_value, zval *path TSRMLS_DC);
void zephir_unlink(zval *return_value, zval *path TSRMLS_DC);
void zephir_filemtime(zval *return_value, zval *path TSRMLS_DC);
void zephir_basename(zval *return_value, zval *path TSRMLS_DC);
void zephir_fwrite(zval *return_value, zval *stream_zval, zval *data TSRMLS_DC);
int zephir_feof(zval *stream_zval TSRMLS_DC);
int zephir_fclose(zval *stream_zval TSRMLS_DC);
#ifdef TSRM_WIN32
#define ZEPHIR_DIRECTORY_SEPARATOR "\\"
#else
#define ZEPHIR_DIRECTORY_SEPARATOR "/"
#endif
#endif /* ZEPHIR_KERNEL_FILE_H */