Bring shm functions closer the the opengroup standards.
PR: 47469 Submitted by: Craig Rodrigues <rodrigc@attbi.com>
This commit is contained in:
parent
004a10f278
commit
e1d7d0bb60
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=109831
@ -40,9 +40,9 @@
|
||||
.In sys/ipc.h
|
||||
.In sys/shm.h
|
||||
.Ft void *
|
||||
.Fn shmat "int shmid" "void *addr" "int flag"
|
||||
.Fn shmat "int shmid" "const void *addr" "int flag"
|
||||
.Ft int
|
||||
.Fn shmdt "void *addr"
|
||||
.Fn shmdt "const void *addr"
|
||||
.Sh DESCRIPTION
|
||||
The
|
||||
.Fn shmat
|
||||
|
@ -39,7 +39,7 @@
|
||||
.In sys/ipc.h
|
||||
.In sys/shm.h
|
||||
.Ft int
|
||||
.Fn shmget "key_t key" "int size" "int flag"
|
||||
.Fn shmget "key_t key" "size_t size" "int flag"
|
||||
.Sh DESCRIPTION
|
||||
Based on the values of
|
||||
.Fa key
|
||||
|
@ -361,11 +361,11 @@
|
||||
int msgflg); }
|
||||
227 MNOSTD BSD { int msgrcv(int msqid, void *msgp, size_t msgsz, \
|
||||
long msgtyp, int msgflg); }
|
||||
228 MNOSTD BSD { int shmat(int shmid, void *shmaddr, int shmflg); }
|
||||
228 MNOSTD BSD { int shmat(int shmid, const void *shmaddr, int shmflg); }
|
||||
229 MNOSTD BSD { int shmctl(int shmid, int cmd, \
|
||||
struct shmid_ds *buf); }
|
||||
230 MNOSTD BSD { int shmdt(void *shmaddr); }
|
||||
231 MNOSTD BSD { int shmget(key_t key, int size, int shmflg); }
|
||||
230 MNOSTD BSD { int shmdt(const void *shmaddr); }
|
||||
231 MNOSTD BSD { int shmget(key_t key, size_t size, int shmflg); }
|
||||
;
|
||||
232 MSTD POSIX { int clock_gettime(clockid_t clock_id, \
|
||||
struct timespec *tp); }
|
||||
|
@ -240,7 +240,7 @@ shm_delete_mapping(struct vmspace *vm, struct shmmap_state *shmmap_s)
|
||||
|
||||
#ifndef _SYS_SYSPROTO_H_
|
||||
struct shmdt_args {
|
||||
void *shmaddr;
|
||||
const void *shmaddr;
|
||||
};
|
||||
#endif
|
||||
|
||||
@ -284,7 +284,7 @@ shmdt(td, uap)
|
||||
#ifndef _SYS_SYSPROTO_H_
|
||||
struct shmat_args {
|
||||
int shmid;
|
||||
void *shmaddr;
|
||||
const void *shmaddr;
|
||||
int shmflg;
|
||||
};
|
||||
#endif
|
||||
|
@ -105,12 +105,17 @@ void shmfork(struct proc *, struct proc *);
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
|
||||
#ifndef _SIZE_T_DECLARED
|
||||
typedef __size_t size_t;
|
||||
#define _SIZE_T_DECLARED
|
||||
#endif
|
||||
|
||||
__BEGIN_DECLS
|
||||
int shmsys(int, ...);
|
||||
void *shmat(int, void *, int);
|
||||
int shmget(key_t, int, int);
|
||||
void *shmat(int, const void *, int);
|
||||
int shmget(key_t, size_t, int);
|
||||
int shmctl(int, int, struct shmid_ds *);
|
||||
int shmdt(void *);
|
||||
int shmdt(const void *);
|
||||
__END_DECLS
|
||||
|
||||
#endif /* !_KERNEL */
|
||||
|
Loading…
Reference in New Issue
Block a user