2 |
7u83 |
1 |
#ifndef __HACKED_SYS_SHM_INCLUDED
|
|
|
2 |
#define __HACKED_SYS_SHM_INCLUDED
|
|
|
3 |
|
89 |
7u83 |
4 |
/*#include <machine/param.h>
|
|
|
5 |
#include_next <sys/shm.h>*/
|
2 |
7u83 |
6 |
|
89 |
7u83 |
7 |
typedef unsigned int shmatt_t;
|
|
|
8 |
|
|
|
9 |
struct shmid_ds {
|
|
|
10 |
struct ipc_perm shm_perm; /* operation permission structure */
|
|
|
11 |
int shm_segsz; /* size of segment in bytes */
|
|
|
12 |
pid_t shm_lpid; /* process ID of last shared memory op */
|
|
|
13 |
pid_t shm_cpid; /* process ID of creator */
|
|
|
14 |
shmatt_t shm_nattch; /* number of current attaches */
|
|
|
15 |
time_t shm_atime; /* time of last shmat() */
|
|
|
16 |
time_t shm_dtime; /* time of last shmdt() */
|
|
|
17 |
time_t shm_ctime; /* time of last change by shmctl() */
|
|
|
18 |
};
|
|
|
19 |
|
|
|
20 |
void *shmat(int, const void *, int);
|
|
|
21 |
|
|
|
22 |
#define SHM_RDONLY 010000 /* Attach read-only (else read-write) */
|
|
|
23 |
#define SHM_RND 020000 /* Round attach address to SHMLBA */
|
|
|
24 |
#define SHMLBA 10000 /* XXX PAGE_SIZE */ /* Segment low boundary address multiple */
|
|
|
25 |
|
|
|
26 |
|
2 |
7u83 |
27 |
#endif
|