pub fn chdir(path: &CStr) -> Result<(), Errno>Expand description
Change le répertoire de travail courant du processus pour path
(chdir(2)).
Cf. docs/specs/layer-0/family-process.md. Cas d’usage couche 1 : fixer le
current_dir d’un enfant juste avant l’exec. Préférer fchdir quand un
fd de répertoire est disponible (pas de race sur le chemin).
§Errors
- [
Errno::ENOENT] :pathn’existe pas. - [
Errno::ENOTDIR] : un composant depathn’est pas un répertoire. - [
Errno::EACCES] : permission de recherche refusée. - [
Errno::ENAMETOOLONG] :pathtrop long.