It is currently Fri, 27 Apr 2018 00:18:22 GMT



 
Author Message
 smbc_lseek() doesn't work :(
Everytime I call smbc_lseek(fd, offset, whence) with
fd = a valid descriptor opened with smbc_open(url, O_RDONLY, 0);
offset = my desired offset (casted from a long)
whence = SEEK_SET (or 0)

it return (off_t)-1 and errno contains EINVAL. I've checked
smbc_lseek()'s source code and this can happen in two cases:
a) whence is != to SEEK_SET, SEEK_CUR, and SEEK_END.
b) fd is not a valid opened file.

I'm not in the a case, neither in the b one. So I don't understant at all...
This sucks since I cannot resume transfert if I can't seek into the files.

Thanks,
Julien.



 Mon, 20 Sep 2004 01:58:29 GMT   
 
   [ 1 post ] 

Similar Threads

1. Re. bffcreate -X doesn't work Re: bffcreate -X Doesn't Work

2. PPP doesn't die, it just doesn't work anymore

3. Oh, fooey -- drivers don't work, rpm doesn't work

4. Modem doesn't work after system upgrade (but works under Win98)

5. gdm doesn't work (but xdm does work)

6. Printer doesn't work or work well.

7. Keyboard doesn't work under 2.0.27 but works with 1.2.13

8. 3Com Ethernet adapter works, then doesn't work

9. Problem with DHCPCD - works, then doesn't work


 
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software