Changeset View
Changeset View
Standalone View
Standalone View
lib/libc/sys/chown.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. | ||||
.\" | .\" | ||||
.\" @(#)chown.2 8.4 (Berkeley) 4/19/94 | .\" @(#)chown.2 8.4 (Berkeley) 4/19/94 | ||||
.\" $FreeBSD$ | .\" $FreeBSD$ | ||||
.\" | .\" | ||||
.Dd February 23, 2021 | .Dd March 30, 2021 | ||||
.Dt CHOWN 2 | .Dt CHOWN 2 | ||||
.Os | .Os | ||||
.Sh NAME | .Sh NAME | ||||
.Nm chown , | .Nm chown , | ||||
.Nm fchown , | .Nm fchown , | ||||
.Nm lchown , | .Nm lchown , | ||||
.Nm fchownat | .Nm fchownat | ||||
.Nd change owner and group of a file | .Nd change owner and group of a file | ||||
▲ Show 20 Lines • Show All 82 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 fchownat | .Fn fchownat | ||||
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 153 Lines • Show Last 20 Lines |