aboutsummaryrefslogtreecommitdiff
path: root/procfs_pid.h
diff options
context:
space:
mode:
authorMadhusudan.C.S <madhusudancs@gmail.com>2008-08-14 15:24:00 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2010-08-01 01:15:27 +0200
commitc15f3bee8d46f05afe1d3f582778d74c7e706485 (patch)
treee40cac39786393c493ff4b65e67da528c71328fe /procfs_pid.h
downloadhurd-c15f3bee8d46f05afe1d3f582778d74c7e706485.tar.gz
hurd-c15f3bee8d46f05afe1d3f582778d74c7e706485.tar.bz2
hurd-c15f3bee8d46f05afe1d3f582778d74c7e706485.zip
2008-08-14 Madhusudan.C.S <madhusudancs@gmail.com>
* ChangeLog: New file added to procfs * AUTHORS: New file added to procfs * COPYING: New file added to procfs * README: New file added to procfs * Makefile: New file added to procfs * bootstrap.c: New file added to procfs * netfs.c: New file added to procfs * node.c: New file added to procfs * procfs.c: New file added to procfs * procfs.h: New file added to procfs * procfs_dir.c: New file added to procfs * procfs_nonpid_files.c: New file added to procfs * procfs_pid.h: New file added to procfs * procfs_pid_files.c: New file added to procfs
Diffstat (limited to 'procfs_pid.h')
-rw-r--r--procfs_pid.h86
1 files changed, 86 insertions, 0 deletions
diff --git a/procfs_pid.h b/procfs_pid.h
new file mode 100644
index 00000000..811cca84
--- /dev/null
+++ b/procfs_pid.h
@@ -0,0 +1,86 @@
+/* procfs -- a translator for providing GNU/Linux compatible
+ proc pseudo-filesystem
+
+ procfs_pid.h -- This is the header file of which contains defintions
+ for structure of directory with PID as the name and
+ structure of each file in this directory.
+
+ Copyright (C) 2008, FSF.
+ Written as a Summer of Code Project
+
+ procfs is free software; you can redistribute it and/or
+ modify it under the terms of the GNU General Public License as
+ published by the Free Software Foundation; either version 2, or (at
+ your option) any later version.
+
+ procfs is distributed in the hope that it will be useful, but
+ WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program; if not, write to the Free Software
+ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
+*/
+
+#ifndef __PROCFS_PID_H__
+#define __PROCFS_PID_H__
+
+struct procfs_pid_files
+{
+ struct procfs_cwd *procfs_cwd;
+ struct procfs_environ *procfs_environ;
+ struct procfs_cpu *procfs_cpu;
+ struct procfs_root *procfs_root;
+ struct procfs_exe *procfs_exe;
+ struct procfs_stat *_procfs_stat;
+ struct procfs_statm *procfs_statm;
+};
+
+struct procfs_stat
+{
+ pid_t pid;
+ char *comm;
+ char *state;
+ pid_t ppid;
+ pid_t pgid;
+ pid_t sid;
+ int tty_nr;
+ pid_t tty_pgrp;
+ unsigned flags;
+ long unsigned minflt;
+ long unsigned cminflt;
+ long unsigned majflt;
+ long unsigned cmajflt;
+ time_t utime;
+ time_t stime;
+ time_t cutime;
+ time_t cstime;
+ long priority;
+ long nice;
+ long num_threads;
+ long itrealvalue;
+ long long unsigned starttime;
+ long unsigned vsize;
+ long rss;
+ long unsigned rlim;
+ long unsigned startcode;
+ long unsigned endcode;
+ long unsigned startstack;
+ long unsigned kstkesp;
+ long unsigned kstkeip;
+ long unsigned signal;
+ long unsigned blocked;
+ long unsigned sigignore;
+ long unsigned sigcatch;
+ long unsigned wchan;
+ long unsigned nswap;
+ long unsigned cnswap;
+ int exit_signal;
+ int processor;
+ unsigned rt_priority;
+ unsigned policy;
+ long long unsigned delayacct_blkio_ticks;
+};
+
+#endif