Lines Matching defs:file
53 static int isreallyatty(int file) {
56 rc = !ioctl(file, TXISATTY + 0x81, NULL);
115 /* Lookup stat structure behind the file descriptor. */
166 /* Reopen the file descriptor when it refers to a tty. This lets us put the
171 * affects fd 1 of `cat` because both file descriptors refer to the same
172 * struct file in the kernel. When we reopen our fd 0, it points to a
173 * different struct file, hence changing its properties doesn't affect
351 uv_handle_type uv_guess_handle(uv_file file) {
357 if (file < 0)
360 if (isatty(file))
363 if (fstat(file, &s)) {
367 * EINVAL, even if sockaddr_storage is valid. (If file does not refer to a
374 if (getsockname(file, (struct sockaddr*) &ss, &len)) {
395 if (getsockname(file, (struct sockaddr*) &ss, &len)) {
412 if (getsockopt(file, SOL_SOCKET, SO_TYPE, &type, &len))