lkml.org 
[lkml]   [2003]   [Jun]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectReturn value of syscalls
Hi,

while debugging glibc-2.3.1 for cris-axis-linux-gnu, I encountered a
discrepancy between code and comments explaining the return value of
syscalls of the kernel (in glibc's source, architecture specific for
cris). The comment says, values between -4095 and -1 (both inclusive)
are considered to be an error. However, the code checks the return value
to be greater or equal than -4096.

I'd like to fix that. But I need to know what's wrong, the code or the
comment. So, what values indicate an error in linux's syscalls?

Best regards, Uwe

P.S.: A look in other architecture's source in glibc makes me thing the
comment is right. I just want to make sure.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

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