Update struct linux_shmid64_ds for 64bits archs.

- shm_segsz should be of type size_t, not int.
- Disable padding fields used on 32bits archs.
This commit is contained in:
njoly 2008-01-28 14:14:48 +00:00
parent 29158b16e8
commit ff7363568f
1 changed files with 8 additions and 2 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: linux_shm.h,v 1.10 2007/12/20 23:02:56 dsl Exp $ */ /* $NetBSD: linux_shm.h,v 1.11 2008/01/28 14:14:48 njoly Exp $ */
/*- /*-
* Copyright (c) 1995, 1998 The NetBSD Foundation, Inc. * Copyright (c) 1995, 1998 The NetBSD Foundation, Inc.
@ -60,13 +60,19 @@ struct linux_shmid_ds {
struct linux_shmid64_ds { struct linux_shmid64_ds {
struct linux_ipc64_perm l_shm_perm; struct linux_ipc64_perm l_shm_perm;
uint l_shm_segsz; size_t l_shm_segsz;
linux_time_t l_shm_atime; linux_time_t l_shm_atime;
#ifndef _LP64
u_long l____unused1; u_long l____unused1;
#endif
linux_time_t l_shm_dtime; linux_time_t l_shm_dtime;
#ifndef _LP64
u_long l____unused2; u_long l____unused2;
#endif
linux_time_t l_shm_ctime; linux_time_t l_shm_ctime;
#ifndef _LP64
u_long l____unused3; u_long l____unused3;
#endif
int l_shm_cpid; int l_shm_cpid;
int l_shm_lpid; int l_shm_lpid;
u_long l_shm_nattch; u_long l_shm_nattch;