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

/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 TSRMLS_DC) /* {{{ */ 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 TSRMLS_DC) /* {{{ */ 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 TSRMLS_DC) /* {{{ */ argument
143 switch (whence) {
H A Dphar.c795 zend_off_t whence; local
811 whence = signature_len + 4;
812 whence = -whence;
814 if (-1 == php_stream_seek(fp, whence, SEEK_CUR)
/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() TSRMLS_CC, "l|l", &offset, &whence) == FAILURE) {
451 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "Ol|l", &z_descriptor, oci_lob_class_entry_ptr, &offset, &whence) == FAILURE) {
467 switch(whence) {
/PHP_TRUNK/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_TRUNK/ext/sqlite3/
H A Dsqlite3.c1096 static int php_sqlite3_stream_seek(php_stream *stream, zend_off_t offset, int whence, zend_off_t *newoffs TSRMLS_DC) argument
1100 switch(whence) {
/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 TSRMLS_DC) argument
67 if (whence == SEEK_END) {
71 *newoffs = gzseek(self->gz_file, offset, whence);
/PHP_TRUNK/main/streams/
H A Dcast.c79 static PHP_FPOS_T stream_cookie_seeker(void *cookie, zend_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, (zend_off_t)*position, whence);
125 static int stream_cookie_seeker(void *cookie, zend_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, zend_off_t offset, int whence, zend_off_t *newoffs TSRMLS_DC) /* {{{ */ argument
H A Duserspace.c180 function stream_seek($offset, $whence)
754 static int php_userstreamop_seek(php_stream *stream, zend_off_t offset, int whence, zend_off_t *newoffs TSRMLS_DC) argument
767 ZVAL_LONG(&args[1], whence);
1457 static int php_userstreamop_rewinddir(php_stream *stream, zend_off_t offset, int whence, zend_off_t *newoffs TSRMLS_DC) argument
H A Dmemory.c130 static int php_stream_memory_seek(php_stream *stream, zend_off_t offset, int whence, zend_off_t *newoffs TSRMLS_DC) argument
135 switch(whence) {
445 static int php_stream_temp_seek(php_stream *stream, zend_off_t offset, int whence, zend_off_t *newoffs TSRMLS_DC) argument
456 ret = php_stream_seek(ts->innerstream, offset, whence);
H A Dplain_wrapper.c487 static int php_stdiop_seek(php_stream *stream, zend_off_t offset, int whence, zend_off_t *newoffset TSRMLS_DC) argument
502 result = zend_lseek(data->fd, offset, whence);
510 ret = zend_fseek(data->file, offset, whence);
873 static int php_plain_files_dirstream_rewind(php_stream *stream, zend_off_t offset, int whence, zend_off_t *newoffs TSRMLS_DC) argument
/PHP_TRUNK/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_TRUNK/ext/spl/
H A Dspl_directory.c2764 /* {{{ proto int SplFileObject::fseek(int pos [, int whence = SEEK_SET])
2769 zend_long pos, whence = SEEK_SET; local
2771 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "l|l", &pos, &whence) == FAILURE) {
2781 RETURN_LONG(php_stream_seek(intern->u.file.stream, pos, (int)whence));
3022 ZEND_ARG_INFO(0, 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
158 int pos = lo_lseek(self->conn, self->lfd, offset, 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 TSRMLS_DC) /* {{{ */ argument
126 int sought = php_stream_seek(input->body, offset, whence);
H A Dfile.c1292 /* {{{ proto int fseek(resource fp, int offset [, int whence])
1297 zend_long offset, whence = SEEK_SET; local
1300 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "rl|l", &res, &offset, &whence) == FAILURE) {
1306 RETURN_LONG(php_stream_seek(stream, offset, (int) whence));
/PHP_TRUNK/ext/pgsql/
H A Dpgsql.c371 ZEND_ARG_INFO(0, whence)
3734 /* {{{ proto bool pg_lo_seek(resource large_object, int offset [, int whence])
3739 zend_long result, offset = 0, whence = SEEK_CUR; local
3743 if (zend_parse_parameters(argc TSRMLS_CC, "rl|l", &pgsql_id, &offset, &whence) == FAILURE) {
3746 if (whence != SEEK_SET && whence != SEEK_CUR && whence != SEEK_END) {
3747 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Invalid whence parameter");
3755 result = lo_lseek64((PGconn *)pgsql->conn, pgsql->lofd, offset, (int)whence);
3757 result = lo_lseek((PGconn *)pgsql->conn, pgsql->lofd, (int)offset, (int)whence);
[all...]

Completed in 50 milliseconds