Deleted Added
full compact
sysv_msg.c (121307) sysv_msg.c (122201)
1/*
2 * Implementation of SVID messages
3 *
4 * Author: Daniel Boulet
5 *
6 * Copyright 1993 Daniel Boulet and RTMX Inc.
7 *
8 * This system call was implemented by Daniel Boulet under contract from RTMX.

--- 4 unchanged lines hidden (view full) ---

13 * Redistribution in binary form may occur without any restrictions.
14 * Obviously, it would be nice if you gave credit where credit is due
15 * but requiring it would be too onerous.
16 *
17 * This software is provided ``AS IS'' without any warranties of any kind.
18 */
19
20#include <sys/cdefs.h>
1/*
2 * Implementation of SVID messages
3 *
4 * Author: Daniel Boulet
5 *
6 * Copyright 1993 Daniel Boulet and RTMX Inc.
7 *
8 * This system call was implemented by Daniel Boulet under contract from RTMX.

--- 4 unchanged lines hidden (view full) ---

13 * Redistribution in binary form may occur without any restrictions.
14 * Obviously, it would be nice if you gave credit where credit is due
15 * but requiring it would be too onerous.
16 *
17 * This software is provided ``AS IS'' without any warranties of any kind.
18 */
19
20#include <sys/cdefs.h>
21__FBSDID("$FreeBSD: head/sys/kern/sysv_msg.c 121307 2003-10-21 18:28:36Z silby $");
21__FBSDID("$FreeBSD: head/sys/kern/sysv_msg.c 122201 2003-11-07 04:47:14Z rwatson $");
22
23#include "opt_sysvipc.h"
24
25#include <sys/param.h>
26#include <sys/systm.h>
27#include <sys/sysproto.h>
28#include <sys/kernel.h>
29#include <sys/proc.h>

--- 469 unchanged lines hidden (view full) ---

499 }
500 if (msqid < msginfo.msgmni) {
501 DPRINTF(("found public key\n"));
502 if ((msgflg & IPC_CREAT) && (msgflg & IPC_EXCL)) {
503 DPRINTF(("not exclusive\n"));
504 error = EEXIST;
505 goto done2;
506 }
22
23#include "opt_sysvipc.h"
24
25#include <sys/param.h>
26#include <sys/systm.h>
27#include <sys/sysproto.h>
28#include <sys/kernel.h>
29#include <sys/proc.h>

--- 469 unchanged lines hidden (view full) ---

499 }
500 if (msqid < msginfo.msgmni) {
501 DPRINTF(("found public key\n"));
502 if ((msgflg & IPC_CREAT) && (msgflg & IPC_EXCL)) {
503 DPRINTF(("not exclusive\n"));
504 error = EEXIST;
505 goto done2;
506 }
507 if ((error = ipcperm(td, &msqptr->msg_perm, msgflg & 0700 ))) {
507 if ((error = ipcperm(td, &msqptr->msg_perm, msgflg & 0700))) {
508 DPRINTF(("requester doesn't have 0%o access\n",
509 msgflg & 0700));
510 goto done2;
511 }
512 goto found;
513 }
514 }
515

--- 636 unchanged lines hidden ---
508 DPRINTF(("requester doesn't have 0%o access\n",
509 msgflg & 0700));
510 goto done2;
511 }
512 goto found;
513 }
514 }
515

--- 636 unchanged lines hidden ---