lkml.org 
[lkml]   [1999]   [Dec]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: 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/

\
 
 \ /
  Last update: 2005-03-22 13:55    [W:0.294 / U:0.056 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site