linux_ipc.c (194910) | linux_ipc.c (198945) |
---|---|
1/*- 2 * Copyright (c) 1994-1995 S�ren Schmidt 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 --- 13 unchanged lines hidden (view full) --- 22 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 23 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 */ 28 29#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 1994-1995 S�ren Schmidt 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 --- 13 unchanged lines hidden (view full) --- 22 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 23 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 */ 28 29#include <sys/cdefs.h> |
30__FBSDID("$FreeBSD: head/sys/compat/linux/linux_ipc.c 194910 2009-06-24 21:10:52Z jhb $"); | 30__FBSDID("$FreeBSD: head/sys/compat/linux/linux_ipc.c 198945 2009-11-05 07:37:48Z netchild $"); |
31 32#include <sys/param.h> 33#include <sys/systm.h> 34#include <sys/syscallsubr.h> 35#include <sys/sysproto.h> 36#include <sys/proc.h> 37#include <sys/limits.h> 38#include <sys/msg.h> --- 828 unchanged lines hidden (view full) --- 867 buf = (void *)&bsd_shmid; 868 } 869 return kern_shmctl(td, args->shmid, IPC_RMID, buf, NULL); 870 } 871 872 case LINUX_SHM_LOCK: 873 case LINUX_SHM_UNLOCK: 874 default: | 31 32#include <sys/param.h> 33#include <sys/systm.h> 34#include <sys/syscallsubr.h> 35#include <sys/sysproto.h> 36#include <sys/proc.h> 37#include <sys/limits.h> 38#include <sys/msg.h> --- 828 unchanged lines hidden (view full) --- 867 buf = (void *)&bsd_shmid; 868 } 869 return kern_shmctl(td, args->shmid, IPC_RMID, buf, NULL); 870 } 871 872 case LINUX_SHM_LOCK: 873 case LINUX_SHM_UNLOCK: 874 default: |
875 linux_msg(td, "ipc typ=%d not implemented", args->cmd & ~LINUX_IPC_64); | 875 linux_msg(td, "ipc type %d not implemented", args->cmd & ~LINUX_IPC_64); |
876 return EINVAL; 877 } 878} 879 880MODULE_DEPEND(linux, sysvmsg, 1, 1, 1); 881MODULE_DEPEND(linux, sysvsem, 1, 1, 1); 882MODULE_DEPEND(linux, sysvshm, 1, 1, 1); | 876 return EINVAL; 877 } 878} 879 880MODULE_DEPEND(linux, sysvmsg, 1, 1, 1); 881MODULE_DEPEND(linux, sysvsem, 1, 1, 1); 882MODULE_DEPEND(linux, sysvshm, 1, 1, 1); |