diff options
Diffstat (limited to 'procfs/procfs_nonpid_files.c')
-rw-r--r-- | procfs/procfs_nonpid_files.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/procfs/procfs_nonpid_files.c b/procfs/procfs_nonpid_files.c index 2c1209ee..f1300666 100644 --- a/procfs/procfs_nonpid_files.c +++ b/procfs/procfs_nonpid_files.c @@ -166,6 +166,19 @@ error_t procfs_create_loadavg (struct procfs_dir *dir, return err; } +error_t procfs_create_mounts (struct procfs_dir *dir, + struct node **node, + time_t timestamp) +{ + struct procfs_dir_entry *dir_entry; + int err; + + dir_entry = update_pid_entries (dir, "mounts", timestamp, "/etc/mtab"); + err = procfs_create_node (dir_entry, "mounts", node); + + return err; +} + error_t get_uptime (struct timeval *uptime) { struct timeval boot_time, now; |