Mark MCRouter* as __PHPStdLib
[hiphop-php.git] / hphp / hack / hhi / stdlib / builtins_file.hhi
blob20d0aa1ab23c4852aacc559e18beb3c0b83891da
1 <?hh // decl /* -*- php -*- */
2 /**
3  * Copyright (c) 2014, Facebook, Inc.
4  * All rights reserved.
5  *
6  * This source code is licensed under the MIT license found in the
7  * LICENSE file in the "hack" directory of this source tree.
8  *
9  */
11 const resource STDIN = /* UNSAFE_EXPR */ 0;
12 const resource STDOUT = /* UNSAFE_EXPR */ 0;
13 const resource STDERR = /* UNSAFE_EXPR */ 0;
15 const PATHINFO_DIRNAME = 0;
16 const PATHINFO_BASENAME = 0;
17 const PATHINFO_EXTENSION = 0;
18 const PATHINFO_FILENAME = 0;
19 const DIRECTORY_SEPARATOR = "/";
20 const PATH_SEPARATOR = ":";
22 const UPLOAD_ERR_OK = 0;
23 const UPLOAD_ERR_INI_SIZE = 1;
24 const UPLOAD_ERR_FORM_SIZE = 2;
25 const UPLOAD_ERR_PARTIAL = 3;
26 const UPLOAD_ERR_NO_FILE = 4;
27 const UPLOAD_ERR_NO_TMP_DIR = 6;
28 const UPLOAD_ERR_CANT_WRITE = 7;
29 const UPLOAD_ERR_EXTENSION = 8;
31 const FILE_APPEND = 0;
32 const FILE_USE_INCLUDE_PATH = 0;
33 const FILE_IGNORE_NEW_LINES = 0;
34 const FILE_NO_DEFAULT_CONTEXT = 0;
35 const FILE_SKIP_EMPTY_LINES = 0;
37 const LOCK_EX = 2;
38 const LOCK_SH = 1;
39 const LOCK_UN = 3;
40 const LOCK_NB = 4;
42 const SEEK_SET = 0;
43 const SEEK_CUR = 0;
44 const SEEK_END = 0;
46 const INI_SCANNER_NORMAL = 0;
47 const INT_SCANNER_RAW = 0;
49 const GLOB_ERR     = 1;
50 const GLOB_MARK    = 2;
51 const GLOB_NOSORT  = 4;
52 const GLOB_NOCHECK = 16;
53 const GLOB_ESCAPE  = 64;
54 const GLOB_BRACE   = 1024;
55 const GLOB_ONLYDIR = 8129;
57 <<__PHPStdLib>>
58 function fopen($filename, $mode, $use_include_path = false, $context = null);
59 <<__PHPStdLib>>
60 function popen($command, $mode);
61 <<__PHPStdLib>>
62 function fclose($handle);
63 <<__PHPStdLib>>
64 function pclose($handle);
65 <<__PHPStdLib>>
66 function fseek($handle, $offset, $whence = SEEK_SET);
67 <<__PHPStdLib>>
68 function rewind($handle);
69 <<__PHPStdLib>>
70 function ftell($handle);
71 <<__PHPStdLib>>
72 function feof($handle);
73 <<__PHPStdLib>>
74 function fstat($handle);
75 <<__PHPStdLib>>
76 function fread($handle, $length);
77 <<__PHPStdLib>>
78 function fgetc($handle);
79 <<__PHPStdLib>>
80 function fgets($handle, $length = 0);
81 <<__PHPStdLib>>
82 function fgetss($handle, $length = 0, $allowable_tags = null);
83 function fscanf($handle, $format);
84 <<__PHPStdLib>>
85 function fpassthru($handle);
86 <<__PHPStdLib>>
87 function fwrite($handle, $data, $length = 0);
88 <<__PHPStdLib>>
89 function fputs($handle, $data, $length = 0);
90 <<__PHPStdLib>>
91 function fprintf($handle, $format, ...);
92 <<__PHPStdLib>>
93 function vfprintf($handle, $format, $args);
94 <<__PHPStdLib>>
95 function fflush($handle);
96 <<__PHPStdLib>>
97 function ftruncate($handle, $size);
98 <<__PHPStdLib>>
99 function flock($handle, $operation, &$wouldblock = null);
100 <<__PHPStdLib>>
101 function fputcsv($handle, $fields, $delimiter = ",", $enclosure = "\"", $escape_char = "\\");
102 <<__PHPStdLib>>
103 function fgetcsv($handle, $length = 0, $delimiter = ",", $enclosure = "\"", $escape_char = "\\");
104 <<__PHPStdLib>>
105 function file_get_contents($filename, $use_include_path = false, $context = null, $offset = 0, $maxlen = 0);
106 <<__PHPStdLib>>
107 function file_put_contents($filename, $data, $flags = 0, $context = null);
108 <<__PHPStdLib>>
109 function file($filename, $flags = 0, $context = null);
110 <<__PHPStdLib>>
111 function readfile($filename, $use_include_path = false, $context = null);
112 <<__PHPStdLib>>
113 function move_uploaded_file($filename, $destination);
114 <<__PHPStdLib>>
115 function parse_ini_file($filename, $process_sections = false, $scanner_mode = INI_SCANNER_NORMAL);
116 <<__PHPStdLib>>
117 function parse_ini_string($ini, $process_sections = false, $scanner_mode = INI_SCANNER_NORMAL);
118 <<__PHPStdLib>>
119 function md5_file($filename, $raw_output = false);
120 <<__PHPStdLib>>
121 function sha1_file($filename, $raw_output = false);
122 <<__PHPStdLib>>
123 function chmod($filename, $mode);
124 <<__PHPStdLib>>
125 function chown($filename, $user);
126 <<__PHPStdLib>>
127 function lchown($filename, $user);
128 <<__PHPStdLib>>
129 function chgrp($filename, $group);
130 <<__PHPStdLib>>
131 function lchgrp($filename, $group);
132 <<__PHPStdLib>>
133 function touch($filename, $mtime = 0, $atime = 0);
134 <<__PHPStdLib>>
135 function copy($source, $dest, $context = null);
136 <<__PHPStdLib>>
137 function rename($oldname, $newname, $context = null);
138 <<__PHPStdLib>>
139 function umask($mask = null);
140 <<__PHPStdLib>>
141 function unlink($filename, $context = null);
142 <<__PHPStdLib>>
143 function link($target, $link);
144 <<__PHPStdLib>>
145 function symlink($target, $link);
146 <<__PHPStdLib, __Rx>>
147 function basename($path, $suffix = null);
148 <<__PHPStdLib>>
149 function fnmatch($pattern, $filename, $flags = 0);
150 <<__PHPStdLib>>
151 function glob($pattern, $flags = 0);
152 <<__PHPStdLib>>
153 function tempnam($dir, $prefix);
154 <<__PHPStdLib>>
155 function tmpfile();
156 <<__PHPStdLib>>
157 function fileperms($filename);
158 <<__PHPStdLib>>
159 function fileinode($filename);
160 <<__PHPStdLib>>
161 function filesize(?Stringish $filename);
162 <<__PHPStdLib>>
163 function fileowner($filename);
164 <<__PHPStdLib>>
165 function filegroup($filename);
166 <<__PHPStdLib>>
167 function fileatime($filename);
168 <<__PHPStdLib>>
169 function filemtime($filename);
170 <<__PHPStdLib>>
171 function filectime($filename);
172 <<__PHPStdLib>>
173 function filetype($filename);
174 <<__PHPStdLib>>
175 function linkinfo($filename);
176 <<__PHPStdLib>>
177 function is_writable($filename);
178 <<__PHPStdLib>>
179 function is_writeable($filename);
180 <<__PHPStdLib>>
181 function is_readable($filename);
182 <<__PHPStdLib>>
183 function is_executable($filename);
184 <<__PHPStdLib>>
185 function is_file($filename);
186 <<__PHPStdLib>>
187 function is_dir($filename);
188 <<__PHPStdLib>>
189 function is_link($filename);
190 <<__PHPStdLib>>
191 function is_uploaded_file($filename);
192 <<__PHPStdLib>>
193 function file_exists($filename);
194 <<__PHPStdLib>>
195 function stat($filename);
196 <<__PHPStdLib>>
197 function lstat($filename);
198 <<__PHPStdLib>>
199 function clearstatcache();
200 <<__PHPStdLib>>
201 function readlink($path);
202 <<__PHPStdLib>>
203 function realpath($path);
204 <<__PHPStdLib>>
205 function pathinfo($path, $opt = 15);
206 <<__PHPStdLib>>
207 function disk_free_space($directory);
208 <<__PHPStdLib>>
209 function diskfreespace($directory);
210 <<__PHPStdLib>>
211 function disk_total_space($directory);
212 <<__PHPStdLib>>
213 function mkdir($pathname, $mode = 0777, $recursive = false, $context = null);
214 <<__PHPStdLib>>
215 function rmdir($dirname, $context = null);
216 <<__PHPStdLib, __Rx>>
217 function dirname($path);
218 <<__PHPStdLib>>
219 function getcwd();
220 <<__PHPStdLib>>
221 function chdir($directory);
222 <<__PHPStdLib>>
223 function chroot($directory);
224 <<__PHPStdLib>>
225 function dir($directory);
226 <<__PHPStdLib>>
227 function opendir($path, $context = null);
228 <<__PHPStdLib>>
229 function readdir($dir_handle);
230 <<__PHPStdLib>>
231 function rewinddir($dir_handle);
232 <<__PHPStdLib>>
233 function scandir($directory, $descending = false, $context = null);
234 <<__PHPStdLib>>
235 function closedir($dir_handle);