EIO_CANCEL(3) 1 EIO_CANCEL(3)eio_cancel - Cancels a requestSYNOPSIS
void eio_cancel (resource $req)
DESCRIPTION eio_cancel(3) cancels a request specified by $req
PARAMETERS
o $req
- The request resource
o $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.
o $callback
-$callback function is called when the request is done. It should match the following prototype:
void callback(mixed $data, int $result[, resource $req]);
o $data
-is custom data passed to the request.
o $result
-request-specific result value; basically, the value returned by corresponding system call.
o $req
-is optional request resource which can be used with functions like eio_get_last_error(3)
o $data
- Arbitrary variable passed to $callback.
RETURN VALUES
No value is returned.
EXAMPLES
Example #1
eio_cancel(3) example
<?php
/* Is called when eio_nop() finished */
function my_nop_cb($data, $result) {
echo "my_nop ", $data, "
";
}
// This eio_nop() call will be cancelled
$req = eio_nop(EIO_PRI_DEFAULT, "my_nop_cb", "1");
var_dump($req);
eio_cancel($req);
// This time eio_nop() will be processed
eio_nop(EIO_PRI_DEFAULT, "my_nop_cb", "2");
// Process requests
eio_event_loop();
?>
The above example will output something similar to:
resource(4) of type (EIO Request Descriptor)
my_nop 2
SEE ALSO eio_grp_cancel.PHP Documentation Group EIO_CANCEL(3)
Check Out this Related Man Page
EIO_TRUNCATE(3) 1 EIO_TRUNCATE(3)eio_truncate - Truncate a fileSYNOPSIS
resource eio_truncate (string $path, [int $offset], [int $pri = EIO_PRI_DEFAULT], [callable $callback = NULL], [mixed $data = NULL])
DESCRIPTION eio_truncate(3) causes the regular file named by $path to be truncated to a size of precisely $length bytes
PARAMETERS
o $path
- File path
o $offset
- Offset from beginning of the file.
o $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.
o $callback
-$callback function is called when the request is done. It should match the following prototype:
void callback(mixed $data, int $result[, resource $req]);
o $data
-is custom data passed to the request.
o $result
-request-specific result value; basically, the value returned by corresponding system call.
o $req
-is optional request resource which can be used with functions like eio_get_last_error(3)
o $data
- Arbitrary variable passed to $callback.
RETURN VALUES eio_busy(3) returns request resource on success or FALSE on error.
SEE ALSO eio_ftruncate.PHP Documentation Group EIO_TRUNCATE(3)
hi
i have a file contains data
Line timeout:
START->SIGNON_REPLY,
SIGNON_REPLY->SIGNON,
Received SOT req
SOT request:
SIGNON->SOT_REPLY,
SOT_REPLY->DATA_RECEIVE,
DATA_RECEIVE->EOD,
i need to write into one line , separated by commas
please help
thanks
Satya (2 Replies)
i want to remove *.req files from directory
/opt/FFCL8001/oracle/inst/apps/FFCL8001_lhrho/logs/appl/conc/log
i executed command find . -name '*.req' -mtime +2 -exec rm {} \;
but it is running since hours and free space in /opt is same as old 7.4 GB .
why it is not removing files ? (5 Replies)
Please help me on below req
Data in file
ARIZONA HCPAZ 47
ARIZONA HCPAZCONT 3056
ARIZONA AZA 20
CALIFORNIA HC06 878
CALIFORNIA LC04 51
CALIFORNIA LC06 4039
CALIFORNIA HCPCACONT 4960
THE CAMDEN GROUP CAM 83... (7 Replies)