uipc_shm.c (747a47261eee59b6e9c437cd2c1b3979df5c32ac) | uipc_shm.c (2b68eb8e1dbbdaf6a0df1c83b26f5403ca52d4c3) |
---|---|
1/*- 2 * SPDX-License-Identifier: BSD-2-Clause-FreeBSD 3 * 4 * Copyright (c) 2006, 2011, 2016-2017 Robert N. M. Watson 5 * Copyright 2020 The FreeBSD Foundation 6 * All rights reserved. 7 * 8 * Portions of this software were developed by BAE Systems, the University of --- 524 unchanged lines hidden (view full) --- 533 rangelock_unlock(&shmfd->shm_rl, rl_cookie, &shmfd->shm_mtx); 534 return (0); 535 default: 536 return (ENOTTY); 537 } 538} 539 540static int | 1/*- 2 * SPDX-License-Identifier: BSD-2-Clause-FreeBSD 3 * 4 * Copyright (c) 2006, 2011, 2016-2017 Robert N. M. Watson 5 * Copyright 2020 The FreeBSD Foundation 6 * All rights reserved. 7 * 8 * Portions of this software were developed by BAE Systems, the University of --- 524 unchanged lines hidden (view full) --- 533 rangelock_unlock(&shmfd->shm_rl, rl_cookie, &shmfd->shm_mtx); 534 return (0); 535 default: 536 return (ENOTTY); 537 } 538} 539 540static int |
541shm_stat(struct file *fp, struct stat *sb, struct ucred *active_cred, 542 struct thread *td) | 541shm_stat(struct file *fp, struct stat *sb, struct ucred *active_cred) |
543{ 544 struct shmfd *shmfd; 545#ifdef MAC 546 int error; 547#endif 548 549 shmfd = fp->f_data; 550 --- 1550 unchanged lines hidden --- | 542{ 543 struct shmfd *shmfd; 544#ifdef MAC 545 int error; 546#endif 547 548 shmfd = fp->f_data; 549 --- 1550 unchanged lines hidden --- |