From c21644b45316663ee2de70911bbf454bcdbe19b1 Mon Sep 17 00:00:00 2001 From: Richard Quadling Date: Tue, 11 Oct 2011 12:14:06 +0000 Subject: [PATCH] W/S, Tab removal git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@318019 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/eio/book.xml | 8 +- reference/eio/configure.xml | 4 +- reference/eio/constants.xml | 79 ++- reference/eio/examples.xml | 40 +- reference/eio/functions/eio-busy.xml | 4 +- reference/eio/functions/eio-cancel.xml | 6 +- reference/eio/functions/eio-chmod.xml | 2 +- reference/eio/functions/eio-chown.xml | 6 +- reference/eio/functions/eio-close.xml | 2 +- reference/eio/functions/eio-custom.xml | 34 +- reference/eio/functions/eio-dup2.xml | 6 +- reference/eio/functions/eio-event-loop.xml | 12 +- reference/eio/functions/eio-fallocate.xml | 4 +- reference/eio/functions/eio-fchmod.xml | 2 +- reference/eio/functions/eio-fchown.xml | 4 +- reference/eio/functions/eio-fdatasync.xml | 2 +- reference/eio/functions/eio-fstat.xml | 12 +- reference/eio/functions/eio-fstatvfs.xml | 4 +- reference/eio/functions/eio-fsync.xml | 2 +- reference/eio/functions/eio-ftruncate.xml | 2 +- reference/eio/functions/eio-futime.xml | 6 +- reference/eio/functions/eio-grp-add.xml | 6 +- reference/eio/functions/eio-grp-limit.xml | 2 +- reference/eio/functions/eio-grp.xml | 6 +- reference/eio/functions/eio-link.xml | 32 +- reference/eio/functions/eio-lstat.xml | 16 +- reference/eio/functions/eio-mkdir.xml | 14 +- reference/eio/functions/eio-mknod.xml | 22 +- reference/eio/functions/eio-nop.xml | 2 +- reference/eio/functions/eio-nready.xml | 2 +- reference/eio/functions/eio-nreqs.xml | 6 +- reference/eio/functions/eio-open.xml | 26 +- reference/eio/functions/eio-poll.xml | 6 +- reference/eio/functions/eio-read.xml | 34 +- reference/eio/functions/eio-readahead.xml | 2 +- reference/eio/functions/eio-readdir.xml | 513 +++++++++--------- reference/eio/functions/eio-readlink.xml | 30 +- reference/eio/functions/eio-realpath.xml | 12 +- reference/eio/functions/eio-rename.xml | 18 +- reference/eio/functions/eio-rmdir.xml | 16 +- reference/eio/functions/eio-sendfile.xml | 2 +- .../eio/functions/eio-set-max-poll-time.xml | 2 +- .../eio/functions/eio-set-min-parallel.xml | 2 +- reference/eio/functions/eio-stat.xml | 16 +- reference/eio/functions/eio-statvfs.xml | 6 +- reference/eio/functions/eio-symlink.xml | 28 +- .../eio/functions/eio-sync-file-range.xml | 6 +- reference/eio/functions/eio-syncfs.xml | 4 +- reference/eio/functions/eio-truncate.xml | 4 +- reference/eio/functions/eio-unlink.xml | 4 +- reference/eio/functions/eio-utime.xml | 6 +- reference/eio/functions/eio-write.xml | 8 +- reference/eio/setup.xml | 4 +- 53 files changed, 544 insertions(+), 554 deletions(-) diff --git a/reference/eio/book.xml b/reference/eio/book.xml index faacdc425a..c01793cb56 100644 --- a/reference/eio/book.xml +++ b/reference/eio/book.xml @@ -28,7 +28,7 @@ Incorrect requests Calling request from a request callback Calling request from a request callback - option sets shared memory segment key. Default: /tmp/php-eio-shm + option sets shared memory segment key. Default: /tmp/php-eio-shm @@ -26,7 +26,7 @@ Semaphores are currently used in internal event loop implementation. The only thing to note is to provide unique ID for the semaphore key and sufficient priveleges to that. If you are not sure what these settings mean, just leave - their defaults. + their defaults. Be sure that you gave read diff --git a/reference/eio/constants.xml b/reference/eio/constants.xml index 606133e2b9..cb638277d0 100644 --- a/reference/eio/constants.xml +++ b/reference/eio/constants.xml @@ -44,13 +44,13 @@ - - + + Flags used with eio_readdir: - - + + EIO_READDIR_DENTS (integer) @@ -59,19 +59,14 @@ eio_readdir flag. If specified, the result argument of the callback becomes an array with the following keys: - - 'names' - array of directory names - - 'dents' - array of struct - eio_dirent-like arrays having the following keys each: - - 'name' - the directory name; - - 'type' - one of EIO_DT_* - constants; - - 'inode' - the inode number, if available, otherwise - unspecified; + 'names' - array of directory names + 'dents' - array of struct eio_dirent-like + arrays having the following keys each: + 'name' - the directory name; + 'type' - one of EIO_DT_* + constants; + 'inode' - the inode number, if available, otherwise + unspecified; @@ -83,7 +78,7 @@ When this flag is specified, the names will be returned in an order - where likely directories come first, in optimal stat order. + where likely directories come first, in optimal stat order. @@ -123,7 +118,7 @@ - Unknown node type(very common). Further stat needed. + Unknown node type(very common). Further stat needed. @@ -167,7 +162,7 @@ - Directory node type + Directory node type @@ -295,8 +290,8 @@ - - + + Access modes for eio_open flags argument: @@ -395,8 +390,8 @@ - - + + mode argument flags for eio_open: @@ -545,8 +540,8 @@ - - + + eio_sync_file_range flags: @@ -585,8 +580,8 @@ - - + + eio_fallocate flags: @@ -611,19 +606,19 @@ - - - EIO_SYNC_FILE_* constants have the same meaning as their - SYNC_FILE_** counterparts. - - - - - - EIO_O_* constants have the same meaning as their - O_* POSIX counterparts. - - + + + EIO_SYNC_FILE_* constants have the same meaning as their + SYNC_FILE_** counterparts. + + + + + + EIO_O_* constants have the same meaning as their + O_* POSIX counterparts. + + diff --git a/reference/eio/examples.xml b/reference/eio/examples.xml index 0f97f19ebe..197f75a4bc 100644 --- a/reference/eio/examples.xml +++ b/reference/eio/examples.xml @@ -22,7 +22,7 @@ eio_cancel($req); // This time eio_nop() will be processed eio_nop(EIO_PRI_DEFAULT, "my_nop_cb", "2"); -// Process requests +// Process requests eio_event_loop(); ?> ]]> @@ -42,19 +42,19 @@ my_nop 2 Calling <function>eio_chmod</function> Making a custom request 1001, - 'data_modified' => "my custom data", - ); + $result = array( + 'result' => 1001, + 'data_modified' => "my custom data", + ); - return $result; + return $result; } $data = "my_custom_data"; @@ -123,7 +123,7 @@ int(1001) Grouping requests delay - Delay in seconds + Delay in seconds @@ -56,7 +56,7 @@ data - Arbitrary variable passed to callback. + Arbitrary variable passed to callback. diff --git a/reference/eio/functions/eio-cancel.xml b/reference/eio/functions/eio-cancel.xml index c404bd5c81..97e6505955 100644 --- a/reference/eio/functions/eio-cancel.xml +++ b/reference/eio/functions/eio-cancel.xml @@ -26,7 +26,7 @@ req - The request resource + The request resource @@ -46,7 +46,7 @@ data - Arbitrary variable passed to callback. + Arbitrary variable passed to callback. @@ -80,7 +80,7 @@ eio_cancel($req); // This time eio_nop() will be processed eio_nop(EIO_PRI_DEFAULT, "my_nop_cb", "2"); -// Process requests +// Process requests eio_event_loop(); ?> ]]> diff --git a/reference/eio/functions/eio-chmod.xml b/reference/eio/functions/eio-chmod.xml index db8c5b898f..d30a4d2032 100644 --- a/reference/eio/functions/eio-chmod.xml +++ b/reference/eio/functions/eio-chmod.xml @@ -63,7 +63,7 @@ data - Arbitrary variable passed to callback. + Arbitrary variable passed to callback. diff --git a/reference/eio/functions/eio-chown.xml b/reference/eio/functions/eio-chown.xml index 5bcfdb4dc6..d83629395b 100644 --- a/reference/eio/functions/eio-chown.xml +++ b/reference/eio/functions/eio-chown.xml @@ -23,7 +23,7 @@ choice="opt">mixeddataNULL - Changes file, or directory permissions. + Changes file, or directory permissions. @@ -34,7 +34,7 @@ path - Path to file or directory. + Path to file or directory. &eio.warn.relpath; @@ -71,7 +71,7 @@ data - Arbitrary variable passed to callback. + Arbitrary variable passed to callback. diff --git a/reference/eio/functions/eio-close.xml b/reference/eio/functions/eio-close.xml index 71d802e9c0..bcb4c46b4a 100644 --- a/reference/eio/functions/eio-close.xml +++ b/reference/eio/functions/eio-close.xml @@ -53,7 +53,7 @@ data - Arbitrary variable passed to callback. + Arbitrary variable passed to callback. diff --git a/reference/eio/functions/eio-custom.xml b/reference/eio/functions/eio-custom.xml index 8c7d85f55d..0a6c716813 100644 --- a/reference/eio/functions/eio-custom.xml +++ b/reference/eio/functions/eio-custom.xml @@ -23,7 +23,7 @@ May crash with -xdebug extension. See issue +xdebug extension. See issue http://bugs.xdebug.org/view.php?id=725 @@ -41,16 +41,16 @@ - callback is event completion callback that should match the following + callback is event completion callback that should match the following prototype: - data is the data passed to + data is the data passed to execute via data argument without modifications - result value returned by execute + result value returned by execute @@ -70,7 +70,7 @@ data - Arbitrary variable passed to callback. + Arbitrary variable passed to callback. @@ -84,7 +84,7 @@ - + &reftitle.examples; @@ -92,25 +92,25 @@ <function>eio_custom</function> example 1001, - 'data_modified' => "my custom data", - ); + $result = array( + 'result' => 1001, + 'data_modified' => "my custom data", + ); - return $result; + return $result; } $data = "my_custom_data"; diff --git a/reference/eio/functions/eio-dup2.xml b/reference/eio/functions/eio-dup2.xml index 47e805bc81..bf9e7f6da2 100644 --- a/reference/eio/functions/eio-dup2.xml +++ b/reference/eio/functions/eio-dup2.xml @@ -34,7 +34,7 @@ fd - Source file descriptor + Source file descriptor @@ -42,7 +42,7 @@ fd2 - Target file descriptor + Target file descriptor @@ -62,7 +62,7 @@ data - Arbitrary variable passed to callback. + Arbitrary variable passed to callback. diff --git a/reference/eio/functions/eio-event-loop.xml b/reference/eio/functions/eio-event-loop.xml index 5a59cfa3ea..155da530a9 100644 --- a/reference/eio/functions/eio-event-loop.xml +++ b/reference/eio/functions/eio-event-loop.xml @@ -37,19 +37,19 @@ <function>eio_event_loop</function> example Currently only one flag is supported for mode: EIO_FALLOC_FL_KEEP_SIZE (the same as POSIX constant - FALLOC_FL_KEEP_SIZE). + FALLOC_FL_KEEP_SIZE). @@ -94,7 +94,7 @@ data - Arbitrary variable passed to callback. + Arbitrary variable passed to callback. diff --git a/reference/eio/functions/eio-fchmod.xml b/reference/eio/functions/eio-fchmod.xml index 61da98d0ba..c687496c39 100644 --- a/reference/eio/functions/eio-fchmod.xml +++ b/reference/eio/functions/eio-fchmod.xml @@ -62,7 +62,7 @@ data - Arbitrary variable passed to callback. + Arbitrary variable passed to callback. diff --git a/reference/eio/functions/eio-fchown.xml b/reference/eio/functions/eio-fchown.xml index ce2436f8ef..70a3bba634 100644 --- a/reference/eio/functions/eio-fchown.xml +++ b/reference/eio/functions/eio-fchown.xml @@ -35,7 +35,7 @@ fd - The file descriptor. + The file descriptor. @@ -71,7 +71,7 @@ data - Arbitrary variable passed to callback. + Arbitrary variable passed to callback. diff --git a/reference/eio/functions/eio-fdatasync.xml b/reference/eio/functions/eio-fdatasync.xml index 8478137dbb..399e9d88b7 100644 --- a/reference/eio/functions/eio-fdatasync.xml +++ b/reference/eio/functions/eio-fdatasync.xml @@ -52,7 +52,7 @@ data - Arbitrary variable passed to callback. + Arbitrary variable passed to callback. diff --git a/reference/eio/functions/eio-fstat.xml b/reference/eio/functions/eio-fstat.xml index 6407468a4a..9151b4ccdd 100644 --- a/reference/eio/functions/eio-fstat.xml +++ b/reference/eio/functions/eio-fstat.xml @@ -50,7 +50,7 @@ data - Arbitrary variable passed to callback. + Arbitrary variable passed to callback. @@ -70,7 +70,7 @@ <function>eio_lstat</function> example $result, 'file'=> $data @@ -103,7 +103,7 @@ function my_open_cb($data, $result) { } // Open temporary file -eio_open($tmp_filename, EIO_O_RDONLY, NULL, EIO_PRI_DEFAULT, +eio_open($tmp_filename, EIO_O_RDONLY, NULL, EIO_PRI_DEFAULT, "my_open_cb", $tmp_filename); eio_event_loop(); ?> diff --git a/reference/eio/functions/eio-fstatvfs.xml b/reference/eio/functions/eio-fstatvfs.xml index db452e69e3..ca0c187d85 100644 --- a/reference/eio/functions/eio-fstatvfs.xml +++ b/reference/eio/functions/eio-fstatvfs.xml @@ -30,7 +30,7 @@ fd - A file descriptor of a file within the mounted file system. + A file descriptor of a file within the mounted file system. @@ -50,7 +50,7 @@ data - Arbitrary variable passed to callback. + Arbitrary variable passed to callback. diff --git a/reference/eio/functions/eio-fsync.xml b/reference/eio/functions/eio-fsync.xml index fbdb92b32f..bd51596eb5 100644 --- a/reference/eio/functions/eio-fsync.xml +++ b/reference/eio/functions/eio-fsync.xml @@ -52,7 +52,7 @@ data - Arbitrary variable passed to callback. + Arbitrary variable passed to callback. diff --git a/reference/eio/functions/eio-ftruncate.xml b/reference/eio/functions/eio-ftruncate.xml index 692cf7c1b7..f2e09af043 100644 --- a/reference/eio/functions/eio-ftruncate.xml +++ b/reference/eio/functions/eio-ftruncate.xml @@ -63,7 +63,7 @@ data - Arbitrary variable passed to callback. + Arbitrary variable passed to callback. diff --git a/reference/eio/functions/eio-futime.xml b/reference/eio/functions/eio-futime.xml index e3c8769e87..422f1050b8 100644 --- a/reference/eio/functions/eio-futime.xml +++ b/reference/eio/functions/eio-futime.xml @@ -36,7 +36,7 @@ fd - The file descriptor, e.g. returned by eio_open + The file descriptor, e.g. returned by eio_open @@ -44,7 +44,7 @@ atime - Access time + Access time @@ -72,7 +72,7 @@ data - Arbitrary variable passed to callback. + Arbitrary variable passed to callback. diff --git a/reference/eio/functions/eio-grp-add.xml b/reference/eio/functions/eio-grp-add.xml index 5340b35570..ff9f0d4385 100644 --- a/reference/eio/functions/eio-grp-add.xml +++ b/reference/eio/functions/eio-grp-add.xml @@ -54,7 +54,7 @@ Grouping requests limit - Number of requests in the group. + Number of requests in the group. diff --git a/reference/eio/functions/eio-grp.xml b/reference/eio/functions/eio-grp.xml index 98ea99ef19..3ecdb9fb8c 100644 --- a/reference/eio/functions/eio-grp.xml +++ b/reference/eio/functions/eio-grp.xml @@ -54,7 +54,7 @@ <function>eio_grp</function> example data - Arbitrary variable passed to callback. + Arbitrary variable passed to callback. @@ -83,36 +83,36 @@ <function>eio_link</function> example data - Arbitrary variable passed to callback. + Arbitrary variable passed to callback. @@ -71,24 +71,24 @@ <function>eio_lstat</function> example diff --git a/reference/eio/functions/eio-mkdir.xml b/reference/eio/functions/eio-mkdir.xml index 7fa3a89e81..5b3bd8b264 100644 --- a/reference/eio/functions/eio-mkdir.xml +++ b/reference/eio/functions/eio-mkdir.xml @@ -34,7 +34,7 @@ path - Path for the new directory. + Path for the new directory. @@ -42,7 +42,7 @@ mode - Access mode, e.g. 0755 + Access mode, e.g. 0755 @@ -62,7 +62,7 @@ data - Arbitrary variable passed to callback. + Arbitrary variable passed to callback. @@ -82,20 +82,20 @@ <function>eio_mkdir</function> example path - Path for the new node(file). + Path for the new node(file). @@ -88,7 +88,7 @@ data - Arbitrary variable passed to callback. + Arbitrary variable passed to callback. @@ -109,24 +109,24 @@ ]]> diff --git a/reference/eio/functions/eio-nop.xml b/reference/eio/functions/eio-nop.xml index b5061d6bba..c1657bf06e 100644 --- a/reference/eio/functions/eio-nop.xml +++ b/reference/eio/functions/eio-nop.xml @@ -44,7 +44,7 @@ data - Arbitrary variable passed to callback. + Arbitrary variable passed to callback. diff --git a/reference/eio/functions/eio-nready.xml b/reference/eio/functions/eio-nready.xml index 8731f66368..d9cf404d93 100644 --- a/reference/eio/functions/eio-nready.xml +++ b/reference/eio/functions/eio-nready.xml @@ -14,7 +14,7 @@ - + diff --git a/reference/eio/functions/eio-nreqs.xml b/reference/eio/functions/eio-nreqs.xml index a422c4a84a..9919c6182d 100644 --- a/reference/eio/functions/eio-nreqs.xml +++ b/reference/eio/functions/eio-nreqs.xml @@ -40,8 +40,8 @@ ]]> diff --git a/reference/eio/functions/eio-open.xml b/reference/eio/functions/eio-open.xml index 86778bd931..9697d994c5 100644 --- a/reference/eio/functions/eio-open.xml +++ b/reference/eio/functions/eio-open.xml @@ -21,7 +21,7 @@ eio_open opens file specified by - path in access mode mode with + path in access mode mode with @@ -34,11 +34,11 @@ path - Path of the file to be opened. + Path of the file to be opened. In some SAPIs(e.g. PHP-FPM) it could fail, if you don't specify full path. - + @@ -80,7 +80,7 @@ data - Arbitrary variable passed to callback. + Arbitrary variable passed to callback. @@ -102,26 +102,26 @@ <function>eio_open</function> example 0); + // $result should contain the file descriptor + var_dump($result > 0); - if ($result > 0) { + if ($result > 0) { // Close the file - eio_close($result, EIO_PRI_DEFAULT, "my_close_cb", $data); - eio_event_loop(); - } + eio_close($result, EIO_PRI_DEFAULT, "my_close_cb", $data); + eio_event_loop(); + } } // Create new file for reading and writing diff --git a/reference/eio/functions/eio-poll.xml b/reference/eio/functions/eio-poll.xml index cfe237b337..cc28aee07f 100644 --- a/reference/eio/functions/eio-poll.xml +++ b/reference/eio/functions/eio-poll.xml @@ -44,8 +44,8 @@ ]]> diff --git a/reference/eio/functions/eio-read.xml b/reference/eio/functions/eio-read.xml index d91cfd37e6..6374580ee4 100644 --- a/reference/eio/functions/eio-read.xml +++ b/reference/eio/functions/eio-read.xml @@ -51,7 +51,7 @@ offset - Offset within the file. + Offset within the file. @@ -71,7 +71,7 @@ data - Arbitrary variable passed to callback. + Arbitrary variable passed to callback. @@ -93,7 +93,7 @@ <function>eio_read</function> example 0) { - // Read 5 bytes starting from third - eio_read($result, 5, 2, EIO_PRI_DEFAULT, "my_read_cb", $result); - eio_event_loop(); - } else { + if ($result > 0) { + // Read 5 bytes starting from third + eio_read($result, 5, 2, EIO_PRI_DEFAULT, "my_read_cb", $result); + eio_event_loop(); + } else { // eio_open() failed - unlink($data); - } + unlink($data); + } } // Open the file for reading and writing -eio_open($temp_filename, EIO_O_RDWR, NULL, - EIO_PRI_DEFAULT, "my_file_opened_callback", $temp_filename); +eio_open($temp_filename, EIO_O_RDWR, NULL, + EIO_PRI_DEFAULT, "my_file_opened_callback", $temp_filename); eio_event_loop(); ?> ]]> diff --git a/reference/eio/functions/eio-readahead.xml b/reference/eio/functions/eio-readahead.xml index 0d2a03b0f5..6ebd595186 100644 --- a/reference/eio/functions/eio-readahead.xml +++ b/reference/eio/functions/eio-readahead.xml @@ -71,7 +71,7 @@ data - Arbitrary variable passed to callback. + Arbitrary variable passed to callback. diff --git a/reference/eio/functions/eio-readdir.xml b/reference/eio/functions/eio-readdir.xml index 6d3da9a7db..6d91885894 100644 --- a/reference/eio/functions/eio-readdir.xml +++ b/reference/eio/functions/eio-readdir.xml @@ -19,10 +19,10 @@ choice="opt">stringdataNULL - Reads through a whole directory(via the opendir, readdir and closedir system - calls) and returns either the names or an array in - result argument of callback - function, depending on the flags argument. + Reads through a whole directory(via the opendir, readdir and + closedir system calls) and returns either the names or an array in + result argument of callback + function, depending on the flags argument. @@ -34,7 +34,7 @@ path - Directory path. + Directory path. @@ -49,20 +49,20 @@ pri - &eio.request.pri.values; + &eio.request.pri.values; callback - &eio.callback.proto; + &eio.callback.proto; data - Arbitrary variable passed to callback. + Arbitrary variable passed to callback. @@ -72,267 +72,262 @@ &reftitle.returnvalues; - eio_readdir returns request resource on success, or - &false; on error. Sets result argument of - callback function according to - flags: + eio_readdir returns request resource on success, or + &false; on error. Sets result argument of + callback function according to + flags: - - - - - - EIO_READDIR_DENTS - (integer) - - - - eio_readdir flag. If specified, the result argument of the callback - becomes an array with the following keys: - - 'names' - array of directory names - - 'dents' - array of struct - eio_dirent-like arrays having the following keys each: + + + + + EIO_READDIR_DENTS + (integer) + + + + eio_readdir flag. If specified, the result argument of the callback + becomes an array with the following keys: + 'names' - array of directory names + 'dents' - array of struct + eio_dirent-like arrays having the following keys each: 'name' - the directory name; - 'type' - one of EIO_DT_* constants; - 'inode' - the inode number, if available, otherwise unspecified; - - - - - - EIO_READDIR_DIRS_FIRST - (integer) - - - - When this flag is specified, the names will be returned in an order - where likely directories come first, in optimal stat order. - - - - - - EIO_READDIR_STAT_ORDER - (integer) - - - - When this flag is specified, then the names will be returned in an order - suitable for stat'ing each one. When planning to - stat all files in the given directory, the - returned order will likely be - fastest. - - - - - - EIO_READDIR_FOUND_UNKNOWN - (integer) - - - + + + + + + EIO_READDIR_DIRS_FIRST + (integer) + + + + When this flag is specified, the names will be returned in an order + where likely directories come first, in optimal stat order. + + + + + + EIO_READDIR_STAT_ORDER + (integer) + + + + When this flag is specified, then the names will be returned in an order + suitable for stat'ing each one. When planning to + stat all files in the given directory, the + returned order will likely be + fastest. + + + + + + EIO_READDIR_FOUND_UNKNOWN + (integer) + + + - - - + + + - + - Node types: - - + Node types: + + - - - EIO_DT_UNKNOWN - (integer) - - - - Unknown node type(very common). Further stat needed. - - - - - - EIO_DT_FIFO - (integer) - - - - FIFO node type - - - - - - EIO_DT_CHR - (integer) - - - - Node type - - - - - - EIO_DT_MPC - (integer) - - - - Multiplexed char device (v7+coherent) node type - - - - - - EIO_DT_DIR - (integer) - - - - Directory node type - - - - - - EIO_DT_NAM - (integer) - - - - Xenix special named file node type - - - - - - EIO_DT_BLK - (integer) - - - - Node type - - - - - - EIO_DT_MPB - (integer) - - - - Multiplexed block device (v7+coherent) - - - - - - EIO_DT_REG - (integer) - - - - Node type - - - - - - EIO_DT_NWK - (integer) - - - - - - - - - EIO_DT_CMP - (integer) - - - - HP-UX network special node type - - - - - - EIO_DT_LNK - (integer) - - - - Link node type - - - - - - EIO_DT_SOCK - (integer) - - - - Socket node type - - - - - - EIO_DT_DOOR - (integer) - - - - Solaris door node type - - - - - - EIO_DT_WHT - (integer) - - - - Node type - - - - - - EIO_DT_MAX - (integer) - - - - Highest node type value - - - - - - - + + + EIO_DT_UNKNOWN + (integer) + + + + Unknown node type(very common). Further stat needed. + + + + + + EIO_DT_FIFO + (integer) + + + + FIFO node type + + + + + + EIO_DT_CHR + (integer) + + + + Node type + + + + + + EIO_DT_MPC + (integer) + + + + Multiplexed char device (v7+coherent) node type + + + + + + EIO_DT_DIR + (integer) + + + + Directory node type + + + + + + EIO_DT_NAM + (integer) + + + + Xenix special named file node type + + + + + + EIO_DT_BLK + (integer) + + + + Node type + + + + + + EIO_DT_MPB + (integer) + + + + Multiplexed block device (v7+coherent) + + + + + + EIO_DT_REG + (integer) + + + + Node type + + + + + + EIO_DT_NWK + (integer) + + + + + + + + + EIO_DT_CMP + (integer) + + + + HP-UX network special node type + + + + + + EIO_DT_LNK + (integer) + + + + Link node type + + + + + + EIO_DT_SOCK + (integer) + + + + Socket node type + + + + + + EIO_DT_DOOR + (integer) + + + + Solaris door node type + + + + + + EIO_DT_WHT + (integer) + + + + Node type + + + + + + EIO_DT_MAX + (integer) + + + + Highest node type value + + + + + + + @@ -345,13 +340,13 @@ diff --git a/reference/eio/functions/eio-readlink.xml b/reference/eio/functions/eio-readlink.xml index f8f377b263..a91065d523 100644 --- a/reference/eio/functions/eio-readlink.xml +++ b/reference/eio/functions/eio-readlink.xml @@ -50,7 +50,7 @@ data - Arbitrary variable passed to callback. + Arbitrary variable passed to callback. @@ -77,29 +77,29 @@ $link = dirname(__FILE__)."/symlink.link"; $hardlink = dirname(__FILE__)."/hardlink.link"; function my_hardlink_cb($data, $result) { - global $link, $filename; - var_dump(file_exists($data) && !is_link($data)); - @unlink($data); + global $link, $filename; + var_dump(file_exists($data) && !is_link($data)); + @unlink($data); - eio_symlink($filename, $link, EIO_PRI_DEFAULT, "my_symlink_cb", $link); + eio_symlink($filename, $link, EIO_PRI_DEFAULT, "my_symlink_cb", $link); } function my_symlink_cb($data, $result) { - global $link, $filename; - var_dump(file_exists($data) && is_link($data)); + global $link, $filename; + var_dump(file_exists($data) && is_link($data)); - if (!eio_readlink($data, EIO_PRI_DEFAULT, "my_readlink_cb", NULL)) { - @unlink($link); - @unlink($filename); - } + if (!eio_readlink($data, EIO_PRI_DEFAULT, "my_readlink_cb", NULL)) { + @unlink($link); + @unlink($filename); + } } function my_readlink_cb($data, $result) { - global $filename, $link; - var_dump($result); + global $filename, $link; + var_dump($result); - @unlink($link); - @unlink($filename); + @unlink($link); + @unlink($filename); } eio_link($filename, $hardlink, EIO_PRI_DEFAULT, "my_hardlink_cb", $hardlink); diff --git a/reference/eio/functions/eio-realpath.xml b/reference/eio/functions/eio-realpath.xml index 10758a3e0f..9b47cf2576 100644 --- a/reference/eio/functions/eio-realpath.xml +++ b/reference/eio/functions/eio-realpath.xml @@ -32,8 +32,8 @@ path - Short pathname - + Short pathname + @@ -41,7 +41,7 @@ pri - + @@ -49,7 +49,7 @@ callback - + @@ -57,7 +57,7 @@ data - + @@ -81,7 +81,7 @@ var_dump(getcwd()); function my_realpath_allback($data, $result) { - var_dump($result); + var_dump($result); } eio_realpath("../", EIO_PRI_DEFAULT, "my_realpath_allback"); diff --git a/reference/eio/functions/eio-rename.xml b/reference/eio/functions/eio-rename.xml index b16c9d4b94..4bf17b6959 100644 --- a/reference/eio/functions/eio-rename.xml +++ b/reference/eio/functions/eio-rename.xml @@ -61,7 +61,7 @@ data - Arbitrary variable passed to callback. + Arbitrary variable passed to callback. @@ -81,20 +81,20 @@ <function>eio_rename</function> example path - Directory path + Directory path @@ -52,7 +52,7 @@ data - Arbitrary variable passed to callback. + Arbitrary variable passed to callback. @@ -72,16 +72,16 @@ <function>eio_rmdir</function> example data - Arbitrary variable passed to callback. + Arbitrary variable passed to callback. diff --git a/reference/eio/functions/eio-set-max-poll-time.xml b/reference/eio/functions/eio-set-max-poll-time.xml index 6d4395bbb2..9019b8781b 100644 --- a/reference/eio/functions/eio-set-max-poll-time.xml +++ b/reference/eio/functions/eio-set-max-poll-time.xml @@ -27,7 +27,7 @@ nseconds - Number of seconds + Number of seconds diff --git a/reference/eio/functions/eio-set-min-parallel.xml b/reference/eio/functions/eio-set-min-parallel.xml index 4e7ccc107b..ae6c326a76 100644 --- a/reference/eio/functions/eio-set-min-parallel.xml +++ b/reference/eio/functions/eio-set-min-parallel.xml @@ -26,7 +26,7 @@ nthreads - Number of parallel threads. + Number of parallel threads. diff --git a/reference/eio/functions/eio-stat.xml b/reference/eio/functions/eio-stat.xml index 6b25b44095..13147b41f0 100644 --- a/reference/eio/functions/eio-stat.xml +++ b/reference/eio/functions/eio-stat.xml @@ -31,7 +31,7 @@ path - The file path + The file path @@ -51,7 +51,7 @@ data - Arbitrary variable passed to callback. + Arbitrary variable passed to callback. @@ -78,19 +78,19 @@ $tmp_filename = "eio-file.tmp"; touch($tmp_filename); function my_res_cb($data, $result) { - var_dump($data); - var_dump($result); + var_dump($data); + var_dump($result); } function my_open_cb($data, $result) { - eio_close($result); - eio_event_loop(); + eio_close($result); + eio_event_loop(); - @unlink($data); + @unlink($data); } eio_stat($tmp_filename, EIO_PRI_DEFAULT, "my_res_cb", "eio_stat"); -eio_open($tmp_filename, EIO_O_RDONLY, NULL, +eio_open($tmp_filename, EIO_O_RDONLY, NULL, EIO_PRI_DEFAULT, "my_open_cb", $tmp_filename); eio_event_loop(); ?> diff --git a/reference/eio/functions/eio-statvfs.xml b/reference/eio/functions/eio-statvfs.xml index 68ef696342..7ae130da12 100644 --- a/reference/eio/functions/eio-statvfs.xml +++ b/reference/eio/functions/eio-statvfs.xml @@ -49,7 +49,7 @@ data - Arbitrary variable passed to callback. + Arbitrary variable passed to callback. @@ -76,8 +76,8 @@ $tmp_filename = '/tmp/eio-file.tmp'; touch($tmp_filename); function my_statvfs_callback($data, $result) { - var_dump($data); - var_dump($result); + var_dump($data); + var_dump($result); @unlink($data); } diff --git a/reference/eio/functions/eio-symlink.xml b/reference/eio/functions/eio-symlink.xml index 3980ae1609..e6efce00f2 100644 --- a/reference/eio/functions/eio-symlink.xml +++ b/reference/eio/functions/eio-symlink.xml @@ -35,7 +35,7 @@ path - Source path + Source path @@ -43,7 +43,7 @@ new_path - Target path + Target path @@ -63,7 +63,7 @@ data - Arbitrary variable passed to callback. + Arbitrary variable passed to callback. @@ -83,27 +83,27 @@ <function>eio_symlink</function> example fd - File descriptor + File descriptor @@ -44,7 +44,7 @@ offset - The starting byte of the file range to be synchronized + The starting byte of the file range to be synchronized @@ -87,7 +87,7 @@ data - Arbitrary variable passed to callback. + Arbitrary variable passed to callback. diff --git a/reference/eio/functions/eio-syncfs.xml b/reference/eio/functions/eio-syncfs.xml index 3d0cc7b7f7..7e397a08d1 100644 --- a/reference/eio/functions/eio-syncfs.xml +++ b/reference/eio/functions/eio-syncfs.xml @@ -33,7 +33,7 @@ File descriptor - + @@ -53,7 +53,7 @@ data - Arbitrary variable passed to callback. + Arbitrary variable passed to callback. diff --git a/reference/eio/functions/eio-truncate.xml b/reference/eio/functions/eio-truncate.xml index acead93a7d..2bb1b100ef 100644 --- a/reference/eio/functions/eio-truncate.xml +++ b/reference/eio/functions/eio-truncate.xml @@ -34,7 +34,7 @@ path - File path + File path @@ -62,7 +62,7 @@ data - Arbitrary variable passed to callback. + Arbitrary variable passed to callback. diff --git a/reference/eio/functions/eio-unlink.xml b/reference/eio/functions/eio-unlink.xml index 8b222191c2..0cff519cee 100644 --- a/reference/eio/functions/eio-unlink.xml +++ b/reference/eio/functions/eio-unlink.xml @@ -32,7 +32,7 @@ path - Path to file + Path to file @@ -52,7 +52,7 @@ data - Arbitrary variable passed to callback. + Arbitrary variable passed to callback. diff --git a/reference/eio/functions/eio-utime.xml b/reference/eio/functions/eio-utime.xml index b7dc95e2f9..5e29e28f12 100644 --- a/reference/eio/functions/eio-utime.xml +++ b/reference/eio/functions/eio-utime.xml @@ -42,7 +42,7 @@ atime - Access time + Access time @@ -50,7 +50,7 @@ mtime - Modification time + Modification time @@ -70,7 +70,7 @@ data - Arbitrary variable passed to callback. + Arbitrary variable passed to callback. diff --git a/reference/eio/functions/eio-write.xml b/reference/eio/functions/eio-write.xml index ea35f2cc5a..355f2a8e58 100644 --- a/reference/eio/functions/eio-write.xml +++ b/reference/eio/functions/eio-write.xml @@ -45,7 +45,7 @@ str - Source string + Source string @@ -53,7 +53,7 @@ length - Maximum number of bytes to write. + Maximum number of bytes to write. @@ -61,7 +61,7 @@ offset - Offset from the beginning of file. + Offset from the beginning of file. @@ -81,7 +81,7 @@ data - Arbitrary variable passed to callback. + Arbitrary variable passed to callback. diff --git a/reference/eio/setup.xml b/reference/eio/setup.xml index e092787bbd..8b5b09476e 100644 --- a/reference/eio/setup.xml +++ b/reference/eio/setup.xml @@ -16,8 +16,8 @@ $ cvs -z3 -d :pserver:anonymous@cvs.schmorp.de/schmorpforge co libeio $ cd libeio $ ./autogen.sh $ ./configure -$ make -# make install +$ make +# make install ]]> Note, the last command needs root priveleges.