Changeset 1986 for trunk/src/emx/include/sys/shm.h
- Timestamp:
- May 9, 2005, 7:02:45 AM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/emx/include/sys/shm.h
-
Property cvs2svn:cvs-rev
changed from
1.2
to1.3
r1985 r1986 39 39 /** @file 40 40 * FreeBSD 5.3 41 * @changed the SHMLBA to 64KB. 41 42 */ 42 43 … … 48 49 #define SHM_RDONLY 010000 /* Attach read-only (else read-write) */ 49 50 #define SHM_RND 020000 /* Round attach address to SHMLBA */ 50 #define SHMLBA PAGE_SIZE/* Segment low boundary address multiple */51 #define SHMLBA (0x10000) /* Segment low boundary address multiple */ 51 52 52 53 /* "official" access mode definitions; somewhat braindead since you have … … 63 64 #define SHM_INFO 14 64 65 66 #ifdef __EMX__ 67 typedef __uint32_t shmatt_t; 68 #endif 69 65 70 struct shmid_ds { 66 71 struct ipc_perm shm_perm; /* operation permission structure */ 72 #ifdef __EMX__ 73 size_t shm_segsz; /* size of segment in bytes */ 74 #else 67 75 int shm_segsz; /* size of segment in bytes */ 76 #endif 68 77 pid_t shm_lpid; /* process ID of last shared memory op */ 69 78 pid_t shm_cpid; /* process ID of creator */ 70 short shm_nattch; /* number of current attaches */ 79 #ifdef __EMX__ 80 shmatt_t shm_nattch; /* number of current attaches */ 81 #else 82 short shm_nattch; /* number of current attaches */ 83 #endif 71 84 time_t shm_atime; /* time of last shmat() */ 72 85 time_t shm_dtime; /* time of last shmdt() */ … … 88 101 shmall; /* max amount of shared memory (pages) */ 89 102 }; 103 #ifndef __EMX__ 90 104 extern struct shminfo shminfo; 91 105 extern struct shmid_ds *shmsegs; 106 #endif 92 107 93 108 struct shm_info { … … 100 115 }; 101 116 117 #ifndef __EMX__ 102 118 struct thread; 103 119 struct proc; … … 106 122 void shmexit(struct vmspace *); 107 123 void shmfork(struct proc *, struct proc *); 124 #endif /* !__EMX__ */ 108 125 #else /* !_KERNEL */ 109 126 … … 116 133 117 134 __BEGIN_DECLS 135 #ifndef __EMX__ 118 136 int shmsys(int, ...); 137 #endif 119 138 void *shmat(int, const void *, int); 120 139 int shmget(key_t, size_t, int); -
Property cvs2svn:cvs-rev
changed from
Note:
See TracChangeset
for help on using the changeset viewer.