summary |
tags |
clone url |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
1b106cd)
SCCS-vsn: sys/kern/sysv_shm.c 7.18
*
* %sccs.include.redist.c%
*
*
* %sccs.include.redist.c%
*
- * from: Utah $Hdr: uipc_shm.c 1.9 89/08/14$
+ * from: Utah $Hdr: uipc_shm.c 1.11 92/04/23$
- * @(#)sysv_shm.c 7.17 (Berkeley) %G%
+ * @(#)sysv_shm.c 7.18 (Berkeley) %G%
#include "vm/vm_inherit.h"
#include "vm/vm_pager.h"
#include "vm/vm_inherit.h"
#include "vm/vm_pager.h"
-#ifdef HPUXCOMPAT
-#include "hp/hpux/hpux.h"
-#endif
-
int shmat(), shmctl(), shmdt(), shmget();
int (*shmcalls[])() = { shmat, shmctl, shmdt, shmget };
int shmtot = 0;
int shmat(), shmctl(), shmdt(), shmget();
int (*shmcalls[])() = { shmat, shmctl, shmdt, shmget };
int shmtot = 0;
-#ifdef HPUXCOMPAT
- case SHM_LOCK:
- case SHM_UNLOCK:
- /* don't really do anything, but make them think we did */
- if ((p->p_flag & SHPUX) == 0)
- return (EINVAL);
- if (cred->cr_uid && cred->cr_uid != shp->shm_perm.uid &&
- cred->cr_uid != shp->shm_perm.cuid)
- return (EPERM);
- break;
-#endif
-
default:
return (EINVAL);
}
default:
return (EINVAL);
}