Skip to content
Snippets Groups Projects
Commit dfffe0b2 authored by Fredrik Hübinette (Hubbe)'s avatar Fredrik Hübinette (Hubbe)
Browse files

Merge 'heads/0.6': modified to report errno

parents 799a480f 06d45ec1
No related branches found
No related tags found
No related merge requests found
// Yabu by Fredrik Noring // Yabu by Fredrik Noring
// $Id: module.pmod,v 1.1 1998/05/23 19:51:26 noring Exp $ // $Id: module.pmod,v 1.2 1998/06/10 19:20:59 hubbe Exp $
#if constant(thread_create) #if constant(thread_create)
#define THREAD_SAFE #define THREAD_SAFE
...@@ -22,7 +22,7 @@ static private class FileIO { ...@@ -22,7 +22,7 @@ static private class FileIO {
static private void seek(int offset) static private void seek(int offset)
{ {
if(file::seek(offset) == -1) if(file::seek(offset) == -1)
ERR("seek failed"); ERR(sprintf("seek failed with errno %d\n",file::errno()));
} }
string read_at(int offset, int|void size) string read_at(int offset, int|void size)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment