Home
last modified time | relevance | path

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

123

/PHP-5.5/main/streams/
H A Dstreams.c1273 PHPAPI int _php_stream_seek(php_stream *stream, off_t offset, int whence TSRMLS_DC) in _php_stream_seek()
1282 switch(whence) { in _php_stream_seek()
1311 switch(whence) { in _php_stream_seek()
1314 whence = SEEK_SET; in _php_stream_seek()
1317 ret = stream->ops->seek(stream, offset, whence, &stream->position TSRMLS_CC); in _php_stream_seek()
1334 if (whence == SEEK_CUR && offset >= 0) { in _php_stream_seek()
H A Duserspace.c808 static int php_userstreamop_seek(php_stream *stream, off_t offset, int whence, off_t *newoffs TSRML… in php_userstreamop_seek() argument
826 ZVAL_LONG(zwhence, whence); in php_userstreamop_seek()
1579 static int php_userstreamop_rewinddir(php_stream *stream, off_t offset, int whence, off_t *newoffs … in php_userstreamop_rewinddir() argument
H A Dcast.c79 static PHP_FPOS_T stream_cookie_seeker(void *cookie, off_t position, int whence) in stream_cookie_seeker() argument
83 return (PHP_FPOS_T)php_stream_seek((php_stream *)cookie, position, whence); in stream_cookie_seeker()
113 static int stream_cookie_seeker(void *cookie, __off64_t *position, int whence) in stream_cookie_seeker() argument
117 *position = php_stream_seek((php_stream *)cookie, (off_t)*position, whence); in stream_cookie_seeker()
125 static int stream_cookie_seeker(void *cookie, off_t position, int whence) in stream_cookie_seeker() argument
129 return php_stream_seek((php_stream *)cookie, position, whence); in stream_cookie_seeker()
H A Dglob_wrapper.c183 static int php_glob_stream_rewind(php_stream *stream, off_t offset, int whence, off_t *newoffs TSRM… in php_glob_stream_rewind() argument
H A Dmemory.c134 static int php_stream_memory_seek(php_stream *stream, off_t offset, int whence, off_t *newoffs TSRM… in php_stream_memory_seek() argument
139 switch(whence) { in php_stream_memory_seek()
450 static int php_stream_temp_seek(php_stream *stream, off_t offset, int whence, off_t *newoffs TSRMLS… in php_stream_temp_seek() argument
461 ret = php_stream_seek(ts->innerstream, offset, whence); in php_stream_temp_seek()
H A Dplain_wrapper.c483 static int php_stdiop_seek(php_stream *stream, off_t offset, int whence, off_t *newoffset TSRMLS_DC) in php_stdiop_seek() argument
498 result = lseek(data->fd, offset, whence); in php_stdiop_seek()
506 ret = fseek(data->file, offset, whence); in php_stdiop_seek()
869 static int php_plain_files_dirstream_rewind(php_stream *stream, off_t offset, int whence, off_t *ne… in php_plain_files_dirstream_rewind() argument
/PHP-5.5/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) TSRML… argument
/PHP-5.5/ext/zlib/
H A Dzlib.c826 ZEND_ARG_INFO(0, whence)
H A Dzlib_fopen_wrapper.c57 static int php_gziop_seek(php_stream *stream, off_t offset, int whence, off_t *newoffs TSRMLS_DC) in php_gziop_seek() argument
63 if (whence == SEEK_END) { in php_gziop_seek()
67 *newoffs = gzseek(self->gz_file, offset, whence); in php_gziop_seek()
/PHP-5.5/ext/zlib/tests/
H A Dgzseek_error.phpt14 $whence = SEEK_SET;
17 var_dump(gzseek( $h, $offset, $whence, $extra_arg ) );
/PHP-5.5/ext/standard/tests/file/
H A Duserstreams.phpt126 function stream_seek($offset, $whence)
128 switch($whence) {
211 $whence = $whence_map[array_rand($whence_map, 1)];
212 switch($whence) {
228 $seeks[] = array($whence, $offset, $position);
243 list($whence, $offset, $position) = $seekdata;
246 $rr = (int)fseek($tf, $offset, $whence);
252 $ur = (int)fseek($fp, $offset, $whence);
257 printf("\n--[%d] whence=%s offset=%d line_length=%d position_should_be=%d --\n",
258 $j, $whence_names[$whence], $offset, $line_length, $position);
H A Dinclude_streams.phpt67 function stream_seek($offset, $whence)
69 switch($whence) {
H A Dinclude_userstream_001.phpt39 function stream_seek($offset, $whence)
41 switch($whence) {
H A Dinclude_userstream_002.phpt53 function stream_seek($offset, $whence)
56 return fseek($this->stream, $offset, $whence);
58 switch($whence) {
H A Dinclude_userstream_003.phpt53 function stream_seek($offset, $whence)
56 return fseek($this->stream, $offset, $whence);
58 switch($whence) {
H A Dfseek_ftell_rewind_basic2-win32.phpt58 foreach($whence_set as $whence){
59 echo "-- Testing fseek() with whence = $whence_string[$whence] --\n";
63 } //end of whence loop
81 -- Testing fseek() with whence = SEEK_SET --
85 -- Testing fseek() with whence = SEEK_CUR --
89 -- Testing fseek() with whence = SEEK_END --
97 -- Testing fseek() with whence = SEEK_SET --
101 -- Testing fseek() with whence = SEEK_CUR --
105 -- Testing fseek() with whence = SEEK_END --
113 -- Testing fseek() with whence = SEEK_SET --
[all …]
H A Dfseek_ftell_rewind_basic2.phpt57 foreach($whence_set as $whence){
58 echo "-- Testing fseek() with whence = $whence_string[$whence] --\n";
62 } //end of whence loop
80 -- Testing fseek() with whence = SEEK_SET --
84 -- Testing fseek() with whence = SEEK_CUR --
88 -- Testing fseek() with whence = SEEK_END --
96 -- Testing fseek() with whence = SEEK_SET --
100 -- Testing fseek() with whence = SEEK_CUR --
104 -- Testing fseek() with whence = SEEK_END --
112 -- Testing fseek() with whence = SEEK_SET --
[all …]
H A Dfseek_ftell_rewind_error1.phpt6 /* Prototype: int fseek ( resource $handle, int $offset [, int $whence] );
H A Dfseek_ftell_rewind_error2.phpt6 /* Prototype: int fseek ( resource $handle, int $offset [, int $whence] );
H A Dfseek_ftell_rewind_error3.phpt6 /* Prototype: int fseek ( resource $handle, int $offset [, int $whence] );
H A Dfseek_ftell_rewind_variation2-win32.phpt25 2. Testing fseek() without using argument whence
76 -- Testing fseek() without using argument whence --
91 -- Testing fseek() without using argument whence --
106 -- Testing fseek() without using argument whence --
121 -- Testing fseek() without using argument whence --
136 -- Testing fseek() without using argument whence --
151 -- Testing fseek() without using argument whence --
166 -- Testing fseek() without using argument whence --
181 -- Testing fseek() without using argument whence --
196 -- Testing fseek() without using argument whence --
[all …]
H A Dfseek_ftell_rewind_variation2.phpt25 2. Testing fseek() without using argument whence
76 -- Testing fseek() without using argument whence --
91 -- Testing fseek() without using argument whence --
106 -- Testing fseek() without using argument whence --
121 -- Testing fseek() without using argument whence --
136 -- Testing fseek() without using argument whence --
151 -- Testing fseek() without using argument whence --
166 -- Testing fseek() without using argument whence --
181 -- Testing fseek() without using argument whence --
196 -- Testing fseek() without using argument whence --
[all …]
H A Dfseek_ftell_rewind_variation3.phpt5 /* Prototype: int fseek ( resource $handle, int $offset [, int $whence] );
20 2. Testing fseek() with whence = SEEK_SET
23 echo "*** Testing fseek(), ftell(), rewind() : whence = SEEK_SET & all r and a modes ***\n";
34 echo "*** Testing fseek() with whence = SEEK_SET ***\n";
64 *** Testing fseek(), ftell(), rewind() : whence = SEEK_SET & all r and a modes ***
65 *** Testing fseek() with whence = SEEK_SET ***
H A Dfseek_ftell_rewind_variation4-win32.phpt10 /* Prototype: int fseek ( resource $handle, int $offset [, int $whence] );
25 2. Testing fseek() with whence = SEEK_SET
27 echo "*** Testing fseek(), ftell(), rewind() : whence = SEEK_SET & all w and x modes ***\n";
70 *** Testing fseek(), ftell(), rewind() : whence = SEEK_SET & all w and x modes ***
H A Dfseek_ftell_rewind_variation4.phpt10 /* Prototype: int fseek ( resource $handle, int $offset [, int $whence] );
25 2. Testing fseek() with whence = SEEK_SET
27 echo "*** Testing fseek(), ftell(), rewind() : whence = SEEK_SET & all w and x modes ***\n";
70 *** Testing fseek(), ftell(), rewind() : whence = SEEK_SET & all w and x modes ***

Completed in 63 milliseconds

123