Re: fseek(3) man page mistake

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

 



Hello Andy,

On 04/19/2018 08:43 AM, Owen, Andy wrote:
> Under errors it says:
> 
>        EBADF  The stream specified is not a seekable stream.
> 
> However, it seems that the actual value is ESPIPE:

Agreed. I've fixed the man page.

Cheers,

Michael

> 
> 	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
> 


-- 
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Linux/UNIX System Programming Training: http://man7.org/training/
--
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