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