Home
last modified time | relevance | path

Searched refs:whence (Results 1 – 25 of 63) sorted by path

123

/PHP-7.4/build/
H A Dphp.m41476 int seeker(void *cookie, off64_t *position, int whence)
/PHP-7.4/docs/
H A Dstreams.md34 PHPAPI int php_stream_seek(php_stream * stream, off_t offset, int whence);
151 as the `php_stream_seek` can emulate forward seeking when the whence parameter
/PHP-7.4/ext/com_dotnet/
H A Dcom_persist.c139 int whence; in stm_seek() local
144 case STREAM_SEEK_SET: whence = SEEK_SET; break; in stm_seek()
145 case STREAM_SEEK_CUR: whence = SEEK_CUR; break; in stm_seek()
146 case STREAM_SEEK_END: whence = SEEK_END; break; in stm_seek()
158 ret = php_stream_seek(stm->stream, offset, whence); in stm_seek()
/PHP-7.4/ext/dba/
H A Ddba_cdb.c226 zend_off_t cdb_file_lseek(php_stream *fp, zend_off_t offset, int whence) { in cdb_file_lseek() argument
227 php_stream_seek(fp, offset, whence); in cdb_file_lseek()
231 zend_off_t cdb_file_lseek(int fd, zend_off_t offset, int whence) { in cdb_file_lseek() argument
232 return lseek(fd, offset, whence); in cdb_file_lseek()
/PHP-7.4/ext/oci8/
H A Doci8.c191 ZEND_ARG_INFO(0, whence)
549 ZEND_ARG_INFO(0, whence)
H A Doci8_interface.c533 zend_long offset, whence = PHP_OCI_SEEK_SET; in PHP_FUNCTION() local
537 if (zend_parse_parameters(ZEND_NUM_ARGS(), "l|l", &offset, &whence) == FAILURE) { in PHP_FUNCTION()
542 …rs(ZEND_NUM_ARGS(), "Ol|l", &z_descriptor, oci_lob_class_entry_ptr, &offset, &whence) == FAILURE) { in PHP_FUNCTION()
558 switch(whence) { in PHP_FUNCTION()
/PHP-7.4/ext/oci8/tests/
H A Dreflection1.phpt563 Parameter #2 [ <optional> $whence ]
H A Dreflection2.phpt100 Parameter #1 [ <optional> $whence ]
/PHP-7.4/ext/pdo_oci/
H A Doci_statement.c705 static int oci_blob_seek(php_stream *stream, zend_off_t offset, int whence, zend_off_t *newoffset) in oci_blob_seek() argument
/PHP-7.4/ext/pdo_pgsql/
H A Dpgsql_driver.c156 static int pgsql_lob_seek(php_stream *stream, zend_off_t offset, int whence, in pgsql_lob_seek() argument
161 zend_off_t pos = lo_lseek64(self->conn, self->lfd, offset, whence); in pgsql_lob_seek()
163 zend_off_t pos = lo_lseek(self->conn, self->lfd, offset, whence); in pgsql_lob_seek()
/PHP-7.4/ext/pgsql/
H A Dpgsql.c369 ZEND_ARG_INFO(0, whence)
3817 zend_long result, offset = 0, whence = SEEK_CUR; local
3821 if (zend_parse_parameters(argc, "rl|l", &pgsql_id, &offset, &whence) == FAILURE) {
3824 if (whence != SEEK_SET && whence != SEEK_CUR && whence != SEEK_END) {
3835 result = lo_lseek64((PGconn *)pgsql->conn, pgsql->lofd, offset, (int)whence);
3837 result = lo_lseek((PGconn *)pgsql->conn, pgsql->lofd, (int)offset, (int)whence);
3840 result = lo_lseek((PGconn *)pgsql->conn, pgsql->lofd, offset, whence);
/PHP-7.4/ext/phar/
H A Ddirstream.c60 static int phar_dir_seek(php_stream *stream, zend_off_t offset, int whence, zend_off_t *newoffset) … in phar_dir_seek() argument
68 if (whence == SEEK_END) { in phar_dir_seek()
69 whence = SEEK_SET; in phar_dir_seek()
73 if (whence == SEEK_SET) { in phar_dir_seek()
H A Ddirstream.h32 static int phar_dir_seek( php_stream *stream, zend_off_t offset, int whence, zend_off_t *newoffs…
H A Dphar.c800 zend_off_t whence; in phar_parse_pharfile() local
816 whence = signature_len + 4; in phar_parse_pharfile()
817 whence = -whence; in phar_parse_pharfile()
819 if (-1 == php_stream_seek(fp, whence, SEEK_CUR) in phar_parse_pharfile()
H A Dphar_internal.h549 int phar_seek_efp(phar_entry_info *entry, zend_off_t offset, int whence, zend_off_t position, int f…
H A Dstream.c395 static int phar_stream_seek(php_stream *stream, zend_off_t offset, int whence, zend_off_t *newoffse… in phar_stream_seek() argument
408 switch (whence) { in phar_stream_seek()
H A Dstream.h35 static int phar_stream_seek( php_stream *stream, zend_off_t offset, int whence, zend_off_t *newo…
H A Dutil.c116 int phar_seek_efp(phar_entry_info *entry, zend_off_t offset, int whence, zend_off_t position, int f… in phar_seek_efp() argument
139 switch (whence) { in phar_seek_efp()
/PHP-7.4/ext/spl/
H A Dspl_directory.c2803 zend_long pos, whence = SEEK_SET; in SPL_METHOD() local
2805 if (zend_parse_parameters(ZEND_NUM_ARGS(), "l|l", &pos, &whence) == FAILURE) { in SPL_METHOD()
2815 RETURN_LONG(php_stream_seek(intern->u.file.stream, pos, (int)whence)); in SPL_METHOD()
3063 ZEND_ARG_INFO(0, whence)
/PHP-7.4/ext/sqlite3/
H A Dsqlite3.c1194 static int php_sqlite3_stream_seek(php_stream *stream, zend_off_t offset, int whence, zend_off_t *n… in php_sqlite3_stream_seek() argument
1198 switch(whence) { in php_sqlite3_stream_seek()
/PHP-7.4/ext/standard/
H A Dbasic_functions.c1130 ZEND_ARG_INFO(0, whence)
H A Dfile.c1290 zend_long offset, whence = SEEK_SET; in PHP_FUNCTION() local
1297 Z_PARAM_LONG(whence) in PHP_FUNCTION()
1302 RETURN_LONG(php_stream_seek(stream, offset, (int) whence)); in PHP_FUNCTION()
H A Dphp_fopen_wrapper.c125 static int php_stream_input_seek(php_stream *stream, zend_off_t offset, int whence, zend_off_t *new… in php_stream_input_seek() argument
130 int sought = php_stream_seek(input->body, offset, whence); in php_stream_input_seek()
/PHP-7.4/ext/standard/tests/file/
H A Dbug27508.phpt39 function stream_seek($offset, $whence)
41 return fseek($this->fp, $offset, $whence) == 0 ? true : false;
H A Dbug38450.phpt48 function stream_seek($offset, $whence)
50 switch ($whence) {

Completed in 131 milliseconds

123