Internationalization and localization tools


File and Path Function

int lchown(const char *path, uid_t owner, gid_t group);

Internationalization (I18n) Function Overview

The lchown function has the same effect as chown except in the case where the named file is a symbolic link. In this case lchown changes the ownership of the symbolic link file itself, while chown changes the ownership of the file or directory to which the symbolic link refers. It returns 0 if successful; otherwise it returns -1 and sets the global errno variable with the error value.

I18n Issues

On ANSI UTF-16 platforms, use a conversion function to convert the wide-character string to a multibyte-character string and then call lchown.

See Pathnames for a discussion of path and filename considerations in an internationalized application.

Recommended Replacements*

*If you're already using the recommended function, see I18n Issues for other reasons why Globalyzer is detecting the function.

File and Path Functions

 

Lingoport internationalization and localization services and software