MCPcopy Create free account
hub / github.com/F-Stack/f-stack / pipe_chmod

Function pipe_chmod

freebsd/kern/sys_pipe.c:1551–1563  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1549}
1550
1551static int
1552pipe_chmod(struct file *fp, mode_t mode, struct ucred *active_cred, struct thread *td)
1553{
1554 struct pipe *cpipe;
1555 int error;
1556
1557 cpipe = fp->f_data;
1558 if (cpipe->pipe_type & PIPE_TYPE_NAMED)
1559 error = vn_chmod(fp, mode, active_cred, td);
1560 else
1561 error = invfo_chmod(fp, mode, active_cred, td);
1562 return (error);
1563}
1564
1565static int
1566pipe_chown(struct file *fp, uid_t uid, gid_t gid, struct ucred *active_cred,

Callers

nothing calls this directly

Calls 2

vn_chmodFunction · 0.85
invfo_chmodFunction · 0.85

Tested by

no test coverage detected