1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-29 11:41:21 +03:00

* sysdeps/generic/device-nrs.h (DEV_TTY_P): Change argument type

from `dev_t' (st_rdev value) `const struct stat *'.
	* sysdeps/unix/sysv/linux/device-nrs.h (DEV_TTY_P): Likewise.
	* libio/filedoalloc.c (_IO_file_doallocate): Change caller.
	* sysdeps/mach/hurd/device-nrs.h: New file.
This commit is contained in:
Roland McGrath
2001-07-21 05:13:40 +00:00
parent d3ab710cbc
commit 11c0b1e39b
5 changed files with 39 additions and 5 deletions

View File

@ -95,7 +95,7 @@ _IO_file_doallocate (fp)
/* Possibly a tty. */
if (
#ifdef DEV_TTY_P
DEV_TTY_P (st.st_rdev) ||
DEV_TTY_P (&st) ||
#endif
isatty (fp->_fileno))
fp->_flags |= _IO_LINE_BUF;