cvs commit: src/usr.bin/truss syscalls.c

Marcel Moolenaar marcel at FreeBSD.org
Sat Sep 4 22:27:30 PDT 2004


marcel      2004-09-05 05:27:30 UTC

  FreeBSD src repository

  Modified files:
    usr.bin/truss        syscalls.c 
  Log:
  Fix Quad handling on 64-bit architectures. On 64-bit machines, a Quad
  also occupies a single slot. There's no need for any special handling
  of Quads. While here, remove the silly make_quad() function. We have
  the 2 longs on 32-bit machines already lined up in the argument array,
  so we can fetch the Quad with a simple cast.
  
  Before:
    lseek(1,0x123456789,0xd0d0d0d0d0d0d0d0) = 4886718345 (0x123456789)
  After:
    lseek(1,0x123456789,SEEK_SET)           = 4886718345 (0x123456789)
  
  Revision  Changes    Path
  1.45      +17 -22    src/usr.bin/truss/syscalls.c


More information about the cvs-src mailing list