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:
@ -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;
|
||||
|
Reference in New Issue
Block a user