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

12

/PHP_TRUNK/ext/oci8/
H A Doci8_interface.c436 /* {{{ proto bool oci_lob_seek( int offset [, int whence ])
442 zend_long offset, whence = PHP_OCI_SEEK_SET; local
446 if (zend_parse_parameters(ZEND_NUM_ARGS(), "l|l", &offset, &whence) == FAILURE) {
451 if (zend_parse_parameters(ZEND_NUM_ARGS(), "Ol|l", &z_descriptor, oci_lob_class_entry_ptr, &offset, &whence) == FAILURE) {
467 switch(whence) {
/PHP_TRUNK/ext/com_dotnet/
H A Dcom_persist.c141 int whence; local
146 case STREAM_SEEK_SET: whence = SEEK_SET; break;
147 case STREAM_SEEK_CUR: whence = SEEK_CUR; break;
148 case STREAM_SEEK_END: whence = SEEK_END; break;
160 ret = php_stream_seek(stm->stream, offset, whence);
/PHP_TRUNK/ext/dba/
H A Ddba_cdb.c228 int cdb_file_lseek(php_stream *fp, off_t offset, int whence) { argument
229 php_stream_seek(fp, offset, whence);
233 int cdb_file_lseek(int fd, off_t offset, int whence) { argument
234 return lseek(fd, offset, whence);
/PHP_TRUNK/ext/phar/
H A Ddirstream.c61 static int phar_dir_seek(php_stream *stream, zend_off_t offset, int whence, zend_off_t *newoffset) /* {{{ */ argument
69 if (whence == SEEK_END) {
70 whence = SEEK_SET;
74 if (whence == SEEK_SET) {
H A Dstream.c389 static int phar_stream_seek(php_stream *stream, zend_off_t offset, int whence, zend_off_t *newoffset) /* {{{ */ argument
402 switch (whence) {
H A Dutil.c120 int phar_seek_efp(phar_entry_info *entry, zend_off_t offset, int whence, zend_off_t position, int follow_links) /* {{{ */ argument
143 switch (whence) {
H A Dphar.c783 zend_off_t whence; local
799 whence = signature_len + 4;
800 whence = -whence;
802 if (-1 == php_stream_seek(fp, whence, SEEK_CUR)
/PHP_TRUNK/ext/zlib/
H A Dzlib_fopen_wrapper.c61 static int php_gziop_seek(php_stream *stream, zend_off_t offset, int whence, zend_off_t *newoffs) argument
67 if (whence == SEEK_END) {
71 *newoffs = gzseek(self->gz_file, offset, whence);
/PHP_TRUNK/main/streams/
H A Dglob_wrapper.c183 static int php_glob_stream_rewind(php_stream *stream, zend_off_t offset, int whence, zend_off_t *newoffs) /* {{{ */ argument
H A Dmemory.c134 static int php_stream_memory_seek(php_stream *stream, zend_off_t offset, int whence, zend_off_t *newoffs) argument
139 switch(whence) {
453 static int php_stream_temp_seek(php_stream *stream, zend_off_t offset, int whence, zend_off_t *newoffs) argument
464 ret = php_stream_seek(ts->innerstream, offset, whence);
H A Duserspace.c180 function stream_seek($offset, $whence)
764 static int php_userstreamop_seek(php_stream *stream, zend_off_t offset, int whence, zend_off_t *newoffs) argument
777 ZVAL_LONG(&args[1], whence);
1467 static int php_userstreamop_rewinddir(php_stream *stream, zend_off_t offset, int whence, zend_off_t *newoffs) argument
H A Dplain_wrapper.c487 static int php_stdiop_seek(php_stream *stream, zend_off_t offset, int whence, zend_off_t *newoffset) argument
502 result = zend_lseek(data->fd, offset, whence);
510 ret = zend_fseek(data->file, offset, whence);
876 static int php_plain_files_dirstream_rewind(php_stream *stream, zend_off_t offset, int whence, zend_off_t *newoffs) argument
H A Dstreams.c1253 PHPAPI int _php_stream_seek(php_stream *stream, zend_off_t offset, int whence) argument
1262 switch(whence) {
1291 switch(whence) {
1294 whence = SEEK_SET;
1297 ret = stream->ops->seek(stream, offset, whence, &stream->position);
1314 if (whence == SEEK_CUR && offset >= 0) {
H A Dcast.c77 static PHP_FPOS_T stream_cookie_seeker(void *cookie, zend_off_t position, int whence) argument
80 return (PHP_FPOS_T)php_stream_seek((php_stream *)cookie, position, whence);
107 static int stream_cookie_seeker(void *cookie, __off64_t *position, int whence) argument
110 *position = php_stream_seek((php_stream *)cookie, (zend_off_t)*position, whence);
118 static int stream_cookie_seeker(void *cookie, zend_off_t position, int whence) argument
121 return php_stream_seek((php_stream *)cookie, position, whence);
/PHP_TRUNK/ext/standard/
H A Dphp_fopen_wrapper.c121 static int php_stream_input_seek(php_stream *stream, zend_off_t offset, int whence, zend_off_t *newoffset) /* {{{ */ argument
126 int sought = php_stream_seek(input->body, offset, whence);
H A Dfile.c1280 /* {{{ proto int fseek(resource fp, int offset [, int whence])
1285 zend_long offset, whence = SEEK_SET; local
1288 if (zend_parse_parameters(ZEND_NUM_ARGS(), "rl|l", &res, &offset, &whence) == FAILURE) {
1294 RETURN_LONG(php_stream_seek(stream, offset, (int) whence));
/PHP_TRUNK/ext/spl/
H A Dspl_directory.c2761 /* {{{ proto int SplFileObject::fseek(int pos [, int whence = SEEK_SET])
2766 zend_long pos, whence = SEEK_SET; local
2768 if (zend_parse_parameters(ZEND_NUM_ARGS(), "l|l", &pos, &whence) == FAILURE) {
2778 RETURN_LONG(php_stream_seek(intern->u.file.stream, pos, (int)whence));
3020 ZEND_ARG_INFO(0, whence)
/PHP_TRUNK/ext/sqlite3/
H A Dsqlite3.c1091 static int php_sqlite3_stream_seek(php_stream *stream, zend_off_t offset, int whence, zend_off_t *newoffs) argument
1095 switch(whence) {
/PHP_TRUNK/ext/pdo_pgsql/
H A Dpgsql_driver.c154 static int pgsql_lob_seek(php_stream *stream, zend_off_t offset, int whence, argument
159 zend_off_t pos = lo_lseek64(self->conn, self->lfd, offset, whence);
161 zend_off_t pos = lo_lseek(self->conn, self->lfd, offset, whence);
/PHP_TRUNK/ext/pdo_oci/
H A Doci_statement.c665 static int oci_blob_seek(php_stream *stream, off_t offset, int whence, off_t *newoffset) argument
/PHP_TRUNK/ext/zip/lib/
H A Dzip.h254 int whence; member in struct:zip_source_args_seek
H A Dzip_source_filep.c83 static int _zip_fseek_u(FILE *f, zip_uint64_t offset, int whence, zip_error_t *error);
84 static int _zip_fseek(FILE *f, zip_int64_t offset, int whence, zip_error_t *error);
349 switch (args->whence) {
401 if (_zip_fseek(ctx->fout, args->offset, args->whence, &ctx->error) < 0) {
484 _zip_fseek_u(FILE *f, zip_uint64_t offset, int whence, zip_error_t *error) argument
490 return _zip_fseek(f, (zip_int64_t)offset, whence, error);
495 _zip_fseek(FILE *f, zip_int64_t offset, int whence, zip_error_t *error) argument
501 if (fseeko(f, (off_t)offset, whence) < 0) {
H A Dzip_source_seek.c39 zip_source_seek(zip_source_t *src, zip_int64_t offset, int whence) argument
46 if (!ZIP_SOURCE_IS_OPEN_READING(src) || (whence != SEEK_SET && whence != SEEK_CUR && whence != SEEK_END)) {
52 args.whence = whence;
68 switch (args->whence) {
H A Dzip_source_seek_write.c39 zip_source_seek_write(zip_source_t *src, zip_int64_t offset, int whence) argument
43 if (!ZIP_SOURCE_IS_OPEN_WRITING(src) || (whence != SEEK_SET && whence != SEEK_CUR && whence != SEEK_END)) {
49 args.whence = whence;
H A Dzip_source_win32handle.c46 static int _zip_seek_win32_u(void *h, zip_uint64_t offset, int whence, zip_error_t *error);
47 static int _zip_seek_win32(void *h, zip_int64_t offset, int whence, zip_error_t *error);
266 switch (args->whence) {
323 if (_zip_seek_win32(ctx->hout, args->offset, args->whence, &ctx->error) < 0) {
474 _zip_seek_win32_u(HANDLE h, zip_uint64_t offset, int whence, zip_error_t *error) argument
480 return _zip_seek_win32(h, (zip_int64_t)offset, whence, error);
485 _zip_seek_win32(HANDLE h, zip_int64_t offset, int whence, zip_error_t *error) argument
490 switch (whence) {

Completed in 56 milliseconds

12