Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

eio_cancel(3) [php man page]

EIO_CANCEL(3)								 1							     EIO_CANCEL(3)

eio_cancel - Cancels a request

SYNOPSIS
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 file

SYNOPSIS
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)
Man Page

5 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Problem joining 2 files

Hi I have 2 files which look like File1 1245 1256 2345 2165 3245 9851 8514 6498 8547 2541 5242 and File2 (4 Replies)
Discussion started by: rochitsharma
4 Replies

2. Shell Programming and Scripting

writing into one line

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)
Discussion started by: Satyak
2 Replies

3. Shell Programming and Scripting

need to get consolidated result from logs

already have a file with below details request 1 | 2 request 2 | 3 request 1 | 4 request 2 | 5 result required in third file request 1 | 6 request 2 | 8 (3 Replies)
Discussion started by: sankasu
3 Replies

4. Red Hat

find . -name '*.req' -mtime +2 -exec rm {} \; not deleting files

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)
Discussion started by: rehantayyab82
5 Replies

5. Shell Programming and Scripting

Subtotal in UNIX

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)
Discussion started by: skchevva
7 Replies