summaryrefslogtreecommitdiff
path: root/vendor/thecodingmachine/safe/generated/eio.php
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/thecodingmachine/safe/generated/eio.php')
-rw-r--r--vendor/thecodingmachine/safe/generated/eio.php97
1 files changed, 75 insertions, 22 deletions
diff --git a/vendor/thecodingmachine/safe/generated/eio.php b/vendor/thecodingmachine/safe/generated/eio.php
index 8d2f538e8..1fffa9004 100644
--- a/vendor/thecodingmachine/safe/generated/eio.php
+++ b/vendor/thecodingmachine/safe/generated/eio.php
@@ -414,6 +414,57 @@ function eio_fchmod($fd, int $mode, int $pri = EIO_PRI_DEFAULT, callable $callba
/**
+ * eio_fchown changes ownership of the file specified by
+ * fd file descriptor.
+ *
+ * @param mixed $fd Stream, Socket resource, or numeric file descriptor.
+ * @param int $uid User ID. Is ignored when equal to -1.
+ * @param int $gid Group ID. Is ignored when equal to -1.
+ * @param int $pri The request priority: EIO_PRI_DEFAULT, EIO_PRI_MIN, EIO_PRI_MAX, or NULL.
+ * If NULL passed, pri internally is set to
+ * EIO_PRI_DEFAULT.
+ * @param callable $callback
+ * callback function is called when the request is done.
+ * It should match the following prototype:
+ *
+ *
+ * data
+ * is custom data passed to the request.
+ *
+ *
+ * result
+ * request-specific result value; basically, the value returned by corresponding
+ * system call.
+ *
+ *
+ * req
+ * is optional request resource which can be used with functions like eio_get_last_error
+ *
+ *
+ *
+ * is custom data passed to the request.
+ *
+ * request-specific result value; basically, the value returned by corresponding
+ * system call.
+ *
+ * is optional request resource which can be used with functions like eio_get_last_error
+ * @param mixed $data is custom data passed to the request.
+ * @return resource eio_chmod returns request resource on success.
+ * @throws EioException
+ *
+ */
+function eio_fchown($fd, int $uid, int $gid = -1, int $pri = EIO_PRI_DEFAULT, callable $callback = null, $data = null)
+{
+ error_clear_last();
+ $result = \eio_fchown($fd, $uid, $gid, $pri, $callback, $data);
+ if ($result === false) {
+ throw EioException::createFromPhpError();
+ }
+ return $result;
+}
+
+
+/**
* eio_fdatasync synchronizes a file's in-core state with storage device.
*
* @param mixed $fd Stream, Socket resource, or numeric file descriptor, e.g. returned by eio_open.
@@ -1061,7 +1112,8 @@ function eio_readahead($fd, int $offset, int $length, int $pri = EIO_PRI_DEFAULT
*
* is optional request resource which can be used with functions like eio_get_last_error
* @param string $data is custom data passed to the request.
- * @return resource eio_readdir returns request resource on success. Sets result argument of
+ * @return resource eio_readdir returns request resource on success.
+ * Sets result argument of
* callback function according to
* flags:
*
@@ -1071,7 +1123,7 @@ function eio_readahead($fd, int $offset, int $length, int $pri = EIO_PRI_DEFAULT
*
*
* EIO_READDIR_DENTS
- * (integer)
+ * (int)
*
*
*
@@ -1091,7 +1143,7 @@ function eio_readahead($fd, int $offset, int $length, int $pri = EIO_PRI_DEFAULT
*
*
* EIO_READDIR_DIRS_FIRST
- * (integer)
+ * (int)
*
*
*
@@ -1103,7 +1155,7 @@ function eio_readahead($fd, int $offset, int $length, int $pri = EIO_PRI_DEFAULT
*
*
* EIO_READDIR_STAT_ORDER
- * (integer)
+ * (int)
*
*
*
@@ -1118,7 +1170,7 @@ function eio_readahead($fd, int $offset, int $length, int $pri = EIO_PRI_DEFAULT
*
*
* EIO_READDIR_FOUND_UNKNOWN
- * (integer)
+ * (int)
*
*
*
@@ -1137,7 +1189,7 @@ function eio_readahead($fd, int $offset, int $length, int $pri = EIO_PRI_DEFAULT
*
*
* EIO_DT_UNKNOWN
- * (integer)
+ * (int)
*
*
*
@@ -1148,7 +1200,7 @@ function eio_readahead($fd, int $offset, int $length, int $pri = EIO_PRI_DEFAULT
*
*
* EIO_DT_FIFO
- * (integer)
+ * (int)
*
*
*
@@ -1159,7 +1211,7 @@ function eio_readahead($fd, int $offset, int $length, int $pri = EIO_PRI_DEFAULT
*
*
* EIO_DT_CHR
- * (integer)
+ * (int)
*
*
*
@@ -1170,7 +1222,7 @@ function eio_readahead($fd, int $offset, int $length, int $pri = EIO_PRI_DEFAULT
*
*
* EIO_DT_MPC
- * (integer)
+ * (int)
*
*
*
@@ -1181,7 +1233,7 @@ function eio_readahead($fd, int $offset, int $length, int $pri = EIO_PRI_DEFAULT
*
*
* EIO_DT_DIR
- * (integer)
+ * (int)
*
*
*
@@ -1192,7 +1244,7 @@ function eio_readahead($fd, int $offset, int $length, int $pri = EIO_PRI_DEFAULT
*
*
* EIO_DT_NAM
- * (integer)
+ * (int)
*
*
*
@@ -1203,7 +1255,7 @@ function eio_readahead($fd, int $offset, int $length, int $pri = EIO_PRI_DEFAULT
*
*
* EIO_DT_BLK
- * (integer)
+ * (int)
*
*
*
@@ -1214,7 +1266,7 @@ function eio_readahead($fd, int $offset, int $length, int $pri = EIO_PRI_DEFAULT
*
*
* EIO_DT_MPB
- * (integer)
+ * (int)
*
*
*
@@ -1225,7 +1277,7 @@ function eio_readahead($fd, int $offset, int $length, int $pri = EIO_PRI_DEFAULT
*
*
* EIO_DT_REG
- * (integer)
+ * (int)
*
*
*
@@ -1236,7 +1288,7 @@ function eio_readahead($fd, int $offset, int $length, int $pri = EIO_PRI_DEFAULT
*
*
* EIO_DT_NWK
- * (integer)
+ * (int)
*
*
*
@@ -1246,7 +1298,7 @@ function eio_readahead($fd, int $offset, int $length, int $pri = EIO_PRI_DEFAULT
*
*
* EIO_DT_CMP
- * (integer)
+ * (int)
*
*
*
@@ -1257,7 +1309,7 @@ function eio_readahead($fd, int $offset, int $length, int $pri = EIO_PRI_DEFAULT
*
*
* EIO_DT_LNK
- * (integer)
+ * (int)
*
*
*
@@ -1268,7 +1320,7 @@ function eio_readahead($fd, int $offset, int $length, int $pri = EIO_PRI_DEFAULT
*
*
* EIO_DT_SOCK
- * (integer)
+ * (int)
*
*
*
@@ -1279,7 +1331,7 @@ function eio_readahead($fd, int $offset, int $length, int $pri = EIO_PRI_DEFAULT
*
*
* EIO_DT_DOOR
- * (integer)
+ * (int)
*
*
*
@@ -1290,7 +1342,7 @@ function eio_readahead($fd, int $offset, int $length, int $pri = EIO_PRI_DEFAULT
*
*
* EIO_DT_WHT
- * (integer)
+ * (int)
*
*
*
@@ -1301,7 +1353,7 @@ function eio_readahead($fd, int $offset, int $length, int $pri = EIO_PRI_DEFAULT
*
*
* EIO_DT_MAX
- * (integer)
+ * (int)
*
*
*
@@ -1672,7 +1724,8 @@ function eio_stat(string $path, int $pri, callable $callback, $data = null)
*
* is optional request resource which can be used with functions like eio_get_last_error
* @param mixed $data is custom data passed to the request.
- * @return resource eio_statvfs returns request resource on success. On success assigns result argument of
+ * @return resource eio_statvfs returns request resource on success.
+ * On success assigns result argument of
* callback to an array.
* @throws EioException
*