Changeset View
Changeset View
Standalone View
Standalone View
lib/libc/sys/chmod.2
Show All 22 Lines | |||||
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | ||||
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | ||||
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | ||||
.\" SUCH DAMAGE. | .\" SUCH DAMAGE. | ||||
.\" | .\" | ||||
.\" @(#)chmod.2 8.1 (Berkeley) 6/4/93 | .\" @(#)chmod.2 8.1 (Berkeley) 6/4/93 | ||||
.\" $FreeBSD$ | .\" $FreeBSD$ | ||||
.\" | .\" | ||||
.Dd February 23, 2021 | .Dd March 30, 2021 | ||||
.Dt CHMOD 2 | .Dt CHMOD 2 | ||||
.Os | .Os | ||||
.Sh NAME | .Sh NAME | ||||
.Nm chmod , | .Nm chmod , | ||||
.Nm fchmod , | .Nm fchmod , | ||||
.Nm lchmod , | .Nm lchmod , | ||||
.Nm fchmodat | .Nm fchmodat | ||||
.Nd change mode of file | .Nd change mode of file | ||||
▲ Show 20 Lines • Show All 65 Lines • ▼ Show 20 Lines | |||||
Only walk paths below the directory specified by the | Only walk paths below the directory specified by the | ||||
.Ar fd | .Ar fd | ||||
descriptor. | descriptor. | ||||
See the description of the | See the description of the | ||||
.Dv O_RESOLVE_BENEATH | .Dv O_RESOLVE_BENEATH | ||||
flag in the | flag in the | ||||
.Xr open 2 | .Xr open 2 | ||||
manual page. | manual page. | ||||
.It Dv AT_EMPTY_PATH | |||||
If the | |||||
.Fa path | |||||
argument is an empty string, operate on the file or directory | |||||
referenced by the descriptor | |||||
.Fa fd . | |||||
If | |||||
.Fa fd | |||||
is equal to | |||||
.Dv AT_FDCWD , | |||||
operate on the current working directory. | |||||
.El | .El | ||||
.Pp | .Pp | ||||
If | If | ||||
.Fn fchmodat | .Fn fchmodat | ||||
is passed the special value | is passed the special value | ||||
.Dv AT_FDCWD | .Dv AT_FDCWD | ||||
in the | in the | ||||
.Fa fd | .Fa fd | ||||
▲ Show 20 Lines • Show All 229 Lines • Show Last 20 Lines |