uipc_shm.c (254138) | uipc_shm.c (254356) |
---|---|
1/*- 2 * Copyright (c) 2006, 2011 Robert N. M. Watson 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 --- 28 unchanged lines hidden (view full) --- 37 * 38 * (2) Add support for this file type to fstat(1). 39 * 40 * (3) Resource limits? Does this need its own resource limits or are the 41 * existing limits in mmap(2) sufficient? 42 */ 43 44#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2006, 2011 Robert N. M. Watson 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 --- 28 unchanged lines hidden (view full) --- 37 * 38 * (2) Add support for this file type to fstat(1). 39 * 40 * (3) Resource limits? Does this need its own resource limits or are the 41 * existing limits in mmap(2) sufficient? 42 */ 43 44#include <sys/cdefs.h> |
45__FBSDID("$FreeBSD: head/sys/kern/uipc_shm.c 254138 2013-08-09 11:11:11Z attilio $"); | 45__FBSDID("$FreeBSD: head/sys/kern/uipc_shm.c 254356 2013-08-15 07:54:31Z glebius $"); |
46 47#include "opt_capsicum.h" 48 49#include <sys/param.h> 50#include <sys/capability.h> 51#include <sys/fcntl.h> 52#include <sys/file.h> 53#include <sys/filedesc.h> --- 73 unchanged lines hidden (view full) --- 127 .fo_truncate = shm_truncate, 128 .fo_ioctl = shm_ioctl, 129 .fo_poll = shm_poll, 130 .fo_kqfilter = shm_kqfilter, 131 .fo_stat = shm_stat, 132 .fo_close = shm_close, 133 .fo_chmod = shm_chmod, 134 .fo_chown = shm_chown, | 46 47#include "opt_capsicum.h" 48 49#include <sys/param.h> 50#include <sys/capability.h> 51#include <sys/fcntl.h> 52#include <sys/file.h> 53#include <sys/filedesc.h> --- 73 unchanged lines hidden (view full) --- 127 .fo_truncate = shm_truncate, 128 .fo_ioctl = shm_ioctl, 129 .fo_poll = shm_poll, 130 .fo_kqfilter = shm_kqfilter, 131 .fo_stat = shm_stat, 132 .fo_close = shm_close, 133 .fo_chmod = shm_chmod, 134 .fo_chown = shm_chown, |
135 .fo_sendfile = invfo_sendfile, |
|
135 .fo_flags = DFLAG_PASSABLE 136}; 137 138FEATURE(posix_shm, "POSIX shared memory"); 139 140static int 141shm_read(struct file *fp, struct uio *uio, struct ucred *active_cred, 142 int flags, struct thread *td) --- 712 unchanged lines hidden --- | 136 .fo_flags = DFLAG_PASSABLE 137}; 138 139FEATURE(posix_shm, "POSIX shared memory"); 140 141static int 142shm_read(struct file *fp, struct uio *uio, struct ucred *active_cred, 143 int flags, struct thread *td) --- 712 unchanged lines hidden --- |