diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/libbb.h | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/include/libbb.h b/include/libbb.h index 3b5f2979c..bc8112310 100644 --- a/include/libbb.h +++ b/include/libbb.h | |||
@@ -127,7 +127,7 @@ extern void write_mtab(char* blockDevice, char* directory, | |||
127 | char* filesystemType, long flags, char* string_flags); | 127 | char* filesystemType, long flags, char* string_flags); |
128 | extern void erase_mtab(const char * name); | 128 | extern void erase_mtab(const char * name); |
129 | extern long atoi_w_units (const char *cp); | 129 | extern long atoi_w_units (const char *cp); |
130 | extern long* find_pid_by_name( char* pidName); | 130 | extern long* find_pid_by_name( const char* pidName); |
131 | extern char *find_real_root_device_name(const char* name); | 131 | extern char *find_real_root_device_name(const char* name); |
132 | extern char *get_line_from_file(FILE *file); | 132 | extern char *get_line_from_file(FILE *file); |
133 | extern void print_file(FILE *file); | 133 | extern void print_file(FILE *file); |
@@ -337,4 +337,23 @@ extern ssize_t xread_all_eof(int fd, void *buf, size_t count); | |||
337 | extern void xread_all(int fd, void *buf, size_t count); | 337 | extern void xread_all(int fd, void *buf, size_t count); |
338 | extern unsigned char xread_char(int fd); | 338 | extern unsigned char xread_char(int fd); |
339 | 339 | ||
340 | typedef struct { | ||
341 | int pid; | ||
342 | char user[9]; | ||
343 | char state[4]; | ||
344 | unsigned long rss; | ||
345 | int ppid; | ||
346 | #ifdef FEATURE_CPU_USAGE_PERCENTAGE | ||
347 | unsigned pcpu; | ||
348 | unsigned long stime, utime; | ||
349 | #endif | ||
350 | char *cmd; | ||
351 | |||
352 | /* basename of executable file in call to exec(2), | ||
353 | size from kernel headers */ | ||
354 | char short_cmd[16]; | ||
355 | } procps_status_t; | ||
356 | |||
357 | extern procps_status_t * procps_scan(int save_user_arg0); | ||
358 | |||
340 | #endif /* __LIBCONFIG_H__ */ | 359 | #endif /* __LIBCONFIG_H__ */ |