Internationalization and localization tools


File and Path Function

int chroot(const char *path);

Internationalization (I18n) Function Overview

The chroot function causes the named directory, specified by path, to become the root directory; that is, the starting point for path searches for pathnames beginning with /. The process' working directory is unaffected by chroot.

Upon successful completion, 0 is returned. Otherwise, -1 is returned and the global errno variable is set to indicate the error. If -1 is returned, no change is made to the root directory.

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

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