.Fd #include <sys/stat.h>
.Fd #include <unistd.h>
.Ft int
-.Fn chflags "const char *path" "u_long flags"
+.Fn chflags "const char *path" "u_int flags"
.Ft int
-.Fn fchflags "int fd" "u_long flags"
+.Fn fchflags "int fd" "u_int flags"
.Sh DESCRIPTION
The file whose name
is given by
.Em or Ns 'ing
the following values
.Pp
-.Bl -tag -width "SF_IMMUTABLE" -compact -offset indent
+.Bl -tag -width "SF_IMMUTABLEX" -compact -offset indent
.It UF_NODUMP
Do not dump the file.
.It UF_IMMUTABLE
The file may not be changed.
.It UF_APPEND
The file may only be appended to.
-.\".It ARCHIVED
-.\"File is archived.
+.It UF_OPAQUE
+The directory is opaque when viewed through a union stack.
+.It UF_HIDDEN
+The file or directory is not intended to be displayed to the user.
+.It SF_ARCHIVED
+The file has been archived.
.It SF_IMMUTABLE
The file may not be changed.
.It SF_APPEND
.El
.Pp
The
-.Dq UF_IMMUTABLE
+.Dq UF_IMMUTABLE ,
+.Dq UF_APPEND ,
+.Dq UF_OPAQUE ,
and
-.Dq UF_APPEND
+.Dq UF_HIDDEN
flags may be set or unset by either the owner of a file or the super-user.
.Pp
The
+.Dq SF_ARCHIVED ,
.Dq SF_IMMUTABLE
and
.Dq SF_APPEND
.It Bq Er EBADF
The descriptor is not valid.
.It Bq Er EINVAL
-.Fa Fd
+.Fa fd
refers to a socket, not to a file.
.It Bq Er EPERM
The effective user ID does not match the owner of the file and
.El
.Sh SEE ALSO
.Xr chflags 1 ,
+.Xr fflagstostr 3 ,
+.Xr strtofflags 3 ,
.Xr init 8
.Sh HISTORY
The