Deleted Added
full compact
uipc_mqueue.c (213642) uipc_mqueue.c (219028)
1/*-
2 * Copyright (c) 2005 David Xu <davidxu@freebsd.org>
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

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

38 * times at different mount points but shows same contents.
39 *
40 * 2) Standard POSIX message queue API. The syscalls do not use vfs layer,
41 * but directly operate on internal data structure, this allows user to
42 * use the IPC facility without having to mount mqueue file system.
43 */
44
45#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 2005 David Xu <davidxu@freebsd.org>
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

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

38 * times at different mount points but shows same contents.
39 *
40 * 2) Standard POSIX message queue API. The syscalls do not use vfs layer,
41 * but directly operate on internal data structure, this allows user to
42 * use the IPC facility without having to mount mqueue file system.
43 */
44
45#include <sys/cdefs.h>
46__FBSDID("$FreeBSD: head/sys/kern/uipc_mqueue.c 213642 2010-10-09 02:50:23Z davidxu $");
46__FBSDID("$FreeBSD: head/sys/kern/uipc_mqueue.c 219028 2011-02-25 10:11:01Z netchild $");
47
48#include "opt_compat.h"
49
50#include <sys/param.h>
51#include <sys/kernel.h>
52#include <sys/systm.h>
53#include <sys/limits.h>
54#include <sys/buf.h>

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

77#include <sys/sysent.h>
78#include <sys/sx.h>
79#include <sys/sysctl.h>
80#include <sys/taskqueue.h>
81#include <sys/unistd.h>
82#include <sys/vnode.h>
83#include <machine/atomic.h>
84
47
48#include "opt_compat.h"
49
50#include <sys/param.h>
51#include <sys/kernel.h>
52#include <sys/systm.h>
53#include <sys/limits.h>
54#include <sys/buf.h>

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

77#include <sys/sysent.h>
78#include <sys/sx.h>
79#include <sys/sysctl.h>
80#include <sys/taskqueue.h>
81#include <sys/unistd.h>
82#include <sys/vnode.h>
83#include <machine/atomic.h>
84
85FEATURE(p1003_1b_mqueue, "POSIX P1003.1B message queues support");
86
85/*
86 * Limits and constants
87 */
88#define MQFS_NAMELEN NAME_MAX
89#define MQFS_DELEN (8 + MQFS_NAMELEN)
90
91/* node types */
92typedef enum {

--- 2679 unchanged lines hidden ---
87/*
88 * Limits and constants
89 */
90#define MQFS_NAMELEN NAME_MAX
91#define MQFS_DELEN (8 + MQFS_NAMELEN)
92
93/* node types */
94typedef enum {

--- 2679 unchanged lines hidden ---