This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients Kuberan.Naganathan, neologix, pitrou, vstinner
Date 2011-07-13.13:08:27
SpamBayes Score 0.00035273473
Marked as misclassified No
Message-id <1310562508.69.0.221417683641.issue12545@psf.upfronthosting.co.za>
In-reply-to
Content
"... A negative file offset may be valid for some devices in some implementations.

The POSIX.1-1990 standard did not specifically prohibit lseek() from returning a negative offset. Therefore, an application was required to clear errno prior to the call and check errno upon return to determine whether a return value of ( off_t)-1 is a negative offset or an indication of an error condition. The standard developers did not wish to require this action on the part of a conforming application, and chose to require that errno be set to [EINVAL] when the resulting file offset would be negative for a regular file, block special file, or directory."

Extract of:
http://pubs.opengroup.org/onlinepubs/009695399/functions/lseek.html
History
Date User Action Args
2011-07-13 13:08:28vstinnersetrecipients: + vstinner, pitrou, neologix, Kuberan.Naganathan
2011-07-13 13:08:28vstinnersetmessageid: <1310562508.69.0.221417683641.issue12545@psf.upfronthosting.co.za>
2011-07-13 13:08:28vstinnerlinkissue12545 messages
2011-07-13 13:08:27vstinnercreate