careadlinkat: Use 'restrict'.
[gnulib.git] / doc / posix-functions / chown.texi
blob7919d3508f36507485e340513711027075daeaff
1 @node chown
2 @section @code{chown}
3 @findex chown
5 POSIX specification:@* @url{https://pubs.opengroup.org/onlinepubs/9699919799/functions/chown.html}
7 Gnulib module: chown
9 Portability problems fixed by Gnulib:
10 @itemize
11 @item
12 Some platforms fail to detect trailing slash on non-directories, as in
13 @code{chown("link-to-file/",uid,gid)}:
14 FreeBSD 7.2, AIX 7.1, Solaris 9.
15 @item
16 Some platforms fail to update the change time when at least one
17 argument was not @minus{}1, but no ownership changes resulted:
18 OpenBSD 4.0.
19 @item
20 When passed an argument of @minus{}1, some implementations really set the owner
21 user/group id of the file to this value, rather than leaving that id of the
22 file alone.
23 @item
24 When applied to a symbolic link, some implementations don't dereference
25 the symlink, i.e.@: they behave like @code{lchown}.
26 @item
27 This function is missing on some platforms; however, the replacement
28 always fails with @code{ENOSYS}:
29 mingw, MSVC 14.
30 @end itemize
32 Portability problems not fixed by Gnulib:
33 @itemize
34 @end itemize