#include <sys/types.h>#include <minix/minlib.h>#include <ctype.h>#include <fcntl.h>#include <stdlib.h>#include <string.h>#include <unistd.h>#include <stdio.h>Include dependency graph for mtab.c:

Go to the source code of this file.
Defines | |
| #define | BUF_SIZE 512 |
Functions | |
| _PROTOTYPE (int load_mtab,(char *prog_name)) | |
| _PROTOTYPE (int get_mtab_entry,(char *special, char *mounted_on, char *version, char *rw_flag)) | |
| _PROTOTYPE (void err,(char *prog_name, char *str)) | |
| int | load_mtab (char *prog_name) |
| int | rewrite_mtab (char *prog_name) |
| int | get_mtab_entry (char *special, char *mounted_on, char *version, char *rw_flag) |
| int | put_mtab_entry (char *special, char *mounted_on, char *version, char *rw_flag) |
| void | err (char *prog_name, char *str) |
Variables | |
| char * | etc_mtab = "/etc/mtab" |
| static char | mtab_in [BUF_SIZE+1] |
| static char | mtab_out [BUF_SIZE+1] |
| static char * | iptr = mtab_in |
| static char * | optr = mtab_out |
|
|
|
|
||||||||||||
|
|
|
||||||||||||
|
|
|
||||||||||||
|
|
|
||||||||||||
|
|
|
||||||||||||||||||||
|
Definition at line 130 of file mtab.c. References BUF_SIZE, iptr, isprint, mtab_in, and strcpy(). Referenced by check_mtab(), list(), readmtab(), and update_mtab(). |
|
|
Definition at line 61 of file mtab.c. References BUF_SIZE, close, err, etc_mtab, isspace, mtab_in, n, O_RDONLY, open, ptr, read, and std_err(). Referenced by check_mtab(), list(), readmtab(), and update_mtab(). |
|
||||||||||||||||||||
|
Definition at line 162 of file mtab.c. References BUF_SIZE, mtab_out, optr, strcpy(), and strlen(). Referenced by update_mtab(). |
|
|
Definition at line 103 of file mtab.c. References close, creat, err, etc_mtab, mtab_out, n, optr, and write. Referenced by update_mtab(). |
|
|
Definition at line 46 of file mtab.c. Referenced by err(), load_mtab(), and rewrite_mtab(). |
|
|
Definition at line 49 of file mtab.c. Referenced by get_mtab_entry(), and main(). |
|
|
Definition at line 47 of file mtab.c. Referenced by get_mtab_entry(), and load_mtab(). |
|
|
Definition at line 48 of file mtab.c. Referenced by put_mtab_entry(), and rewrite_mtab(). |
|
|
|
1.4.6