Changeset View
Changeset View
Standalone View
Standalone View
sys/kern/uipc_mqueue.c
Show First 20 Lines • Show All 1,419 Lines • ▼ Show 20 Lines | LIST_FOREACH(pn, &pd->mn_children, mn_sibling) { | ||||
* Only show names within the same prison root directory | * Only show names within the same prison root directory | ||||
* (or not associated with a prison, e.g. "." and ".."). | * (or not associated with a prison, e.g. "." and ".."). | ||||
*/ | */ | ||||
if (pn->mn_pr_root != NULL && pn->mn_pr_root != pr_root) | if (pn->mn_pr_root != NULL && pn->mn_pr_root != pr_root) | ||||
continue; | continue; | ||||
if (!pn->mn_fileno) | if (!pn->mn_fileno) | ||||
mqfs_fileno_alloc(mi, pn); | mqfs_fileno_alloc(mi, pn); | ||||
entry.d_fileno = pn->mn_fileno; | entry.d_fileno = pn->mn_fileno; | ||||
entry.d_off = offset + entry.d_reclen; | |||||
for (i = 0; i < MQFS_NAMELEN - 1 && pn->mn_name[i] != '\0'; ++i) | for (i = 0; i < MQFS_NAMELEN - 1 && pn->mn_name[i] != '\0'; ++i) | ||||
entry.d_name[i] = pn->mn_name[i]; | entry.d_name[i] = pn->mn_name[i]; | ||||
entry.d_namlen = i; | entry.d_namlen = i; | ||||
switch (pn->mn_type) { | switch (pn->mn_type) { | ||||
case mqfstype_root: | case mqfstype_root: | ||||
case mqfstype_dir: | case mqfstype_dir: | ||||
case mqfstype_this: | case mqfstype_this: | ||||
case mqfstype_parent: | case mqfstype_parent: | ||||
▲ Show 20 Lines • Show All 1,509 Lines • Show Last 20 Lines |