Messages in this thread | | | Date | Tue, 21 Dec 1999 15:49:42 +0000 (GMT) | From | Tigran Aivazian <> | Subject | Re: Ok, making ready for pre-2.4 and code-freeze.. |
| |
Hi Rogier,
You said:
> The return code for unix system calls should be defined as "negative" > for error, and not "-1".
I beg to differ because lseek(2) has the right to return negative offsets on some implementations (of UNIX) on some architectures (notably i386).
So, if lseek(2) can do it then I'd check anything else for ret == -1 when I write portable UNIX code.
Regards, ------ Tigran A. Aivazian | http://www.sco.com Escalations Research Group | tel: +44-(0)1923-813796 Santa Cruz Operation Ltd | http://www.ocston.org/~tigran
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/
| |