sysv_msg.c (193511) | sysv_msg.c (194575) |
---|---|
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. --- 34 unchanged lines hidden (view full) --- 43 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 44 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 45 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 46 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 47 * SUCH DAMAGE. 48 */ 49 50#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. --- 34 unchanged lines hidden (view full) --- 43 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 44 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 45 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 46 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 47 * SUCH DAMAGE. 48 */ 49 50#include <sys/cdefs.h> |
51__FBSDID("$FreeBSD: head/sys/kern/sysv_msg.c 193511 2009-06-05 14:55:22Z rwatson $"); | 51__FBSDID("$FreeBSD: head/sys/kern/sysv_msg.c 194575 2009-06-21 07:54:47Z rdivacky $"); |
52 53#include "opt_sysvipc.h" 54 55#include <sys/param.h> 56#include <sys/systm.h> 57#include <sys/sysproto.h> 58#include <sys/kernel.h> 59#include <sys/priv.h> --- 15 unchanged lines hidden (view full) --- 75 76static void msginit(void); 77static int msgunload(void); 78static int sysvmsg_modload(struct module *, int, void *); 79 80#ifdef MSG_DEBUG 81#define DPRINTF(a) printf a 82#else | 52 53#include "opt_sysvipc.h" 54 55#include <sys/param.h> 56#include <sys/systm.h> 57#include <sys/sysproto.h> 58#include <sys/kernel.h> 59#include <sys/priv.h> --- 15 unchanged lines hidden (view full) --- 75 76static void msginit(void); 77static int msgunload(void); 78static int sysvmsg_modload(struct module *, int, void *); 79 80#ifdef MSG_DEBUG 81#define DPRINTF(a) printf a 82#else |
83#define DPRINTF(a) | 83#define DPRINTF(a) (void)0 |
84#endif 85 86static void msg_freehdr(struct msg *msghdr); 87 88/* XXX casting to (sy_call_t *) is bogus, as usual. */ 89static sy_call_t *msgcalls[] = { 90 (sy_call_t *)msgctl, (sy_call_t *)msgget, 91 (sy_call_t *)msgsnd, (sy_call_t *)msgrcv --- 1201 unchanged lines hidden --- | 84#endif 85 86static void msg_freehdr(struct msg *msghdr); 87 88/* XXX casting to (sy_call_t *) is bogus, as usual. */ 89static sy_call_t *msgcalls[] = { 90 (sy_call_t *)msgctl, (sy_call_t *)msgget, 91 (sy_call_t *)msgsnd, (sy_call_t *)msgrcv --- 1201 unchanged lines hidden --- |