Changeset 5646

Show
Ignore:
Timestamp:
08/06/12 13:00:36 (7 years ago)
Author:
cmatthew
Message:

Fix the return value of lseek. Also refector at bit to make the exceptions a little more robust.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • seattle/branches/nacl_repy/seattlelib/fs_lseek.repy

    r5147 r5646  
    3232    try: 
    3333        result = lseek_syscall(handle, offset, whence) 
    34         reply = struct_pack("<q", result) 
    3534    except SyscallError, e: 
    3635        return ErrorResponseBuilder("fs_lseek", e[1], e[2]) 
    37     return SuccessResponseBuilder("fs_lseek", len(reply), reply) 
     36 
     37    reply = struct_pack("<q", result) 
     38    return SuccessResponseBuilder("fs_lseek", 0, reply) 
    3839 
    3940