summaryrefslogtreecommitdiff
path: root/procfs_nonpid_files.c
diff options
context:
space:
mode:
authorMadhusudan.C.S <madhusudancs@gmail.com>2008-08-18 20:26:00 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2010-08-01 01:31:30 +0200
commitb0c18505223662500cd54a0b901efcd69a761077 (patch)
tree6ba55e330cc1756437eae6d52cc0dae4fae8168a /procfs_nonpid_files.c
parentac38ed88929c70c4ede56816c053bf170c9c2efd (diff)
2008-08-18 Madhusudan.C.S <madhusudancs@gmail.com>
* procfs_nonpid_files.c: (procfs_write_nonpid_stat): Changed to procfs_read_nonpid_stat. (procfs_write_nonpid_meminfo): Changed to procfs_read_nonpid_meminfo. (procfs_write_nonpid_loadavg): Changed to procfs_read_nonpid_loadavg. (procfs_write_nonpid_uptime): Changed to procfs_read_nonpid_uptime. (procfs_write_nonpid_version):Changed to procfs_read_nonpid_version. * procfs_pid_files.c: (procfs_write_stat_file): Changed to procfs_read_stat_file. Changed the comment correspondingly from Write to Read. (procfs_write_cmdline_file ): Changed to procfs_read_cmdline_file. Changed the comment correspondingly from Write to Read. (procfs_write_status_file): Changed to procfs_read_status_file. Changed the comment correspondingly from Write to Read. (procfs_write_statm_file): Changed to procfs_read_statm_file. Changed the comment correspondingly from Write to Read. (procfs_write_files_contents): Changed to procfs_read_files_contents. Changed the comment correspondingly from Write to Read. Changed the call to procfs_write_nonpid_stat to procfs_read_nonpid_stat. Changed the call to procfs_write_stat_file to procfs_read_stat_file. Changed the call to procfs_write_cmdline_file to procfs_read_cmdline_file. Changed the call to procfs_write_status_file to procfs_read_status_file. Changed the call to procfs_write_statm_file to procfs_read_statm_file. Changed the call to procfs_write_nonpid_meminfo to procfs_read_nonpid_meminfo. Changed the call to procfs_write_nonpid_loadavg to procfs_read_nonpid_loadavg. Changed the call to procfs_write_nonpid_uptime to procfs_read_nonpid_uptime. Changed the call to procfs_write_nonpid_version to procfs_read_nonpid_version. netfs.c: (netfs_attempt_read): Changed the call from procfs_write_files_contents to procfs_read_files_contents.
Diffstat (limited to 'procfs_nonpid_files.c')
-rw-r--r--procfs_nonpid_files.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/procfs_nonpid_files.c b/procfs_nonpid_files.c
index 9cb0c57a..15c09190 100644
--- a/procfs_nonpid_files.c
+++ b/procfs_nonpid_files.c
@@ -263,7 +263,7 @@ error_t get_total_times (struct timeval *total_user_time,
return err;
}
-error_t procfs_write_nonpid_stat (struct dir_entry *dir_entry,
+error_t procfs_read_nonpid_stat (struct dir_entry *dir_entry,
off_t offset, size_t *len, void *data)
{
char *stat_data;
@@ -387,7 +387,7 @@ SWAP_FIELD (get_swap_page_size, def_pager_info.dpi_page_size)
SWAP_FIELD (get_swap_active, (def_pager_info.dpi_total_space
- def_pager_info.dpi_free_space))
-error_t procfs_write_nonpid_meminfo (struct dir_entry *dir_entry,
+error_t procfs_read_nonpid_meminfo (struct dir_entry *dir_entry,
off_t offset, size_t *len, void *data)
{
char *meminfo_data;
@@ -427,7 +427,7 @@ error_t procfs_write_nonpid_meminfo (struct dir_entry *dir_entry,
return err;
}
-error_t procfs_write_nonpid_loadavg (struct dir_entry *dir_entry,
+error_t procfs_read_nonpid_loadavg (struct dir_entry *dir_entry,
off_t offset, size_t *len, void *data)
{
char *loadavg_data;
@@ -455,7 +455,7 @@ error_t procfs_write_nonpid_loadavg (struct dir_entry *dir_entry,
return err;
}
-error_t procfs_write_nonpid_uptime (struct dir_entry *dir_entry,
+error_t procfs_read_nonpid_uptime (struct dir_entry *dir_entry,
off_t offset, size_t *len, void *data)
{
char *uptime_data;
@@ -497,7 +497,7 @@ error_t procfs_write_nonpid_uptime (struct dir_entry *dir_entry,
return err;
}
-error_t procfs_write_nonpid_version (struct dir_entry *dir_entry,
+error_t procfs_read_nonpid_version (struct dir_entry *dir_entry,
off_t offset, size_t *len, void *data)
{
char *version_data;