ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/i-scream/projects/pystatgrab/statgrab.py
(Generate patch)

Comparing projects/pystatgrab/statgrab.py (file contents):
Revision 1.5 by tdb, Sun May 30 15:32:28 2004 UTC vs.
Revision 1.6 by tdb, Sun May 30 16:41:03 2004 UTC

# Line 26 | Line 26 | def sg_init():
26      return _statgrab.py_sg_init()
27   def sg_drop_privileges():
28      return _statgrab.py_sg_drop_privileges()
29 + def sg_set_error(code, arg=''):
30 +    return _statgrab.py_sg_set_error(code, arg)
31 + def sg_get_error():
32 +    return _statgrab.py_sg_get_error()
33 + def sg_get_error_arg():
34 +    return _statgrab.py_sg_get_error_arg()
35 + def sg_str_error(code):
36 +    return _statgrab.py_sg_str_error(code)
37   def sg_get_host_info():
38      return _statgrab.py_sg_get_host_info()
39   def sg_get_cpu_stats():
# Line 58 | Line 66 | def sg_get_page_stats():
66      return _statgrab.py_sg_get_page_stats()
67   def sg_get_page_stats_diff():
68      return _statgrab.py_sg_get_page_stats_diff()
69 + def sg_get_process_stats():
70 +    return _statgrab.py_sg_get_process_stats()
71   def sg_get_process_count():
72      return _statgrab.py_sg_get_process_count()
73  
74 + SG_ERROR_NONE = _statgrab.py_SG_ERROR_NONE
75 + SG_ERROR_ASPRINTF = _statgrab.py_SG_ERROR_ASPRINTF
76 + SG_ERROR_DEVSTAT_GETDEVS = _statgrab.py_SG_ERROR_DEVSTAT_GETDEVS
77 + SG_ERROR_DEVSTAT_SELECTDEVS = _statgrab.py_SG_ERROR_DEVSTAT_SELECTDEVS
78 + SG_ERROR_ENOENT = _statgrab.py_SG_ERROR_ENOENT
79 + SG_ERROR_GETIFADDRS = _statgrab.py_SG_ERROR_GETIFADDRS
80 + SG_ERROR_GETMNTINFO = _statgrab.py_SG_ERROR_GETMNTINFO
81 + SG_ERROR_GETPAGESIZE = _statgrab.py_SG_ERROR_GETPAGESIZE
82 + SG_ERROR_KSTAT_DATA_LOOKUP = _statgrab.py_SG_ERROR_KSTAT_DATA_LOOKUP
83 + SG_ERROR_KSTAT_LOOKUP = _statgrab.py_SG_ERROR_KSTAT_LOOKUP
84 + SG_ERROR_KSTAT_OPEN = _statgrab.py_SG_ERROR_KSTAT_OPEN
85 + SG_ERROR_KSTAT_READ = _statgrab.py_SG_ERROR_KSTAT_READ
86 + SG_ERROR_KVM_GETSWAPINFO = _statgrab.py_SG_ERROR_KVM_GETSWAPINFO
87 + SG_ERROR_KVM_OPENFILES = _statgrab.py_SG_ERROR_KVM_OPENFILES
88 + SG_ERROR_MALLOC = _statgrab.py_SG_ERROR_MALLOC
89 + SG_ERROR_OPEN = _statgrab.py_SG_ERROR_OPEN
90 + SG_ERROR_OPENDIR = _statgrab.py_SG_ERROR_OPENDIR
91 + SG_ERROR_PARSE = _statgrab.py_SG_ERROR_PARSE
92 + SG_ERROR_SETEGID = _statgrab.py_SG_ERROR_SETEGID
93 + SG_ERROR_SETEUID = _statgrab.py_SG_ERROR_SETEUID
94 + SG_ERROR_SETMNTENT = _statgrab.py_SG_ERROR_SETMNTENT
95 + SG_ERROR_SOCKET = _statgrab.py_SG_ERROR_SOCKET
96 + SG_ERROR_SWAPCTL = _statgrab.py_SG_ERROR_SWAPCTL
97 + SG_ERROR_SYSCONF = _statgrab.py_SG_ERROR_SYSCONF
98 + SG_ERROR_SYSCTL = _statgrab.py_SG_ERROR_SYSCTL
99 + SG_ERROR_SYSCTLBYNAME = _statgrab.py_SG_ERROR_SYSCTLBYNAME
100 + SG_ERROR_SYSCTLNAMETOMIB = _statgrab.py_SG_ERROR_SYSCTLNAMETOMIB
101 + SG_ERROR_UNAME = _statgrab.py_SG_ERROR_UNAME
102 + SG_ERROR_UNSUPPORTED = _statgrab.py_SG_ERROR_UNSUPPORTED
103 + SG_ERROR_XSW_VER_MISMATCH = _statgrab.py_SG_ERROR_XSW_VER_MISMATCH
104 +
105   SG_IFACE_DUPLEX_FULL = _statgrab.py_SG_IFACE_DUPLEX_FULL
106   SG_IFACE_DUPLEX_HALF = _statgrab.py_SG_IFACE_DUPLEX_HALF
107   SG_IFACE_DUPLEX_UNKNOWN = _statgrab.py_SG_IFACE_DUPLEX_UNKNOWN
108 +
109 + SG_PROCESS_STATE_RUNNING = _statgrab.py_SG_PROCESS_STATE_RUNNING
110 + SG_PROCESS_STATE_SLEEPING = _statgrab.py_SG_PROCESS_STATE_SLEEPING
111 + SG_PROCESS_STATE_STOPPED = _statgrab.py_SG_PROCESS_STATE_STOPPED
112 + SG_PROCESS_STATE_ZOMBIE = _statgrab.py_SG_PROCESS_STATE_ZOMBIE
113 + SG_PROCESS_STATE_UNKNOWN = _statgrab.py_SG_PROCESS_STATE_UNKNOWN

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines