uipc_mqueue.c (b4a58fbf640409a1e507d9f7b411c83a3f83a2f3) | uipc_mqueue.c (2b68eb8e1dbbdaf6a0df1c83b26f5403ca52d4c3) |
---|---|
1/*- 2 * SPDX-License-Identifier: BSD-2-Clause-FreeBSD 3 * 4 * Copyright (c) 2005 David Xu <davidxu@freebsd.org> 5 * Copyright (c) 2016-2017 Robert N. M. Watson 6 * All rights reserved. 7 * 8 * Portions of this software were developed by BAE Systems, the University of --- 2523 unchanged lines hidden (view full) --- 2532 fp->f_data = NULL; 2533 sx_xlock(&mqfs_data.mi_lock); 2534 mqnode_release(pn); 2535 sx_xunlock(&mqfs_data.mi_lock); 2536 return (0); 2537} 2538 2539static int | 1/*- 2 * SPDX-License-Identifier: BSD-2-Clause-FreeBSD 3 * 4 * Copyright (c) 2005 David Xu <davidxu@freebsd.org> 5 * Copyright (c) 2016-2017 Robert N. M. Watson 6 * All rights reserved. 7 * 8 * Portions of this software were developed by BAE Systems, the University of --- 2523 unchanged lines hidden (view full) --- 2532 fp->f_data = NULL; 2533 sx_xlock(&mqfs_data.mi_lock); 2534 mqnode_release(pn); 2535 sx_xunlock(&mqfs_data.mi_lock); 2536 return (0); 2537} 2538 2539static int |
2540mqf_stat(struct file *fp, struct stat *st, struct ucred *active_cred, 2541 struct thread *td) | 2540mqf_stat(struct file *fp, struct stat *st, struct ucred *active_cred) |
2542{ 2543 struct mqfs_node *pn = fp->f_data; 2544 2545 bzero(st, sizeof *st); 2546 sx_xlock(&mqfs_data.mi_lock); 2547 st->st_atim = pn->mn_atime; 2548 st->st_mtim = pn->mn_mtime; 2549 st->st_ctim = pn->mn_ctime; --- 396 unchanged lines hidden --- | 2541{ 2542 struct mqfs_node *pn = fp->f_data; 2543 2544 bzero(st, sizeof *st); 2545 sx_xlock(&mqfs_data.mi_lock); 2546 st->st_atim = pn->mn_atime; 2547 st->st_mtim = pn->mn_mtime; 2548 st->st_ctim = pn->mn_ctime; --- 396 unchanged lines hidden --- |