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 50 Zend/zend_stream.c ZEND_DLIMPORT int isatty(int fd); fd 194 Zend/zend_stream.c file_handle->handle.fp = fdopen(file_handle->handle.fd, "rb"); fd 342 Zend/zend_stream.c return fh1->handle.fd == fh2->handle.fd; fd 67 Zend/zend_stream.h int fd; fd 284 ext/bz2/bz2.c php_socket_t fd; fd 285 ext/bz2/bz2.c if (SUCCESS == php_stream_cast(stream, PHP_STREAM_AS_FD, (void **) &fd, REPORT_ERRORS)) { fd 286 ext/bz2/bz2.c bz_file = BZ2_bzdopen((int)fd, mode); fd 423 ext/bz2/bz2.c php_socket_t fd; fd 459 ext/bz2/bz2.c if (FAILURE == php_stream_cast(stream, PHP_STREAM_AS_FD, (void *) &fd, REPORT_ERRORS)) { fd 463 ext/bz2/bz2.c bz = BZ2_bzdopen((int)fd, mode); 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 924 ext/dba/dba.c if (SUCCESS != php_stream_cast(info->fp, PHP_STREAM_AS_FD, (void*)&info->fd, 1)) { fd 931 ext/dba/dba.c int flags = fcntl(info->fd, F_GETFL); fd 932 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) { 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 49 ext/dba/php_dba.h int fd; fd 108 ext/fileinfo/libmagic/compress.c file_zmagic(struct magic_set *ms, int fd, const char *name, fd 129 ext/fileinfo/libmagic/compress.c (nsz = uncompressbuf(ms, fd, i, buf, &newbuf, fd 164 ext/fileinfo/libmagic/compress.c swrite(int fd, const void *buf, size_t n) fd 170 ext/fileinfo/libmagic/compress.c switch (rv = write(fd, buf, n)) { fd 189 ext/fileinfo/libmagic/compress.c sread(int fd, void *buf, size_t n, int canbepipe) fd 197 ext/fileinfo/libmagic/compress.c if (fd == STDIN_FILENO) fd 201 ext/fileinfo/libmagic/compress.c if (canbepipe && (ioctl(fd, FIONREAD, &t) == -1 || t == 0)) { fd 210 ext/fileinfo/libmagic/compress.c FD_SET(fd, &check); fd 216 ext/fileinfo/libmagic/compress.c selrv = select(fd + 1, &check, NULL, NULL, &tout); fd 226 ext/fileinfo/libmagic/compress.c (void)ioctl(fd, FIONREAD, &t); fd 237 ext/fileinfo/libmagic/compress.c switch ((rv = FINFO_READ_FUNC(fd, buf, n))) { fd 254 ext/fileinfo/libmagic/compress.c file_pipe2file(struct magic_set *ms, int fd, const void *startbuf, fd 288 ext/fileinfo/libmagic/compress.c while ((r = sread(fd, buf, sizeof(buf), 1)) > 0) fd 309 ext/fileinfo/libmagic/compress.c if ((fd = dup2(tfd, fd)) == -1) { fd 314 ext/fileinfo/libmagic/compress.c if (FINFO_LSEEK_FUNC(fd, (zend_off_t)0, SEEK_SET) == (zend_off_t)-1) { fd 318 ext/fileinfo/libmagic/compress.c return fd; fd 396 ext/fileinfo/libmagic/compress.c uncompressbuf(struct magic_set *ms, int fd, size_t method, fd 411 ext/fileinfo/libmagic/compress.c if ((fd != -1 && pipe(fdin) == -1) || pipe(fdout) == -1) { fd 418 ext/fileinfo/libmagic/compress.c if (fd != -1) { fd 419 ext/fileinfo/libmagic/compress.c (void) dup(fd); fd 450 ext/fileinfo/libmagic/compress.c if (fd == -1) { fd 43 ext/fileinfo/libmagic/elfclass.h if (dophn_core(ms, clazz, swap, fd, fd 58 ext/fileinfo/libmagic/elfclass.h if (dophn_exec(ms, clazz, swap, fd, fd 68 ext/fileinfo/libmagic/elfclass.h if (doshn(ms, clazz, swap, fd, fd 223 ext/fileinfo/libmagic/funcs.c php_socket_t fd; fd 224 ext/fileinfo/libmagic/funcs.c if (stream && SUCCESS == php_stream_cast(stream, PHP_STREAM_AS_FD, (void **)&fd, 0)) { fd 225 ext/fileinfo/libmagic/funcs.c if ((m = file_trycdf(ms, fd, ubuf, nb)) != 0) { fd 241 ext/fileinfo/libmagic/funcs.c nb > 5 && fd != -1) { fd 251 ext/fileinfo/libmagic/funcs.c if ((m = file_tryelf(ms, fd, ubuf, nb)) != 0) fd 290 ext/fileinfo/libmagic/magic.c close_and_restore(const struct magic_set *ms, const char *name, int fd, fd 324 ext/fileinfo/libmagic/magic.c magic_descriptor(struct magic_set *ms, int fd) fd 441 ext/fileinfo/libmagic/readcdf.c file_trycdf(struct magic_set *ms, int fd, const unsigned char *buf, fd 453 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 184 ext/ftp/ftp.c if (ftp->fd != -1) { fd 191 ext/ftp/ftp.c closesocket(ftp->fd); fd 301 ext/ftp/ftp.c SSL_set_fd(ftp->ssl_handle, ftp->fd); fd 323 ext/ftp/ftp.c p.fd = ftp->fd; fd 757 ext/ftp/ftp.c if (getpeername(ftp->fd, sa, &n) < 0) { fd 868 ext/ftp/ftp.c while ((rcvd = my_recv(ftp, data->fd, data->buf, FTP_BUFSIZE))) { fd 964 ext/ftp/ftp.c if (my_send(ftp, data->fd, data->buf, size) != size) { fd 980 ext/ftp/ftp.c if (size && my_send(ftp, data->fd, data->buf, size) != size) { fd 1162 ext/ftp/ftp.c if (my_send(ftp, ftp->fd, data, size) != size) { fd 1212 ext/ftp/ftp.c if ((rcvd = my_recv(ftp, ftp->fd, data, size)) < 1) { fd 1270 ext/ftp/ftp.c php_socket_t fd; fd 1292 ext/ftp/ftp.c if (ftp->use_ssl && ftp->fd == s && ftp->ssl_active) { fd 1294 ext/ftp/ftp.c fd = ftp->fd; fd 1295 ext/ftp/ftp.c } else if (ftp->use_ssl && ftp->fd != s && ftp->use_ssl_for_data && ftp->data->ssl_active) { fd 1297 ext/ftp/ftp.c fd = ftp->data->fd; fd 1320 ext/ftp/ftp.c p.fd = fd; fd 1363 ext/ftp/ftp.c php_socket_t fd; fd 1381 ext/ftp/ftp.c if (ftp->use_ssl && ftp->fd == s && ftp->ssl_active) { fd 1383 ext/ftp/ftp.c fd = ftp->fd; fd 1384 ext/ftp/ftp.c } else if (ftp->use_ssl && ftp->fd != s && ftp->use_ssl_for_data && ftp->data->ssl_active) { fd 1386 ext/ftp/ftp.c fd = ftp->data->fd; fd 1409 ext/ftp/ftp.c p.fd = fd; fd 1513 ext/ftp/ftp.c int fd = -1; fd 1530 ext/ftp/ftp.c data->fd = -1; fd 1535 ext/ftp/ftp.c if ((fd = socket(sa->sa_family, SOCK_STREAM, 0)) == SOCK_ERR) { fd 1550 ext/ftp/ftp.c if (php_connect_nonb(fd, (struct sockaddr*) &ftp->pasvaddr, size, &tv) == -1) { fd 1555 ext/ftp/ftp.c data->fd = fd; fd 1568 ext/ftp/ftp.c if (bind(fd, (struct sockaddr*) &addr, size) != 0) { fd 1573 ext/ftp/ftp.c if (getsockname(fd, (struct sockaddr*) &addr, &size) != 0) { fd 1578 ext/ftp/ftp.c if (listen(fd, 5) != 0) { fd 1583 ext/ftp/ftp.c data->listener = fd; fd 1622 ext/ftp/ftp.c if (fd != -1) { fd 1623 ext/ftp/ftp.c closesocket(fd); fd 1645 ext/ftp/ftp.c if (data->fd != -1) { fd 1649 ext/ftp/ftp.c data->fd = my_accept(ftp, data->listener, (struct sockaddr*) &addr, &size); fd 1653 ext/ftp/ftp.c if (data->fd == -1) { fd 1682 ext/ftp/ftp.c SSL_set_fd(data->ssl_handle, data->fd); fd 1707 ext/ftp/ftp.c p.fd = ftp->fd; fd 1759 ext/ftp/ftp.c if (data->fd != -1) { fd 1770 ext/ftp/ftp.c closesocket(data->fd); fd 1831 ext/ftp/ftp.c while ((rcvd = my_recv(ftp, data->fd, data->buf, FTP_BUFSIZE))) { fd 1953 ext/ftp/ftp.c if (!data_available(ftp, data->fd)) { fd 1960 ext/ftp/ftp.c if ((rcvd = my_recv(ftp, data->fd, data->buf, FTP_BUFSIZE))) { fd 2062 ext/ftp/ftp.c if (!data_writeable(ftp, ftp->data->fd)) { fd 2080 ext/ftp/ftp.c if (my_send(ftp, ftp->data->fd, ftp->data->buf, size) != size) { fd 2087 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 359 ext/mcrypt/mcrypt.c mcrypt_globals->fd[RANDOM] = -1; fd 360 ext/mcrypt/mcrypt.c mcrypt_globals->fd[URANDOM] = -1; fd 365 ext/mcrypt/mcrypt.c if (mcrypt_globals->fd[RANDOM] > 0) { fd 366 ext/mcrypt/mcrypt.c close(mcrypt_globals->fd[RANDOM]); fd 367 ext/mcrypt/mcrypt.c mcrypt_globals->fd[RANDOM] = -1; fd 370 ext/mcrypt/mcrypt.c if (mcrypt_globals->fd[URANDOM] > 0) { fd 371 ext/mcrypt/mcrypt.c close(mcrypt_globals->fd[URANDOM]); fd 372 ext/mcrypt/mcrypt.c mcrypt_globals->fd[URANDOM] = -1; fd 1370 ext/mcrypt/mcrypt.c int *fd = &MCG(fd[source]); fd 1373 ext/mcrypt/mcrypt.c if (*fd < 0) { fd 1374 ext/mcrypt/mcrypt.c *fd = open(source == RANDOM ? "/dev/random" : "/dev/urandom", O_RDONLY); fd 1375 ext/mcrypt/mcrypt.c if (*fd < 0) { fd 1383 ext/mcrypt/mcrypt.c n = read(*fd, iv + read_bytes, size - read_bytes); fd 83 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 129 ext/mysqlnd/mysqlnd_structs.h php_stream *fd; fd 784 ext/opcache/ZendAccelerator.c if (zend_fstat(file_handle->handle.fd, &statbuf) == -1) { fd 55 ext/opcache/zend_file_cache.c static int zend_file_cache_flock(int fd, int op) fd 59 ext/opcache/zend_file_cache.c if (LockFileEx((HANDLE)_get_osfhandle(fd), fd 64 ext/opcache/zend_file_cache.c if (LockFileEx((HANDLE)_get_osfhandle(fd), fd 69 ext/opcache/zend_file_cache.c if (UnlockFileEx((HANDLE)_get_osfhandle(fd), fd 82 ext/opcache/zend_file_cache.c static int zend_file_cache_flock(int fd, int type) fd 707 ext/opcache/zend_file_cache.c int fd; fd 724 ext/opcache/zend_file_cache.c fd = open(filename, O_CREAT | O_EXCL | O_RDWR | O_BINARY, S_IRUSR | S_IWUSR); fd 726 ext/opcache/zend_file_cache.c fd = open(filename, O_CREAT | O_EXCL | O_RDWR | O_BINARY, _S_IREAD | _S_IWRITE); fd 728 ext/opcache/zend_file_cache.c if (fd < 0) { fd 736 ext/opcache/zend_file_cache.c if (zend_file_cache_flock(fd, LOCK_EX) != 0) { fd 737 ext/opcache/zend_file_cache.c close(fd); fd 773 ext/opcache/zend_file_cache.c if (writev(fd, vec, 3) != (ssize_t)(sizeof(info) + script->size + info.str_size)) { fd 783 ext/opcache/zend_file_cache.c write(fd, &info, sizeof(info)) != sizeof(info) || fd 784 ext/opcache/zend_file_cache.c write(fd, buf, script->size) != script->size || fd 785 ext/opcache/zend_file_cache.c write(fd, ((zend_string*)ZCG(mem))->val, info.str_size) != info.str_size fd 798 ext/opcache/zend_file_cache.c if (zend_file_cache_flock(fd, LOCK_UN) != 0) { fd 801 ext/opcache/zend_file_cache.c close(fd); fd 1210 ext/opcache/zend_file_cache.c int fd; fd 1223 ext/opcache/zend_file_cache.c fd = open(filename, O_RDONLY | O_BINARY); fd 1224 ext/opcache/zend_file_cache.c if (fd < 0) { fd 1229 ext/opcache/zend_file_cache.c if (zend_file_cache_flock(fd, LOCK_SH) != 0) { fd 1230 ext/opcache/zend_file_cache.c close(fd); fd 1235 ext/opcache/zend_file_cache.c if (read(fd, &info, sizeof(info)) != sizeof(info)) { fd 1237 ext/opcache/zend_file_cache.c zend_file_cache_flock(fd, LOCK_UN); fd 1238 ext/opcache/zend_file_cache.c close(fd); fd 1247 ext/opcache/zend_file_cache.c zend_file_cache_flock(fd, LOCK_UN); fd 1248 ext/opcache/zend_file_cache.c close(fd); fd 1255 ext/opcache/zend_file_cache.c zend_file_cache_flock(fd, LOCK_UN); fd 1256 ext/opcache/zend_file_cache.c close(fd); fd 1265 ext/opcache/zend_file_cache.c if (zend_file_cache_flock(fd, LOCK_UN) != 0) { fd 1268 ext/opcache/zend_file_cache.c close(fd); fd 1283 ext/opcache/zend_file_cache.c if (read(fd, mem, info.mem_size + info.str_size) != (ssize_t)(info.mem_size + info.str_size)) { fd 1285 ext/opcache/zend_file_cache.c zend_file_cache_flock(fd, LOCK_UN); fd 1286 ext/opcache/zend_file_cache.c close(fd); fd 1292 ext/opcache/zend_file_cache.c if (zend_file_cache_flock(fd, LOCK_UN) != 0) { fd 1295 ext/opcache/zend_file_cache.c close(fd); fd 116 ext/pcre/pcrelib/sljit/sljitNativePPC_common.c #define FD(fd) ((fd) << 21) fd 234 ext/phar/phar_object.c file_handle.handle.fd = 0; fd 967 ext/phar/util.c phar_archive_data *fd, *fd_ptr; fd 1004 ext/phar/util.c fd = PHAR_G(last_phar); fd 1005 ext/phar/util.c fd_ptr = fd; fd 1026 ext/phar/util.c fd = fd_ptr; fd 1027 ext/phar/util.c PHAR_G(last_phar) = fd; fd 1028 ext/phar/util.c PHAR_G(last_phar_name) = fd->fname; fd 1029 ext/phar/util.c PHAR_G(last_phar_name_len) = fd->fname_len; fd 1048 ext/phar/util.c fd = fd_ptr; fd 1051 ext/phar/util.c if (!fd->is_temporary_alias && (alias_len != fd->alias_len || memcmp(fd->alias, alias, alias_len))) { fd 1058 ext/phar/util.c if (fd->alias_len && NULL != (fd_ptr = zend_hash_str_find_ptr(&(PHAR_G(phar_alias_map)), fd->alias, fd->alias_len))) { fd 1059 ext/phar/util.c zend_hash_str_del(&(PHAR_G(phar_alias_map)), fd->alias, fd->alias_len); fd 1062 ext/phar/util.c zend_hash_str_add_ptr(&(PHAR_G(phar_alias_map)), alias, alias_len, fd); fd 1065 ext/phar/util.c PHAR_G(last_phar) = fd; fd 1066 ext/phar/util.c PHAR_G(last_phar_name) = fd->fname; fd 1067 ext/phar/util.c PHAR_G(last_phar_name_len) = fd->fname_len; fd 1068 ext/phar/util.c PHAR_G(last_alias) = fd->alias; fd 1069 ext/phar/util.c PHAR_G(last_alias_len) = fd->alias_len; fd 1076 ext/phar/util.c fd = fd_ptr; fd 1080 ext/phar/util.c if (!fd->is_temporary_alias && alias && alias_len) { fd 1081 ext/phar/util.c if (alias_len != fd->alias_len || memcmp(fd->alias, alias, alias_len)) { fd 1089 ext/phar/util.c PHAR_G(last_phar) = fd; fd 1090 ext/phar/util.c PHAR_G(last_phar_name) = fd->fname; fd 1091 ext/phar/util.c PHAR_G(last_phar_name_len) = fd->fname_len; fd 1092 ext/phar/util.c PHAR_G(last_alias) = fd->alias; fd 1093 ext/phar/util.c PHAR_G(last_alias_len) = fd->alias_len; fd 1099 ext/phar/util.c fd = *archive = fd_ptr; fd 1101 ext/phar/util.c PHAR_G(last_phar) = fd; fd 1102 ext/phar/util.c PHAR_G(last_phar_name) = fd->fname; fd 1103 ext/phar/util.c PHAR_G(last_phar_name_len) = fd->fname_len; fd 1104 ext/phar/util.c PHAR_G(last_alias) = fd->alias; fd 1105 ext/phar/util.c PHAR_G(last_alias_len) = fd->alias_len; fd 1111 ext/phar/util.c fd = *archive = fd_ptr; fd 1113 ext/phar/util.c PHAR_G(last_phar) = fd; fd 1114 ext/phar/util.c PHAR_G(last_phar_name) = fd->fname; fd 1115 ext/phar/util.c PHAR_G(last_phar_name_len) = fd->fname_len; fd 1116 ext/phar/util.c PHAR_G(last_alias) = fd->alias; fd 1117 ext/phar/util.c PHAR_G(last_alias_len) = fd->alias_len; fd 1138 ext/phar/util.c fd = fd_ptr; fd 1141 ext/phar/util.c zend_hash_str_add_ptr(&(PHAR_G(phar_alias_map)), alias, alias_len, fd); fd 1146 ext/phar/util.c PHAR_G(last_phar) = fd; fd 1147 ext/phar/util.c PHAR_G(last_phar_name) = fd->fname; fd 1148 ext/phar/util.c PHAR_G(last_phar_name_len) = fd->fname_len; fd 1149 ext/phar/util.c PHAR_G(last_alias) = fd->alias; fd 1150 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 757 ext/posix/posix.c static int php_posix_stream_get_fd(zval *zfp, int *fd) /* {{{ */ fd 768 ext/posix/posix.c php_stream_cast(stream, PHP_STREAM_AS_FD_FOR_SELECT, (void*)fd, 0); fd 770 ext/posix/posix.c php_stream_cast(stream, PHP_STREAM_AS_FD, (void*)fd, 0); fd 786 ext/posix/posix.c int fd; fd 797 ext/posix/posix.c if (!php_posix_stream_get_fd(z_fd, &fd)) { fd 803 ext/posix/posix.c fd = Z_LVAL_P(z_fd); fd 812 ext/posix/posix.c if (ttyname_r(fd, p, buflen)) { fd 820 ext/posix/posix.c if (NULL == (p = ttyname(fd))) { fd 834 ext/posix/posix.c int fd; fd 842 ext/posix/posix.c if (!php_posix_stream_get_fd(z_fd, &fd)) { fd 848 ext/posix/posix.c fd = Z_LVAL_P(z_fd); fd 851 ext/posix/posix.c if (isatty(fd)) { fd 100 ext/session/mod_files.c int fd; fd 145 ext/session/mod_files.c if (data->fd != -1) { fd 149 ext/session/mod_files.c flock(data->fd, LOCK_UN); fd 151 ext/session/mod_files.c close(data->fd); fd 152 ext/session/mod_files.c data->fd = -1; fd 164 ext/session/mod_files.c if (data->fd < 0 || !data->lastkey || strcmp(key, data->lastkey)) { fd 185 ext/session/mod_files.c data->fd = VCWD_OPEN_MODE(buf, O_CREAT | O_RDWR | O_BINARY | O_NOFOLLOW, data->filemode); fd 192 ext/session/mod_files.c data->fd = VCWD_OPEN_MODE(buf, O_CREAT | O_RDWR | O_BINARY, data->filemode); fd 195 ext/session/mod_files.c if (data->fd != -1) { fd 199 ext/session/mod_files.c if (fstat(data->fd, &sbuf) || (sbuf.st_uid != 0 && sbuf.st_uid != getuid() && sbuf.st_uid != geteuid())) { fd 200 ext/session/mod_files.c close(data->fd); fd 201 ext/session/mod_files.c data->fd = -1; fd 206 ext/session/mod_files.c ret = flock(data->fd, LOCK_EX); fd 213 ext/session/mod_files.c if (fcntl(data->fd, F_SETFD, FD_CLOEXEC)) { fd 214 ext/session/mod_files.c php_error_docref(NULL, E_WARNING, "fcntl(%d, F_SETFD, FD_CLOEXEC) failed: %s (%d)", data->fd, strerror(errno), errno); fd 231 ext/session/mod_files.c if (data->fd < 0) { fd 237 ext/session/mod_files.c php_ignore_value(ftruncate(data->fd, 0)); fd 241 ext/session/mod_files.c n = pwrite(data->fd, ZSTR_VAL(val), ZSTR_LEN(val), 0); fd 243 ext/session/mod_files.c lseek(data->fd, 0, SEEK_SET); fd 251 ext/session/mod_files.c wrote = _write(data->fd, buf, to_write); fd 260 ext/session/mod_files.c n = write(data->fd, ZSTR_VAL(val), ZSTR_LEN(val)); fd 408 ext/session/mod_files.c data->fd = -1; fd 469 ext/session/mod_files.c if (data->fd < 0) { fd 473 ext/session/mod_files.c if (zend_fstat(data->fd, &sbuf)) { fd 487 ext/session/mod_files.c n = pread(data->fd, ZSTR_VAL(*val), ZSTR_LEN(*val), 0); fd 489 ext/session/mod_files.c lseek(data->fd, 0, SEEK_SET); fd 497 ext/session/mod_files.c read_in = _read(data->fd, buf, to_read); fd 507 ext/session/mod_files.c n = read(data->fd, ZSTR_VAL(*val), ZSTR_LEN(*val)); fd 604 ext/session/mod_files.c if (data->fd != -1) { fd 383 ext/session/session.c int fd; fd 385 ext/session/session.c fd = VCWD_OPEN(PS(entropy_file), O_RDONLY); fd 386 ext/session/session.c if (fd >= 0) { fd 392 ext/session/session.c n = read(fd, rbuf, MIN(to_read, sizeof(rbuf))); fd 410 ext/session/session.c close(fd); fd 1412 ext/sockets/conversions.c int fd; fd 1415 ext/sockets/conversions.c fd = *((int *)data + i); fd 1418 ext/sockets/conversions.c if (fstat(fd, &statbuf) == -1) { fd 1420 ext/sockets/conversions.c "descriptor %d: fstat() call failed with errno %d", fd, errno); fd 1424 ext/sockets/conversions.c php_socket *sock = socket_import_file_descriptor(fd); fd 1427 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 802 ext/standard/file.c int fd; fd 820 ext/standard/file.c if ((fd = php_open_temporary_fd_ex(dir, ZSTR_VAL(p), &opened_path, 1)) >= 0) { fd 821 ext/standard/file.c close(fd); fd 1088 ext/standard/file.c zval *fd; fd 1097 ext/standard/file.c if (zend_parse_parameters(ZEND_NUM_ARGS(), "r|ls", &fd, &bytes, &allowed_tags, &allowed_tags_len) == FAILURE) { fd 1101 ext/standard/file.c PHP_STREAM_TO_ZVAL(stream, fd); fd 1998 ext/standard/file.c zval *fd, *len_zv = NULL; fd 2007 ext/standard/file.c &fd, &len_zv, &delimiter_str, &delimiter_str_len, fd 2062 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 177 ext/standard/php_fopen_wrapper.c int fd = -1; fd 253 ext/standard/php_fopen_wrapper.c fd = STDIN_FILENO; fd 255 ext/standard/php_fopen_wrapper.c fd = dup(fd); fd 261 ext/standard/php_fopen_wrapper.c fd = dup(STDIN_FILENO); fd 269 ext/standard/php_fopen_wrapper.c fd = STDOUT_FILENO; fd 271 ext/standard/php_fopen_wrapper.c fd = dup(fd); fd 277 ext/standard/php_fopen_wrapper.c fd = dup(STDOUT_FILENO); fd 285 ext/standard/php_fopen_wrapper.c fd = STDERR_FILENO; fd 287 ext/standard/php_fopen_wrapper.c fd = dup(fd); fd 293 ext/standard/php_fopen_wrapper.c fd = dup(STDERR_FILENO); fd 338 ext/standard/php_fopen_wrapper.c fd = dup((int)fildes_ori); fd 339 ext/standard/php_fopen_wrapper.c if (fd == -1) { fd 389 ext/standard/php_fopen_wrapper.c if (fd == -1) { fd 398 ext/standard/php_fopen_wrapper.c if (zend_fstat(fd, &st) == 0 && (st.st_mode & S_IFMT) == S_IFSOCK) { fd 399 ext/standard/php_fopen_wrapper.c stream = php_stream_sock_open_from_socket(fd, NULL); fd 411 ext/standard/php_fopen_wrapper.c stream = php_stream_fopen_from_fd(fd, mode, NULL); fd 413 ext/standard/php_fopen_wrapper.c close(fd); fd 31 ext/standard/php_random.h int fd; fd 400 ext/standard/proc_open.c static inline HANDLE dup_fd_as_handle(int fd) fd 402 ext/standard/proc_open.c return dup_handle((HANDLE)_get_osfhandle(fd), TRUE, FALSE); fd 405 ext/standard/proc_open.c # define close_descriptor(fd) CloseHandle(fd) fd 407 ext/standard/proc_open.c # define close_descriptor(fd) close(fd) fd 540 ext/standard/proc_open.c php_socket_t fd; fd 544 ext/standard/proc_open.c if (FAILURE == php_stream_cast(stream, PHP_STREAM_AS_FD, (void **)&fd, REPORT_ERRORS)) { fd 549 ext/standard/proc_open.c descriptors[ndesc].childend = dup_fd_as_handle((int)fd); fd 555 ext/standard/proc_open.c descriptors[ndesc].childend = dup(fd); fd 613 ext/standard/proc_open.c php_socket_t fd; fd 639 ext/standard/proc_open.c (void **)&fd, REPORT_ERRORS)) { fd 644 ext/standard/proc_open.c descriptors[ndesc].childend = dup_fd_as_handle((int)fd); fd 645 ext/standard/proc_open.c _close((int)fd); fd 653 ext/standard/proc_open.c descriptors[ndesc].childend = fd; fd 48 ext/standard/random.c random_globals_p->fd = -1; fd 53 ext/standard/random.c if (random_globals_p->fd > 0) { fd 54 ext/standard/random.c close(random_globals_p->fd); fd 55 ext/standard/random.c random_globals_p->fd = -1; fd 136 ext/standard/random.c int fd = RANDOM_G(fd); fd 141 ext/standard/random.c if (fd < 0) { fd 143 ext/standard/random.c fd = open("/dev/urandom", O_RDONLY); fd 145 ext/standard/random.c if (fd < 0) { fd 152 ext/standard/random.c if (fstat(fd, &st) != 0 || fd 159 ext/standard/random.c close(fd); fd 165 ext/standard/random.c RANDOM_G(fd) = fd; fd 169 ext/standard/random.c n = read(fd, bytes + read_bytes, size - read_bytes); fd 64 ext/zip/lib/mkstemp.c int fd; fd 128 ext/zip/lib/mkstemp.c if ((fd=open(path, O_CREAT|O_EXCL|O_RDWR|O_BINARY, 0600)) >= 0) fd 129 ext/zip/lib/mkstemp.c return (fd); fd 44 ext/zip/lib/zip_fdopen.c int fd; fd 58 ext/zip/lib/zip_fdopen.c if ((fd=dup(fd_orig)) < 0) { fd 63 ext/zip/lib/zip_fdopen.c if ((fp=fdopen(fd, "rb")) == NULL) { fd 64 ext/zip/lib/zip_fdopen.c close(fd); fd 136 ext/zlib/zlib_fopen_wrapper.c php_socket_t fd; fd 138 ext/zlib/zlib_fopen_wrapper.c if (SUCCESS == php_stream_cast(innerstream, PHP_STREAM_AS_FD, (void **) &fd, REPORT_ERRORS)) { fd 141 ext/zlib/zlib_fopen_wrapper.c self->gz_file = gzdopen(dup(fd), mode); fd 1029 main/SAPI.c SAPI_API int sapi_get_fd(int *fd) fd 1032 main/SAPI.c return sapi_module.get_fd(fd); fd 211 main/SAPI.h SAPI_API int sapi_get_fd(int *fd); fd 261 main/SAPI.h int (*get_fd)(int *fd); fd 48 main/fastcgi.c #define FCGI_LOCK(fd) \ fd 60 main/fastcgi.c #define FCGI_UNLOCK(fd) \ fd 95 main/fastcgi.c # define FCGI_LOCK(fd) \ fd 102 main/fastcgi.c if (fcntl(fd, F_SETLKW, &lock) != -1) { \ fd 109 main/fastcgi.c # define FCGI_UNLOCK(fd) \ fd 118 main/fastcgi.c if (fcntl(fd, F_SETLK, &lock) != -1) { \ fd 127 main/fastcgi.c # define FCGI_LOCK(fd) fd 128 main/fastcgi.c # define FCGI_UNLOCK(fd) fd 213 main/fastcgi.c int fd; fd 879 main/fastcgi.c req->fd = -1; fd 931 main/fastcgi.c ret = write(req->fd, ((char*)buf)+n, out_len); fd 935 main/fastcgi.c ret = send(req->fd, ((char*)buf)+n, out_len, 0); fd 941 main/fastcgi.c ret = write(req->fd, ((char*)buf)+n, count-n); fd 968 main/fastcgi.c ret = read(req->fd, ((char*)buf)+n, in_len); fd 972 main/fastcgi.c ret = recv(req->fd, ((char*)buf)+n, in_len, 0); fd 978 main/fastcgi.c ret = read(req->fd, ((char*)buf)+n, count-n); fd 1092 main/fastcgi.c setsockopt(req->fd, IPPROTO_TCP, TCP_NODELAY, (char*)&on, sizeof(on)); fd 1269 main/fastcgi.c if ((force || !req->keep) && req->fd >= 0) { fd 1272 main/fastcgi.c HANDLE pipe = (HANDLE)_get_osfhandle(req->fd); fd 1282 main/fastcgi.c shutdown(req->fd, 1); fd 1284 main/fastcgi.c while (recv(req->fd, buf, sizeof(buf), 0) > 0) {} fd 1286 main/fastcgi.c closesocket(req->fd); fd 1292 main/fastcgi.c shutdown(req->fd, 1); fd 1294 main/fastcgi.c while (recv(req->fd, buf, sizeof(buf), 0) > 0) {} fd 1296 main/fastcgi.c close(req->fd); fd 1301 main/fastcgi.c req->fd = -1; fd 1309 main/fastcgi.c return (req->fd < 0); fd 1358 main/fastcgi.c if (req->fd < 0) { fd 1382 main/fastcgi.c req->fd = req->listen_socket; fd 1396 main/fastcgi.c req->fd = accept(listen_socket, (struct sockaddr *)&sa, &len); fd 1400 main/fastcgi.c if (req->fd >= 0 && !fcgi_is_allowed()) { fd 1402 main/fastcgi.c closesocket(req->fd); fd 1403 main/fastcgi.c req->fd = -1; fd 1409 main/fastcgi.c if (req->fd < 0 && (in_shutdown || errno != EINTR)) { fd 1411 main/fastcgi.c if (req->fd < 0 && (in_shutdown || (errno != EINTR && errno != ECONNABORTED))) { fd 1419 main/fastcgi.c if (req->fd >= 0) { fd 1426 main/fastcgi.c fds.fd = req->fd; fd 1440 main/fastcgi.c if (req->fd < FD_SETSIZE) { fd 1446 main/fastcgi.c FD_SET(req->fd, &set); fd 1449 main/fastcgi.c ret = select(req->fd + 1, &set, NULL, NULL, &tv) >= 0; fd 1451 main/fastcgi.c if (ret > 0 && FD_ISSET(req->fd, &set)) { fd 1469 main/fastcgi.c pipe = (HANDLE)_get_osfhandle(req->fd); fd 1476 main/fastcgi.c return req->fd; fd 1647 main/fastcgi.c if (req->fd >= 0) { fd 614 main/main.c int fd = -1; fd 632 main/main.c fd = VCWD_OPEN_MODE(PG(error_log), O_CREAT | O_APPEND | O_WRONLY, 0644); fd 633 main/main.c if (fd != -1) { fd 650 main/main.c php_flock(fd, 2); fd 652 main/main.c php_ignore_value(write(fd, tmp, (unsigned)len)); fd 654 main/main.c php_ignore_value(write(fd, tmp, len)); fd 658 main/main.c close(fd); fd 1208 main/network.c if (ufds[i].fd > max_fd) fd 1209 main/network.c max_fd = ufds[i].fd; fd 1220 main/network.c PHP_SAFE_FD_SET(ufds[i].fd, &rset); fd 1223 main/network.c PHP_SAFE_FD_SET(ufds[i].fd, &wset); fd 1226 main/network.c PHP_SAFE_FD_SET(ufds[i].fd, &eset); fd 1246 main/network.c if (PHP_SAFE_FD_ISSET(ufds[i].fd, &rset)) { fd 1250 main/network.c if (PHP_SAFE_FD_ISSET(ufds[i].fd, &wset)) { fd 1253 main/network.c if (PHP_SAFE_FD_ISSET(ufds[i].fd, &eset)) { fd 124 main/php_network.h php_socket_t fd; fd 164 main/php_network.h static inline int php_pollfd_for(php_socket_t fd, int events, struct timeval *timeouttv) fd 169 main/php_network.h p.fd = fd; fd 182 main/php_network.h static inline int php_pollfd_for_ms(php_socket_t fd, int events, int timeout) fd 187 main/php_network.h p.fd = fd; fd 206 main/php_network.h # define PHP_SAFE_FD_SET(fd, set) FD_SET(fd, set) fd 207 main/php_network.h # define PHP_SAFE_FD_CLR(fd, set) FD_CLR(fd, set) fd 208 main/php_network.h # define PHP_SAFE_FD_ISSET(fd, set) FD_ISSET(fd, set) fd 211 main/php_network.h # define PHP_SAFE_FD_SET(fd, set) do { if (fd < FD_SETSIZE) FD_SET(fd, set); } while(0) fd 212 main/php_network.h # define PHP_SAFE_FD_CLR(fd, set) do { if (fd < FD_SETSIZE) FD_CLR(fd, set); } while(0) fd 213 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 155 main/php_open_temporary_file.c fd = VCWD_OPEN_MODE(opened_path, open_flags, 0600); fd 159 main/php_open_temporary_file.c fd = mkstemp(opened_path); fd 162 main/php_open_temporary_file.c fd = VCWD_OPEN(opened_path, open_flags); fd 166 main/php_open_temporary_file.c if (fd != -1 && opened_path_p) { fd 170 main/php_open_temporary_file.c return fd; fd 254 main/php_open_temporary_file.c int fd; fd 276 main/php_open_temporary_file.c fd = php_do_open_temporary_file(dir, pfx, opened_path_p); fd 277 main/php_open_temporary_file.c if (fd == -1) { fd 281 main/php_open_temporary_file.c return fd; fd 292 main/php_open_temporary_file.c int fd = php_open_temporary_fd(dir, pfx, opened_path_p); fd 294 main/php_open_temporary_file.c if (fd == -1) { fd 298 main/php_open_temporary_file.c fp = fdopen(fd, "r+b"); fd 300 main/php_open_temporary_file.c close(fd); fd 72 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) fd 699 main/rfc1867.c int fd = -1; fd 978 main/rfc1867.c fd = -1; fd 1019 main/rfc1867.c fd = php_open_temporary_fd_ex(PG(upload_tmp_dir), "php", &temp_filename, 1); fd 1021 main/rfc1867.c if (fd == -1) { fd 1056 main/rfc1867.c wlen = write(fd, buff, (unsigned int)blen); fd 1058 main/rfc1867.c wlen = write(fd, buff, blen); fd 1082 main/rfc1867.c if (fd != -1) { /* may not be initialized if file could not be created */ fd 1083 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); 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) 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) 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) fd 120 main/streams/plain_wrapper.c int fd; /* underlying file descriptor */ fd 145 main/streams/plain_wrapper.c #define PHP_STDIOP_GET_FD(anfd, data) anfd = (data)->file ? fileno((data)->file) : (data)->fd fd 150 main/streams/plain_wrapper.c int fd; fd 153 main/streams/plain_wrapper.c PHP_STDIOP_GET_FD(fd, d); fd 154 main/streams/plain_wrapper.c r = zend_fstat(fd, &d->sb); fd 162 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) fd 173 main/streams/plain_wrapper.c self->fd = fd; fd 192 main/streams/plain_wrapper.c self->fd = fileno(file); fd 203 main/streams/plain_wrapper.c int fd; fd 205 main/streams/plain_wrapper.c fd = php_open_temporary_fd(dir, pfx, &opened_path); fd 206 main/streams/plain_wrapper.c if (fd != -1) { fd 213 main/streams/plain_wrapper.c stream = php_stream_fopen_from_fd_int_rel(fd, "r+b", NULL); fd 224 main/streams/plain_wrapper.c close(fd); fd 238 main/streams/plain_wrapper.c PHPAPI php_stream *_php_stream_fopen_from_fd(int fd, const char *mode, const char *persistent_id STREAMS_DC) fd 240 main/streams/plain_wrapper.c php_stream *stream = php_stream_fopen_from_fd_int_rel(fd, mode, persistent_id); fd 247 main/streams/plain_wrapper.c if (self->fd >= 0) { fd 252 main/streams/plain_wrapper.c zend_uintptr_t handle = _get_osfhandle(self->fd); fd 263 main/streams/plain_wrapper.c stream->position = zend_lseek(self->fd, 0, SEEK_CUR); fd 286 main/streams/plain_wrapper.c if (self->fd >= 0) { fd 291 main/streams/plain_wrapper.c zend_uintptr_t handle = _get_osfhandle(self->fd); fd 320 main/streams/plain_wrapper.c self->fd = fileno(file); fd 337 main/streams/plain_wrapper.c if (data->fd >= 0) { fd 343 main/streams/plain_wrapper.c bytes_written = _write(data->fd, buf, (unsigned int)count); fd 345 main/streams/plain_wrapper.c int bytes_written = write(data->fd, buf, count); fd 369 main/streams/plain_wrapper.c if (data->fd >= 0) { fd 374 main/streams/plain_wrapper.c HANDLE ph = (HANDLE)_get_osfhandle(data->fd); fd 398 main/streams/plain_wrapper.c ret = read(data->fd, buf, PLAIN_WRAP_BUF_SIZE(count)); fd 404 main/streams/plain_wrapper.c ret = read(data->fd, buf, PLAIN_WRAP_BUF_SIZE(count)); fd 461 main/streams/plain_wrapper.c } else if (data->fd != -1) { fd 462 main/streams/plain_wrapper.c ret = close(data->fd); fd 463 main/streams/plain_wrapper.c data->fd = -1; fd 476 main/streams/plain_wrapper.c data->fd = -1; fd 513 main/streams/plain_wrapper.c if (data->fd >= 0) { fd 516 main/streams/plain_wrapper.c result = zend_lseek(data->fd, offset, whence); fd 532 main/streams/plain_wrapper.c php_socket_t fd; fd 549 main/streams/plain_wrapper.c data->file = fdopen(data->fd, fixed_mode); fd 556 main/streams/plain_wrapper.c data->fd = SOCK_ERR; fd 561 main/streams/plain_wrapper.c PHP_STDIOP_GET_FD(fd, data); fd 562 main/streams/plain_wrapper.c if (SOCK_ERR == fd) { fd 566 main/streams/plain_wrapper.c *(php_socket_t *)ret = fd; fd 571 main/streams/plain_wrapper.c PHP_STDIOP_GET_FD(fd, data); fd 573 main/streams/plain_wrapper.c if (SOCK_ERR == fd) { fd 580 main/streams/plain_wrapper.c *(php_socket_t *)ret = fd; fd 605 main/streams/plain_wrapper.c int fd; fd 612 main/streams/plain_wrapper.c PHP_STDIOP_GET_FD(fd, data); fd 616 main/streams/plain_wrapper.c if (fd == -1) fd 619 main/streams/plain_wrapper.c flags = fcntl(fd, F_GETFL, 0); fd 626 main/streams/plain_wrapper.c if (-1 == fcntl(fd, F_SETFL, flags)) fd 660 main/streams/plain_wrapper.c if (fd == -1) { fd 668 main/streams/plain_wrapper.c if (!flock(fd, value)) { fd 684 main/streams/plain_wrapper.c return fd == -1 ? PHP_STREAM_OPTION_RETURN_ERR : PHP_STREAM_OPTION_RETURN_OK; fd 720 main/streams/plain_wrapper.c range->mapped = (char*)mmap(NULL, range->length, prot, flags, fd, range->offset); fd 743 main/streams/plain_wrapper.c HANDLE hfile = (HANDLE)_get_osfhandle(fd); fd 838 main/streams/plain_wrapper.c return fd == -1 ? PHP_STREAM_OPTION_RETURN_ERR : PHP_STREAM_OPTION_RETURN_OK; fd 845 main/streams/plain_wrapper.c return ftruncate(fd, new_size) == 0 ? PHP_STREAM_OPTION_RETURN_OK : PHP_STREAM_OPTION_RETURN_ERR; fd 955 main/streams/plain_wrapper.c int fd; fd 991 main/streams/plain_wrapper.c fd = open(realpath, open_flags, 0666); fd 993 main/streams/plain_wrapper.c if (fd != -1) { fd 996 main/streams/plain_wrapper.c ret = php_stream_fopen_from_fd_int_rel(fd, mode, persistent_id); fd 998 main/streams/plain_wrapper.c ret = php_stream_fopen_from_fd_rel(fd, mode, persistent_id); fd 1037 main/streams/plain_wrapper.c close(fd); fd 2380 sapi/cgi/cgi_main.c if (file_handle.handle.fd < 0) { fd 2384 sapi/cgi/cgi_main.c file_handle.handle.fp = fdopen(file_handle.handle.fd, "rb"); fd 242 sapi/cli/php_cli.c static inline int sapi_cli_select(int fd) fd 251 sapi/cli/php_cli.c PHP_SAFE_FD_SET(fd, &wfd); fd 256 sapi/cli/php_cli.c ret = php_select(fd+1, &dfd, &wfd, &dfd, &tv); fd 744 sapi/cli/php_cli_server.c static void php_cli_server_poller_add(php_cli_server_poller *poller, int mode, php_socket_t fd) /* {{{ */ fd 747 sapi/cli/php_cli_server.c PHP_SAFE_FD_SET(fd, &poller->rfds); fd 750 sapi/cli/php_cli_server.c PHP_SAFE_FD_SET(fd, &poller->wfds); fd 752 sapi/cli/php_cli_server.c if (fd > poller->max_fd) { fd 753 sapi/cli/php_cli_server.c poller->max_fd = fd; fd 757 sapi/cli/php_cli_server.c static void php_cli_server_poller_remove(php_cli_server_poller *poller, int mode, php_socket_t fd) /* {{{ */ fd 760 sapi/cli/php_cli_server.c PHP_SAFE_FD_CLR(fd, &poller->rfds); fd 763 sapi/cli/php_cli_server.c PHP_SAFE_FD_CLR(fd, &poller->wfds); fd 766 sapi/cli/php_cli_server.c if (fd == poller->max_fd) { fd 767 sapi/cli/php_cli_server.c while (fd > 0) { fd 768 sapi/cli/php_cli_server.c fd--; fd 769 sapi/cli/php_cli_server.c if (PHP_SAFE_FD_ISSET(fd, &poller->rfds) || PHP_SAFE_FD_ISSET(fd, &poller->wfds)) { fd 773 sapi/cli/php_cli_server.c poller->max_fd = fd; fd 785 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 *, php_socket_t fd, int events)) /* {{{ */ fd 790 sapi/cli/php_cli_server.c SOCKET fd; fd 798 sapi/cli/php_cli_server.c n->fd = poller->active.rfds.fd_array[i]; fd 805 sapi/cli/php_cli_server.c SOCKET fd = poller->active.wfds.fd_array[i]; fd 807 sapi/cli/php_cli_server.c if (e->fd == fd) { fd 814 sapi/cli/php_cli_server.c n->fd = fd; fd 822 sapi/cli/php_cli_server.c if (SUCCESS != callback(opaque, e->fd, e->events)) { fd 829 sapi/cli/php_cli_server.c php_socket_t fd; fd 832 sapi/cli/php_cli_server.c for (fd=0 ; fd<=max_fd ; fd++) { fd 833 sapi/cli/php_cli_server.c if (PHP_SAFE_FD_ISSET(fd, &poller->active.rfds)) { fd 834 sapi/cli/php_cli_server.c if (SUCCESS != callback(opaque, fd, POLLIN)) { fd 838 sapi/cli/php_cli_server.c if (PHP_SAFE_FD_ISSET(fd, &poller->active.wfds)) { fd 839 sapi/cli/php_cli_server.c if (SUCCESS != callback(opaque, fd, POLLOUT)) { fd 975 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 991 sapi/cli/php_cli_server.c nbytes_sent = send(fd, chunk->data.heap.p, (int)chunk->data.heap.len, 0); fd 993 sapi/cli/php_cli_server.c nbytes_sent = send(fd, chunk->data.heap.p, chunk->data.heap.len, 0); fd 1014 sapi/cli/php_cli_server.c nbytes_sent = send(fd, chunk->data.immortal.p, (int)chunk->data.immortal.len, 0); fd 1016 sapi/cli/php_cli_server.c nbytes_sent = send(fd, chunk->data.immortal.p, chunk->data.immortal.len, 0); fd 1040 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 1050 sapi/cli/php_cli_server.c _nbytes_read = read(fd, chunk->data.heap.p, (unsigned int)chunk->data.heap.len); fd 1052 sapi/cli/php_cli_server.c _nbytes_read = read(fd, chunk->data.heap.p, chunk->data.heap.len); fd 1950 sapi/cli/php_cli_server.c int fd; fd 1971 sapi/cli/php_cli_server.c fd = client->request.path_translated ? open(client->request.path_translated, O_RDONLY): -1; fd 1972 sapi/cli/php_cli_server.c if (fd < 0) { fd 1978 sapi/cli/php_cli_server.c client->file_fd = fd; fd 2372 sapi/cli/php_cli_server.c static int php_cli_server_do_event_for_each_fd_callback(void *_params, php_socket_t fd, int event) /* {{{ */ fd 2376 sapi/cli/php_cli_server.c if (server->server_sock == fd) { fd 2411 sapi/cli/php_cli_server.c if (NULL != (client = zend_hash_index_find_ptr(&server->clients, fd))) { 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 172 sapi/fpm/fpm/events/epoll.c e.data.fd = ev->fd; fd 180 sapi/fpm/fpm/events/epoll.c if (epoll_ctl(epollfd, EPOLL_CTL_ADD, ev->fd, &e) == -1) { fd 181 sapi/fpm/fpm/events/epoll.c zlog(ZLOG_ERROR, "epoll: unable to add fd %d", ev->fd); fd 186 sapi/fpm/fpm/events/epoll.c ev->index = ev->fd; fd 200 sapi/fpm/fpm/events/epoll.c e.data.fd = ev->fd; fd 208 sapi/fpm/fpm/events/epoll.c if (epoll_ctl(epollfd, EPOLL_CTL_DEL, ev->fd, &e) == -1) { fd 209 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 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 1488 sapi/fpm/fpm/fpm_conf.c int fd, n; fd 1499 sapi/fpm/fpm/fpm_conf.c fd = open(filename, O_RDONLY, 0); fd 1500 sapi/fpm/fpm/fpm_conf.c if (fd < 0) { fd 1507 sapi/fpm/fpm/fpm_conf.c close(fd); fd 1516 sapi/fpm/fpm/fpm_conf.c for (n = 0; (nb_read = read(fd, &c, sizeof(char))) == sizeof(char) && c != '\n'; n++) { fd 1522 sapi/fpm/fpm/fpm_conf.c close(fd); fd 1542 sapi/fpm/fpm/fpm_conf.c close(fd); fd 1554 sapi/fpm/fpm/fpm_conf.c close(fd); fd 1564 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 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 494 sapi/fpm/fpm/fpm_sockets.c int fd; fd 500 sapi/fpm/fpm/fpm_sockets.c if ((fd = socket(AF_UNIX, SOCK_STREAM, 0)) < 0) { fd 504 sapi/fpm/fpm/fpm_sockets.c if (connect(fd, (struct sockaddr *)sock, socklen) == -1) { fd 505 sapi/fpm/fpm/fpm_sockets.c close(fd); fd 509 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 540 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 905 sapi/phpdbg/phpdbg.c int fd; fd 911 sapi/phpdbg/phpdbg.c while (data->fd >= 0) { fd 914 sapi/phpdbg/phpdbg.c if (((fstat(fileno(stderr), &stat[2]) < 0) & (fstat(fileno(stdout), &stat[0]) < 0)) | (fstat(data->fd, &stat[1]) < 0)) { fd 923 sapi/phpdbg/phpdbg.c phpdbg_script_ex(PHPDBG_G(io)[PHPDBG_STDERR].fd, P_STDERR, "%.*s", (int) count, buf); fd 1187 sapi/phpdbg/phpdbg.c flags = fcntl(PHPDBG_G(io)[PHPDBG_STDIN].fd, F_GETFL, 0); fd 1188 sapi/phpdbg/phpdbg.c fcntl(PHPDBG_G(io)[PHPDBG_STDIN].fd, F_SETFL, flags | O_NONBLOCK); fd 1194 sapi/phpdbg/phpdbg.c if ((newlen = recv(PHPDBG_G(io)[PHPDBG_STDIN].fd, mem, PHPDBG_SIGSAFE_MEM_SIZE, MSG_PEEK)) == (size_t) -1) { fd 1229 sapi/phpdbg/phpdbg.c fcntl(PHPDBG_G(io)[PHPDBG_STDIN].fd, F_SETFL, flags); fd 1511 sapi/phpdbg/phpdbg.c PHPDBG_G(io)[PHPDBG_STDOUT].fd = fileno(stdout); fd 1730 sapi/phpdbg/phpdbg.c PHPDBG_G(io)[PHPDBG_STDIN].fd = fileno(stdin); fd 1732 sapi/phpdbg/phpdbg.c PHPDBG_G(io)[PHPDBG_STDOUT].fd = fileno(stdout); fd 1741 sapi/phpdbg/phpdbg.c PHPDBG_G(io)[PHPDBG_STDIN].fd = socket; fd 1743 sapi/phpdbg/phpdbg.c PHPDBG_G(io)[PHPDBG_STDOUT].fd = socket; fd 1746 sapi/phpdbg/phpdbg.c PHPDBG_G(io)[PHPDBG_STDIN].fd = fileno(stdin); fd 1748 sapi/phpdbg/phpdbg.c PHPDBG_G(io)[PHPDBG_STDOUT].fd = fileno(stdout); fd 1752 sapi/phpdbg/phpdbg.c PHPDBG_G(io)[PHPDBG_STDERR].fd = fileno(stderr); fd 1828 sapi/phpdbg/phpdbg.c quiet_write(PHPDBG_G(io)[PHPDBG_STDERR].fd, ZEND_STRL("No opcodes could be compiled | No file specified or compilation failed?\n")); fd 281 sapi/phpdbg/phpdbg.h int fd; fd 289 sapi/phpdbg/phpdbg.h int fd; fd 757 sapi/phpdbg/phpdbg_cmd.c if ((PHPDBG_G(flags) & PHPDBG_IS_REMOTE) || !isatty(PHPDBG_G(io)[PHPDBG_STDIN].fd)) fd 783 sapi/phpdbg/phpdbg_cmd.c if (!buffered && cmd && !(PHPDBG_G(flags) & PHPDBG_IS_REMOTE) && isatty(PHPDBG_G(io)[PHPDBG_STDIN].fd)) { fd 88 sapi/phpdbg/phpdbg_io.c } while ((bytes = phpdbg_mixed_read(PHPDBG_G(io)[PHPDBG_STDIN].fd, buf + len, PHPDBG_MAX_CMD - len, -1)) > 0); fd 105 sapi/phpdbg/phpdbg_io.c pfd.fd = sock; fd 152 sapi/phpdbg/phpdbg_io.c quiet_write(PHPDBG_G(io)[PHPDBG_STDERR].fd, ZEND_STRL("Read operation timed out!\n")); fd 230 sapi/phpdbg/phpdbg_io.c && PHPDBG_G(io)[PHPDBG_STDOUT].fd == sock fd 240 sapi/phpdbg/phpdbg_io.c int fd = phpdbg_create_listenable_socket(interface, port, &res); fd 242 sapi/phpdbg/phpdbg_io.c if (fd == -1) { fd 246 sapi/phpdbg/phpdbg_io.c if (bind(fd, res.ai_addr, res.ai_addrlen) == -1) { fd 247 sapi/phpdbg/phpdbg_io.c phpdbg_close_socket(fd); fd 251 sapi/phpdbg/phpdbg_io.c listen(fd, 5); fd 253 sapi/phpdbg/phpdbg_io.c return fd; fd 308 sapi/phpdbg/phpdbg_io.c quiet_write(PHPDBG_G(io)[PHPDBG_STDERR].fd, buf, strlen(buf)); fd 318 sapi/phpdbg/phpdbg_io.c quiet_write(PHPDBG_G(io)[PHPDBG_STDERR].fd, buf, strlen(buf)); fd 333 sapi/phpdbg/phpdbg_io.c quiet_write(PHPDBG_G(io)[PHPDBG_STDERR].fd, buf, strlen(buf)); fd 952 sapi/phpdbg/phpdbg_out.c static int phpdbg_process_print(int fd, int type, const char *tag, const char *msg, int msglen, const char *xml, int xmllen) { fd 958 sapi/phpdbg/phpdbg_out.c phpdbg_mixed_write(fd, ZEND_STRL("</stream>")); fd 967 sapi/phpdbg/phpdbg_out.c phpdbg_mixed_write(fd, ZEND_STRL("<phpdbg>\n" "</phpdbg>")); fd 969 sapi/phpdbg/phpdbg_out.c phpdbg_mixed_write(fd, ZEND_STRL("\n")); fd 984 sapi/phpdbg/phpdbg_out.c phpdbg_mixed_write(fd, ZEND_STRL("<phpdbg>\n" "</phpdbg>")); fd 986 sapi/phpdbg/phpdbg_out.c phpdbg_mixed_write(fd, ZEND_STRL("\n")); fd 1030 sapi/phpdbg/phpdbg_out.c phpdbg_mixed_write(fd, stream_buf, stream_buflen); fd 1038 sapi/phpdbg/phpdbg_out.c phpdbg_mixed_write(fd, buf, buflen); fd 1041 sapi/phpdbg/phpdbg_out.c phpdbg_mixed_write(fd, msg, msglen); fd 1080 sapi/phpdbg/phpdbg_out.c phpdbg_mixed_write(fd, xmlout, xmloutlen); fd 1084 sapi/phpdbg/phpdbg_out.c phpdbg_mixed_write(fd, msgout, msgoutlen); fd 1098 sapi/phpdbg/phpdbg_out.c PHPDBG_API int phpdbg_vprint(int type, int fd, const char *tag, const char *xmlfmt, const char *strfmt, va_list args) { fd 1124 sapi/phpdbg/phpdbg_out.c PHPDBG_G(err_buf).fd = fd; fd 1136 sapi/phpdbg/phpdbg_out.c len = phpdbg_process_print(fd, type, tag, msg, msglen, xml, xmllen); fd 1179 sapi/phpdbg/phpdbg_out.c len = phpdbg_vprint(PHPDBG_G(err_buf).type, PHPDBG_G(err_buf).fd, tag ? tag : PHPDBG_G(err_buf).tag, xmlfmt, strfmt, args); fd 1188 sapi/phpdbg/phpdbg_out.c PHPDBG_API int phpdbg_print(int type, int fd, const char *tag, const char *xmlfmt, const char *strfmt, ...) { fd 1197 sapi/phpdbg/phpdbg_out.c len = phpdbg_vprint(type, fd, tag, xmlfmt, strfmt, args); fd 1203 sapi/phpdbg/phpdbg_out.c PHPDBG_API int phpdbg_xml_internal(int fd, const char *fmt, ...) { fd 1222 sapi/phpdbg/phpdbg_out.c phpdbg_mixed_write(fd, ZEND_STRL("</stream>")); fd 1226 sapi/phpdbg/phpdbg_out.c len = phpdbg_mixed_write(fd, buffer, buflen); fd 1233 sapi/phpdbg/phpdbg_out.c PHPDBG_API int phpdbg_log_internal(int fd, const char *fmt, ...) { fd 1243 sapi/phpdbg/phpdbg_out.c len = phpdbg_mixed_write(fd, buffer, buflen); fd 1249 sapi/phpdbg/phpdbg_out.c PHPDBG_API int phpdbg_out_internal(int fd, const char *fmt, ...) { fd 1272 sapi/phpdbg/phpdbg_out.c phpdbg_mixed_write(fd, ZEND_STRL("</stream>")); fd 1276 sapi/phpdbg/phpdbg_out.c phpdbg_mixed_write(fd, ZEND_STRL("<phpdbg>")); fd 1277 sapi/phpdbg/phpdbg_out.c len = phpdbg_mixed_write(fd, msg, msglen); fd 1278 sapi/phpdbg/phpdbg_out.c phpdbg_mixed_write(fd, ZEND_STRL("</phpdbg>")); fd 1281 sapi/phpdbg/phpdbg_out.c len = phpdbg_mixed_write(fd, buffer, buflen); fd 1289 sapi/phpdbg/phpdbg_out.c PHPDBG_API int phpdbg_rlog_internal(int fd, const char *fmt, ...) { /* {{{ */ fd 1311 sapi/phpdbg/phpdbg_out.c rc = phpdbg_mixed_write(fd, outbuf, rc); fd 37 sapi/phpdbg/phpdbg_out.h PHPDBG_API int phpdbg_print(int severity, int fd, const char *tag, const char *xmlfmt, const char *strfmt, ...) PHP_ATTRIBUTE_FORMAT(printf, 5, 6); fd 38 sapi/phpdbg/phpdbg_out.h PHPDBG_API int phpdbg_xml_internal(int fd, const char *fmt, ...) PHP_ATTRIBUTE_FORMAT(printf, 2, 3); fd 39 sapi/phpdbg/phpdbg_out.h PHPDBG_API int phpdbg_log_internal(int fd, const char *fmt, ...) PHP_ATTRIBUTE_FORMAT(printf, 2, 3); fd 40 sapi/phpdbg/phpdbg_out.h PHPDBG_API int phpdbg_out_internal(int fd, const char *fmt, ...) PHP_ATTRIBUTE_FORMAT(printf, 2, 3); fd 41 sapi/phpdbg/phpdbg_out.h PHPDBG_API int phpdbg_rlog_internal(int fd, const char *fmt, ...) PHP_ATTRIBUTE_FORMAT(printf, 2, 3); fd 43 sapi/phpdbg/phpdbg_out.h #define phpdbg_error(tag, xmlfmt, strfmt, ...) phpdbg_print(P_ERROR , PHPDBG_G(io)[PHPDBG_STDOUT].fd, tag, xmlfmt, strfmt, ##__VA_ARGS__) fd 44 sapi/phpdbg/phpdbg_out.h #define phpdbg_notice(tag, xmlfmt, strfmt, ...) phpdbg_print(P_NOTICE , PHPDBG_G(io)[PHPDBG_STDOUT].fd, tag, xmlfmt, strfmt, ##__VA_ARGS__) fd 45 sapi/phpdbg/phpdbg_out.h #define phpdbg_writeln(tag, xmlfmt, strfmt, ...) phpdbg_print(P_WRITELN, PHPDBG_G(io)[PHPDBG_STDOUT].fd, tag, xmlfmt, strfmt, ##__VA_ARGS__) fd 46 sapi/phpdbg/phpdbg_out.h #define phpdbg_write(tag, xmlfmt, strfmt, ...) phpdbg_print(P_WRITE , PHPDBG_G(io)[PHPDBG_STDOUT].fd, tag, xmlfmt, strfmt, ##__VA_ARGS__) fd 47 sapi/phpdbg/phpdbg_out.h #define phpdbg_script(type, fmt, ...) phpdbg_print(type , PHPDBG_G(io)[PHPDBG_STDOUT].fd, NULL, NULL, fmt, ##__VA_ARGS__) fd 48 sapi/phpdbg/phpdbg_out.h #define phpdbg_log(fmt, ...) phpdbg_log_internal(PHPDBG_G(io)[PHPDBG_STDOUT].fd, fmt, ##__VA_ARGS__) fd 49 sapi/phpdbg/phpdbg_out.h #define phpdbg_xml(fmt, ...) phpdbg_xml_internal(PHPDBG_G(io)[PHPDBG_STDOUT].fd, fmt, ##__VA_ARGS__) fd 50 sapi/phpdbg/phpdbg_out.h #define phpdbg_out(fmt, ...) phpdbg_out_internal(PHPDBG_G(io)[PHPDBG_STDOUT].fd, fmt, ##__VA_ARGS__) fd 61 sapi/phpdbg/phpdbg_out.h #define phpdbg_rlog(fd, fmt, ...) phpdbg_rlog_internal(fd, fmt, ##__VA_ARGS__) fd 71 sapi/phpdbg/phpdbg_out.h # define phpdbg_debug(fmt, ...) phpdbg_log_ex(PHPDBG_G(io)[PHPDBG_STDERR].fd, fmt, ##__VA_ARGS__) fd 999 sapi/phpdbg/phpdbg_prompt.c FILE *fd = NULL; fd 1000 sapi/phpdbg/phpdbg_prompt.c if ((fd=VCWD_POPEN((char*)param->str, "w"))) { fd 1002 sapi/phpdbg/phpdbg_prompt.c pclose(fd); fd 36 sapi/phpdbg/phpdbg_sigio_win32.c (void)phpdbg_consume_bytes(swd->fd, &sig, 1, -1); fd 73 sapi/phpdbg/phpdbg_sigio_win32.c PHPDBG_G(swd).fd = PHPDBG_G(io)[PHPDBG_STDIN].fd; fd 109 sapi/phpdbg/phpdbg_sigio_win32.c PHPDBG_G(swd).fd = -1; fd 29 sapi/phpdbg/phpdbg_sigio_win32.h int fd; fd 16 sapi/phpdbg/phpdbg_sigsafe.c quiet_write(PHPDBG_G(io)[PHPDBG_STDERR].fd, ZEND_STRL("Tried to allocate more than " EXP_STR(PHPDBG_SIGSAFE_MEM_SIZE) " bytes from stack memory in signal handler ... bailing out of signal handler\n")); fd 22 sapi/phpdbg/phpdbg_sigsafe.c quiet_write(PHPDBG_G(io)[PHPDBG_STDERR].fd, ZEND_STRL("Bailed out without a bailout address in signal handler!\n")); fd 372 sapi/phpdbg/phpdbg_utils.c PHPDBG_API void phpdbg_set_async_io(int fd) { fd 80 sapi/phpdbg/phpdbg_utils.h PHPDBG_API void phpdbg_set_async_io(int fd); fd 49 win32/select.c #define SAFE_FD_ISSET(fd, set) (set != NULL && FD_ISSET(fd, set))