Home
last modified time | relevance | path

Searched refs:whence (Results 1 – 25 of 67) sorted by last modified time

123

/PHP-8.1/ext/pgsql/
H A Dpgsql.c2825 zend_long result, offset = 0, whence = SEEK_CUR; in PHP_FUNCTION() local
2828 …if (zend_parse_parameters(ZEND_NUM_ARGS(), "Ol|l", &pgsql_id, pgsql_lob_ce, &offset, &whence) == F… in PHP_FUNCTION()
2831 if (whence != SEEK_SET && whence != SEEK_CUR && whence != SEEK_END) { in PHP_FUNCTION()
2841 result = lo_lseek64((PGconn *)pgsql->conn, pgsql->lofd, offset, (int)whence); in PHP_FUNCTION()
2843 result = lo_lseek((PGconn *)pgsql->conn, pgsql->lofd, (int)offset, (int)whence); in PHP_FUNCTION()
2846 result = lo_lseek((PGconn *)pgsql->conn, pgsql->lofd, offset, whence); in PHP_FUNCTION()
/PHP-8.1/main/
H A Dphp_streams.h124 int (*seek)(php_stream *stream, zend_off_t offset, int whence, zend_off_t *newoffset);
304 PHPAPI int _php_stream_seek(php_stream *stream, zend_off_t offset, int whence);
306 #define php_stream_seek(stream, offset, whence) _php_stream_seek((stream), (offset), (whence)) argument
/PHP-8.1/main/streams/
H A Dstreams.c1291 PHPAPI int _php_stream_seek(php_stream *stream, zend_off_t offset, int whence) in _php_stream_seek() argument
1305 switch(whence) { in _php_stream_seek()
1334 switch(whence) { in _php_stream_seek()
1337 whence = SEEK_SET; in _php_stream_seek()
1340 ret = stream->ops->seek(stream, offset, whence, &stream->position); in _php_stream_seek()
1357 if (whence == SEEK_CUR && offset >= 0) { in _php_stream_seek()
H A Dcast.c73 static PHP_FPOS_T stream_cookie_seeker(void *cookie, zend_off_t position, int whence) in stream_cookie_seeker() argument
76 return (PHP_FPOS_T)php_stream_seek((php_stream *)cookie, position, whence); in stream_cookie_seeker()
104 static int stream_cookie_seeker(void *cookie, off64_t *position, int whence) in stream_cookie_seeker() argument
107 *position = php_stream_seek((php_stream *)cookie, (zend_off_t)*position, whence); in stream_cookie_seeker()
115 static int stream_cookie_seeker(void *cookie, zend_off_t position, int whence) in stream_cookie_seeker() argument
118 return php_stream_seek((php_stream *)cookie, position, whence); in stream_cookie_seeker()
H A Dmemory.c114 static int php_stream_memory_seek(php_stream *stream, zend_off_t offset, int whence, zend_off_t *ne… in php_stream_memory_seek() argument
119 switch(whence) { in php_stream_memory_seek()
430 static int php_stream_temp_seek(php_stream *stream, zend_off_t offset, int whence, zend_off_t *newo… in php_stream_temp_seek() argument
441 ret = php_stream_seek(ts->innerstream, offset, whence); in php_stream_temp_seek()
H A Dplain_wrapper.c570 static int php_stdiop_seek(php_stream *stream, zend_off_t offset, int whence, zend_off_t *newoffset) in php_stdiop_seek() argument
585 result = zend_lseek(data->fd, offset, whence); in php_stdiop_seek()
593 ret = zend_fseek(data->file, offset, whence); in php_stdiop_seek()
1038 static int php_plain_files_dirstream_rewind(php_stream *stream, zend_off_t offset, int whence, zend… in php_plain_files_dirstream_rewind() argument
H A Duserspace.c753 static int php_userstreamop_seek(php_stream *stream, zend_off_t offset, int whence, zend_off_t *new… in php_userstreamop_seek() argument
766 ZVAL_LONG(&args[1], whence); in php_userstreamop_seek()
1440 static int php_userstreamop_rewinddir(php_stream *stream, zend_off_t offset, int whence, zend_off_t… in php_userstreamop_rewinddir() argument
/PHP-8.1/ext/standard/tests/image/
H A Dbug75708.phpt17 function stream_seek($offset, $whence) {
18 return fseek($this->handle, $offset, $whence) === 0;
/PHP-8.1/build/
H A Dphp.m41461 int seeker(void *cookie, off64_t *position, int whence)
/PHP-8.1/ext/sqlite3/
H A Dsqlite3.c1144 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
1148 switch(whence) { in php_sqlite3_stream_seek()
/PHP-8.1/ext/standard/
H A Dfile.c1238 zend_long offset, whence = SEEK_SET; in PHP_FUNCTION() local
1245 Z_PARAM_LONG(whence) in PHP_FUNCTION()
1250 RETURN_LONG(php_stream_seek(stream, offset, (int) whence)); in PHP_FUNCTION()
H A Dbasic_functions_arginfo.h1263 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, whence, IS_LONG, 0, "SEEK_SET")
H A Dbasic_functions.stub.php1097 function fseek($stream, int $offset, int $whence = SEEK_SET): int {} argument
/PHP-8.1/ext/phar/
H A Ddirstream.c58 static int phar_dir_seek(php_stream *stream, zend_off_t offset, int whence, zend_off_t *newoffset) … in phar_dir_seek() argument
66 if (whence == SEEK_END) { in phar_dir_seek()
67 whence = SEEK_SET; in phar_dir_seek()
71 if (whence == SEEK_SET) { in phar_dir_seek()
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()
H A Dphar.c866 zend_off_t whence; in phar_parse_pharfile() local
882 whence = signature_len + 4; in phar_parse_pharfile()
883 whence = -whence; in phar_parse_pharfile()
885 if (-1 == php_stream_seek(fp, whence, SEEK_CUR) in phar_parse_pharfile()
/PHP-8.1/ext/spl/
H A Dspl_directory.c2521 zend_long pos, whence = SEEK_SET; in PHP_METHOD() local
2523 if (zend_parse_parameters(ZEND_NUM_ARGS(), "l|l", &pos, &whence) == FAILURE) { in PHP_METHOD()
2530 RETURN_LONG(php_stream_seek(intern->u.file.stream, pos, (int)whence)); in PHP_METHOD()
H A Dspl_directory_arginfo.h217 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, whence, IS_LONG, 0, "SEEK_SET")
H A Dspl_directory.stub.php240 public function fseek(int $offset, int $whence = SEEK_SET): int {} argument
/PHP-8.1/ext/exif/tests/
H A Dgh10834.phpt26 function stream_seek($offset, $whence) {
27 switch ($whence) {
/PHP-8.1/ext/pdo_oci/
H A Doci_statement.c701 static int oci_blob_seek(php_stream *stream, zend_off_t offset, int whence, zend_off_t *newoffset) in oci_blob_seek() argument
/PHP-8.1/Zend/tests/
H A Dgh10072.phpt41 public function stream_seek(int $offset, int $whence = SEEK_SET): bool
/PHP-8.1/ext/pdo_pgsql/
H A Dpgsql_driver.c161 static int pgsql_lob_seek(php_stream *stream, zend_off_t offset, int whence, in pgsql_lob_seek() argument
166 zend_off_t pos = lo_lseek64(self->conn, self->lfd, offset, whence); in pgsql_lob_seek()
168 zend_off_t pos = lo_lseek(self->conn, self->lfd, offset, whence); in pgsql_lob_seek()
/PHP-8.1/ext/zlib/
H A Dzlib_fopen_wrapper.c54 static int php_gziop_seek(php_stream *stream, zend_off_t offset, int whence, zend_off_t *newoffs) in php_gziop_seek() argument
60 if (whence == SEEK_END) { in php_gziop_seek()
64 *newoffs = gzseek(self->gz_file, offset, whence); in php_gziop_seek()
/PHP-8.1/ext/standard/tests/file/
H A Dfopencookie.phpt45 function stream_seek($offset, $whence)
47 switch($whence) {

Completed in 152 milliseconds

123