diff options
author | ambrisko <ambrisko@FreeBSD.org> | 2009-03-27 17:00:49 +0000 |
---|---|---|
committer | ambrisko <ambrisko@FreeBSD.org> | 2009-03-27 17:00:49 +0000 |
commit | b6f7b6df88147e8094098428df32b58d5b90fad7 (patch) | |
tree | e4e55c2715317efdce28ff0e62a6102ee8a9ef8c | |
parent | 92faf03fe9010181fd261542547817b96ae0bb93 (diff) | |
download | FreeBSD-src-b6f7b6df88147e8094098428df32b58d5b90fad7.zip FreeBSD-src-b6f7b6df88147e8094098428df32b58d5b90fad7.tar.gz |
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
-rw-r--r-- | sys/amd64/linux32/linux.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/amd64/linux32/linux.h b/sys/amd64/linux32/linux.h index bdbe213..0e30382 100644 --- a/sys/amd64/linux32/linux.h +++ b/sys/amd64/linux32/linux.h @@ -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 |