4.3BSD/usr/man/man3/chmod.3f

.\" Copyright (c) 1983 Regents of the University of California.
.\" All rights reserved.  The Berkeley software License Agreement
.\" specifies the terms and conditions for redistribution.
.\"
.\"	@(#)chmod.3f	6.1 (Berkeley) 5/15/85
.\"
.TH CHMOD 3F "May 15, 1985"
.UC 5
.SH NAME
chmod \- change mode of a file
.SH SYNOPSIS
.B integer function chmod (name, mode)
.br
.B character*(*) name, mode
.SH DESCRIPTION
This function changes the filesystem
.I mode
of file
.IR name .
.I Mode
can be any specification recognized by
.IR chmod (1).
.I Name
must be a single pathname.
.PP
The normal returned value is 0.
Any other value will be a system error number.
.SH FILES
.ie \nM /usr/ucb/lib/libU77.a
.el /usr/lib/libU77.a
.br
/bin/chmod		exec'ed to change the mode.
.SH "SEE ALSO"
chmod(1)
.SH BUGS
Pathnames can be no longer than MAXPATHLEN as defined in
.RI < sys/param.h >.