fseek(3) man page mistake

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Under errors it says:

       EBADF  The stream specified is not a seekable stream.

However, it seems that the actual value is ESPIPE:

	printf "#include <stdio.h>\n#include <errno.h>\nint main(void){rewind(stdin);printf(\"%%d.%%d\\\\n\", errno==EBADF, errno==ESPIPE);return 0;}\n" > test.c && gcc test.c && ./a.out

Prints out:

	0.1

Andy
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Kernel Documentation]     [Netdev]     [Linux Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux