.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
.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