Searched refs:whence (Results 1 - 25 of 30) sorted by relevance

12

/PHP_5_6/ext/spl/internal/
H A Dsplfileobject.inc142 * @param whence seek method (SEEK_SET, SEEK_CUR, SEEK_END)
146 function fseek($pos, $whence = SEEK_SET)
148 return fseek($this->fp, $pos, $whence);
/PHP_5_6/ext/com_dotnet/
H A Dcom_persist.c142 int whence; local
147 case STREAM_SEEK_SET: whence = SEEK_SET; break;
148 case STREAM_SEEK_CUR: whence = SEEK_CUR; break;
149 case STREAM_SEEK_END: whence = SEEK_END; break;
161 ret = php_stream_seek(stm->stream, offset, whence);
/PHP_5_6/ext/dba/
H A Ddba_cdb.c228 int cdb_file_lseek(php_stream *fp, off_t offset, int whence TSRMLS_DC) {
229 php_stream_seek(fp, offset, whence);
233 int cdb_file_lseek(int fd, off_t offset, int whence TSRMLS_DC) {
234 return lseek(fd, offset, whence);
/PHP_5_6/ext/pdo_oci/
H A Doci_statement.c677 static int oci_blob_seek(php_stream *stream, off_t offset, int whence, off_t *newoffset TSRMLS_DC) argument
/PHP_5_6/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 Ddirstream.h34 static int phar_dir_seek( php_stream *stream, off_t offset, int whence, off_t *newoffset TSRMLS_DC);
H A Dphar_internal.h575 int phar_seek_efp(phar_entry_info *entry, off_t offset, int whence, off_t position, int follow_links TSRMLS_DC);
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 Dstream.h37 static int phar_stream_seek( php_stream *stream, off_t offset, int whence, off_t *newoffset TSRMLS_DC);
H A Dphar.c790 off_t whence; local
806 whence = signature_len + 4;
807 whence = -whence;
809 if (-1 == php_stream_seek(fp, whence, SEEK_CUR)
/PHP_5_6/main/streams/
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);
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 Duserspace.c180 function stream_seek($offset, $whence)
799 static int php_userstreamop_seek(php_stream *stream, off_t offset, int whence, off_t *newoffs TSRMLS_DC) argument
817 ZVAL_LONG(zwhence, whence);
1575 static int php_userstreamop_rewinddir(php_stream *stream, off_t offset, int whence, off_t *newoffs TSRMLS_DC) argument
H A Dmemory.c130 static int php_stream_memory_seek(php_stream *stream, off_t offset, int whence, off_t *newoffs TSRMLS_DC) argument
135 switch(whence) {
447 static int php_stream_temp_seek(php_stream *stream, off_t offset, int whence, off_t *newoffs TSRMLS_DC) argument
458 ret = php_stream_seek(ts->innerstream, offset, whence);
H A Dplain_wrapper.c476 static int php_stdiop_seek(php_stream *stream, off_t offset, int whence, off_t *newoffset TSRMLS_DC) argument
491 result = lseek(data->fd, offset, whence);
499 ret = fseek(data->file, offset, whence);
862 static int php_plain_files_dirstream_rewind(php_stream *stream, off_t offset, int whence, off_t *newoffs TSRMLS_DC) argument
H A Dstreams.c1273 PHPAPI int _php_stream_seek(php_stream *stream, off_t offset, int whence TSRMLS_DC)
1282 switch(whence) {
1311 switch(whence) {
1314 whence = SEEK_SET;
1317 ret = stream->ops->seek(stream, offset, whence, &stream->position TSRMLS_CC);
1334 if (whence == SEEK_CUR && offset >= 0) {
/PHP_5_6/ext/zlib/
H A Dzlib_fopen_wrapper.c59 static int php_gziop_seek(php_stream *stream, off_t offset, int whence, off_t *newoffs TSRMLS_DC) argument
65 if (whence == SEEK_END) {
69 *newoffs = gzseek(self->gz_file, offset, whence);
/PHP_5_6/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_6/ext/standard/
H A Dphp_fopen_wrapper.c121 static int php_stream_input_seek(php_stream *stream, off_t offset, int whence, off_t *newoffset TSRMLS_DC) /* {{{ */ argument
126 int sought = php_stream_seek(input->body, offset, whence);
H A Dfile.c1277 /* {{{ proto int fseek(resource fp, int offset [, int whence])
1282 long offset, whence = SEEK_SET; local
1285 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "rl|l", &res, &offset, &whence) == FAILURE) {
1291 RETURN_LONG(php_stream_seek(stream, offset, whence));
/PHP_5_6/ext/spl/
H A Dspl_directory.c2786 /* {{{ proto int SplFileObject::fseek(int pos [, int whence = SEEK_SET])
2791 long pos, whence = SEEK_SET; local
2793 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "l|l", &pos, &whence) == FAILURE) {
2803 RETURN_LONG(php_stream_seek(intern->u.file.stream, pos, whence));
3043 ZEND_ARG_INFO(0, whence)
/PHP_5_6/main/
H A Dphp_streams.h126 int (*seek)(php_stream *stream, off_t offset, int whence, off_t *newoffset TSRMLS_DC);
286 PHPAPI int _php_stream_seek(php_stream *stream, off_t offset, int whence TSRMLS_DC);
288 #define php_stream_seek(stream, offset, whence) _php_stream_seek((stream), (offset), (whence) TSRMLS_CC)
/PHP_5_6/ext/pdo_pgsql/
H A Dpgsql_driver.c155 static int pgsql_lob_seek(php_stream *stream, off_t offset, int whence, argument
159 int pos = lo_lseek(self->conn, self->lfd, offset, whence);
/PHP_5_6/ext/opcache/
H A DZendAccelerator.h103 # define FLOCK_STRUCTURE(name, type, whence, start, len) \
104 struct flock name = {start, len, -1, type, whence}
106 # define FLOCK_STRUCTURE(name, type, whence, start, len) \
107 struct flock name = {type, whence, start, len}
109 # define FLOCK_STRUCTURE(name, type, whence, start, len) \
110 struct flock name = {type, whence, start, len, 0}
113 # define FLOCK_STRUCTURE(name, type, whence, start, len) \
114 struct flock name = {type, whence, 0, 0, 0, start, len }
116 # define FLOCK_STRUCTURE(name, type, whence, start, len) \
117 struct flock name = {type, whence, star
[all...]
/PHP_5_6/ext/pgsql/
H A Dpgsql.c370 ZEND_ARG_INFO(0, whence)
3741 /* {{{ proto bool pg_lo_seek(resource large_object, int offset [, int whence])
3746 long result, offset = 0, whence = SEEK_CUR; local
3750 if (zend_parse_parameters(argc TSRMLS_CC, "rl|l", &pgsql_id, &offset, &whence) == FAILURE) {
3753 if (whence != SEEK_SET && whence != SEEK_CUR && whence != SEEK_END) {
3754 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Invalid whence parameter");
3762 result = lo_lseek64((PGconn *)pgsql->conn, pgsql->lofd, offset, whence);
3764 result = lo_lseek((PGconn *)pgsql->conn, pgsql->lofd, offset, whence);
[all...]

Completed in 55 milliseconds

12