2005-06-09 Han-Wen Nienhuys <hanwen@xs4all.nl>
+ * ttftool/util.c (surely_lseek): more verbosity.
+
* lily/include/lily-proto.hh: add Context_def. This fixes FC4
compile.
endianness_test ();
if ((fd = open (infile, O_RDONLY)) < 0)
- syserror ("Error opening input file");
+ {
+ syserror ("Error opening input file");
+ }
td = readDirectory (fd, &ot);
if (verbosity >= 2)
{
off_t result;
if ((result = lseek (fildes, offset, whence)) < 0)
- syserror ("Cannot seek");
+ {
+ char s[100];
+ sprintf (s, "Cannot seek to %d %ld", whence, offset);
+ syserror (s);
+ }
return result;
}
ssize_t n;
if ((n = read (fildes, buf, nbyte)) < nbyte)
{
- syserror ("read too little in surely_read()");
+ char s[100];
+ sprintf (s, "read too little in surely_read(), expect %d got %d", nbyte, n);
+ syserror (s);
}
return n;
}