Searched defs:whence (Results 1 - 18 of 18) sorted by relevance

/PHP_5_3/ext/com_dotnet/
H A Dcom_persist.c143 int whence; local
148 case STREAM_SEEK_SET: whence = SEEK_SET; break;
149 case STREAM_SEEK_CUR: whence = SEEK_CUR; break;
150 case STREAM_SEEK_END: whence = SEEK_END; break;
162 ret = php_stream_seek(stm->stream, offset, whence);
/PHP_5_3/ext/oci8/
H A Doci8_interface.c435 /* {{{ proto bool oci_lob_seek( int offset [, int whence ])
441 long offset, whence = PHP_OCI_SEEK_SET; local
445 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "l|l", &offset, &whence) == FAILURE) {
450 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "Ol|l", &z_descriptor, oci_lob_class_entry_ptr, &offset, &whence) == FAILURE) {
466 switch(whence) {
/PHP_5_3/ext/pdo_oci/
H A Doci_statement.c672 static int oci_blob_seek(php_stream *stream, off_t offset, int whence, off_t *newoffset TSRMLS_DC) argument
/PHP_5_3/ext/sqlite3/
H A Dsqlite3.c1115 static int php_sqlite3_stream_seek(php_stream *stream, off_t offset, int whence, off_t *newoffs TSRMLS_DC) argument
1119 switch(whence) {
/PHP_5_3/ext/zlib/
H A Dzlib_fopen_wrapper.c57 static int php_gziop_seek(php_stream *stream, off_t offset, int whence, off_t *newoffs TSRMLS_DC) argument
63 if (whence == SEEK_END) {
67 *newoffs = gzseek(self->gz_file, offset, whence);
/PHP_5_3/main/streams/
H A Dglob_wrapper.c183 static int php_glob_stream_rewind(php_stream *stream, off_t offset, int whence, off_t *newoffs TSRMLS_DC) /* {{{ */ argument
H A Dmemory.c134 static int php_stream_memory_seek(php_stream *stream, off_t offset, int whence, off_t *newoffs TSRMLS_DC) argument
139 switch(whence) {
446 static int php_stream_temp_seek(php_stream *stream, off_t offset, int whence, off_t *newoffs TSRMLS_DC) argument
457 ret = php_stream_seek(ts->innerstream, offset, whence);
H A Dplain_wrapper.c447 static int php_stdiop_seek(php_stream *stream, off_t offset, int whence, off_t *newoffset TSRMLS_DC) argument
462 result = lseek(data->fd, offset, whence);
470 ret = fseek(data->file, offset, whence);
836 static int php_plain_files_dirstream_rewind(php_stream *stream, off_t offset, int whence, off_t *newoffs TSRMLS_DC) argument
H A Duserspace.c162 function stream_seek($offset, $whence)
771 static int php_userstreamop_seek(php_stream *stream, off_t offset, int whence, off_t *newoffs TSRMLS_DC) argument
789 ZVAL_LONG(zwhence, whence);
1449 static int php_userstreamop_rewinddir(php_stream *stream, off_t offset, int whence, off_t *newoffs TSRMLS_DC) argument
H A Dcast.c79 static PHP_FPOS_T stream_cookie_seeker(void *cookie, off_t position, int whence) argument
83 return (PHP_FPOS_T)php_stream_seek((php_stream *)cookie, position, whence);
113 static int stream_cookie_seeker(void *cookie, __off64_t *position, int whence) argument
117 *position = php_stream_seek((php_stream *)cookie, (off_t)*position, whence);
125 static int stream_cookie_seeker(void *cookie, off_t position, int whence) argument
129 return php_stream_seek((php_stream *)cookie, position, whence);
/PHP_5_3/ext/phar/
H A Ddirstream.c61 static int phar_dir_seek(php_stream *stream, off_t offset, int whence, off_t *newoffset TSRMLS_DC) /* {{{ */ argument
69 if (whence == SEEK_END) {
70 whence = SEEK_SET;
74 if (whence == SEEK_SET) {
H A Dphar.c792 off_t whence; local
808 whence = signature_len + 4;
809 whence = -whence;
811 if (-1 == php_stream_seek(fp, whence, SEEK_CUR)
H A Dstream.c390 static int phar_stream_seek(php_stream *stream, off_t offset, int whence, off_t *newoffset TSRMLS_DC) /* {{{ */ argument
403 switch (whence) {
H A Dutil.c124 int phar_seek_efp(phar_entry_info *entry, off_t offset, int whence, off_t position, int follow_links TSRMLS_DC) /* {{{ */ argument
147 switch (whence) {
/PHP_5_3/ext/standard/
H A Dfile.c1368 /* {{{ proto int fseek(resource fp, int offset [, int whence])
1373 long arg2, whence = SEEK_SET; local
1376 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "rl|l", &arg1, &arg2, &whence) == FAILURE) {
1382 RETURN_LONG(php_stream_seek(stream, arg2, whence));
/PHP_5_3/ext/spl/
H A Dspl_directory.c2707 /* {{{ proto int SplFileObject::fseek(int pos [, int whence = SEEK_SET])
2712 long pos, whence = SEEK_SET; local
2714 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "l|l", &pos, &whence) == FAILURE) {
2719 RETURN_LONG(php_stream_seek(intern->u.file.stream, pos, whence));
2899 ZEND_ARG_INFO(0, whence)
/PHP_5_3/ext/pgsql/
H A Dpgsql.c360 ZEND_ARG_INFO(0, whence)
3512 /* {{{ proto bool pg_lo_seek(resource large_object, int offset [, int whence])
3517 long offset = 0, whence = SEEK_CUR; local
3521 if (zend_parse_parameters(argc TSRMLS_CC, "rl|l", &pgsql_id, &offset, &whence) == FAILURE) {
3524 if (whence != SEEK_SET && whence != SEEK_CUR && whence != SEEK_END) {
3525 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Invalid whence parameter");
3531 if (lo_lseek((PGconn *)pgsql->conn, pgsql->lofd, offset, whence) > -1) {
/PHP_5_3/ext/pdo_pgsql/
H A Dpgsql_driver.c150 static int pgsql_lob_seek(php_stream *stream, off_t offset, int whence, argument
154 int pos = lo_lseek(self->conn, self->lfd, offset, whence);

Completed in 66 milliseconds