-
Notifications
You must be signed in to change notification settings - Fork 21
/
smbclient.stub.php
189 lines (153 loc) · 3.8 KB
/
smbclient.stub.php
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
<?php
/**
* @generate-function-entries
* @generate-legacy-arginfo
*/
function smbclient_version(): string {}
function smbclient_library_version(): string {}
/**
* @return false|resource
*/
function smbclient_state_new() {}
/**
* @param resource $state
*/
function smbclient_state_init($state, string $workgroup=null, string $user=null, string $password=null): bool {}
/**
* @param resource $state
*/
function smbclient_state_errno($state): int {}
/**
* @param resource $state
*/
function smbclient_state_free($state): bool {}
/**
* @param resource $state
* @return mixed
*/
function smbclient_option_get($state, int $option) {}
/**
* @param resource $state
* @param mixed $value
* @return mixed
*/
function smbclient_option_set($state, int $option, $value) {}
#if HAVE_SMBC_SETOPTIONPROTOCOLS
/**
* @param resource $state
* @param mixed $value
* @return mixed
*/
function smbclient_client_protocols($state, string $minproto=null, string $maxproto=null): bool {}
#endif
/**
* @param resource $state
* @return false|resource
*/
function smbclient_opendir($state, string $path) {}
/**
* @param resource $state
* @param resource $dir
*/
function smbclient_readdir($state, $dir): false|array {}
/**
* @param resource $state
* @param resource $dir
*/
function smbclient_closedir($state, $dir): bool {}
/**
* @param resource $state
* @return false|resource
*/
function smbclient_stat($state, string $path): false|array {}
/**
* @param resource $state
* @param resource $file
*/
function smbclient_fstat($state, $file): false|array {}
/**
* @param resource $state
* @return false|resource
*/
function smbclient_open($state, string $path, string $flags, int $mode=0666) {}
/**
* @param resource $state
* @return false|resource
*/
function smbclient_creat($state, string $path, int $mode=0666) {}
/**
* @param resource $state
* @param resource $file
*/
function smbclient_read($state, $file, int $count): false|string {}
/**
* @param resource $state
* @param resource $file
*/
function smbclient_close($state, $file): bool {}
/**
* @param resource $state
*/
function smbclient_mkdir($state, string $path, int $mode=0666): bool {}
/**
* @param resource $state
*/
function smbclient_rmdir($state, string $path): bool {}
/**
* @param resource $oldstate
* @param resource $newstate
*/
function smbclient_rename($oldstate, string $oldpath, $newstate, string $newpath): bool {}
/**
* @param resource $state
* @param resource $file
*/
function smbclient_write($state, $file, string $buffer, int $count=0): false|int {}
/**
* @param resource $state
*/
function smbclient_unlink($state, string $path): bool {}
/**
* @param resource $state
* @param resource $file
*/
function smbclient_lseek($state, $file, int $offset, int $whence): false|int {}
/**
* @param resource $state
* @param resource $file
*/
function smbclient_ftruncate($state, $file, int $offset): bool {}
/**
* @param resource $state
*/
function smbclient_chmod($state, string $path, int $mode): bool {}
/**
* @param resource $state
*/
function smbclient_utimes($state, string $path, int $mtime=-1, int $atime=-1): bool {}
/**
* @param resource $state
*/
function smbclient_listxattr($state, string $path): false|array {}
/**
* @param resource $state
*/
function smbclient_getxattr($state, string $path, string $name): false|string {}
/**
* @param resource $state
*/
function smbclient_setxattr($state, string $path, string $name, string $value, int $flags=0): false|string {}
/**
* @param resource $state
*/
function smbclient_removexattr($state, string $path, string $name): bool {}
/**
* @param resource $state
* @return false|resource
*/
function smbclient_statvfs($state, string $path): false|array {}
/**
* @param resource $state
* @param resource $file
*/
function smbclient_fstatvfs($state, $file): false|array {}