Lines Matching refs:fd
419 static zend_result php_posix_stream_get_fd(zval *zfp, zend_long *fd) /* {{{ */ in php_posix_stream_get_fd() argument
434 php_stream_cast(stream, PHP_STREAM_AS_FD_FOR_SELECT | PHP_STREAM_CAST_INTERNAL, (void*)fd, 0); in php_posix_stream_get_fd()
436 php_stream_cast(stream, PHP_STREAM_AS_FD | PHP_STREAM_CAST_INTERNAL, (void*)fd, 0); in php_posix_stream_get_fd()
451 zend_long fd = 0; in PHP_FUNCTION() local
462 if (php_posix_stream_get_fd(z_fd, &fd) == FAILURE) { in PHP_FUNCTION()
466 …if (!zend_parse_arg_long(z_fd, &fd, /* is_null */ NULL, /* check_null */ false, /* arg_num */ 1)) { in PHP_FUNCTION()
469 fd = zval_get_long(z_fd); in PHP_FUNCTION()
472 if (fd < 0 || fd > INT_MAX) { in PHP_FUNCTION()
489 err = ttyname_r(fd, p, buflen); in PHP_FUNCTION()
503 if (NULL == (p = ttyname(fd))) { in PHP_FUNCTION()
516 zend_long fd = 0; in PHP_FUNCTION() local
523 if (php_posix_stream_get_fd(z_fd, &fd) == FAILURE) { in PHP_FUNCTION()
527 …if (!zend_parse_arg_long(z_fd, &fd, /* is_null */ NULL, /* check_null */ false, /* arg_num */ 1)) { in PHP_FUNCTION()
535 if (fd < 0 || fd > INT_MAX) { in PHP_FUNCTION()
539 if (isatty(fd)) { in PHP_FUNCTION()
1310 zend_long name, ret, fd = 0; in PHP_FUNCTION() local
1319 if (php_posix_stream_get_fd(z_fd, &fd) == FAILURE) { in PHP_FUNCTION()
1323 …if (!zend_parse_arg_long(z_fd, &fd, /* is_null */ NULL, /* check_null */ false, /* arg_num */ 1)) { in PHP_FUNCTION()
1330 ret = fpathconf(fd, name); in PHP_FUNCTION()