« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 10 of about 13 for nlink (0.001 sec.)
EvStat::attr — Returns the values most recently detected by Ev | PHP 8.3 13847
EvStat::attr (PECL ev >= 0.2.0) EvStat::attr — Returns the values most recently detected by Ev 説明 public function EvStat::attr (): array Returns array of the values most recently detected by Ev パラメータ この関数にはパラメータはありません ... array returned by EvStat::attr() Key Description 'dev' ID of device containing file 'ino' inode number 'mode' protection 'nlink' number of hard links 'uid' user ID of owner 'size' total size, in bytes 'gid' group ID of owner 'rdev' device ID (if spec ... at ( "/var/log/messages" , 8 , function ( $w ) { echo "/var/log/messages changed\n" ; $attr = $w -> attr (); if ( $attr [ 'nlink' ]) { printf ( "Current size: %ld\n" , $attr [ 'size' ]); printf ( "Current atime: %ld\n" , $attr [ 'atime' ]); printf ( " ...
https://man.mtool.work/php/8.3/evstat.attr.html
EvStat::__construct — Constructs EvStat watcher object | PHP 8.3 10047
EvStat::__construct (PECL ev >= 0.2.0) EvStat::__construct — Constructs EvStat watcher object 説明 public function EvStat::__construct ( string $path , float $interval , callable $callback , mixed $data = null , int $priority = 0 ) Construc ... t ( "/var/log/messages" , 10 , function ( $w ) { echo "/var/log/messages changed\n" ; $attr = $w -> attr (); if ( $attr [ 'nlink' ]) { printf ( "Current size: %ld\n" , $attr [ 'size' ]); printf ( "Current atime: %ld\n" , $attr [ 'atime' ]); printf ( " ...
https://man.mtool.work/php/8.3/evstat.construct.html
dio_stat — ファイルディスクリプタ fd に関する stat 情報を取得する | PHP 8.3 9624
dio_stat (PHP 4 >= 4.2.0, PHP 5 < 5.1.0) dio_stat — ファイルディスクリプタ fd に関する stat 情報を取得する 説明 function dio_stat ( resource $fd ): array dio_stat() は、与えられたファイルディスクリプタに関する 情報を返します。 パラメータ fd ... ファイルディスクリプタ。 戻り値 以下のキーを含む連想配列を返します。 "device" - デバイス "inode" - i ノード "mode" - モード "nlink" - ハードリンク数 "uid" - ユーザー ID "gid" - グループ ID "device_type" - デバイス型(inode デバイスの場合) "size" - サイ ...
https://man.mtool.work/php/8.3/function.dio-stat.html
SplFileObject::fstat — ファイルの情報を得る | PHP 8.3 9624
SplFileObject::fstat (PHP 5 >= 5.1.0, PHP 7, PHP 8) SplFileObject::fstat — ファイルの情報を得る 説明 public function SplFileObject::fstat (): array ファイルの統計情報を集めます。 fstat() とまったく同じように振る舞います。 パラメータ この関数 ... ( $stat , 13 )); ?> 上の例の出力は、 たとえば以下のようになります。 Array ( [dev] => 771 [ino] => 488704 [mode] => 33188 [nlink] => 1 [uid] => 0 [gid] => 0 [rdev] => 0 [size] => 1114 [atime] => 1061067181 [mtime] => 1056136526 [ctime] => 1056136526 [ ...
https://man.mtool.work/php/8.3/splfileobject.fstat.html
The EvStat class | PHP 8.3 8797
The EvStat class (PECL ev >= 0.2.0) はじめに EvStat monitors a file system path for attribute changes. It calls stat() on that path in regular intervals (or when the OS signals it changed) and sees if it changed compared to the last time, i ... ists" to "path does not exist" is a status change like any other. The condition "path does not exist" is signified by the 'nlink' item being 0(returned by EvStat::attr() method). The path must not end in a slash or contain special components such as ' ...
https://man.mtool.work/php/8.3/class.evstat.html
fstat — オープンしたファイルポインタからファイルに関する情報を取得する | PHP 8.... 8797
fstat (PHP 4, PHP 5, PHP 7, PHP 8) fstat — オープンしたファイルポインタからファイルに関する情報を取得する 説明 function fstat ( resource $stream ): array | false ファイルポインタ stream によりオープンされたファイルの統計情報を取得します。 こ ... ( $fstat , 13 )); ?> 上の例の出力は、 たとえば以下のようになります。 Array ( [dev] => 771 [ino] => 488704 [mode] => 33188 [nlink] => 1 [uid] => 0 [gid] => 0 [rdev] => 0 [size] => 1114 [atime] => 1061067181 [mtime] => 1056136526 [ctime] => 1056136526 [ ...
https://man.mtool.work/php/8.3/function.fstat.html
eio_lstat — ファイルの状態を取得する | PHP 8.3 8375
eio_lstat (PECL eio >= 0.0.1dev) eio_lstat — ファイルの状態を取得する 説明 function eio_lstat ( string $path , int $pri , callable $callback , mixed $data = NULL ): resource eio_lstat() は、 callback の result 引数でファイルの状態を返します ... ( $data ); var_dump ( $result ); } function my_open_cb ( $data , $result ) { eio_close ( $result ); eio_event_loop (); @ unlink ( $data ); } eio_lstat ( $tmp_filename , EIO_PRI_DEFAULT , "my_res_cb" , "eio_lstat" ); eio_open ( $tmp_filename , EIO_O_R ... なります。 string(9) "eio_lstat" array(12) { ["st_dev"]=> int(2050) ["st_ino"]=> int(2099197) ["st_mode"]=> int(33188) ["st_nlink"]=> int(1) ["st_uid"]=> int(1000) ["st_gid"]=> int(100) ["st_rdev"]=> int(0) ["st_blksize"]=> int(4096) ["st_blocks"]=> in ...
https://man.mtool.work/php/8.3/function.eio-lstat.html
eio_stat — ファイルの状態を取得する | PHP 8.3 8375
eio_stat (PECL eio >= 0.0.1dev) eio_stat — ファイルの状態を取得する 説明 function eio_stat ( string $path , int $pri , callable $callback , mixed $data = NULL ): resource eio_stat() は、 callback の result 引数でファイルの状態を返します。 パ ... ( $data ); var_dump ( $result ); } function my_open_cb ( $data , $result ) { eio_close ( $result ); eio_event_loop (); @ unlink ( $data ); } eio_stat ( $tmp_filename , EIO_PRI_DEFAULT , "my_res_cb" , "eio_stat" ); eio_open ( $tmp_filename , EIO_O_RDO ... になります。 string(8) "eio_stat" array(12) { ["st_dev"]=> int(2050) ["st_ino"]=> int(2489173) ["st_mode"]=> int(33188) ["st_nlink"]=> int(1) ["st_uid"]=> int(1000) ["st_gid"]=> int(100) ["st_rdev"]=> int(0) ["st_blksize"]=> int(4096) ["st_blocks"]=> in ...
https://man.mtool.work/php/8.3/function.eio-stat.html
eio_fstat — ファイルの状態を取得する | PHP 8.3 7953
eio_fstat (PECL eio >= 0.0.1dev) eio_fstat — ファイルの状態を取得する 説明 function eio_fstat ( mixed $fd , int $pri , callable $callback , mixed $data = ? ): resource eio_fstat() は、 callback の result 引数でファイルの状態を返します。 パラ ... ata [ 'fd' ]) { // 一時ファイルを閉じます eio_close ( $data [ 'fd' ]); eio_event_loop (); } // 一時ファイルを削除します @ unlink ( $data [ 'file' ]); } /* eio_open() が終わったら呼ばれます */ function my_open_cb ( $data , $result ) { // コールバック用 ... たとえば以下のようになります。 array(12) { ["st_dev"]=> int(2050) ["st_ino"]=> int(2489159) ["st_mode"]=> int(33188) ["st_nlink"]=> int(1) ["st_uid"]=> int(1000) ["st_gid"]=> int(100) ["st_rdev"]=> int(0) ["st_blksize"]=> int(4096) ["st_blocks"]=> in ...
https://man.mtool.work/php/8.3/function.eio-fstat.html
eio_mknod — 特殊ファイルあるいは一般ファイルを作る | PHP 8.3 7530
eio_mknod (PECL eio >= 0.0.1dev) eio_mknod — 特殊ファイルあるいは一般ファイルを作る 説明 function eio_mknod ( string $path , int $mode , int $dev , int $pri = EIO_PRI_DEFAULT , callable $callback = NULL , mixed $data = NULL ): resource eio_ ... knod_callback ( $data , $result ) { $s = stat ( $data ); var_dump ( $s ); if ( $result == 0 ) { echo "eio_mknod_ok" ; } @ unlink ( $data ); } eio_mknod ( $temp_filename , EIO_S_IFIFO , 0 , EIO_PRI_DEFAULT , "my_mknod_callback" , $temp_filename ); eio_ ... 261) [10]=> int(1318241261) [11]=> int(4096) [12]=> int(0) ["dev"]=> int(17) ["ino"]=> int(2337608) ["mode"]=> int(4096) ["nlink"]=> int(1) ["uid"]=> int(1000) ["gid"]=> int(100) ["rdev"]=> int(0) ["size"]=> int(0) ["atime"]=> int(1318241261) ["mtime" ...
https://man.mtool.work/php/8.3/function.eio-mknod.html
PREV 1 2 NEXT