3
@node An Errorless Front-end to the VU File-system Interface
4
@chapter An Errorless Front-end to the VU File-system Interface
6
These functions perform I/O but never return errors. If an error
7
occurs, they print a message and abort the program.
12
@b{* Function} @code{safe_access}@fuindex safe_access
16
int safe_access (char * path, int mode);
22
See @strong{vu_access} in @ref{The VU File-system Interface}.
25
If mode is F_OK and the file does not exist, return @code{-1}.
30
@b{* Function} @code{safe_chdir}@fuindex safe_chdir
34
int safe_chdir (char * path);
40
See @strong{vu_chdir} in @ref{The VU File-system Interface}.
45
@b{* Function} @code{safe_chmod}@fuindex safe_chmod
49
int safe_chmod (char * path, int mode);
55
See @strong{vu_chmod} in @ref{The VU File-system Interface}.
60
@b{* Function} @code{safe_chown}@fuindex safe_chown
64
int safe_chown (char * path, int owner, int group);
70
See @strong{vu_chown} in @ref{The VU File-system Interface}.
75
@b{* Function} @code{safe_chroot}@fuindex safe_chroot
79
int safe_chroot (char * path);
85
See @strong{vu_chroot} in @ref{The VU File-system Interface}.
90
@b{* Function} @code{safe_close}@fuindex safe_close
94
int safe_close (int fd);
100
See @strong{vu_close} in @ref{The VU File-system Interface}.
105
@b{* Function} @code{safe_closedir}@fuindex safe_closedir
109
int safe_closedir (DIR * dir);
115
See @strong{vu_closedir} in @ref{The VU File-system Interface}.
120
@b{* Function} @code{safe_fchdir}@fuindex safe_fchdir
124
int safe_fchdir (int fd);
130
See @strong{vu_fchdir} in @ref{The VU File-system Interface}.
135
@b{* Function} @code{safe_fchmod}@fuindex safe_fchmod
139
int safe_fchmod (int fd, int mode);
145
See @strong{vu_fchmod} in @ref{The VU File-system Interface}.
150
@b{* Function} @code{safe_fchown}@fuindex safe_fchown
154
int safe_fchown (int fd, int owner, int group);
160
See @strong{vu_fchown} in @ref{The VU File-system Interface}.
165
@b{* Function} @code{safe_fstat}@fuindex safe_fstat
169
int safe_fstat (int fd, struct stat * buf);
175
See @strong{vu_fstat} in @ref{The VU File-system Interface}.
180
@b{* Function} @code{safe_fsync}@fuindex safe_fsync
184
int safe_fsync (int fd);
190
See @strong{vu_fsync} in @ref{The VU File-system Interface}.
195
@b{* Function} @code{safe_ftruncate}@fuindex safe_ftruncate
199
int safe_ftruncate (int fd, long where);
205
See @strong{vu_ftruncate} in @ref{The VU File-system Interface}.
210
@b{* Function} @code{safe_link}@fuindex safe_link
214
int safe_link (char * from, char * to);
220
See @strong{vu_link} in @ref{The VU File-system Interface}.
225
@b{* Function} @code{safe_lseek}@fuindex safe_lseek
229
long safe_lseek (int fd, long offset, int whence);
235
See @strong{vu_lseek} in @ref{The VU File-system Interface}.
240
@b{* Function} @code{safe_lstat}@fuindex safe_lstat
244
int safe_lstat (char * path, struct stat * buf);
250
See @strong{vu_lstat} in @ref{The VU File-system Interface}.
255
@b{* Function} @code{safe_mkdir}@fuindex safe_mkdir
259
int safe_mkdir (char * path, int mode);
265
See @strong{vu_mkdir} in @ref{The VU File-system Interface}.
270
@b{* Function} @code{safe_open}@fuindex safe_open
274
int safe_open (char * path, int flags, int mode);
280
See @strong{vu_open} in @ref{The VU File-system Interface}.
285
@b{* Function} @code{safe_opendir}@fuindex safe_opendir
289
int safe_opendir (DIR ** retv, char * path);
295
See @strong{vu_opendir} in @ref{The VU File-system Interface}.
300
@b{* Function} @code{safe_read}@fuindex safe_read
304
long safe_read (int fd, char * buf, long count);
310
See @strong{vu_read} in @ref{The VU File-system Interface}.
315
@b{* Function} @code{safe_read_retry}@fuindex safe_read_retry
319
long safe_read_retry (int fd, char * buf, long count);
325
See @strong{vu_read_retry} in @ref{The VU File-system Interface}.
330
@b{* Function} @code{safe_readdir}@fuindex safe_readdir
334
int safe_readdir (char ** file_ret, DIR * dir);
340
See @strong{vu_readdir} in @ref{The VU File-system Interface}.
345
@b{* Function} @code{safe_readlink}@fuindex safe_readlink
349
int safe_readlink (char * path, char * buf, int bufsize);
355
See @strong{vu_readlink} in @ref{The VU File-system Interface}.
360
@b{* Function} @code{safe_rename}@fuindex safe_rename
364
int safe_rename (char * from, char * to);
370
See @strong{vu_rename} in @ref{The VU File-system Interface}.
375
@b{* Function} @code{safe_rmdir}@fuindex safe_rmdir
379
int safe_rmdir (char * path);
385
See @strong{vu_rmdir} in @ref{The VU File-system Interface}.
390
@b{* Function} @code{safe_stat}@fuindex safe_stat
394
int safe_stat (char * path, struct stat * buf);
400
See @strong{vu_stat} in @ref{The VU File-system Interface}.
405
@b{* Function} @code{safe_symlink}@fuindex safe_symlink
409
int safe_symlink (char * from, char * to);
415
See @strong{vu_symlink} in @ref{The VU File-system Interface}.
420
@b{* Function} @code{safe_truncate}@fuindex safe_truncate
424
int safe_truncate (char * path, long where);
430
See @strong{vu_truncate} in @ref{The VU File-system Interface}.
435
@b{* Function} @code{safe_unlink}@fuindex safe_unlink
439
int safe_unlink (char * path);
445
See @strong{vu_unlink} in @ref{The VU File-system Interface}.
450
@b{* Function} @code{safe_utime}@fuindex safe_utime
454
int safe_utime (char * path, struct utimbuf * times);
460
See @strong{vu_utime} in @ref{The VU File-system Interface}.
465
@b{* Function} @code{safe_write}@fuindex safe_write
469
long safe_write (int fd, char * buf, long count);
475
See @strong{vu_write} in @ref{The VU File-system Interface}.
480
@b{* Function} @code{safe_write_retry}@fuindex safe_write_retry
484
long safe_write_retry (int fd, t_uchar * buf, int amt);
490
See @strong{vu_write_retry} in @ref{The VU File-system Interface}.
495
@b{* Function} @code{safe_fcntl}@fuindex safe_fcntl
499
int safe_fcntl (int fd, int cmd, long arg);
505
See @strong{vu_fcntl} in @ref{The VU File-system Interface}.
510
@b{* Function} @code{safe_dup}@fuindex safe_dup
514
int safe_dup (int fd);
520
See @strong{vu_dup} in @ref{The VU File-system Interface}.
525
@b{* Function} @code{safe_dup2}@fuindex safe_dup2
529
int safe_dup2 (int fd, int newfd);
535
See @strong{vu_dup2} in @ref{The VU File-system Interface}.
540
@b{* Function} @code{safe_move_state}@fuindex safe_move_state
544
int safe_move_state (int fd, int newfd);
550
See @strong{vu_move_state} in @ref{Establishing VU Handlers}.