Subversion Repositories tendra.SVN

Rev

Rev 2 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2 Rev 89
Line 2... Line 2...
2
#define __HACKED_SYS_SHM_INCLUDED
2
#define __HACKED_SYS_SHM_INCLUDED
3
 
3
 
4
#include <machine/param.h>
4
/*#include <machine/param.h>
5
#include_next <sys/shm.h>
5
#include_next <sys/shm.h>*/
-
 
6
 
-
 
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
 
6
 
26
 
7
#endif
27
#endif