Home
last modified time | relevance | path

Searched refs:fd (Results 126 – 150 of 181) sorted by relevance

12345678

/PHP-5.5/ext/dba/
H A Ddba_cdb.c233 int cdb_file_lseek(int fd, off_t offset, int whence TSRMLS_DC) { in cdb_file_lseek() argument
234 return lseek(fd, offset, whence); in cdb_file_lseek()
H A Dphp_dba.h46 int fd; member
H A Ddba.c910 if (SUCCESS != php_stream_cast(info->fp, PHP_STREAM_AS_FD, (void*)&info->fd, 1)) { in php_dba_open()
917 int flags = fcntl(info->fd, F_GETFL); in php_dba_open()
918 fcntl(info->fd, F_SETFL, flags & ~O_APPEND); in php_dba_open()
/PHP-5.5/ext/fileinfo/libmagic/
H A Dreadcdf.c226 file_trycdf(struct magic_set *ms, int fd, const unsigned char *buf, argument
238 info.i_fd = fd;
H A Dmagic.c288 close_and_restore(const struct magic_set *ms, const char *name, int fd, in close_and_restore() argument
322 magic_descriptor(struct magic_set *ms, int fd) in magic_descriptor() argument
/PHP-5.5/main/
H A DSAPI.h208 SAPI_API int sapi_get_fd(int *fd TSRMLS_DC);
258 int (*get_fd)(int *fd TSRMLS_DC);
H A Drfc1867.c688 int fd = -1; local
963 fd = -1;
1004 fd = php_open_temporary_fd_ex(PG(upload_tmp_dir), "php", &temp_filename, 1 TSRMLS_CC);
1006 if (fd == -1) {
1040 wlen = write(fd, buff, blen);
1063 if (fd != -1) { /* may not be initialized if file could not be created */
1064 close(fd);
H A Dmain.c611 int fd = -1; in php_log_err() local
629 fd = VCWD_OPEN_MODE(PG(error_log), O_CREAT | O_APPEND | O_WRONLY, 0644); in php_log_err()
630 if (fd != -1) { in php_log_err()
647 php_flock(fd, 2); in php_log_err()
649 php_ignore_value(write(fd, tmp, len)); in php_log_err()
652 close(fd); in php_log_err()
/PHP-5.5/sapi/litespeed/
H A Dlsapilib.h146 int LSAPI_InitRequest( LSAPI_Request * pReq, int fd );
360 void LSAPI_Set_Server_fd( int fd );
/PHP-5.5/sapi/apache/
H A Dmod_php5.c396 int fd; in sapi_apache_get_fd() local
398 fd = r->connection->client->fd; in sapi_apache_get_fd()
400 if (fd >= 0) { in sapi_apache_get_fd()
401 if (nfd) *nfd = fd; in sapi_apache_get_fd()
H A Dconfig.m45 AC_CACHE_CHECK([for member fd in BUFF *],ac_cv_php_fd_in_buff,[
12 AC_TRY_COMPILE([#include <httpd.h>],[conn_rec *c; int fd = c->client->fd;],[
/PHP-5.5/sapi/thttpd/
H A Dthttpd.c629 static void remove_dead_conn(int fd) argument
636 if (m->hc->conn_fd == fd) {
715 void thttpd_closed_conn(int fd) argument
718 if (TG(on_close)) TG(on_close)(fd);
H A Dthttpd_patch106 poll_rfdidx[ridx++] = pollfds[i].fd;
111 switch ( fd_rw[fd] )
113 - case FDW_READ: return pollfds[poll_fdidx[fd]].revents & POLLIN;
114 - case FDW_WRITE: return pollfds[poll_fdidx[fd]].revents & POLLOUT;
115 + case FDW_READ: return pollfds[poll_fdidx[fd]].revents & ( POLLIN | POLLERR | POLLHUP | POLLNVAL );
116 + case FDW_WRITE: return pollfds[poll_fdidx[fd]].revents & ( POLLOUT | POLLERR | POLLHUP | POLLNVA…
940 + int fd = fileno(hc->hs->logfp);
941 + write(fd, bentries.c, bentries.len);
1322 int fd;
1633 /* Do the fd watch. */
[all …]
/PHP-5.5/ext/standard/tests/http/
H A Dbug61548.phpt28 $fd = fopen('http://127.0.0.1:12342/', 'rb', false, $ctx);
/PHP-5.5/ext/curl/
H A Dphp_curl.h133 long fd; member
/PHP-5.5/ext/gd/libgd/
H A Dgd.h361 gdImagePtr gdImageCreateFromPng(FILE *fd);
371 gdImagePtr gdImageCreateFromWebp(FILE *fd);
402 gdImagePtr gdImageCreateFromXbm(FILE *fd);
617 gdImagePtr gdImageCreateFromGif(FILE *fd);
/PHP-5.5/ext/standard/tests/strings/
H A Dconvert_cyr_string_basic.phpt126 217: fd
H A Dstrtoupper1-win32.phpt316 fd => dd
/PHP-5.5/ext/date/tests/
H A Drfc-datetime_and_daylight_saving_time-type3-fd.phpt2 RFC: DateTime and Daylight Saving Time Transitions (zone type 3, fd)
/PHP-5.5/sapi/apache_hooks/
H A Dconfig.m45 AC_CACHE_CHECK([for member fd in BUFF *],ac_cv_php_fd_in_buff,[
12 AC_TRY_COMPILE([#include <httpd.h>],[conn_rec *c; int fd = c->client->fd;],[
/PHP-5.5/ext/standard/
H A Dfile.c815 int fd; in PHP_FUNCTION() local
832 if ((fd = php_open_temporary_fd_ex(dir, p, &opened_path, 1 TSRMLS_CC)) >= 0) { in PHP_FUNCTION()
833 close(fd); in PHP_FUNCTION()
1083 zval *fd; in PHP_FUNCTION() local
1092 …if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "r|ls", &fd, &bytes, &allowed_tags, &allowed_… in PHP_FUNCTION()
1096 PHP_STREAM_TO_ZVAL(stream, &fd); in PHP_FUNCTION()
1963 zval *fd, **len_zv = NULL; in PHP_FUNCTION() local
1972 &fd, &len_zv, &delimiter_str, &delimiter_str_len, in PHP_FUNCTION()
2028 PHP_STREAM_TO_ZVAL(stream, &fd); in PHP_FUNCTION()
/PHP-5.5/ext/sockets/
H A Dconversions.c1447 int fd; in to_zval_read_fd_array() local
1452 fd = *((int *)data + i); in to_zval_read_fd_array()
1455 if (fstat(fd, &statbuf) == -1) { in to_zval_read_fd_array()
1457 "descriptor %d: fstat() call failed with errno %d", fd, errno); in to_zval_read_fd_array()
1462 php_socket *sock = socket_import_file_descriptor(fd TSRMLS_CC); in to_zval_read_fd_array()
1465 php_stream *stream = php_stream_fopen_from_fd(fd, "rw", NULL); in to_zval_read_fd_array()
/PHP-5.5/
H A Dserver-tests.php574 $fd = fopen($url, "rb");
576 if ($fd) {
577 while (!feof($fd))
578 $out .= fread($fd, 8192);
579 fclose($fd);
/PHP-5.5/sapi/cli/
H A Dphp_cli.c236 static inline int sapi_cli_select(int fd TSRMLS_DC) in sapi_cli_select()
245 PHP_SAFE_FD_SET(fd, &wfd); in sapi_cli_select()
250 ret = php_select(fd+1, &dfd, &wfd, &dfd, &tv); in sapi_cli_select()
/PHP-5.5/ext/bz2/tests/
H A D002.phpt2 bzopen() using fd opened in wrong mode

Completed in 102 milliseconds

12345678