Author: ambrisko
Date: Fri Mar 27 17:00:49 2009
New Revision: 190472
URL: http://svn.freebsd.org/changeset/base/190472

Log:
  Revert 190445 change to this file restoring:
        typedef l_long          l_off_t;
  Change l_mmap_argv's to l_ulong for pgoff.  This restores prior behaviour
  to consumers of l_off_t but allows mmap to mmap a 32bit position which a
  Linux application requires to access SMBIOS data via /dev/mem.
  
  Reviewed by:  dchagin
  Prompted by:  rdivacky

Modified:
  head/sys/amd64/linux32/linux.h

Modified: head/sys/amd64/linux32/linux.h
==============================================================================
--- head/sys/amd64/linux32/linux.h      Fri Mar 27 16:56:01 2009        
(r190471)
+++ head/sys/amd64/linux32/linux.h      Fri Mar 27 17:00:49 2009        
(r190472)
@@ -79,7 +79,7 @@ typedef l_ulong               l_ino_t;
 typedef l_int          l_key_t;
 typedef l_longlong     l_loff_t;
 typedef l_ushort       l_mode_t;
-typedef l_ulong                l_off_t;
+typedef l_long         l_off_t;
 typedef l_int          l_pid_t;
 typedef l_uint         l_size_t;
 typedef l_long         l_suseconds_t;
@@ -179,8 +179,8 @@ struct l_mmap_argv {
        l_int           prot;
        l_int           flags;
        l_int           fd;
-       l_off_t         pgoff;
-} __packed;
+       l_ulong         pgoff;
+};
 
 /*
  * stat family of syscalls
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to