uipc_mqueue.c (85078b8573332c2c83a79adea8a61b519fb3b6af) | uipc_mqueue.c (90f580b954090e669da234f6c8e8d0379ff9d8bc) |
---|---|
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 --- 1411 unchanged lines hidden (view full) --- 1420 * Only show names within the same prison root directory 1421 * (or not associated with a prison, e.g. "." and ".."). 1422 */ 1423 if (pn->mn_pr_root != NULL && pn->mn_pr_root != pr_root) 1424 continue; 1425 if (!pn->mn_fileno) 1426 mqfs_fileno_alloc(mi, pn); 1427 entry.d_fileno = pn->mn_fileno; | 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 --- 1411 unchanged lines hidden (view full) --- 1420 * Only show names within the same prison root directory 1421 * (or not associated with a prison, e.g. "." and ".."). 1422 */ 1423 if (pn->mn_pr_root != NULL && pn->mn_pr_root != pr_root) 1424 continue; 1425 if (!pn->mn_fileno) 1426 mqfs_fileno_alloc(mi, pn); 1427 entry.d_fileno = pn->mn_fileno; |
1428 entry.d_off = offset + entry.d_reclen; |
|
1428 for (i = 0; i < MQFS_NAMELEN - 1 && pn->mn_name[i] != '\0'; ++i) 1429 entry.d_name[i] = pn->mn_name[i]; 1430 entry.d_namlen = i; 1431 switch (pn->mn_type) { 1432 case mqfstype_root: 1433 case mqfstype_dir: 1434 case mqfstype_this: 1435 case mqfstype_parent: --- 1509 unchanged lines hidden --- | 1429 for (i = 0; i < MQFS_NAMELEN - 1 && pn->mn_name[i] != '\0'; ++i) 1430 entry.d_name[i] = pn->mn_name[i]; 1431 entry.d_namlen = i; 1432 switch (pn->mn_type) { 1433 case mqfstype_root: 1434 case mqfstype_dir: 1435 case mqfstype_this: 1436 case mqfstype_parent: --- 1509 unchanged lines hidden --- |