fd 229 TSRM/tsrm_nw.c NXHandle_t fd = 0; fd 232 TSRM/tsrm_nw.c fd = fileno(stream); fd 233 TSRM/tsrm_nw.c NXClose (fd); fd 1012 Zend/zend_alloc.c int fd = open("/dev/urandom", 0); fd 1014 Zend/zend_alloc.c if (fd >= 0) { fd 1015 Zend/zend_alloc.c if (read(fd, buf, size) == size) { fd 1020 Zend/zend_alloc.c close(fd); fd 1024 Zend/zend_alloc.c close(fd); fd 51 Zend/zend_stream.c ZEND_DLIMPORT int isatty(int fd); fd 195 Zend/zend_stream.c file_handle->handle.fp = fdopen(file_handle->handle.fd, "rb"); fd 343 Zend/zend_stream.c return fh1->handle.fd == fh2->handle.fd; fd 67 Zend/zend_stream.h int fd; fd 255 ext/bz2/bz2.c php_socket_t fd; fd 256 ext/bz2/bz2.c if (SUCCESS == php_stream_cast(stream, PHP_STREAM_AS_FD, (void **) &fd, REPORT_ERRORS)) { fd 257 ext/bz2/bz2.c bz_file = BZ2_bzdopen(fd, mode); fd 404 ext/bz2/bz2.c php_socket_t fd; fd 440 ext/bz2/bz2.c if (FAILURE == php_stream_cast(stream, PHP_STREAM_AS_FD, (void *) &fd, REPORT_ERRORS)) { fd 444 ext/bz2/bz2.c bz = BZ2_bzdopen(fd, mode); fd 250 ext/curl/interface.c ch->handlers->read->fd = 0; fd 1548 ext/curl/interface.c ZVAL_RESOURCE(zfd, t->fd); fd 1549 ext/curl/interface.c zend_list_addref(t->fd); fd 2036 ext/curl/interface.c dupch->handlers->read->fd = ch->handlers->read->fd; fd 2446 ext/curl/interface.c ch->handlers->read->fd = 0; fd 2453 ext/curl/interface.c ch->handlers->read->fd = Z_LVAL_PP(zvalue); fd 3442 ext/curl/interface.c ch->handlers->read->fd = 0; fd 133 ext/curl/php_curl.h long fd; fd 157 ext/date/lib/parse_date.c int fd; fd 337 ext/date/lib/parse_date.c if((cnt = read(s->fd, (char*) s->lim, BSIZE)) != BSIZE){ fd 96 ext/date/lib/parse_iso_intervals.c int fd; fd 910 ext/dba/dba.c if (SUCCESS != php_stream_cast(info->fp, PHP_STREAM_AS_FD, (void*)&info->fd, 1)) { fd 917 ext/dba/dba.c int flags = fcntl(info->fd, F_GETFL); fd 918 ext/dba/dba.c fcntl(info->fd, F_SETFL, flags & ~O_APPEND); fd 233 ext/dba/dba_cdb.c int cdb_file_lseek(int fd, off_t offset, int whence TSRMLS_DC) { fd 234 ext/dba/dba_cdb.c return lseek(fd, offset, whence); fd 48 ext/dba/dba_dbm.c if((fd = VCWD_OPEN_MODE(buf, O_CREAT | mode | O_WRONLY, filemode)) == -1) \ fd 50 ext/dba/dba_dbm.c close(fd); fd 59 ext/dba/dba_dbm.c int fd; fd 46 ext/dba/php_dba.h int fd; fd 2755 ext/fileinfo/libmagic/apprentice.c int fd = -1; fd 2777 ext/fileinfo/libmagic/apprentice.c if (write(fd, ar, sizeof(ar)) != (ssize_t)sizeof(ar)) { fd 103 ext/fileinfo/libmagic/compress.c file_zmagic(struct magic_set *ms, int fd, const char *name, fd 121 ext/fileinfo/libmagic/compress.c (nsz = uncompressbuf(ms, fd, i, buf, &newbuf, fd 153 ext/fileinfo/libmagic/compress.c swrite(int fd, const void *buf, size_t n) fd 159 ext/fileinfo/libmagic/compress.c switch (rv = write(fd, buf, n)) { fd 178 ext/fileinfo/libmagic/compress.c sread(int fd, void *buf, size_t n, int canbepipe) fd 186 ext/fileinfo/libmagic/compress.c if (fd == STDIN_FILENO) fd 190 ext/fileinfo/libmagic/compress.c if (canbepipe && (ioctl(fd, FIONREAD, &t) == -1 || t == 0)) { fd 199 ext/fileinfo/libmagic/compress.c FD_SET(fd, &check); fd 205 ext/fileinfo/libmagic/compress.c selrv = select(fd + 1, &check, NULL, NULL, &tout); fd 215 ext/fileinfo/libmagic/compress.c (void)ioctl(fd, FIONREAD, &t); fd 226 ext/fileinfo/libmagic/compress.c switch ((rv = FINFO_READ_FUNC(fd, buf, n))) { fd 243 ext/fileinfo/libmagic/compress.c file_pipe2file(struct magic_set *ms, int fd, const void *startbuf, fd 277 ext/fileinfo/libmagic/compress.c while ((r = sread(fd, buf, sizeof(buf), 1)) > 0) fd 298 ext/fileinfo/libmagic/compress.c if ((fd = dup2(tfd, fd)) == -1) { fd 303 ext/fileinfo/libmagic/compress.c if (FINFO_LSEEK_FUNC(fd, (off_t)0, SEEK_SET) == (off_t)-1) { fd 307 ext/fileinfo/libmagic/compress.c return fd; fd 385 ext/fileinfo/libmagic/compress.c uncompressbuf(struct magic_set *ms, int fd, size_t method, fd 400 ext/fileinfo/libmagic/compress.c if ((fd != -1 && pipe(fdin) == -1) || pipe(fdout) == -1) { fd 407 ext/fileinfo/libmagic/compress.c if (fd != -1) { fd 408 ext/fileinfo/libmagic/compress.c (void) dup(fd); fd 439 ext/fileinfo/libmagic/compress.c if (fd == -1) { fd 39 ext/fileinfo/libmagic/elfclass.h if (dophn_core(ms, clazz, swap, fd, fd 49 ext/fileinfo/libmagic/elfclass.h if (dophn_exec(ms, clazz, swap, fd, fd 58 ext/fileinfo/libmagic/elfclass.h if (doshn(ms, clazz, swap, fd, fd 223 ext/fileinfo/libmagic/funcs.c php_socket_t fd; fd 225 ext/fileinfo/libmagic/funcs.c if (stream && SUCCESS == php_stream_cast(stream, PHP_STREAM_AS_FD, (void **)&fd, 0)) { fd 226 ext/fileinfo/libmagic/funcs.c if ((m = file_trycdf(ms, fd, ubuf, nb)) != 0) { fd 242 ext/fileinfo/libmagic/funcs.c nb > 5 && fd != -1) { fd 252 ext/fileinfo/libmagic/funcs.c if ((m = file_tryelf(ms, fd, ubuf, nb)) != 0) fd 288 ext/fileinfo/libmagic/magic.c close_and_restore(const struct magic_set *ms, const char *name, int fd, fd 322 ext/fileinfo/libmagic/magic.c magic_descriptor(struct magic_set *ms, int fd) fd 318 ext/fileinfo/libmagic/readcdf.c file_trycdf(struct magic_set *ms, int fd, const unsigned char *buf, fd 331 ext/fileinfo/libmagic/readcdf.c info.i_fd = fd; fd 137 ext/ftp/ftp.c ftp->fd = php_network_connect_socket_to_host(host, fd 140 ext/ftp/ftp.c if (ftp->fd == -1) { fd 150 ext/ftp/ftp.c if (getsockname(ftp->fd, (struct sockaddr*) &ftp->localaddr, &size) != 0) { fd 162 ext/ftp/ftp.c if (ftp->fd != -1) { fd 163 ext/ftp/ftp.c closesocket(ftp->fd); fd 185 ext/ftp/ftp.c if (ftp->fd != -1) { fd 192 ext/ftp/ftp.c closesocket(ftp->fd); fd 300 ext/ftp/ftp.c SSL_set_fd(ftp->ssl_handle, ftp->fd); fd 725 ext/ftp/ftp.c if (getpeername(ftp->fd, sa, &n) < 0) { fd 836 ext/ftp/ftp.c while ((rcvd = my_recv(ftp, data->fd, data->buf, FTP_BUFSIZE))) { fd 932 ext/ftp/ftp.c if (my_send(ftp, data->fd, data->buf, size) != size) { fd 948 ext/ftp/ftp.c if (size && my_send(ftp, data->fd, data->buf, size) != size) { fd 1130 ext/ftp/ftp.c if (my_send(ftp, ftp->fd, data, size) != size) { fd 1180 ext/ftp/ftp.c if ((rcvd = my_recv(ftp, ftp->fd, data, size)) < 1) { fd 1250 ext/ftp/ftp.c if (ftp->use_ssl && ftp->fd == s && ftp->ssl_active) { fd 1252 ext/ftp/ftp.c } else if (ftp->use_ssl && ftp->fd != s && ftp->use_ssl_for_data && ftp->data->ssl_active) { fd 1290 ext/ftp/ftp.c if (ftp->use_ssl && ftp->fd == s && ftp->ssl_active) { fd 1292 ext/ftp/ftp.c } else if (ftp->use_ssl && ftp->fd != s && ftp->use_ssl_for_data && ftp->data->ssl_active) { fd 1371 ext/ftp/ftp.c int fd = -1; fd 1388 ext/ftp/ftp.c data->fd = -1; fd 1393 ext/ftp/ftp.c if ((fd = socket(sa->sa_family, SOCK_STREAM, 0)) == SOCK_ERR) { fd 1408 ext/ftp/ftp.c if (php_connect_nonb(fd, (struct sockaddr*) &ftp->pasvaddr, size, &tv) == -1) { fd 1413 ext/ftp/ftp.c data->fd = fd; fd 1426 ext/ftp/ftp.c if (bind(fd, (struct sockaddr*) &addr, size) != 0) { fd 1431 ext/ftp/ftp.c if (getsockname(fd, (struct sockaddr*) &addr, &size) != 0) { fd 1436 ext/ftp/ftp.c if (listen(fd, 5) != 0) { fd 1441 ext/ftp/ftp.c data->listener = fd; fd 1480 ext/ftp/ftp.c if (fd != -1) { fd 1481 ext/ftp/ftp.c closesocket(fd); fd 1501 ext/ftp/ftp.c if (data->fd != -1) { fd 1505 ext/ftp/ftp.c data->fd = my_accept(ftp, data->listener, (struct sockaddr*) &addr, &size); fd 1509 ext/ftp/ftp.c if (data->fd == -1) { fd 1538 ext/ftp/ftp.c SSL_set_fd(data->ssl_handle, data->fd); fd 1585 ext/ftp/ftp.c if (data->fd != -1) { fd 1596 ext/ftp/ftp.c closesocket(data->fd); fd 1657 ext/ftp/ftp.c while ((rcvd = my_recv(ftp, data->fd, data->buf, FTP_BUFSIZE))) { fd 1779 ext/ftp/ftp.c if (!data_available(ftp, data->fd)) { fd 1786 ext/ftp/ftp.c if ((rcvd = my_recv(ftp, data->fd, data->buf, FTP_BUFSIZE))) { fd 1888 ext/ftp/ftp.c if (!data_writeable(ftp, ftp->data->fd)) { fd 1906 ext/ftp/ftp.c if (my_send(ftp, ftp->data->fd, ftp->data->buf, size) != size) { fd 1913 ext/ftp/ftp.c if (size && my_send(ftp, ftp->data->fd, ftp->data->buf, size) != size) { fd 50 ext/ftp/ftp.h php_socket_t fd; /* data connection */ fd 61 ext/ftp/ftp.h php_socket_t fd; /* control connection */ fd 361 ext/gd/libgd/gd.h gdImagePtr gdImageCreateFromPng(FILE *fd); fd 371 ext/gd/libgd/gd.h gdImagePtr gdImageCreateFromWebp(FILE *fd); fd 402 ext/gd/libgd/gd.h gdImagePtr gdImageCreateFromXbm(FILE *fd); fd 618 ext/gd/libgd/gd.h gdImagePtr gdImageCreateFromGif(FILE *fd); fd 93 ext/gd/libgd/gd_gif_in.c static int ReadColorMap (gdIOCtx *fd, int number, unsigned char (*buffer)[256]); fd 94 ext/gd/libgd/gd_gif_in.c static int DoExtension (gdIOCtx *fd, int label, int *Transparent, int *ZeroDataBlockP); fd 95 ext/gd/libgd/gd_gif_in.c static int GetDataBlock (gdIOCtx *fd, unsigned char *buf, int *ZeroDataBlockP); fd 96 ext/gd/libgd/gd_gif_in.c static int GetCode (gdIOCtx *fd, CODE_STATIC_DATA *scd, int code_size, int flag, int *ZeroDataBlockP); fd 97 ext/gd/libgd/gd_gif_in.c static int LWZReadByte (gdIOCtx *fd, LZW_STATIC_DATA *sd, char flag, int input_code_size, int *ZeroDataBlockP); fd 99 ext/gd/libgd/gd_gif_in.c static void ReadImage (gdImagePtr im, gdIOCtx *fd, int len, int height, unsigned char (*cmap)[256], int interlace, int *ZeroDataBlockP); /*1.4//, int ignore); */ fd 116 ext/gd/libgd/gd_gif_in.c gdIOCtx *fd = gdNewFileCtx(fdFile); fd 119 ext/gd/libgd/gd_gif_in.c im = gdImageCreateFromGifCtx(fd); fd 121 ext/gd/libgd/gd_gif_in.c fd->gd_free(fd); fd 127 ext/gd/libgd/gd_gif_in.c gdImagePtr gdImageCreateFromGifCtx(gdIOCtxPtr fd) /* {{{ */ fd 151 ext/gd/libgd/gd_gif_in.c if (! ReadOK(fd,buf,6)) { fd 166 ext/gd/libgd/gd_gif_in.c if (! ReadOK(fd,buf,7)) { fd 181 ext/gd/libgd/gd_gif_in.c if (ReadColorMap(fd, BitPixel, ColorMap)) { fd 190 ext/gd/libgd/gd_gif_in.c if (! ReadOK(fd,&c,1)) { fd 198 ext/gd/libgd/gd_gif_in.c if (! ReadOK(fd,&c,1)) { fd 201 ext/gd/libgd/gd_gif_in.c DoExtension(fd, c, &Transparent, &ZeroDataBlock); fd 211 ext/gd/libgd/gd_gif_in.c if (! ReadOK(fd,buf,9)) { fd 235 ext/gd/libgd/gd_gif_in.c if (ReadColorMap(fd, bitPixel, localColorMap)) { fd 239 ext/gd/libgd/gd_gif_in.c ReadImage(im, fd, width, height, localColorMap, fd 246 ext/gd/libgd/gd_gif_in.c ReadImage(im, fd, width, height, fd 279 ext/gd/libgd/gd_gif_in.c static int ReadColorMap(gdIOCtx *fd, int number, unsigned char (*buffer)[256]) /* {{{ */ fd 286 ext/gd/libgd/gd_gif_in.c if (! ReadOK(fd, rgb, sizeof(rgb))) { fd 300 ext/gd/libgd/gd_gif_in.c DoExtension(gdIOCtx *fd, int label, int *Transparent, int *ZeroDataBlockP) fd 307 ext/gd/libgd/gd_gif_in.c (void) GetDataBlock(fd, (unsigned char*) buf, ZeroDataBlockP); fd 316 ext/gd/libgd/gd_gif_in.c while (GetDataBlock(fd, (unsigned char*) buf, ZeroDataBlockP) > 0); fd 321 ext/gd/libgd/gd_gif_in.c while (GetDataBlock(fd, (unsigned char*) buf, ZeroDataBlockP) > 0) fd 329 ext/gd/libgd/gd_gif_in.c GetDataBlock_(gdIOCtx *fd, unsigned char *buf, int *ZeroDataBlockP) fd 333 ext/gd/libgd/gd_gif_in.c if (! ReadOK(fd,&count,1)) { fd 339 ext/gd/libgd/gd_gif_in.c if ((count != 0) && (! ReadOK(fd, buf, count))) { fd 348 ext/gd/libgd/gd_gif_in.c GetDataBlock(gdIOCtx *fd, unsigned char *buf, int *ZeroDataBlockP) fd 353 ext/gd/libgd/gd_gif_in.c rv = GetDataBlock_(fd,buf, ZeroDataBlockP); fd 372 ext/gd/libgd/gd_gif_in.c GetCode_(gdIOCtx *fd, CODE_STATIC_DATA *scd, int code_size, int flag, int *ZeroDataBlockP) fd 395 ext/gd/libgd/gd_gif_in.c if ((count = GetDataBlock(fd, &scd->buf[2], ZeroDataBlockP)) <= 0) fd 417 ext/gd/libgd/gd_gif_in.c GetCode(gdIOCtx *fd, CODE_STATIC_DATA *scd, int code_size, int flag, int *ZeroDataBlockP) fd 421 ext/gd/libgd/gd_gif_in.c rv = GetCode_(fd, scd, code_size,flag, ZeroDataBlockP); fd 428 ext/gd/libgd/gd_gif_in.c LWZReadByte_(gdIOCtx *fd, LZW_STATIC_DATA *sd, char flag, int input_code_size, int *ZeroDataBlockP) fd 440 ext/gd/libgd/gd_gif_in.c GetCode(fd, &sd->scd, 0, TRUE, ZeroDataBlockP); fd 458 ext/gd/libgd/gd_gif_in.c GetCode(fd, &sd->scd, sd->code_size, FALSE, ZeroDataBlockP); fd 466 ext/gd/libgd/gd_gif_in.c while ((code = GetCode(fd, &sd->scd, sd->code_size, FALSE, ZeroDataBlockP)) >= 0) { fd 479 ext/gd/libgd/gd_gif_in.c GetCode(fd, &sd->scd, sd->code_size, FALSE, ZeroDataBlockP); fd 488 ext/gd/libgd/gd_gif_in.c while ((count = GetDataBlock(fd, buf, ZeroDataBlockP)) > 0) fd 542 ext/gd/libgd/gd_gif_in.c LWZReadByte(gdIOCtx *fd, LZW_STATIC_DATA *sd, char flag, int input_code_size, int *ZeroDataBlockP) fd 546 ext/gd/libgd/gd_gif_in.c rv = LWZReadByte_(fd, sd, flag, input_code_size, ZeroDataBlockP); fd 553 ext/gd/libgd/gd_gif_in.c ReadImage(gdImagePtr im, gdIOCtx *fd, int len, int height, unsigned char (*cmap)[256], int interlace, int *ZeroDataBlockP) /*1.4//, int ignore) */ fd 565 ext/gd/libgd/gd_gif_in.c if (! ReadOK(fd,&c,1)) { fd 582 ext/gd/libgd/gd_gif_in.c if (LWZReadByte(fd, &sd, TRUE, c, ZeroDataBlockP) < 0) { fd 596 ext/gd/libgd/gd_gif_in.c while ((v = LWZReadByte(fd, &sd, FALSE, c, ZeroDataBlockP)) >= 0) { fd 641 ext/gd/libgd/gd_gif_in.c if (LWZReadByte(fd, &sd, FALSE, c, ZeroDataBlockP) >=0) { fd 33 ext/gd/libgd/xbm.c gdImagePtr gdImageCreateFromXbm(FILE * fd) fd 50 ext/gd/libgd/xbm.c rewind(fd); fd 51 ext/gd/libgd/xbm.c while (fgets(fline, MAX_XBM_LINE_SIZE, fd)) { fd 108 ext/gd/libgd/xbm.c if ((ch=getc(fd)) == EOF) { fd 120 ext/gd/libgd/xbm.c if ((ch=getc(fd)) == EOF) { fd 124 ext/gd/libgd/xbm.c if ((ch=getc(fd)) == EOF) { fd 129 ext/gd/libgd/xbm.c if ((ch=getc(fd)) == EOF) { fd 133 ext/gd/libgd/xbm.c if ((ch=getc(fd)) == EOF) { fd 388 ext/mcrypt/mcrypt.c mcrypt_globals->fd[RANDOM] = -1; fd 389 ext/mcrypt/mcrypt.c mcrypt_globals->fd[URANDOM] = -1; fd 394 ext/mcrypt/mcrypt.c if (mcrypt_globals->fd[RANDOM] > 0) { fd 395 ext/mcrypt/mcrypt.c close(mcrypt_globals->fd[RANDOM]); fd 396 ext/mcrypt/mcrypt.c mcrypt_globals->fd[RANDOM] = -1; fd 399 ext/mcrypt/mcrypt.c if (mcrypt_globals->fd[URANDOM] > 0) { fd 400 ext/mcrypt/mcrypt.c close(mcrypt_globals->fd[URANDOM]); fd 401 ext/mcrypt/mcrypt.c mcrypt_globals->fd[URANDOM] = -1; fd 1451 ext/mcrypt/mcrypt.c int *fd = &MCG(fd[source]); fd 1454 ext/mcrypt/mcrypt.c if (*fd < 0) { fd 1455 ext/mcrypt/mcrypt.c *fd = open(source == RANDOM ? "/dev/random" : "/dev/urandom", O_RDONLY); fd 1456 ext/mcrypt/mcrypt.c if (*fd < 0) { fd 1464 ext/mcrypt/mcrypt.c n = read(*fd, iv + read_bytes, size - read_bytes); fd 80 ext/mcrypt/php_mcrypt.h int fd[2]; // RANDOM = 0, URANDOM = 1 fd 54 ext/mysqlnd/mysqlnd_loaddata.c info->fd = php_stream_open_wrapper_ex((char *)filename, "r", 0, NULL, context); fd 56 ext/mysqlnd/mysqlnd_loaddata.c if (info->fd == NULL) { fd 76 ext/mysqlnd/mysqlnd_loaddata.c count = (int)php_stream_read(info->fd, (char *) buf, buf_len); fd 117 ext/mysqlnd/mysqlnd_loaddata.c if (info->fd) { fd 118 ext/mysqlnd/mysqlnd_loaddata.c php_stream_close(info->fd); fd 119 ext/mysqlnd/mysqlnd_loaddata.c info->fd = NULL; fd 128 ext/mysqlnd/mysqlnd_structs.h php_stream *fd; fd 761 ext/opcache/ZendAccelerator.c if (fstat(file_handle->handle.fd, &statbuf) == -1) { fd 116 ext/pcre/pcrelib/sljit/sljitNativePPC_common.c #define FD(fd) ((fd) << 21) fd 253 ext/phar/phar_object.c file_handle.handle.fd = 0; fd 968 ext/phar/util.c phar_archive_data *fd, **fd_ptr; fd 1006 ext/phar/util.c fd = PHAR_G(last_phar); fd 1007 ext/phar/util.c fd_ptr = &fd; fd 1029 ext/phar/util.c fd = *fd_ptr; fd 1030 ext/phar/util.c PHAR_G(last_phar) = fd; fd 1031 ext/phar/util.c PHAR_G(last_phar_name) = fd->fname; fd 1032 ext/phar/util.c PHAR_G(last_phar_name_len) = fd->fname_len; fd 1052 ext/phar/util.c fd = *fd_ptr; fd 1055 ext/phar/util.c if (!fd->is_temporary_alias && (alias_len != fd->alias_len || memcmp(fd->alias, alias, alias_len))) { fd 1062 ext/phar/util.c if (fd->alias_len && SUCCESS == zend_hash_find(&(PHAR_GLOBALS->phar_alias_map), fd->alias, fd->alias_len, (void**)&fd_ptr)) { fd 1063 ext/phar/util.c zend_hash_del(&(PHAR_GLOBALS->phar_alias_map), fd->alias, fd->alias_len); fd 1066 ext/phar/util.c zend_hash_quick_add(&(PHAR_GLOBALS->phar_alias_map), alias, alias_len, ahash, (void*)&fd, sizeof(phar_archive_data*), NULL); fd 1069 ext/phar/util.c PHAR_G(last_phar) = fd; fd 1070 ext/phar/util.c PHAR_G(last_phar_name) = fd->fname; fd 1071 ext/phar/util.c PHAR_G(last_phar_name_len) = fd->fname_len; fd 1072 ext/phar/util.c PHAR_G(last_alias) = fd->alias; fd 1073 ext/phar/util.c PHAR_G(last_alias_len) = fd->alias_len; fd 1080 ext/phar/util.c fd = *fd_ptr; fd 1084 ext/phar/util.c if (!fd->is_temporary_alias && alias && alias_len) { fd 1085 ext/phar/util.c if (alias_len != fd->alias_len || memcmp(fd->alias, alias, alias_len)) { fd 1093 ext/phar/util.c PHAR_G(last_phar) = fd; fd 1094 ext/phar/util.c PHAR_G(last_phar_name) = fd->fname; fd 1095 ext/phar/util.c PHAR_G(last_phar_name_len) = fd->fname_len; fd 1096 ext/phar/util.c PHAR_G(last_alias) = fd->alias; fd 1097 ext/phar/util.c PHAR_G(last_alias_len) = fd->alias_len; fd 1103 ext/phar/util.c fd = *archive = *fd_ptr; fd 1105 ext/phar/util.c PHAR_G(last_phar) = fd; fd 1106 ext/phar/util.c PHAR_G(last_phar_name) = fd->fname; fd 1107 ext/phar/util.c PHAR_G(last_phar_name_len) = fd->fname_len; fd 1108 ext/phar/util.c PHAR_G(last_alias) = fd->alias; fd 1109 ext/phar/util.c PHAR_G(last_alias_len) = fd->alias_len; fd 1115 ext/phar/util.c fd = *archive = *fd_ptr; fd 1117 ext/phar/util.c PHAR_G(last_phar) = fd; fd 1118 ext/phar/util.c PHAR_G(last_phar_name) = fd->fname; fd 1119 ext/phar/util.c PHAR_G(last_phar_name_len) = fd->fname_len; fd 1120 ext/phar/util.c PHAR_G(last_alias) = fd->alias; fd 1121 ext/phar/util.c PHAR_G(last_alias_len) = fd->alias_len; fd 1143 ext/phar/util.c fd = *fd_ptr; fd 1146 ext/phar/util.c zend_hash_quick_add(&(PHAR_GLOBALS->phar_alias_map), alias, alias_len, ahash, (void*)&fd, sizeof(phar_archive_data*), NULL); fd 1151 ext/phar/util.c PHAR_G(last_phar) = fd; fd 1152 ext/phar/util.c PHAR_G(last_phar_name) = fd->fname; fd 1153 ext/phar/util.c PHAR_G(last_phar_name_len) = fd->fname_len; fd 1154 ext/phar/util.c PHAR_G(last_alias) = fd->alias; fd 1155 ext/phar/util.c PHAR_G(last_alias_len) = fd->alias_len; fd 150 ext/posix/posix.c ZEND_ARG_INFO(0, fd) fd 154 ext/posix/posix.c ZEND_ARG_INFO(0, fd) fd 696 ext/posix/posix.c static int php_posix_stream_get_fd(zval *zfp, int *fd TSRMLS_DC) /* {{{ */ fd 707 ext/posix/posix.c php_stream_cast(stream, PHP_STREAM_AS_FD_FOR_SELECT, (void*)fd, 0); fd 709 ext/posix/posix.c php_stream_cast(stream, PHP_STREAM_AS_FD, (void*)fd, 0); fd 725 ext/posix/posix.c int fd; fd 736 ext/posix/posix.c if (!php_posix_stream_get_fd(*z_fd, &fd TSRMLS_CC)) { fd 742 ext/posix/posix.c fd = Z_LVAL_PP(z_fd); fd 751 ext/posix/posix.c if (ttyname_r(fd, p, buflen)) { fd 758 ext/posix/posix.c if (NULL == (p = ttyname(fd))) { fd 772 ext/posix/posix.c int fd; fd 780 ext/posix/posix.c if (!php_posix_stream_get_fd(*z_fd, &fd TSRMLS_CC)) { fd 786 ext/posix/posix.c fd = Z_LVAL_PP(z_fd); fd 789 ext/posix/posix.c if (isatty(fd)) { fd 60 ext/session/mod_files.c int fd; fd 110 ext/session/mod_files.c if (data->fd != -1) { fd 114 ext/session/mod_files.c flock(data->fd, LOCK_UN); fd 116 ext/session/mod_files.c close(data->fd); fd 117 ext/session/mod_files.c data->fd = -1; fd 127 ext/session/mod_files.c if (data->fd < 0 || !data->lastkey || strcmp(key, data->lastkey)) { fd 148 ext/session/mod_files.c data->fd = VCWD_OPEN_MODE(buf, O_CREAT | O_RDWR | O_BINARY | O_NOFOLLOW, data->filemode); fd 155 ext/session/mod_files.c data->fd = VCWD_OPEN_MODE(buf, O_CREAT | O_RDWR | O_BINARY, data->filemode); fd 158 ext/session/mod_files.c if (data->fd != -1) { fd 162 ext/session/mod_files.c if (fstat(data->fd, &sbuf) || (sbuf.st_uid != 0 && sbuf.st_uid != getuid() && sbuf.st_uid != geteuid())) { fd 163 ext/session/mod_files.c close(data->fd); fd 164 ext/session/mod_files.c data->fd = -1; fd 169 ext/session/mod_files.c ret = flock(data->fd, LOCK_EX); fd 176 ext/session/mod_files.c if (fcntl(data->fd, F_SETFD, FD_CLOEXEC)) { fd 177 ext/session/mod_files.c php_error_docref(NULL TSRMLS_CC, E_WARNING, "fcntl(%d, F_SETFD, FD_CLOEXEC) failed: %s (%d)", data->fd, strerror(errno), errno); fd 306 ext/session/mod_files.c data->fd = -1; fd 368 ext/session/mod_files.c if (data->fd < 0) { fd 372 ext/session/mod_files.c if (fstat(data->fd, &sbuf)) { fd 386 ext/session/mod_files.c n = pread(data->fd, *val, sbuf.st_size, 0); fd 388 ext/session/mod_files.c lseek(data->fd, 0, SEEK_SET); fd 389 ext/session/mod_files.c n = read(data->fd, *val, sbuf.st_size); fd 411 ext/session/mod_files.c if (data->fd < 0) { fd 418 ext/session/mod_files.c php_ignore_value(ftruncate(data->fd, 0)); fd 422 ext/session/mod_files.c n = pwrite(data->fd, val, vallen, 0); fd 424 ext/session/mod_files.c lseek(data->fd, 0, SEEK_SET); fd 425 ext/session/mod_files.c n = write(data->fd, val, vallen); fd 449 ext/session/mod_files.c if (data->fd != -1) { fd 370 ext/session/session.c int fd; fd 372 ext/session/session.c fd = VCWD_OPEN(PS(entropy_file), O_RDONLY); fd 373 ext/session/session.c if (fd >= 0) { fd 379 ext/session/session.c n = read(fd, rbuf, MIN(to_read, sizeof(rbuf))); fd 397 ext/session/session.c close(fd); fd 1447 ext/sockets/conversions.c int fd; fd 1452 ext/sockets/conversions.c fd = *((int *)data + i); fd 1455 ext/sockets/conversions.c if (fstat(fd, &statbuf) == -1) { fd 1457 ext/sockets/conversions.c "descriptor %d: fstat() call failed with errno %d", fd, errno); fd 1462 ext/sockets/conversions.c php_socket *sock = socket_import_file_descriptor(fd TSRMLS_CC); fd 1465 ext/sockets/conversions.c php_stream *stream = php_stream_fopen_from_fd(fd, "rw", NULL); fd 231 ext/sockets/sockets.c ZEND_ARG_INFO(1, fd) fd 25421 ext/sqlite3/libsqlite/sqlite3.c int fd; /* File descriptor to close */ fd 25776 ext/sqlite3/libsqlite/sqlite3.c static int posixFchown(int fd, uid_t uid, gid_t gid){ fd 25780 ext/sqlite3/libsqlite/sqlite3.c return geteuid() ? 0 : fchown(fd,uid,gid); fd 26025 ext/sqlite3/libsqlite/sqlite3.c int fd; fd 26029 ext/sqlite3/libsqlite/sqlite3.c fd = osOpen(z,f|O_CLOEXEC,m2); fd 26031 ext/sqlite3/libsqlite/sqlite3.c fd = osOpen(z,f,m2); fd 26033 ext/sqlite3/libsqlite/sqlite3.c if( fd<0 ){ fd 26037 ext/sqlite3/libsqlite/sqlite3.c if( fd>=SQLITE_MINIMUM_FILE_DESCRIPTOR ) break; fd 26038 ext/sqlite3/libsqlite/sqlite3.c osClose(fd); fd 26040 ext/sqlite3/libsqlite/sqlite3.c "attempt to open \"%s\" as file descriptor %d", z, fd); fd 26041 ext/sqlite3/libsqlite/sqlite3.c fd = -1; fd 26044 ext/sqlite3/libsqlite/sqlite3.c if( fd>=0 ){ fd 26047 ext/sqlite3/libsqlite/sqlite3.c if( osFstat(fd, &statbuf)==0 fd 26051 ext/sqlite3/libsqlite/sqlite3.c osFchmod(fd, m); fd 26055 ext/sqlite3/libsqlite/sqlite3.c osFcntl(fd, F_SETFD, osFcntl(fd, F_GETFD, 0) | FD_CLOEXEC); fd 26058 ext/sqlite3/libsqlite/sqlite3.c return fd; fd 26115 ext/sqlite3/libsqlite/sqlite3.c static int lockTrace(int fd, int op, struct flock *p){ fd 26124 ext/sqlite3/libsqlite/sqlite3.c s = osFcntl(fd, op, p); fd 26125 ext/sqlite3/libsqlite/sqlite3.c sqlite3DebugPrintf("fcntl unknown %d %d %d\n", fd, op, s); fd 26138 ext/sqlite3/libsqlite/sqlite3.c s = osFcntl(fd, op, p); fd 26141 ext/sqlite3/libsqlite/sqlite3.c threadid, fd, zOpName, zType, (int)p->l_start, (int)p->l_len, fd 26146 ext/sqlite3/libsqlite/sqlite3.c osFcntl(fd, F_GETLK, &l2); fd 26647 ext/sqlite3/libsqlite/sqlite3.c robust_close(pFile, p->fd, __LINE__); fd 26698 ext/sqlite3/libsqlite/sqlite3.c int fd; /* The file descriptor for pFile */ fd 26708 ext/sqlite3/libsqlite/sqlite3.c fd = pFile->h; fd 26709 ext/sqlite3/libsqlite/sqlite3.c rc = osFstat(fd, &statbuf); fd 26730 ext/sqlite3/libsqlite/sqlite3.c do{ rc = osWrite(fd, "S", 1); }while( rc<0 && errno==EINTR ); fd 26735 ext/sqlite3/libsqlite/sqlite3.c rc = osFstat(fd, &statbuf); fd 27700 ext/sqlite3/libsqlite/sqlite3.c static int robust_flock(int fd, int op){ fd 27702 ext/sqlite3/libsqlite/sqlite3.c do{ rc = flock(fd,op); }while( rc<0 && errno==EINTR ); fd 28093 ext/sqlite3/libsqlite/sqlite3.c int fd; /* file desc to assoc this lock with */ fd 28118 ext/sqlite3/libsqlite/sqlite3.c pb.fd = pFile->h; fd 28121 ext/sqlite3/libsqlite/sqlite3.c (setLockFlag?"ON":"OFF"), pFile->h, (pb.fd==-1?"[testval-1]":""), fd 28698 ext/sqlite3/libsqlite/sqlite3.c int fd, /* File descriptor to write to */ fd 28707 ext/sqlite3/libsqlite/sqlite3.c assert( fd>2 ); fd 28712 ext/sqlite3/libsqlite/sqlite3.c do{ rc = (int)osPwrite(fd, pBuf, nBuf, iOff); }while( rc<0 && errno==EINTR ); fd 28714 ext/sqlite3/libsqlite/sqlite3.c do{ rc = (int)osPwrite64(fd, pBuf, nBuf, iOff);}while( rc<0 && errno==EINTR); fd 28717 ext/sqlite3/libsqlite/sqlite3.c i64 iSeek = lseek(fd, iOff, SEEK_SET); fd 28724 ext/sqlite3/libsqlite/sqlite3.c rc = osWrite(fd, pBuf, nBuf); fd 28729 ext/sqlite3/libsqlite/sqlite3.c OSTRACE(("WRITE %-3d %5d %7lld %llu\n", fd, rc, iOff, TIMER_ELAPSED)); fd 28887 ext/sqlite3/libsqlite/sqlite3.c static int full_fsync(int fd, int fullSync, int dataOnly){ fd 28895 ext/sqlite3/libsqlite/sqlite3.c UNUSED_PARAMETER(fd); fd 28921 ext/sqlite3/libsqlite/sqlite3.c rc = osFcntl(fd, F_FULLFSYNC, 0); fd 28933 ext/sqlite3/libsqlite/sqlite3.c if( rc ) rc = fsync(fd); fd 28939 ext/sqlite3/libsqlite/sqlite3.c rc = fsync(fd); fd 28941 ext/sqlite3/libsqlite/sqlite3.c rc = fdatasync(fd); fd 28944 ext/sqlite3/libsqlite/sqlite3.c rc = fsync(fd); fd 28980 ext/sqlite3/libsqlite/sqlite3.c int fd = -1; fd 28987 ext/sqlite3/libsqlite/sqlite3.c fd = robust_open(zDirname, O_RDONLY|O_BINARY, 0); fd 28988 ext/sqlite3/libsqlite/sqlite3.c if( fd>=0 ){ fd 28989 ext/sqlite3/libsqlite/sqlite3.c OSTRACE(("OPENDIR %-3d %s\n", fd, zDirname)); fd 28992 ext/sqlite3/libsqlite/sqlite3.c *pFd = fd; fd 28993 ext/sqlite3/libsqlite/sqlite3.c return (fd>=0?SQLITE_OK:unixLogError(SQLITE_CANTOPEN_BKPT, "open", zDirname)); fd 29856 ext/sqlite3/libsqlite/sqlite3.c sqlite3_file *fd, /* Handle open on database file */ fd 29862 ext/sqlite3/libsqlite/sqlite3.c unixFile *pDbFd = (unixFile*)fd; fd 29993 ext/sqlite3/libsqlite/sqlite3.c sqlite3_file *fd, /* Database file holding the shared memory */ fd 29998 ext/sqlite3/libsqlite/sqlite3.c unixFile *pDbFd = (unixFile*)fd; /* Connection holding shared memory */ fd 30105 ext/sqlite3/libsqlite/sqlite3.c sqlite3_file *fd /* Database file holding the shared memory */ fd 30107 ext/sqlite3/libsqlite/sqlite3.c UNUSED_PARAMETER(fd); fd 30120 ext/sqlite3/libsqlite/sqlite3.c sqlite3_file *fd, /* The underlying database file */ fd 30128 ext/sqlite3/libsqlite/sqlite3.c pDbFd = (unixFile*)fd; fd 30333 ext/sqlite3/libsqlite/sqlite3.c static int unixFetch(sqlite3_file *fd, i64 iOff, int nAmt, void **pp){ fd 30335 ext/sqlite3/libsqlite/sqlite3.c unixFile *pFd = (unixFile *)fd; /* The underlying database file */ fd 30364 ext/sqlite3/libsqlite/sqlite3.c static int unixUnfetch(sqlite3_file *fd, i64 iOff, void *p){ fd 30366 ext/sqlite3/libsqlite/sqlite3.c unixFile *pFd = (unixFile *)fd; /* The underlying database file */ fd 30385 ext/sqlite3/libsqlite/sqlite3.c UNUSED_PARAMETER(fd); fd 31123 ext/sqlite3/libsqlite/sqlite3.c int fd = -1; /* File descriptor returned by open() */ fd 31200 ext/sqlite3/libsqlite/sqlite3.c fd = pUnused->fd; fd 31238 ext/sqlite3/libsqlite/sqlite3.c if( fd<0 ){ fd 31248 ext/sqlite3/libsqlite/sqlite3.c fd = robust_open(zName, openFlags, openMode); fd 31249 ext/sqlite3/libsqlite/sqlite3.c OSTRACE(("OPENX %-3d %s 0%o\n", fd, zName, openFlags)); fd 31250 ext/sqlite3/libsqlite/sqlite3.c if( fd<0 && errno!=EISDIR && isReadWrite && !isExclusive ){ fd 31257 ext/sqlite3/libsqlite/sqlite3.c fd = robust_open(zName, openFlags, openMode); fd 31259 ext/sqlite3/libsqlite/sqlite3.c if( fd<0 ){ fd 31269 ext/sqlite3/libsqlite/sqlite3.c osFchown(fd, uid, gid); fd 31272 ext/sqlite3/libsqlite/sqlite3.c assert( fd>=0 ); fd 31278 ext/sqlite3/libsqlite/sqlite3.c p->pUnused->fd = fd; fd 31288 ext/sqlite3/libsqlite/sqlite3.c robust_close(p, fd, __LINE__); fd 31305 ext/sqlite3/libsqlite/sqlite3.c if( fstatfs(fd, &fsInfo) == -1 ){ fd 31307 ext/sqlite3/libsqlite/sqlite3.c robust_close(p, fd, __LINE__); fd 31341 ext/sqlite3/libsqlite/sqlite3.c rc = fillInUnixFile(pVfs, fd, pFile, zPath, ctrlFlags); fd 31358 ext/sqlite3/libsqlite/sqlite3.c rc = fillInUnixFile(pVfs, fd, pFile, zPath, ctrlFlags); fd 31394 ext/sqlite3/libsqlite/sqlite3.c int fd; fd 31395 ext/sqlite3/libsqlite/sqlite3.c rc = osOpenDirectory(zPath, &fd); fd 31398 ext/sqlite3/libsqlite/sqlite3.c if( fsync(fd)==-1 ) fd 31400 ext/sqlite3/libsqlite/sqlite3.c if( fsync(fd) ) fd 31405 ext/sqlite3/libsqlite/sqlite3.c robust_close(0, fd, __LINE__); fd 31584 ext/sqlite3/libsqlite/sqlite3.c int fd, got; fd 31585 ext/sqlite3/libsqlite/sqlite3.c fd = robust_open("/dev/urandom", O_RDONLY, 0); fd 31586 ext/sqlite3/libsqlite/sqlite3.c if( fd<0 ){ fd 31594 ext/sqlite3/libsqlite/sqlite3.c do{ got = osRead(fd, zBuf, nBuf); }while( got<0 && errno==EINTR ); fd 31595 ext/sqlite3/libsqlite/sqlite3.c robust_close(0, fd, __LINE__); fd 31976 ext/sqlite3/libsqlite/sqlite3.c int fd = -1; fd 31992 ext/sqlite3/libsqlite/sqlite3.c fd = pUnused->fd; fd 31999 ext/sqlite3/libsqlite/sqlite3.c if( fd<0 ){ fd 32000 ext/sqlite3/libsqlite/sqlite3.c fd = robust_open(path, openFlags, 0); fd 32002 ext/sqlite3/libsqlite/sqlite3.c if( fd<0 && errno==ENOENT && islockfile ){ fd 32004 ext/sqlite3/libsqlite/sqlite3.c fd = robust_open(path, openFlags, 0); fd 32008 ext/sqlite3/libsqlite/sqlite3.c if( fd<0 ){ fd 32010 ext/sqlite3/libsqlite/sqlite3.c fd = robust_open(path, openFlags, 0); fd 32013 ext/sqlite3/libsqlite/sqlite3.c if( fd<0 ){ fd 32037 ext/sqlite3/libsqlite/sqlite3.c pUnused->fd = fd; fd 32041 ext/sqlite3/libsqlite/sqlite3.c rc = fillInUnixFile(&dummyVfs, fd, (sqlite3_file*)pNew, path, 0); fd 32047 ext/sqlite3/libsqlite/sqlite3.c robust_close(pNew, fd, __LINE__); fd 32117 ext/sqlite3/libsqlite/sqlite3.c int fd = -1; fd 32135 ext/sqlite3/libsqlite/sqlite3.c fd = robust_open(tPath, (O_RDWR|O_CREAT|O_EXCL), 0); fd 32136 ext/sqlite3/libsqlite/sqlite3.c if( fd<0 ){ fd 32140 ext/sqlite3/libsqlite/sqlite3.c if( osPwrite(fd, buf, readLen, 0) != (ssize_t)readLen ){ fd 32151 ext/sqlite3/libsqlite/sqlite3.c conchFile->h = fd; fd 32156 ext/sqlite3/libsqlite/sqlite3.c if( fd>=0 ){ fd 32158 ext/sqlite3/libsqlite/sqlite3.c robust_close(pFile, fd, __LINE__); fd 32409 ext/sqlite3/libsqlite/sqlite3.c int fd; fd 32414 ext/sqlite3/libsqlite/sqlite3.c fd = robust_open(pCtx->dbPath, pFile->openFlags, 0); fd 32415 ext/sqlite3/libsqlite/sqlite3.c OSTRACE(("TRANSPROXY: OPEN %d\n", fd)); fd 32416 ext/sqlite3/libsqlite/sqlite3.c if( fd>=0 ){ fd 32417 ext/sqlite3/libsqlite/sqlite3.c pFile->h = fd; fd 36902 ext/sqlite3/libsqlite/sqlite3.c sqlite3_file *fd, /* Database holding shared memory */ fd 36910 ext/sqlite3/libsqlite/sqlite3.c pDbFd = (winFile*)fd; fd 36943 ext/sqlite3/libsqlite/sqlite3.c sqlite3_file *fd, /* Database file holding the shared memory */ fd 36948 ext/sqlite3/libsqlite/sqlite3.c winFile *pDbFd = (winFile*)fd; /* Connection holding shared memory */ fd 37052 ext/sqlite3/libsqlite/sqlite3.c sqlite3_file *fd /* Database holding the shared memory */ fd 37054 ext/sqlite3/libsqlite/sqlite3.c UNUSED_PARAMETER(fd); fd 37080 ext/sqlite3/libsqlite/sqlite3.c sqlite3_file *fd, /* Handle open on database file */ fd 37086 ext/sqlite3/libsqlite/sqlite3.c winFile *pDbFd = (winFile*)fd; fd 37366 ext/sqlite3/libsqlite/sqlite3.c static int winFetch(sqlite3_file *fd, i64 iOff, int nAmt, void **pp){ fd 37368 ext/sqlite3/libsqlite/sqlite3.c winFile *pFd = (winFile*)fd; /* The underlying database file */ fd 37373 ext/sqlite3/libsqlite/sqlite3.c osGetCurrentProcessId(), fd, iOff, nAmt, pp)); fd 37393 ext/sqlite3/libsqlite/sqlite3.c osGetCurrentProcessId(), fd, pp, *pp)); fd 37407 ext/sqlite3/libsqlite/sqlite3.c static int winUnfetch(sqlite3_file *fd, i64 iOff, void *p){ fd 37409 ext/sqlite3/libsqlite/sqlite3.c winFile *pFd = (winFile*)fd; /* The underlying database file */ fd 37436 ext/sqlite3/libsqlite/sqlite3.c osGetCurrentProcessId(), fd)); fd 41761 ext/sqlite3/libsqlite/sqlite3.c #define PAGERID(p) ((int)(p->fd)) fd 41762 ext/sqlite3/libsqlite/sqlite3.c #define FILEHANDLEID(fd) ((int)fd) fd 42290 ext/sqlite3/libsqlite/sqlite3.c sqlite3_file *fd; /* File descriptor for database */ fd 42685 ext/sqlite3/libsqlite/sqlite3.c static int read32bits(sqlite3_file *fd, i64 offset, u32 *pRes){ fd 42687 ext/sqlite3/libsqlite/sqlite3.c int rc = sqlite3OsRead(fd, ac, sizeof(ac), offset); fd 42704 ext/sqlite3/libsqlite/sqlite3.c static int write32bits(sqlite3_file *fd, i64 offset, u32 val){ fd 42707 ext/sqlite3/libsqlite/sqlite3.c return sqlite3OsWrite(fd, ac, 4, offset); fd 42725 ext/sqlite3/libsqlite/sqlite3.c if( isOpen(pPager->fd) ){ fd 42727 ext/sqlite3/libsqlite/sqlite3.c rc = pPager->noLock ? SQLITE_OK : sqlite3OsUnlock(pPager->fd, eLock); fd 42751 ext/sqlite3/libsqlite/sqlite3.c rc = pPager->noLock ? SQLITE_OK : sqlite3OsLock(pPager->fd, eLock); fd 42785 ext/sqlite3/libsqlite/sqlite3.c assert( isOpen(pPager->fd) ); fd 42786 ext/sqlite3/libsqlite/sqlite3.c dc = sqlite3OsDeviceCharacteristics(pPager->fd); fd 43050 ext/sqlite3/libsqlite/sqlite3.c assert( isOpen(pPager->fd) || pPager->noSync ); fd 43052 ext/sqlite3/libsqlite/sqlite3.c || (sqlite3OsDeviceCharacteristics(pPager->fd)&SQLITE_IOCAP_SAFE_APPEND) fd 43402 ext/sqlite3/libsqlite/sqlite3.c int iDc = isOpen(pPager->fd)?sqlite3OsDeviceCharacteristics(pPager->fd):0; fd 43451 ext/sqlite3/libsqlite/sqlite3.c if( USEFETCH(pPager) ) sqlite3OsUnfetch(pPager->fd, 0, 0); fd 43653 ext/sqlite3/libsqlite/sqlite3.c if( rc==SQLITE_OK && bCommit && isOpen(pPager->fd) ){ fd 43654 ext/sqlite3/libsqlite/sqlite3.c rc = sqlite3OsFileControl(pPager->fd, SQLITE_FCNTL_COMMIT_PHASETWO, 0); fd 43913 ext/sqlite3/libsqlite/sqlite3.c if( isOpen(pPager->fd) fd 43920 ext/sqlite3/libsqlite/sqlite3.c rc = sqlite3OsWrite(pPager->fd, (u8 *)aData, pPager->pageSize, ofst); fd 44163 ext/sqlite3/libsqlite/sqlite3.c if( isOpen(pPager->fd) fd 44170 ext/sqlite3/libsqlite/sqlite3.c rc = sqlite3OsFileSize(pPager->fd, ¤tSize); fd 44174 ext/sqlite3/libsqlite/sqlite3.c rc = sqlite3OsTruncate(pPager->fd, newSize); fd 44180 ext/sqlite3/libsqlite/sqlite3.c rc = sqlite3OsWrite(pPager->fd, pTmp, szPage, newSize-szPage); fd 44229 ext/sqlite3/libsqlite/sqlite3.c assert( isOpen(pPager->fd) || pPager->tempFile ); fd 44232 ext/sqlite3/libsqlite/sqlite3.c || (sqlite3OsDeviceCharacteristics(pPager->fd) & fd 44240 ext/sqlite3/libsqlite/sqlite3.c pPager->sectorSize = sqlite3SectorSize(pPager->fd); fd 44447 ext/sqlite3/libsqlite/sqlite3.c if( pPager->fd->pMethods ){ fd 44448 ext/sqlite3/libsqlite/sqlite3.c sqlite3OsFileControlHint(pPager->fd,SQLITE_FCNTL_DB_UNCHANGED,0); fd 44516 ext/sqlite3/libsqlite/sqlite3.c assert( isOpen(pPager->fd) ); fd 44526 ext/sqlite3/libsqlite/sqlite3.c rc = sqlite3OsRead(pPager->fd, pPg->pData, pgsz, iOffset); fd 44753 ext/sqlite3/libsqlite/sqlite3.c if( USEFETCH(pPager) ) sqlite3OsUnfetch(pPager->fd, 0, 0); fd 44790 ext/sqlite3/libsqlite/sqlite3.c assert( isOpen(pPager->fd) || pPager->tempFile ); fd 44791 ext/sqlite3/libsqlite/sqlite3.c if( isOpen(pPager->fd) ){ fd 44792 ext/sqlite3/libsqlite/sqlite3.c int rc = sqlite3OsFileSize(pPager->fd, &n); fd 45020 ext/sqlite3/libsqlite/sqlite3.c sqlite3_file *fd = pPager->fd; fd 45021 ext/sqlite3/libsqlite/sqlite3.c if( isOpen(fd) && fd->pMethods->iVersion>=3 ){ fd 45025 ext/sqlite3/libsqlite/sqlite3.c sqlite3OsFileControlHint(pPager->fd, SQLITE_FCNTL_MMAP_SIZE, &sz); fd 45196 ext/sqlite3/libsqlite/sqlite3.c if( isOpen(pPager->fd) ){ fd 45200 ext/sqlite3/libsqlite/sqlite3.c sqlite3OsFileControlHint(pPager->fd, SQLITE_FCNTL_BUSYHANDLER, (void *)ap); fd 45256 ext/sqlite3/libsqlite/sqlite3.c if( pPager->eState>PAGER_OPEN && isOpen(pPager->fd) ){ fd 45257 ext/sqlite3/libsqlite/sqlite3.c rc = sqlite3OsFileSize(pPager->fd, &nByte); fd 45358 ext/sqlite3/libsqlite/sqlite3.c assert( isOpen(pPager->fd) || pPager->tempFile ); fd 45366 ext/sqlite3/libsqlite/sqlite3.c if( isOpen(pPager->fd) ){ fd 45368 ext/sqlite3/libsqlite/sqlite3.c rc = sqlite3OsRead(pPager->fd, pDest, N, 0); fd 45536 ext/sqlite3/libsqlite/sqlite3.c sqlite3OsUnfetch(pPager->fd, (i64)(pgno-1) * pPager->pageSize, pData); fd 45568 ext/sqlite3/libsqlite/sqlite3.c assert( pPager->fd->pMethods->iVersion>=3 ); fd 45569 ext/sqlite3/libsqlite/sqlite3.c sqlite3OsUnfetch(pPager->fd, (i64)(pPg->pgno-1)*pPager->pageSize, pPg->pData); fd 45637 ext/sqlite3/libsqlite/sqlite3.c sqlite3OsClose(pPager->fd); fd 45718 ext/sqlite3/libsqlite/sqlite3.c const int iDc = sqlite3OsDeviceCharacteristics(pPager->fd); fd 45858 ext/sqlite3/libsqlite/sqlite3.c if( !isOpen(pPager->fd) ){ fd 45860 ext/sqlite3/libsqlite/sqlite3.c rc = pagerOpentemp(pPager, pPager->fd, pPager->vfsFlags); fd 45866 ext/sqlite3/libsqlite/sqlite3.c assert( rc!=SQLITE_OK || isOpen(pPager->fd) ); fd 45872 ext/sqlite3/libsqlite/sqlite3.c sqlite3OsFileControlHint(pPager->fd, SQLITE_FCNTL_SIZE_HINT, &szFile); fd 45898 ext/sqlite3/libsqlite/sqlite3.c rc = sqlite3OsWrite(pPager->fd, pData, pPager->pageSize, offset); fd 46270 ext/sqlite3/libsqlite/sqlite3.c pPager->fd = (sqlite3_file*)(pPtr += ROUND8(pcacheSize)); fd 46300 ext/sqlite3/libsqlite/sqlite3.c rc = sqlite3OsOpen(pVfs, pPager->zFilename, pPager->fd, vfsFlags, &fout); fd 46313 ext/sqlite3/libsqlite/sqlite3.c int iDc = sqlite3OsDeviceCharacteristics(pPager->fd); fd 46384 ext/sqlite3/libsqlite/sqlite3.c sqlite3OsClose(pPager->fd); fd 46390 ext/sqlite3/libsqlite/sqlite3.c PAGERTRACE(("OPEN %d %s\n", FILEHANDLEID(pPager->fd), pPager->zFilename)); fd 46429 ext/sqlite3/libsqlite/sqlite3.c assert( isOpen(pPager->fd) || tempFile ); fd 46459 ext/sqlite3/libsqlite/sqlite3.c rc = sqlite3OsFileControl(pPager->fd, SQLITE_FCNTL_HAS_MOVED, &bHasMoved); fd 46510 ext/sqlite3/libsqlite/sqlite3.c assert( isOpen(pPager->fd) ); fd 46532 ext/sqlite3/libsqlite/sqlite3.c rc = sqlite3OsCheckReservedLock(pPager->fd, &locked); fd 46783 ext/sqlite3/libsqlite/sqlite3.c rc = sqlite3OsRead(pPager->fd, &dbFileVers, sizeof(dbFileVers), 24); fd 46801 ext/sqlite3/libsqlite/sqlite3.c sqlite3OsUnfetch(pPager->fd, 0, 0); fd 46943 ext/sqlite3/libsqlite/sqlite3.c rc = sqlite3OsFetch(pPager->fd, fd 46954 ext/sqlite3/libsqlite/sqlite3.c sqlite3OsUnfetch(pPager->fd, (i64)(pgno-1)*pPager->pageSize, pData); fd 47010 ext/sqlite3/libsqlite/sqlite3.c if( MEMDB || pPager->dbSize<pgno || noContent || !isOpen(pPager->fd) ){ fd 47618 ext/sqlite3/libsqlite/sqlite3.c assert( !pPager->tempFile && isOpen(pPager->fd) ); fd 47643 ext/sqlite3/libsqlite/sqlite3.c rc = sqlite3OsWrite(pPager->fd, zBuf, pPager->pageSize, 0); fd 47675 ext/sqlite3/libsqlite/sqlite3.c if( isOpen(pPager->fd) ){ fd 47677 ext/sqlite3/libsqlite/sqlite3.c rc = sqlite3OsFileControl(pPager->fd, SQLITE_FCNTL_SYNC, pArg); fd 47682 ext/sqlite3/libsqlite/sqlite3.c rc = sqlite3OsSync(pPager->fd, pPager->syncFlags); fd 48270 ext/sqlite3/libsqlite/sqlite3.c return pPager->fd; fd 48608 ext/sqlite3/libsqlite/sqlite3.c assert( isOpen(pPager->fd) || pPager->exclusiveMode ); fd 48734 ext/sqlite3/libsqlite/sqlite3.c const sqlite3_io_methods *pMethods = pPager->fd->pMethods; fd 48782 ext/sqlite3/libsqlite/sqlite3.c pPager->fd, pPager->zWal, pPager->exclusiveMode, fd 57368 ext/sqlite3/libsqlite/sqlite3.c sqlite3_file *fd; fd 57394 ext/sqlite3/libsqlite/sqlite3.c && (fd = sqlite3PagerFile(pBt->pPager))->pMethods /* (3) */ fd 57402 ext/sqlite3/libsqlite/sqlite3.c rc = sqlite3OsRead(fd, aWrite, a+4, (i64)pBt->pageSize*(nextPage-1)); fd 131323 ext/sqlite3/libsqlite/sqlite3.c sqlite3_file *fd; fd 131327 ext/sqlite3/libsqlite/sqlite3.c fd = sqlite3PagerFile(pPager); fd 131328 ext/sqlite3/libsqlite/sqlite3.c assert( fd!=0 ); fd 131330 ext/sqlite3/libsqlite/sqlite3.c *(sqlite3_file**)pArg = fd; fd 131332 ext/sqlite3/libsqlite/sqlite3.c }else if( fd->pMethods ){ fd 131333 ext/sqlite3/libsqlite/sqlite3.c rc = sqlite3OsFileControl(fd, op, pArg); fd 155618 ext/sqlite3/libsqlite/sqlite3.c sqlite3_file *fd; fd 155628 ext/sqlite3/libsqlite/sqlite3.c fd = sqlite3PagerFile(pPager); fd 155630 ext/sqlite3/libsqlite/sqlite3.c if( fd->pMethods!=0 && sqlite3OsFileControl(fd, 230440, &x)==SQLITE_OK ){ fd 823 ext/standard/file.c int fd; fd 840 ext/standard/file.c if ((fd = php_open_temporary_fd_ex(dir, p, &opened_path, 1 TSRMLS_CC)) >= 0) { fd 841 ext/standard/file.c close(fd); fd 1091 ext/standard/file.c zval *fd; fd 1100 ext/standard/file.c if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "r|ls", &fd, &bytes, &allowed_tags, &allowed_tags_len) == FAILURE) { fd 1104 ext/standard/file.c PHP_STREAM_TO_ZVAL(stream, &fd); fd 1961 ext/standard/file.c zval *fd, **len_zv = NULL; fd 1970 ext/standard/file.c &fd, &len_zv, &delimiter_str, &delimiter_str_len, fd 2026 ext/standard/file.c PHP_STREAM_TO_ZVAL(stream, &fd); fd 41 ext/standard/flock_compat.c PHPAPI int flock(int fd, int operation) fd 43 ext/standard/flock_compat.c return php_flock(fd, operation); fd 47 ext/standard/flock_compat.c PHPAPI int php_flock(int fd, int operation) fd 67 ext/standard/flock_compat.c ret = fcntl(fd, operation & LOCK_NB ? F_SETLK : F_SETLKW, &flck); fd 124 ext/standard/flock_compat.c HANDLE hdl = (HANDLE) _get_osfhandle(fd); fd 28 ext/standard/flock_compat.h PHPAPI int php_flock(int fd, int operation); fd 35 ext/standard/flock_compat.h PHPAPI int flock(int fd, int operation); fd 136 ext/standard/password.c int fd, n; fd 138 ext/standard/password.c fd = open("/dev/urandom", O_RDONLY); fd 139 ext/standard/password.c if (fd >= 0) { fd 141 ext/standard/password.c n = read(fd, buffer + read_bytes, raw_length - read_bytes); fd 147 ext/standard/password.c close(fd); fd 177 ext/standard/php_fopen_wrapper.c int fd = -1; fd 250 ext/standard/php_fopen_wrapper.c fd = STDIN_FILENO; fd 252 ext/standard/php_fopen_wrapper.c fd = dup(fd); fd 258 ext/standard/php_fopen_wrapper.c fd = dup(STDIN_FILENO); fd 263 ext/standard/php_fopen_wrapper.c fd = STDOUT_FILENO; fd 265 ext/standard/php_fopen_wrapper.c fd = dup(fd); fd 271 ext/standard/php_fopen_wrapper.c fd = dup(STDOUT_FILENO); fd 276 ext/standard/php_fopen_wrapper.c fd = STDERR_FILENO; fd 278 ext/standard/php_fopen_wrapper.c fd = dup(fd); fd 284 ext/standard/php_fopen_wrapper.c fd = dup(STDERR_FILENO); fd 326 ext/standard/php_fopen_wrapper.c fd = dup(fildes_ori); fd 327 ext/standard/php_fopen_wrapper.c if (fd == -1) { fd 376 ext/standard/php_fopen_wrapper.c if (fd == -1) { fd 385 ext/standard/php_fopen_wrapper.c if (fstat(fd, &st) == 0 && (st.st_mode & S_IFMT) == S_IFSOCK) { fd 386 ext/standard/php_fopen_wrapper.c stream = php_stream_sock_open_from_socket(fd, NULL); fd 398 ext/standard/php_fopen_wrapper.c stream = php_stream_fopen_from_fd(fd, mode, NULL); fd 400 ext/standard/php_fopen_wrapper.c close(fd); fd 428 ext/standard/proc_open.c static inline HANDLE dup_fd_as_handle(int fd) fd 430 ext/standard/proc_open.c return dup_handle((HANDLE)_get_osfhandle(fd), TRUE, FALSE); fd 433 ext/standard/proc_open.c # define close_descriptor(fd) CloseHandle(fd) fd 435 ext/standard/proc_open.c # define close_descriptor(fd) close(fd) fd 560 ext/standard/proc_open.c php_socket_t fd; fd 564 ext/standard/proc_open.c if (FAILURE == php_stream_cast(stream, PHP_STREAM_AS_FD, (void **)&fd, REPORT_ERRORS)) { fd 569 ext/standard/proc_open.c descriptors[ndesc].childend = dup_fd_as_handle(fd); fd 575 ext/standard/proc_open.c descriptors[ndesc].childend = dup(fd); fd 633 ext/standard/proc_open.c php_socket_t fd; fd 659 ext/standard/proc_open.c (void **)&fd, REPORT_ERRORS)) { fd 664 ext/standard/proc_open.c descriptors[ndesc].childend = dup_fd_as_handle(fd); fd 665 ext/standard/proc_open.c _close(fd); fd 673 ext/standard/proc_open.c descriptors[ndesc].childend = fd; fd 65 ext/zip/lib/mkstemp.c int fd; fd 129 ext/zip/lib/mkstemp.c if ((fd=open(path, O_CREAT|O_EXCL|O_RDWR|O_BINARY, 0600)) >= 0) fd 130 ext/zip/lib/mkstemp.c return (fd); fd 43 ext/zip/lib/zip_fdopen.c int fd; fd 62 ext/zip/lib/zip_fdopen.c if ((fd=dup(fd_orig)) < 0) { fd 67 ext/zip/lib/zip_fdopen.c if ((fp=fdopen(fd, "rb")) == NULL) { fd 68 ext/zip/lib/zip_fdopen.c close(fd); fd 134 ext/zlib/zlib_fopen_wrapper.c php_socket_t fd; fd 136 ext/zlib/zlib_fopen_wrapper.c if (SUCCESS == php_stream_cast(innerstream, PHP_STREAM_AS_FD, (void **) &fd, REPORT_ERRORS)) { fd 139 ext/zlib/zlib_fopen_wrapper.c self->gz_file = gzdopen(dup(fd), mode); fd 1038 main/SAPI.c SAPI_API int sapi_get_fd(int *fd TSRMLS_DC) fd 1041 main/SAPI.c return sapi_module.get_fd(fd TSRMLS_CC); fd 211 main/SAPI.h SAPI_API int sapi_get_fd(int *fd TSRMLS_DC); fd 261 main/SAPI.h int (*get_fd)(int *fd TSRMLS_DC); fd 681 main/main.c int fd = -1; fd 699 main/main.c fd = VCWD_OPEN_MODE(PG(error_log), O_CREAT | O_APPEND | O_WRONLY, 0644); fd 700 main/main.c if (fd != -1) { fd 717 main/main.c php_flock(fd, 2); fd 719 main/main.c php_ignore_value(write(fd, tmp, len)); fd 722 main/main.c close(fd); fd 1149 main/network.c if (ufds[i].fd > max_fd) fd 1150 main/network.c max_fd = ufds[i].fd; fd 1161 main/network.c PHP_SAFE_FD_SET(ufds[i].fd, &rset); fd 1164 main/network.c PHP_SAFE_FD_SET(ufds[i].fd, &wset); fd 1167 main/network.c PHP_SAFE_FD_SET(ufds[i].fd, &eset); fd 1187 main/network.c if (PHP_SAFE_FD_ISSET(ufds[i].fd, &rset)) { fd 1191 main/network.c if (PHP_SAFE_FD_ISSET(ufds[i].fd, &wset)) { fd 1194 main/network.c if (PHP_SAFE_FD_ISSET(ufds[i].fd, &eset)) { fd 116 main/php_network.h php_socket_t fd; fd 156 main/php_network.h static inline int php_pollfd_for(php_socket_t fd, int events, struct timeval *timeouttv) fd 161 main/php_network.h p.fd = fd; fd 174 main/php_network.h static inline int php_pollfd_for_ms(php_socket_t fd, int events, int timeout) fd 179 main/php_network.h p.fd = fd; fd 198 main/php_network.h # define PHP_SAFE_FD_SET(fd, set) FD_SET(fd, set) fd 199 main/php_network.h # define PHP_SAFE_FD_CLR(fd, set) FD_CLR(fd, set) fd 200 main/php_network.h # define PHP_SAFE_FD_ISSET(fd, set) FD_ISSET(fd, set) fd 203 main/php_network.h # define PHP_SAFE_FD_SET(fd, set) do { if (fd < FD_SETSIZE) FD_SET(fd, set); } while(0) fd 204 main/php_network.h # define PHP_SAFE_FD_CLR(fd, set) do { if (fd < FD_SETSIZE) FD_CLR(fd, set); } while(0) fd 205 main/php_network.h # define PHP_SAFE_FD_ISSET(fd, set) ((fd < FD_SETSIZE) && FD_ISSET(fd, set)) fd 103 main/php_open_temporary_file.c int fd = -1; fd 157 main/php_open_temporary_file.c fd = VCWD_OPEN_MODE(opened_path, open_flags, 0600); fd 161 main/php_open_temporary_file.c fd = mkstemp(opened_path); fd 164 main/php_open_temporary_file.c fd = VCWD_OPEN(opened_path, open_flags); fd 168 main/php_open_temporary_file.c if (fd == -1 || !opened_path_p) { fd 174 main/php_open_temporary_file.c return fd; fd 277 main/php_open_temporary_file.c int fd; fd 299 main/php_open_temporary_file.c fd = php_do_open_temporary_file(dir, pfx, opened_path_p TSRMLS_CC); fd 300 main/php_open_temporary_file.c if (fd == -1) { fd 304 main/php_open_temporary_file.c return fd; fd 315 main/php_open_temporary_file.c int fd = php_open_temporary_fd(dir, pfx, opened_path_p TSRMLS_CC); fd 317 main/php_open_temporary_file.c if (fd == -1) { fd 321 main/php_open_temporary_file.c fp = fdopen(fd, "r+b"); fd 323 main/php_open_temporary_file.c close(fd); fd 70 main/php_streams.h #define php_stream_fopen_from_fd_rel(fd, mode, persistent_id) _php_stream_fopen_from_fd((fd), (mode), (persistent_id) STREAMS_REL_CC TSRMLS_CC) fd 694 main/rfc1867.c int fd = -1; fd 973 main/rfc1867.c fd = -1; fd 1014 main/rfc1867.c fd = php_open_temporary_fd_ex(PG(upload_tmp_dir), "php", &temp_filename, 1 TSRMLS_CC); fd 1016 main/rfc1867.c if (fd == -1) { fd 1050 main/rfc1867.c wlen = write(fd, buff, blen); fd 1073 main/rfc1867.c if (fd != -1) { /* may not be initialized if file could not be created */ fd 1074 main/rfc1867.c close(fd); fd 39 main/streams/php_stream_plain_wrapper.h PHPAPI php_stream *_php_stream_fopen_from_fd(int fd, const char *mode, const char *persistent_id STREAMS_DC TSRMLS_DC); fd 40 main/streams/php_stream_plain_wrapper.h #define php_stream_fopen_from_fd(fd, mode, persistent_id) _php_stream_fopen_from_fd((fd), (mode), (persistent_id) STREAMS_CC TSRMLS_CC) fd 47 main/streams/plain_wrapper.c #define php_stream_fopen_from_fd_int(fd, mode, persistent_id) _php_stream_fopen_from_fd_int((fd), (mode), (persistent_id) STREAMS_CC TSRMLS_CC) fd 48 main/streams/plain_wrapper.c #define php_stream_fopen_from_fd_int_rel(fd, mode, persistent_id) _php_stream_fopen_from_fd_int((fd), (mode), (persistent_id) STREAMS_REL_CC TSRMLS_CC) fd 114 main/streams/plain_wrapper.c int fd; /* underlying file descriptor */ fd 138 main/streams/plain_wrapper.c #define PHP_STDIOP_GET_FD(anfd, data) anfd = (data)->file ? fileno((data)->file) : (data)->fd fd 143 main/streams/plain_wrapper.c int fd; fd 146 main/streams/plain_wrapper.c PHP_STDIOP_GET_FD(fd, d); fd 147 main/streams/plain_wrapper.c r = fstat(fd, &d->sb); fd 155 main/streams/plain_wrapper.c static php_stream *_php_stream_fopen_from_fd_int(int fd, const char *mode, const char *persistent_id STREAMS_DC TSRMLS_DC) fd 166 main/streams/plain_wrapper.c self->fd = fd; fd 182 main/streams/plain_wrapper.c self->fd = fileno(file); fd 190 main/streams/plain_wrapper.c int fd; fd 192 main/streams/plain_wrapper.c fd = php_open_temporary_fd(dir, pfx, &opened_path TSRMLS_CC); fd 193 main/streams/plain_wrapper.c if (fd != -1) { fd 200 main/streams/plain_wrapper.c stream = php_stream_fopen_from_fd_int_rel(fd, "r+b", NULL); fd 211 main/streams/plain_wrapper.c close(fd); fd 225 main/streams/plain_wrapper.c PHPAPI php_stream *_php_stream_fopen_from_fd(int fd, const char *mode, const char *persistent_id STREAMS_DC TSRMLS_DC) fd 227 main/streams/plain_wrapper.c php_stream *stream = php_stream_fopen_from_fd_int_rel(fd, mode, persistent_id); fd 234 main/streams/plain_wrapper.c if (self->fd >= 0) { fd 239 main/streams/plain_wrapper.c zend_uintptr_t handle = _get_osfhandle(self->fd); fd 250 main/streams/plain_wrapper.c stream->position = lseek(self->fd, 0, SEEK_CUR); fd 273 main/streams/plain_wrapper.c if (self->fd >= 0) { fd 278 main/streams/plain_wrapper.c zend_uintptr_t handle = _get_osfhandle(self->fd); fd 307 main/streams/plain_wrapper.c self->fd = fileno(file); fd 321 main/streams/plain_wrapper.c if (data->fd >= 0) { fd 322 main/streams/plain_wrapper.c int bytes_written = write(data->fd, buf, count); fd 345 main/streams/plain_wrapper.c if (data->fd >= 0) { fd 350 main/streams/plain_wrapper.c HANDLE ph = (HANDLE)_get_osfhandle(data->fd); fd 374 main/streams/plain_wrapper.c ret = read(data->fd, buf, count); fd 380 main/streams/plain_wrapper.c ret = read(data->fd, buf, count); fd 437 main/streams/plain_wrapper.c } else if (data->fd != -1) { fd 438 main/streams/plain_wrapper.c ret = close(data->fd); fd 439 main/streams/plain_wrapper.c data->fd = -1; fd 452 main/streams/plain_wrapper.c data->fd = -1; fd 489 main/streams/plain_wrapper.c if (data->fd >= 0) { fd 492 main/streams/plain_wrapper.c result = lseek(data->fd, offset, whence); fd 508 main/streams/plain_wrapper.c php_socket_t fd; fd 525 main/streams/plain_wrapper.c data->file = fdopen(data->fd, fixed_mode); fd 532 main/streams/plain_wrapper.c data->fd = SOCK_ERR; fd 537 main/streams/plain_wrapper.c PHP_STDIOP_GET_FD(fd, data); fd 538 main/streams/plain_wrapper.c if (SOCK_ERR == fd) { fd 542 main/streams/plain_wrapper.c *(php_socket_t *)ret = fd; fd 547 main/streams/plain_wrapper.c PHP_STDIOP_GET_FD(fd, data); fd 549 main/streams/plain_wrapper.c if (SOCK_ERR == fd) { fd 556 main/streams/plain_wrapper.c *(php_socket_t *)ret = fd; fd 580 main/streams/plain_wrapper.c int fd; fd 587 main/streams/plain_wrapper.c PHP_STDIOP_GET_FD(fd, data); fd 591 main/streams/plain_wrapper.c if (fd == -1) fd 594 main/streams/plain_wrapper.c flags = fcntl(fd, F_GETFL, 0); fd 601 main/streams/plain_wrapper.c if (-1 == fcntl(fd, F_SETFL, flags)) fd 635 main/streams/plain_wrapper.c if (fd == -1) { fd 643 main/streams/plain_wrapper.c if (!flock(fd, value)) { fd 659 main/streams/plain_wrapper.c return fd == -1 ? PHP_STREAM_OPTION_RETURN_ERR : PHP_STREAM_OPTION_RETURN_OK; fd 693 main/streams/plain_wrapper.c range->mapped = (char*)mmap(NULL, range->length, prot, flags, fd, range->offset); fd 716 main/streams/plain_wrapper.c HANDLE hfile = (HANDLE)_get_osfhandle(fd); fd 811 main/streams/plain_wrapper.c return fd == -1 ? PHP_STREAM_OPTION_RETURN_ERR : PHP_STREAM_OPTION_RETURN_OK; fd 818 main/streams/plain_wrapper.c return ftruncate(fd, new_size) == 0 ? PHP_STREAM_OPTION_RETURN_OK : PHP_STREAM_OPTION_RETURN_ERR; fd 922 main/streams/plain_wrapper.c int fd; fd 961 main/streams/plain_wrapper.c fd = open(realpath, open_flags, 0666); fd 963 main/streams/plain_wrapper.c if (fd != -1) { fd 966 main/streams/plain_wrapper.c ret = php_stream_fopen_from_fd_int_rel(fd, mode, persistent_id); fd 968 main/streams/plain_wrapper.c ret = php_stream_fopen_from_fd_rel(fd, mode, persistent_id); fd 1006 main/streams/plain_wrapper.c close(fd); fd 396 sapi/apache/mod_php5.c int fd; fd 398 sapi/apache/mod_php5.c fd = r->connection->client->fd; fd 400 sapi/apache/mod_php5.c if (fd >= 0) { fd 401 sapi/apache/mod_php5.c if (nfd) *nfd = fd; fd 48 sapi/apache/sapi_apache.c file_handle.handle.fd = 0; fd 49 sapi/apache_hooks/sapi_apache.c file_handle.handle.fd = 0; fd 245 sapi/caudium/caudium.c int sent_bytes = 0, fd = MY_FD; fd 246 sapi/caudium/caudium.c if(fd) fd 251 sapi/caudium/caudium.c written = fd_write(fd, str + sent_bytes, str_length - sent_bytes); fd 726 sapi/caudium/caudium.c int fd = fd_from_object(raw_fd->u.object); fd 727 sapi/caudium/caudium.c if(fd == -1) fd 730 sapi/caudium/caudium.c THIS->my_fd = fd; fd 2394 sapi/cgi/cgi_main.c if (file_handle.handle.fd < 0) { fd 2398 sapi/cgi/cgi_main.c file_handle.handle.fp = fdopen(file_handle.handle.fd, "rb"); fd 48 sapi/cgi/fastcgi.c #define FCGI_LOCK(fd) \ fd 60 sapi/cgi/fastcgi.c #define FCGI_UNLOCK(fd) \ fd 97 sapi/cgi/fastcgi.c # define FCGI_LOCK(fd) \ fd 104 sapi/cgi/fastcgi.c if (fcntl(fd, F_SETLKW, &lock) != -1) { \ fd 111 sapi/cgi/fastcgi.c # define FCGI_UNLOCK(fd) \ fd 120 sapi/cgi/fastcgi.c if (fcntl(fd, F_SETLK, &lock) != -1) { \ fd 129 sapi/cgi/fastcgi.c # define FCGI_LOCK(fd) fd 130 sapi/cgi/fastcgi.c # define FCGI_UNLOCK(fd) fd 346 sapi/cgi/fastcgi.c int fd; fd 746 sapi/cgi/fastcgi.c req->fd = -1; fd 783 sapi/cgi/fastcgi.c ret = write(req->fd, ((char*)buf)+n, count-n); fd 785 sapi/cgi/fastcgi.c ret = send(req->fd, ((char*)buf)+n, count-n, 0); fd 791 sapi/cgi/fastcgi.c ret = write(req->fd, ((char*)buf)+n, count-n); fd 811 sapi/cgi/fastcgi.c ret = read(req->fd, ((char*)buf)+n, count-n); fd 813 sapi/cgi/fastcgi.c ret = recv(req->fd, ((char*)buf)+n, count-n, 0); fd 819 sapi/cgi/fastcgi.c ret = read(req->fd, ((char*)buf)+n, count-n); fd 933 sapi/cgi/fastcgi.c setsockopt(req->fd, IPPROTO_TCP, TCP_NODELAY, (char*)&on, sizeof(on)); fd 1110 sapi/cgi/fastcgi.c if ((force || !req->keep) && req->fd >= 0) { fd 1113 sapi/cgi/fastcgi.c HANDLE pipe = (HANDLE)_get_osfhandle(req->fd); fd 1123 sapi/cgi/fastcgi.c shutdown(req->fd, 1); fd 1125 sapi/cgi/fastcgi.c recv(req->fd, (char *)(&buf), sizeof(buf), 0); fd 1127 sapi/cgi/fastcgi.c closesocket(req->fd); fd 1133 sapi/cgi/fastcgi.c shutdown(req->fd, 1); fd 1135 sapi/cgi/fastcgi.c recv(req->fd, (char *)(&buf), sizeof(buf), 0); fd 1137 sapi/cgi/fastcgi.c close(req->fd); fd 1142 sapi/cgi/fastcgi.c req->fd = -1; fd 1154 sapi/cgi/fastcgi.c if (req->fd < 0) { fd 1178 sapi/cgi/fastcgi.c req->fd = req->listen_socket; fd 1190 sapi/cgi/fastcgi.c req->fd = accept(listen_socket, (struct sockaddr *)&sa, &len); fd 1192 sapi/cgi/fastcgi.c if (req->fd >= 0) { fd 1210 sapi/cgi/fastcgi.c closesocket(req->fd); fd 1211 sapi/cgi/fastcgi.c req->fd = -1; fd 1224 sapi/cgi/fastcgi.c if (req->fd < 0 && (in_shutdown || errno != EINTR)) { fd 1226 sapi/cgi/fastcgi.c if (req->fd < 0 && (in_shutdown || (errno != EINTR && errno != ECONNABORTED))) { fd 1234 sapi/cgi/fastcgi.c if (req->fd >= 0) { fd 1239 sapi/cgi/fastcgi.c fds.fd = req->fd; fd 1251 sapi/cgi/fastcgi.c if (req->fd < FD_SETSIZE) { fd 1257 sapi/cgi/fastcgi.c FD_SET(req->fd, &set); fd 1260 sapi/cgi/fastcgi.c ret = select(req->fd + 1, &set, NULL, NULL, &tv) >= 0; fd 1262 sapi/cgi/fastcgi.c if (ret > 0 && FD_ISSET(req->fd, &set)) { fd 1280 sapi/cgi/fastcgi.c pipe = (HANDLE)_get_osfhandle(req->fd); fd 1287 sapi/cgi/fastcgi.c return req->fd; fd 1458 sapi/cgi/fastcgi.c if (req->fd >= 0) { fd 236 sapi/cli/php_cli.c static inline int sapi_cli_select(int fd TSRMLS_DC) fd 245 sapi/cli/php_cli.c PHP_SAFE_FD_SET(fd, &wfd); fd 250 sapi/cli/php_cli.c ret = php_select(fd+1, &dfd, &wfd, &dfd, &tv); fd 873 sapi/cli/php_cli_server.c static void php_cli_server_poller_add(php_cli_server_poller *poller, int mode, int fd) /* {{{ */ fd 876 sapi/cli/php_cli_server.c PHP_SAFE_FD_SET(fd, &poller->rfds); fd 879 sapi/cli/php_cli_server.c PHP_SAFE_FD_SET(fd, &poller->wfds); fd 881 sapi/cli/php_cli_server.c if (fd > poller->max_fd) { fd 882 sapi/cli/php_cli_server.c poller->max_fd = fd; fd 886 sapi/cli/php_cli_server.c static void php_cli_server_poller_remove(php_cli_server_poller *poller, int mode, int fd) /* {{{ */ fd 889 sapi/cli/php_cli_server.c PHP_SAFE_FD_CLR(fd, &poller->rfds); fd 892 sapi/cli/php_cli_server.c PHP_SAFE_FD_CLR(fd, &poller->wfds); fd 895 sapi/cli/php_cli_server.c if (fd == poller->max_fd) { fd 896 sapi/cli/php_cli_server.c while (fd > 0) { fd 897 sapi/cli/php_cli_server.c fd--; fd 898 sapi/cli/php_cli_server.c if (PHP_SAFE_FD_ISSET(fd, &poller->rfds) || PHP_SAFE_FD_ISSET(fd, &poller->wfds)) { fd 902 sapi/cli/php_cli_server.c poller->max_fd = fd; fd 914 sapi/cli/php_cli_server.c static int php_cli_server_poller_iter_on_active(php_cli_server_poller *poller, void *opaque, int(*callback)(void *, int fd, int events)) /* {{{ */ fd 919 sapi/cli/php_cli_server.c SOCKET fd; fd 922 sapi/cli/php_cli_server.c php_socket_t fd = 0; fd 928 sapi/cli/php_cli_server.c n->fd = poller->active.rfds.fd_array[i]; fd 935 sapi/cli/php_cli_server.c SOCKET fd = poller->active.wfds.fd_array[i]; fd 937 sapi/cli/php_cli_server.c if (e->fd == fd) { fd 944 sapi/cli/php_cli_server.c n->fd = fd; fd 952 sapi/cli/php_cli_server.c if (SUCCESS != callback(opaque, e->fd, e->events)) { fd 959 sapi/cli/php_cli_server.c php_socket_t fd; fd 962 sapi/cli/php_cli_server.c for (fd=0 ; fd<=max_fd ; fd++) { fd 963 sapi/cli/php_cli_server.c if (PHP_SAFE_FD_ISSET(fd, &poller->active.rfds)) { fd 964 sapi/cli/php_cli_server.c if (SUCCESS != callback(opaque, fd, POLLIN)) { fd 968 sapi/cli/php_cli_server.c if (PHP_SAFE_FD_ISSET(fd, &poller->active.wfds)) { fd 969 sapi/cli/php_cli_server.c if (SUCCESS != callback(opaque, fd, POLLOUT)) { fd 1105 sapi/cli/php_cli_server.c static int php_cli_server_content_sender_send(php_cli_server_content_sender *sender, php_socket_t fd, size_t *nbytes_sent_total) /* {{{ */ fd 1116 sapi/cli/php_cli_server.c nbytes_sent = send(fd, chunk->data.heap.p, chunk->data.heap.len, 0); fd 1135 sapi/cli/php_cli_server.c nbytes_sent = send(fd, chunk->data.immortal.p, chunk->data.immortal.len, 0); fd 1158 sapi/cli/php_cli_server.c static int php_cli_server_content_sender_pull(php_cli_server_content_sender *sender, int fd, size_t *nbytes_read) /* {{{ */ fd 1163 sapi/cli/php_cli_server.c _nbytes_read = read(fd, chunk->data.heap.p, chunk->data.heap.len); fd 2053 sapi/cli/php_cli_server.c int fd; fd 2074 sapi/cli/php_cli_server.c fd = client->request.path_translated ? open(client->request.path_translated, O_RDONLY): -1; fd 2075 sapi/cli/php_cli_server.c if (fd < 0) { fd 2081 sapi/cli/php_cli_server.c client->file_fd = fd; fd 2448 sapi/cli/php_cli_server.c static int php_cli_server_do_event_for_each_fd_callback(void *_params, int fd, int event) /* {{{ */ fd 2455 sapi/cli/php_cli_server.c if (server->server_sock == fd) { fd 2490 sapi/cli/php_cli_server.c if (SUCCESS == zend_hash_index_find(&server->clients, fd, (void **)&client)) { fd 98 sapi/fpm/fpm/events/devpoll.c pollfds[i].fd = -1; fd 179 sapi/fpm/fpm/events/devpoll.c if (q->ev && q->ev->fd == active_pollfds[i].fd) { fd 206 sapi/fpm/fpm/events/devpoll.c pollfd.fd = ev->fd; fd 217 sapi/fpm/fpm/events/devpoll.c ev->index = ev->fd; fd 231 sapi/fpm/fpm/events/devpoll.c pollfd.fd = ev->fd; fd 168 sapi/fpm/fpm/events/epoll.c e.data.fd = ev->fd; fd 176 sapi/fpm/fpm/events/epoll.c if (epoll_ctl(epollfd, EPOLL_CTL_ADD, ev->fd, &e) == -1) { fd 177 sapi/fpm/fpm/events/epoll.c zlog(ZLOG_ERROR, "epoll: unable to add fd %d", ev->fd); fd 182 sapi/fpm/fpm/events/epoll.c ev->index = ev->fd; fd 196 sapi/fpm/fpm/events/epoll.c e.data.fd = ev->fd; fd 204 sapi/fpm/fpm/events/epoll.c if (epoll_ctl(epollfd, EPOLL_CTL_DEL, ev->fd, &e) == -1) { fd 205 sapi/fpm/fpm/events/epoll.c zlog(ZLOG_ERROR, "epoll: unable to remove fd %d", ev->fd); fd 170 sapi/fpm/fpm/events/kqueue.c EV_SET(&k, ev->fd, EVFILT_READ, flags, 0, 0, (void *)ev); fd 178 sapi/fpm/fpm/events/kqueue.c ev->index = ev->fd; fd 195 sapi/fpm/fpm/events/kqueue.c EV_SET(&k, ev->fd, EVFILT_READ, flags, 0, 0, (void *)ev); fd 90 sapi/fpm/fpm/events/poll.c pollfds[i].fd = -1; fd 161 sapi/fpm/fpm/events/poll.c if (q->ev && q->ev->index >= 0 && q->ev->index < npollfds && q->ev->fd == active_pollfds[q->ev->index].fd) { fd 191 sapi/fpm/fpm/events/poll.c if (pollfds[next_free_slot].fd == -1) { fd 193 sapi/fpm/fpm/events/poll.c pollfds[next_free_slot].fd = ev->fd; fd 206 sapi/fpm/fpm/events/poll.c if (pollfds[i].fd != -1) { fd 212 sapi/fpm/fpm/events/poll.c pollfds[i].fd = ev->fd; fd 223 sapi/fpm/fpm/events/poll.c zlog(ZLOG_ERROR, "poll: not enought space to add event (fd=%d)", ev->fd); fd 236 sapi/fpm/fpm/events/poll.c if (ev->index >= 0 && ev->index < npollfds && pollfds[ev->index].fd == ev->fd) { fd 241 sapi/fpm/fpm/events/poll.c pollfds[ev->index].fd = -1; fd 253 sapi/fpm/fpm/events/poll.c if (pollfds[i].fd != ev->fd) { fd 262 sapi/fpm/fpm/events/poll.c pollfds[i].fd = -1; fd 271 sapi/fpm/fpm/events/poll.c zlog(ZLOG_ERROR, "poll: unable to remove event: not found (fd=%d, index=%d)", ev->fd, ev->index); fd 163 sapi/fpm/fpm/events/port.c if (port_associate(pfd, PORT_SOURCE_FD, ev->fd, POLLIN, (void *)ev) < 0) { fd 177 sapi/fpm/fpm/events/port.c if (port_dissociate(pfd, PORT_SOURCE_FD, ev->fd) < 0) { fd 120 sapi/fpm/fpm/events/select.c if (FD_ISSET(q->ev->fd, ¤t_fds)) { fd 145 sapi/fpm/fpm/events/select.c if (ev->fd >= FD_SETSIZE) { fd 151 sapi/fpm/fpm/events/select.c if (!FD_ISSET(ev->fd, &fds)) { fd 152 sapi/fpm/fpm/events/select.c FD_SET(ev->fd, &fds); fd 153 sapi/fpm/fpm/events/select.c ev->index = ev->fd; fd 166 sapi/fpm/fpm/events/select.c if (FD_ISSET(ev->fd, &fds)) { fd 167 sapi/fpm/fpm/events/select.c FD_CLR(ev->fd, &fds); fd 48 sapi/fpm/fpm/fastcgi.c #define FCGI_LOCK(fd) \ fd 60 sapi/fpm/fpm/fastcgi.c #define FCGI_UNLOCK(fd) \ fd 96 sapi/fpm/fpm/fastcgi.c # define FCGI_LOCK(fd) \ fd 103 sapi/fpm/fpm/fastcgi.c if (fcntl(fd, F_SETLKW, &lock) != -1) { \ fd 110 sapi/fpm/fpm/fastcgi.c # define FCGI_UNLOCK(fd) \ fd 119 sapi/fpm/fpm/fastcgi.c if (fcntl(fd, F_SETLK, &lock) != -1) { \ fd 128 sapi/fpm/fpm/fastcgi.c # define FCGI_LOCK(fd) fd 129 sapi/fpm/fpm/fastcgi.c # define FCGI_UNLOCK(fd) fd 292 sapi/fpm/fpm/fastcgi.c req->fd = -1; fd 315 sapi/fpm/fpm/fastcgi.c ret = write(req->fd, ((char*)buf)+n, count-n); fd 317 sapi/fpm/fpm/fastcgi.c ret = send(req->fd, ((char*)buf)+n, count-n, 0); fd 323 sapi/fpm/fpm/fastcgi.c ret = write(req->fd, ((char*)buf)+n, count-n); fd 343 sapi/fpm/fpm/fastcgi.c ret = read(req->fd, ((char*)buf)+n, count-n); fd 345 sapi/fpm/fpm/fastcgi.c ret = recv(req->fd, ((char*)buf)+n, count-n, 0); fd 351 sapi/fpm/fpm/fastcgi.c ret = read(req->fd, ((char*)buf)+n, count-n); fd 737 sapi/fpm/fpm/fastcgi.c if ((force || !req->keep) && req->fd >= 0) { fd 740 sapi/fpm/fpm/fastcgi.c HANDLE pipe = (HANDLE)_get_osfhandle(req->fd); fd 750 sapi/fpm/fpm/fastcgi.c shutdown(req->fd, 1); fd 751 sapi/fpm/fpm/fastcgi.c while (recv(req->fd, buf, sizeof(buf), 0) > 0) {} fd 753 sapi/fpm/fpm/fastcgi.c closesocket(req->fd); fd 759 sapi/fpm/fpm/fastcgi.c shutdown(req->fd, 1); fd 760 sapi/fpm/fpm/fastcgi.c while (recv(req->fd, buf, sizeof(buf), 0) > 0) {} fd 762 sapi/fpm/fpm/fastcgi.c close(req->fd); fd 764 sapi/fpm/fpm/fastcgi.c req->fd = -1; fd 814 sapi/fpm/fpm/fastcgi.c if (req->fd < 0) { fd 838 sapi/fpm/fpm/fastcgi.c req->fd = req->listen_socket; fd 852 sapi/fpm/fpm/fastcgi.c req->fd = accept(listen_socket, (struct sockaddr *)&sa, &len); fd 856 sapi/fpm/fpm/fastcgi.c if (req->fd >= 0 && !fcgi_is_allowed()) { fd 857 sapi/fpm/fpm/fastcgi.c closesocket(req->fd); fd 858 sapi/fpm/fpm/fastcgi.c req->fd = -1; fd 864 sapi/fpm/fpm/fastcgi.c if (req->fd < 0 && (in_shutdown || errno != EINTR)) { fd 866 sapi/fpm/fpm/fastcgi.c if (req->fd < 0 && (in_shutdown || (errno != EINTR && errno != ECONNABORTED))) { fd 874 sapi/fpm/fpm/fastcgi.c if (req->fd >= 0) { fd 881 sapi/fpm/fpm/fastcgi.c fds.fd = req->fd; fd 895 sapi/fpm/fpm/fastcgi.c if (req->fd < FD_SETSIZE) { fd 901 sapi/fpm/fpm/fastcgi.c FD_SET(req->fd, &set); fd 904 sapi/fpm/fpm/fastcgi.c ret = select(req->fd + 1, &set, NULL, NULL, &tv) >= 0; fd 906 sapi/fpm/fpm/fastcgi.c if (ret > 0 && FD_ISSET(req->fd, &set)) { fd 924 sapi/fpm/fpm/fastcgi.c pipe = (HANDLE)_get_osfhandle(req->fd); fd 931 sapi/fpm/fpm/fastcgi.c return req->fd; fd 1073 sapi/fpm/fpm/fastcgi.c if (req->fd >= 0) { fd 99 sapi/fpm/fpm/fastcgi.h int fd; fd 954 sapi/fpm/fpm/fpm_conf.c int fd; fd 956 sapi/fpm/fpm/fpm_conf.c fd = open(wp->config->slowlog, O_WRONLY | O_APPEND | O_CREAT, S_IRUSR | S_IWUSR); fd 958 sapi/fpm/fpm/fpm_conf.c if (0 > fd) { fd 962 sapi/fpm/fpm/fpm_conf.c close(fd); fd 1127 sapi/fpm/fpm/fpm_conf.c int fd; fd 1134 sapi/fpm/fpm/fpm_conf.c fd = creat(fpm_global_config.pid_file, S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH); fd 1136 sapi/fpm/fpm/fpm_conf.c if (fd < 0) { fd 1143 sapi/fpm/fpm/fpm_conf.c if (len != write(fd, buf, len)) { fd 1145 sapi/fpm/fpm/fpm_conf.c close(fd); fd 1148 sapi/fpm/fpm/fpm_conf.c close(fd); fd 1487 sapi/fpm/fpm/fpm_conf.c int fd, n; fd 1498 sapi/fpm/fpm/fpm_conf.c fd = open(filename, O_RDONLY, 0); fd 1499 sapi/fpm/fpm/fpm_conf.c if (fd < 0) { fd 1506 sapi/fpm/fpm/fpm_conf.c close(fd); fd 1514 sapi/fpm/fpm/fpm_conf.c for (n = 0; n < 1024 && (nb_read = read(fd, &c, sizeof(char))) == sizeof(char) && c != '\n'; n++) { fd 1525 sapi/fpm/fpm/fpm_conf.c close(fd); fd 1536 sapi/fpm/fpm/fpm_conf.c close(fd); fd 1544 sapi/fpm/fpm/fpm_conf.c close(fd); fd 60 sapi/fpm/fpm/fpm_events.c int fd = ev->fd; fd 64 sapi/fpm/fpm/fpm_events.c res = read(fd, &c, 1); fd 471 sapi/fpm/fpm/fpm_events.c int fpm_event_set(struct fpm_event_s *ev, int fd, int flags, void (*callback)(struct fpm_event_s *, short, void *), void *arg) /* {{{ */ fd 473 sapi/fpm/fpm/fpm_events.c if (!ev || !callback || fd < -1) { fd 477 sapi/fpm/fpm/fpm_events.c ev->fd = fd; fd 16 sapi/fpm/fpm/fpm_events.h int fd; /* not set with FPM_EV_TIMEOUT */ fd 45 sapi/fpm/fpm/fpm_events.h int fpm_event_set(struct fpm_event_s *ev, int fd, int flags, void (*callback)(struct fpm_event_s *, short, void *), void *arg); fd 38 sapi/fpm/fpm/fpm_log.c int fd; fd 45 sapi/fpm/fpm/fpm_log.c fd = open(wp->config->access_log, O_WRONLY | O_APPEND | O_CREAT, S_IRUSR | S_IWUSR); fd 46 sapi/fpm/fpm/fpm_log.c if (0 > fd) { fd 54 sapi/fpm/fpm/fpm_log.c dup2(fd, wp->log_fd); fd 55 sapi/fpm/fpm/fpm_log.c close(fd); fd 56 sapi/fpm/fpm/fpm_log.c fd = wp->log_fd; fd 59 sapi/fpm/fpm/fpm_log.c wp->log_fd = fd; fd 62 sapi/fpm/fpm/fpm_log.c if (0 > fcntl(fd, F_SETFD, fcntl(fd, F_GETFD) | FD_CLOEXEC)) { fd 1563 sapi/fpm/fpm/fpm_main.c if (request->fd >= 0) { fd 55 sapi/fpm/fpm/fpm_sockets.c char fd[32]; fd 56 sapi/fpm/fpm/fpm_sockets.c sprintf(fd, "%d", ls->sock); fd 57 sapi/fpm/fpm/fpm_sockets.c env_value = realloc(env_value, p + (p ? 1 : 0) + strlen(ls->key) + 1 + strlen(fd) + 1); fd 58 sapi/fpm/fpm/fpm_sockets.c p += sprintf(env_value + p, "%s%s=%s", p ? "," : "", ls->key, fd); fd 504 sapi/fpm/fpm/fpm_sockets.c int fd; fd 510 sapi/fpm/fpm/fpm_sockets.c if ((fd = socket(AF_UNIX, SOCK_STREAM, 0)) < 0) { fd 514 sapi/fpm/fpm/fpm_sockets.c if (connect(fd, (struct sockaddr *)sock, socklen) == -1) { fd 515 sapi/fpm/fpm/fpm_sockets.c close(fd); fd 519 sapi/fpm/fpm/fpm_sockets.c close(fd); fd 31 sapi/fpm/fpm/fpm_sockets.h static inline int fd_set_blocked(int fd, int blocked) /* {{{ */ fd 33 sapi/fpm/fpm/fpm_sockets.h int flags = fcntl(fd, F_GETFL); fd 44 sapi/fpm/fpm/fpm_sockets.h return fcntl(fd, F_SETFL, flags); fd 28 sapi/fpm/fpm/fpm_stdio.c int fd = open("/dev/null", O_RDWR); fd 30 sapi/fpm/fpm/fpm_stdio.c if (0 > fd) { fd 35 sapi/fpm/fpm/fpm_stdio.c if (0 > dup2(fd, STDIN_FILENO) || 0 > dup2(fd, STDOUT_FILENO)) { fd 37 sapi/fpm/fpm/fpm_stdio.c close(fd); fd 40 sapi/fpm/fpm/fpm_stdio.c close(fd); fd 113 sapi/fpm/fpm/fpm_stdio.c int fd = ev->fd; fd 127 sapi/fpm/fpm/fpm_stdio.c is_stdout = (fd == child->fd_stdout); fd 136 sapi/fpm/fpm/fpm_stdio.c res = read(fd, buf + in_buf, max_buf_size - 1 - in_buf); fd 289 sapi/fpm/fpm/fpm_stdio.c int fd; fd 302 sapi/fpm/fpm/fpm_stdio.c fd = open(fpm_global_config.error_log, O_WRONLY | O_APPEND | O_CREAT, S_IRUSR | S_IWUSR); fd 303 sapi/fpm/fpm/fpm_stdio.c if (0 > fd) { fd 310 sapi/fpm/fpm/fpm_stdio.c dup2(fd, STDERR_FILENO); fd 313 sapi/fpm/fpm/fpm_stdio.c dup2(fd, fpm_globals.error_log_fd); fd 314 sapi/fpm/fpm/fpm_stdio.c close(fd); fd 315 sapi/fpm/fpm/fpm_stdio.c fd = fpm_globals.error_log_fd; /* for FD_CLOSEXEC to work */ fd 317 sapi/fpm/fpm/fpm_stdio.c fpm_globals.error_log_fd = fd; fd 322 sapi/fpm/fpm/fpm_stdio.c if (0 > fcntl(fd, F_SETFD, fcntl(fd, F_GETFD) | FD_CLOEXEC)) { fd 572 sapi/litespeed/lsapi_main.c file_handle->handle.fd = 0; fd 254 sapi/litespeed/lsapilib.c static int lsapi_set_nblock( int fd, int nonblock ) fd 256 sapi/litespeed/lsapilib.c int val = fcntl( fd, F_GETFL, 0 ); fd 261 sapi/litespeed/lsapilib.c return fcntl( fd, F_SETFL, val | O_NONBLOCK ); fd 268 sapi/litespeed/lsapilib.c return fcntl( fd, F_SETFL, val &(~O_NONBLOCK) ); fd 274 sapi/litespeed/lsapilib.c static int lsapi_close( int fd ) fd 279 sapi/litespeed/lsapilib.c ret = close( fd ); fd 286 sapi/litespeed/lsapilib.c static inline ssize_t lsapi_read( int fd, void * pBuf, size_t len ) fd 291 sapi/litespeed/lsapilib.c ret = read( fd, (char *)pBuf, len ); fd 320 sapi/litespeed/lsapilib.c static int lsapi_writev( int fd, struct iovec ** pVec, int count, int totalLen ) fd 327 sapi/litespeed/lsapilib.c ret = writev( fd, *pVec, n ); fd 457 sapi/litespeed/lsapilib.c static inline int isPipe( int fd ) fd 461 sapi/litespeed/lsapilib.c if (( getpeername( fd, (struct sockaddr *)achPeer, &len ) != 0 )&& fd 681 sapi/litespeed/lsapilib.c int fd = open( pSecretFile, O_RDONLY , 0600 ); fd 682 sapi/litespeed/lsapilib.c if ( fd == -1 ) fd 687 sapi/litespeed/lsapilib.c if ( fstat( fd, &st ) == -1 ) fd 690 sapi/litespeed/lsapilib.c close( fd ); fd 704 sapi/litespeed/lsapilib.c close( fd ); fd 707 sapi/litespeed/lsapilib.c if ( read( fd, s_secret, 16 ) < 16 ) fd 710 sapi/litespeed/lsapilib.c close( fd ); fd 713 sapi/litespeed/lsapilib.c close( fd ); fd 1099 sapi/litespeed/lsapilib.c static inline int write_req_received_notification( int fd ) fd 1101 sapi/litespeed/lsapilib.c if ( write( fd, &s_ack, LSAPI_PACKET_HEADER_LEN ) fd 1127 sapi/litespeed/lsapilib.c static inline int notify_req_received( int fd ) fd 1131 sapi/litespeed/lsapilib.c return write_req_received_notification( fd ); fd 1136 sapi/litespeed/lsapilib.c static inline int lsapi_notify_pid( int fd ) fd 1144 sapi/litespeed/lsapilib.c if ( write( fd, achBuf, 16 ) < 16 ) fd 1150 sapi/litespeed/lsapilib.c static inline int init_conn_key( int fd ) fd 1163 sapi/litespeed/lsapilib.c if ( write( fd, s_conn_key_packet, LSAPI_PACKET_HEADER_LEN+8 ) fd 1277 sapi/litespeed/lsapilib.c int LSAPI_InitRequest( LSAPI_Request * pReq, int fd ) fd 1294 sapi/litespeed/lsapilib.c if ( fd == STDIN_FILENO ) fd 1296 sapi/litespeed/lsapilib.c fd = dup( fd ); fd 1301 sapi/litespeed/lsapilib.c if ( isPipe( fd ) ) fd 1304 sapi/litespeed/lsapilib.c pReq->m_fd = fd; fd 1308 sapi/litespeed/lsapilib.c pReq->m_fdListen = fd; fd 1310 sapi/litespeed/lsapilib.c lsapi_set_nblock( fd, 1 ); fd 2299 sapi/litespeed/lsapilib.c int fd; fd 2319 sapi/litespeed/lsapilib.c fd = socket( pServerAddr->sa_family, SOCK_STREAM, 0 ); fd 2320 sapi/litespeed/lsapilib.c if ( fd == -1 ) fd 2323 sapi/litespeed/lsapilib.c fcntl( fd, F_SETFD, FD_CLOEXEC ); fd 2325 sapi/litespeed/lsapilib.c if(setsockopt( fd, SOL_SOCKET, SO_REUSEADDR, fd 2328 sapi/litespeed/lsapilib.c ret = bind( fd, pServerAddr, addr_len ); fd 2331 sapi/litespeed/lsapilib.c ret = listen( fd, backlog ); fd 2333 sapi/litespeed/lsapilib.c return fd; fd 2338 sapi/litespeed/lsapilib.c close(fd); fd 2445 sapi/litespeed/lsapilib.c int fd = -1; fd 2449 sapi/litespeed/lsapilib.c fd = LSAPI_CreateListenSock2( (struct sockaddr *)serverAddr, backlog ); fd 2451 sapi/litespeed/lsapilib.c return fd; fd 2527 sapi/litespeed/lsapilib.c void LSAPI_Set_Server_fd( int fd ) fd 2530 sapi/litespeed/lsapilib.c g_prefork_server->m_fd = fd; fd 2536 sapi/litespeed/lsapilib.c int fd; fd 2542 sapi/litespeed/lsapilib.c fd = accept( fdListen, (struct sockaddr *)&achPeer, &len ); fd 2543 sapi/litespeed/lsapilib.c if ( fd != -1 ) fd 2547 sapi/litespeed/lsapilib.c setsockopt( fd, IPPROTO_TCP, TCP_NODELAY, fd 2555 sapi/litespeed/lsapilib.c return fd; fd 2951 sapi/litespeed/lsapilib.c int fd; fd 2979 sapi/litespeed/lsapilib.c fd = pReq->m_fd; fd 2982 sapi/litespeed/lsapilib.c fd = pReq->m_fdListen; fd 2995 sapi/litespeed/lsapilib.c FD_SET( fd, &readfds ); fd 2998 sapi/litespeed/lsapilib.c ret = (*g_fnSelect)(fd+1, &readfds, NULL, NULL, &timeout); fd 3022 sapi/litespeed/lsapilib.c if ( fd == pReq->m_fdListen ) fd 3027 sapi/litespeed/lsapilib.c fd = pReq->m_fd; fd 3028 sapi/litespeed/lsapilib.c lsapi_set_nblock( fd, 0 ); fd 146 sapi/litespeed/lsapilib.h int LSAPI_InitRequest( LSAPI_Request * pReq, int fd ); fd 360 sapi/litespeed/lsapilib.h void LSAPI_Set_Server_fd( int fd ); fd 763 sapi/phpdbg/phpdbg.c int fd = socket(AF_INET, SOCK_STREAM, 0); fd 765 sapi/phpdbg/phpdbg.c switch (fd) { fd 772 sapi/phpdbg/phpdbg.c switch (setsockopt(fd, SOL_SOCKET, SO_REUSEADDR, (char*) &reuse, sizeof(reuse))) { fd 774 sapi/phpdbg/phpdbg.c close(fd); fd 788 sapi/phpdbg/phpdbg.c close(fd); fd 792 sapi/phpdbg/phpdbg.c switch (bind(fd, (struct sockaddr *)&address, sizeof(address))) { fd 794 sapi/phpdbg/phpdbg.c close(fd); fd 798 sapi/phpdbg/phpdbg.c listen(fd, 5); fd 806 sapi/phpdbg/phpdbg.c return fd; fd 838 sapi/phpdbg/phpdbg_prompt.c FILE *fd = NULL; fd 839 sapi/phpdbg/phpdbg_prompt.c if ((fd=VCWD_POPEN((char*)param->str, "w"))) { fd 841 sapi/phpdbg/phpdbg_prompt.c fclose(fd); fd 60 sapi/phttpd/phttpd.c sent_bytes = fd_write(PHG(cip)->fd, str, str_length); fd 75 sapi/phttpd/phttpd.c http_sendheaders(PHG(cip)->fd, PHG(cip), SG(sapi_headers).http_response_code, NULL); fd 86 sapi/phttpd/phttpd.c fd_printf(PHG(cip)->fd,"%s: %s\n", header_name, header_content); fd 100 sapi/phttpd/phttpd.c fd_printf(PHG(cip)->fd,"Content-Type: text/html\n"); fd 103 sapi/phttpd/phttpd.c fd_putc('\n', PHG(cip)->fd); fd 251 sapi/roxen/roxen.c int sent_bytes = 0, fd = MY_FD; fd 252 sapi/roxen/roxen.c if(fd) fd 257 sapi/roxen/roxen.c written = fd_write(fd, str + sent_bytes, str_length - sent_bytes); fd 659 sapi/roxen/roxen.c int fd = fd_from_object(raw_fd->u.object); fd 660 sapi/roxen/roxen.c if(fd == -1) fd 662 sapi/roxen/roxen.c THIS->my_fd = fd; fd 31 sapi/thttpd/php_thttpd.h void thttpd_closed_conn(int fd); fd 629 sapi/thttpd/thttpd.c static void remove_dead_conn(int fd) fd 636 sapi/thttpd/thttpd.c if (m->hc->conn_fd == fd) { fd 715 sapi/thttpd/thttpd.c void thttpd_closed_conn(int fd) fd 718 sapi/thttpd/thttpd.c if (TG(on_close)) TG(on_close)(fd); fd 34 sapi/tux/php_tux.c void tux_closed_conn(int fd); fd 367 sapi/tux/php_tux.c int fd; fd 370 sapi/tux/php_tux.c fd = (int) bla; fd 373 sapi/tux/php_tux.c send(fd, "test<br />\n", 9, 0); fd 377 sapi/tux/php_tux.c tux(TUX_ACTION_CONTINUE_REQ, (user_req_t *) fd); fd 381 sapi/tux/php_tux.c shutdown(fd, 2); fd 412 sapi/tux/php_tux.c void tux_closed_conn(int fd) fd 416 sapi/tux/php_tux.c if (TG(on_close)) TG(on_close)(fd); fd 55 win32/flock.c PHPAPI int flock(int fd, int op) fd 57 win32/flock.c HANDLE hdl = (HANDLE) _get_osfhandle(fd); fd 11 win32/flock.h PHPAPI int flock(int fd, int op); fd 49 win32/select.c #define SAFE_FD_ISSET(fd, set) (set != NULL && FD_ISSET(fd, set))