1explain_fchdir_or_die(3) Library Functions Manual explain_fchdir_or_die(3)
2
3
4
6 explain_fchdir_or_die - change directory and report errors
7
9 #include <libexplian/fchdir.h>
10 void explain_fchdir_or_die(int fildes);
11
13 The explain_fchdir_or_die function is used to change directory via the
14 fchdir(2) system call. On failure, it prints an error message on
15 stderr via explain_fchdir(3), and exits.
16
17 This function is intended to be used in a fashion similar to the fol‐
18 lowing example:
19 explain_fchdir_or_die(fildes);
20
21 fildes exactly as to be passed to the fchdir(2) system call.
22
24 fchdir(3)
25 change working directory
26
27 explain_fchdir(3)
28 report fchdir(2) errors
29
30 exit(2) terminate the calling process
31
33 libexplain version 0.40
34 Copyright (C) 2008 Peter Miller
35
37 Written by Peter Miller <pmiller@opensource.org.au>
38
39
40
41 explain_fchdir_or_die(3)