diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2010-08-27 13:09:37 +0200 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2010-08-27 13:09:37 +0200 |
commit | 654de17771726def274ceed4a306b7c3c2aa5138 (patch) | |
tree | fc895a6d677b718df7e89c93d454072f62049c8e /procfs/procfs_nonpid_files.c | |
parent | a65fce9e3ce244cb5691357eef14356ae40bd148 (diff) | |
parent | 7070feccb2e4d135d5620805de6cec177722b837 (diff) |
Merge branch 'procfs' into procfs-moved
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; |