sj-i /
php-fuse
| 1 | <?php |
||
| 2 | |||
| 3 | /** |
||
| 4 | * This file is part of the sj-i/php-fuse package. |
||
| 5 | * |
||
| 6 | * (c) sji <[email protected]> |
||
| 7 | * |
||
| 8 | * For the full copyright and license information, please view the LICENSE |
||
| 9 | * file that was distributed with this source code. |
||
| 10 | */ |
||
| 11 | |||
| 12 | declare(strict_types=1); |
||
| 13 | |||
| 14 | namespace Fuse; |
||
| 15 | |||
| 16 | use Fuse\Libc\Fcntl\Flock; |
||
| 17 | use Fuse\Libc\Fuse\FuseBufVec; |
||
| 18 | use Fuse\Libc\Fuse\FuseConnInfo; |
||
| 19 | use Fuse\Libc\Fuse\FuseDirFill; |
||
| 20 | use Fuse\Libc\Fuse\FuseDirHandle; |
||
| 21 | use Fuse\Libc\Fuse\FuseFileInfo; |
||
| 22 | use Fuse\Libc\Fuse\FuseFillDir; |
||
| 23 | use Fuse\Libc\Fuse\FuseIoctlArgPointer; |
||
| 24 | use Fuse\Libc\Fuse\FuseIoctlDataPointer; |
||
| 25 | use Fuse\Libc\Fuse\FusePollHandle; |
||
| 26 | use Fuse\Libc\Fuse\FusePrivateData; |
||
| 27 | use Fuse\Libc\Fuse\FuseReadDirBuffer; |
||
| 28 | use Fuse\Libc\String\CBytesBuffer; |
||
| 29 | use Fuse\Libc\String\CStringBuffer; |
||
| 30 | use Fuse\Libc\Sys\Stat\Stat; |
||
| 31 | use Fuse\Libc\Sys\StatVfs\StatVfs; |
||
| 32 | use Fuse\Libc\Time\TimeSpec; |
||
| 33 | use Fuse\Libc\Utime\UtimBuf; |
||
| 34 | use TypedCData\TypedCDataArray; |
||
|
0 ignored issues
–
show
|
|||
| 35 | |||
| 36 | interface FilesystemInterface extends Mountable |
||
| 37 | { |
||
| 38 | /** |
||
| 39 | * int (*getattr) (const char *, struct stat *); |
||
| 40 | */ |
||
| 41 | public function getattr(string $path, Stat $stat): int; |
||
| 42 | |||
| 43 | /** |
||
| 44 | * int (*readlink) (const char *, char *, size_t); |
||
| 45 | */ |
||
| 46 | public function readlink(string $path, CStringBuffer $buffer, int $size): int; |
||
| 47 | |||
| 48 | /** |
||
| 49 | * int (*getdir) (const char *, fuse_dirh_t, fuse_dirfil_t); |
||
| 50 | * |
||
| 51 | * @deprecated |
||
| 52 | */ |
||
| 53 | public function getdir(string $path, FuseDirHandle $dirhandle, FuseDirFill $dirfill): int; |
||
| 54 | |||
| 55 | /** |
||
| 56 | * int (*mknod) (const char *, mode_t, dev_t); |
||
| 57 | */ |
||
| 58 | public function mknod(string $path, int $mode, int $dev): int; |
||
| 59 | |||
| 60 | /** |
||
| 61 | * int (*mkdir) (const char *, mode_t); |
||
| 62 | */ |
||
| 63 | public function mkdir(string $path, int $mode): int; |
||
| 64 | |||
| 65 | /** |
||
| 66 | * int (*unlink) (const char *); |
||
| 67 | */ |
||
| 68 | public function unlink(string $path): int; |
||
| 69 | |||
| 70 | /** |
||
| 71 | * int (*rmdir) (const char *); |
||
| 72 | */ |
||
| 73 | public function rmdir(string $path): int; |
||
| 74 | |||
| 75 | /** |
||
| 76 | * int (*symlink) (const char *, const char *); |
||
| 77 | */ |
||
| 78 | public function symlink(string $path, string $link): int; |
||
| 79 | |||
| 80 | /** |
||
| 81 | * int (*rename) (const char *, const char *); |
||
| 82 | */ |
||
| 83 | public function rename(string $from, string $to): int; |
||
| 84 | |||
| 85 | /** |
||
| 86 | * int (*link) (const char *, const char *); |
||
| 87 | */ |
||
| 88 | public function link(string $path, string $link): int; |
||
| 89 | |||
| 90 | /** |
||
| 91 | * int (*chmod) (const char *, mode_t); |
||
| 92 | */ |
||
| 93 | public function chmod(string $path, int $mode): int; |
||
| 94 | |||
| 95 | /** |
||
| 96 | * int (*chown) (const char *, uid_t, gid_t); |
||
| 97 | */ |
||
| 98 | public function chown(string $path, int $uid, int $gid): int; |
||
| 99 | |||
| 100 | /** |
||
| 101 | * int (*truncate) (const char *, off_t); |
||
| 102 | */ |
||
| 103 | public function truncate(string $path, int $offset): int; |
||
| 104 | |||
| 105 | /** |
||
| 106 | * int (*utime) (const char *, struct utimbuf *); |
||
| 107 | */ |
||
| 108 | public function utime(string $path, UtimBuf $utime_buf): int; |
||
| 109 | |||
| 110 | /** |
||
| 111 | * int (*open) (const char *, struct fuse_file_info *); |
||
| 112 | */ |
||
| 113 | public function open(string $path, FuseFileInfo $fuse_file_info): int; |
||
| 114 | |||
| 115 | /** |
||
| 116 | * int (*read) (const char *, char *, size_t, off_t, struct fuse_file_info *); |
||
| 117 | */ |
||
| 118 | public function read(string $path, CBytesBuffer $buffer, int $size, int $offset, FuseFileInfo $fuse_file_info): int; |
||
| 119 | |||
| 120 | /** |
||
| 121 | * int (*write) (const char *, const char *, size_t, off_t, struct fuse_file_info *); |
||
| 122 | */ |
||
| 123 | public function write(string $path, string $buffer, int $size, int $offset, FuseFileInfo $fuse_file_info): int; |
||
| 124 | |||
| 125 | /** |
||
| 126 | * int (*statfs) (const char *, struct statvfs *); |
||
| 127 | */ |
||
| 128 | public function statfs(string $path, StatVfs $statvfs): int; |
||
| 129 | |||
| 130 | /** |
||
| 131 | * int (*flush) (const char *, struct fuse_file_info *); |
||
| 132 | */ |
||
| 133 | public function flush(string $path, FuseFileInfo $fuse_file_info): int; |
||
| 134 | |||
| 135 | /** |
||
| 136 | * int (*release) (const char *, struct fuse_file_info *); |
||
| 137 | */ |
||
| 138 | public function release(string $path, FuseFileInfo $fuse_file_info): int; |
||
| 139 | |||
| 140 | /** |
||
| 141 | * int (*fsync) (const char *, int, struct fuse_file_info *); |
||
| 142 | */ |
||
| 143 | public function fsync(string $path, int $flags, FuseFileInfo $fuse_file_info): int; |
||
| 144 | |||
| 145 | /** |
||
| 146 | * int (*setxattr) (const char *, const char *, const char *, size_t, int); |
||
| 147 | */ |
||
| 148 | public function setxattr(string $path, string $name, string $value, int $size): int; |
||
| 149 | |||
| 150 | /** |
||
| 151 | * int (*getxattr) (const char *, const char *, char *, size_t); |
||
| 152 | */ |
||
| 153 | public function getxattr(string $path, string $name, ?string &$value, int $size): int; |
||
| 154 | |||
| 155 | /** |
||
| 156 | * int (*listxattr) (const char *, char *, size_t);* |
||
| 157 | */ |
||
| 158 | public function listxattr(string $path, ?string &$value, int $size): int; |
||
| 159 | |||
| 160 | /** |
||
| 161 | * int (*removexattr) (const char *, const char *); |
||
| 162 | */ |
||
| 163 | public function removexattr(string $path, string $name): int; |
||
| 164 | |||
| 165 | /** |
||
| 166 | * int (*opendir) (const char *, struct fuse_file_info *); |
||
| 167 | */ |
||
| 168 | public function opendir(string $path, FuseFileInfo $fuse_file_info): int; |
||
| 169 | |||
| 170 | /** |
||
| 171 | * int (*readdir) (const char *, void *, fuse_fill_dir_t, off_t, struct fuse_file_info *); |
||
| 172 | */ |
||
| 173 | public function readdir( |
||
| 174 | string $path, |
||
| 175 | FuseReadDirBuffer $buf, |
||
| 176 | FuseFillDir $filler, |
||
| 177 | int $offset, |
||
| 178 | FuseFileInfo $fuse_file_info |
||
| 179 | ): int; |
||
| 180 | |||
| 181 | /** |
||
| 182 | * int (*releasedir) (const char *, struct fuse_file_info *); |
||
| 183 | */ |
||
| 184 | public function releasedir(string $path, FuseFileInfo $fuse_file_info): int; |
||
| 185 | |||
| 186 | /** |
||
| 187 | * int (*fsyncdir) (const char *, int, struct fuse_file_info *); |
||
| 188 | */ |
||
| 189 | public function fsyncdir(string $path, FuseFileInfo $fuse_file_info): int; |
||
| 190 | |||
| 191 | /** |
||
| 192 | * void *(*init) (struct fuse_conn_info *conn); |
||
| 193 | */ |
||
| 194 | public function init(FuseConnInfo $conn): ?FusePrivateData; |
||
| 195 | |||
| 196 | /** |
||
| 197 | * void (*destroy) (void *); |
||
| 198 | */ |
||
| 199 | public function destroy(?FusePrivateData $private_data): void; |
||
| 200 | |||
| 201 | /** |
||
| 202 | * int (*access) (const char *, int); |
||
| 203 | */ |
||
| 204 | public function access(string $path, int $mode): int; |
||
| 205 | |||
| 206 | /** |
||
| 207 | * int (*create) (const char *, mode_t, struct fuse_file_info *); |
||
| 208 | */ |
||
| 209 | public function create(string $path, int $mode, FuseFileInfo $fuse_file_info): int; |
||
| 210 | |||
| 211 | /** |
||
| 212 | * int (*ftruncate) (const char *, off_t, struct fuse_file_info *); |
||
| 213 | */ |
||
| 214 | public function ftruncate(string $path, int $offset, FuseFileInfo $fuse_file_info): int; |
||
| 215 | |||
| 216 | /** |
||
| 217 | * int (*fgetattr) (const char *, struct stat *, struct fuse_file_info *); |
||
| 218 | */ |
||
| 219 | public function fgetattr(string $path, Stat $stat, FuseFileInfo $fuse_file_info): int; |
||
| 220 | |||
| 221 | /** |
||
| 222 | * int (*lock) (const char *, struct fuse_file_info *, int cmd, struct flock *); |
||
| 223 | */ |
||
| 224 | public function lock(string $path, FuseFileInfo $fuse_file_info, int $cmd, Flock $flock): int; |
||
| 225 | |||
| 226 | /** |
||
| 227 | * int (*utimens) (const char *, const struct timespec tv[2]); |
||
| 228 | * |
||
| 229 | * @param TypedCDataArray<TimeSpec> $tv |
||
| 230 | */ |
||
| 231 | public function utimens(string $path, TypedCDataArray $tv): int; |
||
| 232 | |||
| 233 | /** |
||
| 234 | * int (*bmap) (const char *, size_t blocksize, uint64_t *idx); |
||
| 235 | */ |
||
| 236 | public function bmap(string $path, int $blocksize, int &$idx): int; |
||
| 237 | |||
| 238 | /** |
||
| 239 | * unsigned int flag_nullpath_ok:1; |
||
| 240 | * unsigned int flag_nopath:1; |
||
| 241 | * unsigned int flag_utime_omit_ok:1; |
||
| 242 | * unsigned int flag_reserved:29; |
||
| 243 | */ |
||
| 244 | public function setFlagNullpathOk(bool $flag): void; |
||
| 245 | public function getFlagNullpathOk(): bool; |
||
| 246 | public function setFlagNopath(bool $flag): void; |
||
| 247 | public function getFlagNopath(): bool; |
||
| 248 | public function setFlagUtimeOmitOk(bool $flag): void; |
||
| 249 | public function getFlagUtimeOmitOk(): bool; |
||
| 250 | |||
| 251 | /** |
||
| 252 | * int (*ioctl) (const char *, int cmd, void *arg, struct fuse_file_info *, unsigned int flags, void *data); |
||
| 253 | */ |
||
| 254 | public function ioctl( |
||
| 255 | string $path, |
||
| 256 | int $cmd, |
||
| 257 | FuseIoctlArgPointer $arg, |
||
| 258 | FuseFileInfo $fuse_file_info, |
||
| 259 | int $flags, |
||
| 260 | FuseIoctlDataPointer $data |
||
| 261 | ): int; |
||
| 262 | |||
| 263 | /** |
||
| 264 | * int (*poll) (const char *, struct fuse_file_info *, struct fuse_pollhandle *ph, unsigned *reventsp); |
||
| 265 | */ |
||
| 266 | public function poll( |
||
| 267 | string $path, |
||
| 268 | FuseFileInfo $fuse_file_info, |
||
| 269 | FusePollHandle $fuse_pollhandle, |
||
| 270 | int &$reventsp |
||
| 271 | ): int; |
||
| 272 | |||
| 273 | /** |
||
| 274 | * int (*write_buf) (const char *, struct fuse_bufvec *buf, off_t off, struct fuse_file_info *); |
||
| 275 | */ |
||
| 276 | public function writeBuf(string $path, FuseBufVec $buf, int $offset, FuseFileInfo $fuse_file_info): int; |
||
| 277 | |||
| 278 | /** |
||
| 279 | * int (*read_buf) (const char *, struct fuse_bufvec **bufp, size_t size, off_t off, struct fuse_file_info *); |
||
| 280 | * |
||
| 281 | * @param TypedCDataArray<FuseBufVec> $bufp |
||
| 282 | */ |
||
| 283 | public function readBuf( |
||
| 284 | string $path, |
||
| 285 | TypedCDataArray $bufp, |
||
| 286 | int $size, |
||
| 287 | int $offset, |
||
| 288 | FuseFileInfo $fuse_file_info |
||
| 289 | ): int; |
||
| 290 | |||
| 291 | /** |
||
| 292 | * int (*flock) (const char *, struct fuse_file_info *, int op); |
||
| 293 | */ |
||
| 294 | public function flock(string $path, FuseFileInfo $fuse_file_info, int $op): int; |
||
| 295 | |||
| 296 | /** |
||
| 297 | * int (*fallocate) (const char *, int, off_t, off_t, struct fuse_file_info *); |
||
| 298 | */ |
||
| 299 | public function fallocate(string $path, int $mode, int $offset, FuseFileInfo $fuse_file_info): int; |
||
| 300 | } |
||
| 301 |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths