Lines Matching refs:fd
202 #define PHP_UV_CHECK_VALID_FD(fd, zstream) \ argument
203 if (fd < 0) { \
212 #define PHP_UV_ZVAL_TO_VALID_POLL_FD(fd, zstream) \ argument
214 fd = php_uv_zval_to_valid_poll_fd(zstream); \
215 PHP_UV_CHECK_VALID_FD(fd, zstream) \
218 #define PHP_UV_ZVAL_TO_FD(fd, zstream) \ argument
220 fd = php_uv_zval_to_fd(zstream); \
221 PHP_UV_CHECK_VALID_FD(fd, zstream) \
265 #define PHP_UV_FD_TO_ZVAL(zv, fd) { php_stream *_stream = php_stream_fopen_from_fd(fd, "w+", NULL);… argument
422 php_socket_t fd = -1; local
440 …am, PHP_STREAM_AS_FD_FOR_SELECT | PHP_STREAM_CAST_INTERNAL, (void*)&fd, 1) == SUCCESS && fd >= 0) {
444 fstat(fd, &stat);
452 return fd;
455 fd = -1;
458 fd = socket->bsd_socket;
462 fd = -1;
466 fd = socket->bsd_socket;
470 return fd;
475 php_socket_t fd = -1; local
483 …_cast(stream, PHP_STREAM_AS_FD | PHP_STREAM_CAST_INTERNAL, (void *) &fd, 1) != SUCCESS || fd < 0) {
484 fd = -1;
488 fd = socket->bsd_socket;
492 fd = -1;
495 fd = Z_LVAL_P(ptr);
496 if (fd < 0) {
497 fd = -1;
502 int err = uv_guess_handle((uv_file) fd);
505 fd = -1;
510 fd = socket->bsd_socket;
514 return fd;
843 unsigned long fd; local
847 PHP_UV_ZVAL_TO_FD(fd, zstream);
850 PHP_UV_FS_ASYNC(loop, fchmod, fd, mode);
890 unsigned long fd; local
894 PHP_UV_ZVAL_TO_FD(fd, zstream);
897 PHP_UV_FS_ASYNC(loop, ftruncate, fd, offset);
903 unsigned long fd; local
907 PHP_UV_ZVAL_TO_FD(fd, zstream);
910 PHP_UV_FS_ASYNC(loop, fdatasync, fd);
916 unsigned long fd; local
920 PHP_UV_ZVAL_TO_FD(fd, zstream);
923 PHP_UV_FS_ASYNC(loop, fsync, fd);
929 unsigned long fd; local
933 PHP_UV_ZVAL_TO_FD(fd, zstream);
936 PHP_UV_FS_ASYNC(loop, close, fd);
952 unsigned long fd; local
956 PHP_UV_ZVAL_TO_FD(fd, zstream);
959 PHP_UV_FS_ASYNC(loop, fchown, fd, uid, gid);
997 unsigned long fd; local
1001 PHP_UV_ZVAL_TO_FD(fd, zstream);
1004 PHP_UV_FS_ASYNC(loop, fstat, fd);
1028 unsigned long fd; local
1032 PHP_UV_ZVAL_TO_FD(fd, zstream);
1035 PHP_UV_FS_ASYNC(loop, futime, fd, utime, atime);
1049 unsigned long fd; local
1062 PHP_UV_ZVAL_TO_FD(fd, zstream);
1069 PHP_UV_FS_ASYNC(loop, read, fd, &buf, 1, offset);
1094 zend_long fd, offset = -1; local
1106 PHP_UV_ZVAL_TO_FD(fd, zstream);
1113 PHP_UV_FS_ASYNC(loop, write, fd, &uv_fs_write_buf_t, 1, offset);
2410 zend_long fd; // file handle local
2418 fd = php_uv_zval_to_fd(zstream);
2419 if (fd < 0) {
2424 error = open_cb(&uv->uv.handle, fd);
2527 int fd; local
2528 …if (uv_fileno(&uv->uv.handle, (uv_os_fd_t *)&fd) == 0) { /* not actually a fd on windows but a han…
2532 ZVAL_LONG(&fdzv, fd);
3000 ZEND_ARG_INFO(0, fd)
3167 ZEND_ARG_INFO(0, fd)
3203 ZEND_ARG_INFO(0, fd)
3242 ZEND_ARG_INFO(0, fd)
3258 ZEND_ARG_INFO(0, fd)
3272 ZEND_ARG_INFO(0, fd)
3296 ZEND_ARG_INFO(0, fd)
3304 ZEND_ARG_INFO(0, fd)
3310 ZEND_ARG_INFO(0, fd)
3318 ZEND_ARG_INFO(0, fd)
3324 ZEND_ARG_INFO(0, fd)
3330 ZEND_ARG_INFO(0, fd)
3497 ZEND_ARG_INFO(0, fd)
3953 uv_os_fd_t fd; local
3962 if (uv_fileno(&uv->uv.handle, &fd) != 0) {
4701 long fd = -1; local
4709 fd = php_uv_zval_to_fd(handle);
4710 if (fd < 0) {
4714 type = uv_guess_handle(fd);
4857 php_socket_t fd = -1; local
4868 fd = Z_LVAL_P(handle);
4876 …_cast(stream, PHP_STREAM_AS_FD | PHP_STREAM_CAST_INTERNAL, (void *) &fd, 1) != SUCCESS || fd < 0) {
4882 fd = socket->bsd_socket;
4904 fd = socket->bsd_socket;
4918 stdio->fd = fd;
5171 stdio[x].data.fd = stdio_tmp->fd;
5975 unsigned long fd; local
5984 fd = php_uv_zval_to_fd(zstream);
5985 PHP_UV_INIT_UV_EX(uv, uv_tty_ce, uv_tty_init, fd, readable);
5986 PHP_UV_CHECK_VALID_FD(fd, zstream);
6131 unsigned long fd = 0; local
6139 fd = php_uv_zval_to_valid_poll_fd(zstream);
6141 PHP_UV_INIT_UV_EX(uv, uv_poll_ce, uv_poll_init_socket, (uv_os_sock_t) fd);
6143 PHP_UV_INIT_UV_EX(uv, uv_poll_ce, uv_poll_init, fd);
6145 PHP_UV_CHECK_VALID_FD(fd, zstream);
6147 uv->sock = fd;