Nuke the FIODTYPE compatibility bits. It's time.

This commit is contained in:
Brian Feldman 1999-10-03 18:49:51 +00:00
parent c0d3a0d572
commit bf3367d091
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=51913

View File

@ -214,9 +214,7 @@ getfdtype(io)
err(1, "%s", io->name);
if (S_ISCHR(sb.st_mode) || S_ISBLK(sb.st_mode)) {
if (ioctl(io->fd, FIODTYPE, &type) == -1) {
warn("%s", io->name);
if (S_ISCHR(sb.st_mode))
io->flags |= ISCHR;
err(1, "%s", io->name);
} else {
if (type & D_TAPE)
io->flags |= ISTAPE;