diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/libbb.h | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/include/libbb.h b/include/libbb.h index 484f4e07b..ee5fb8475 100644 --- a/include/libbb.h +++ b/include/libbb.h | |||
@@ -131,6 +131,7 @@ extern int get_console_fd(void); | |||
131 | extern struct mntent *find_mount_point(const char *name, const char *table); | 131 | extern struct mntent *find_mount_point(const char *name, const char *table); |
132 | extern void erase_mtab(const char * name); | 132 | extern void erase_mtab(const char * name); |
133 | extern long *find_pid_by_name( const char* pidName); | 133 | extern long *find_pid_by_name( const char* pidName); |
134 | extern long *pidlist_reverse(long *pidList); | ||
134 | extern char *find_block_device(char *path); | 135 | extern char *find_block_device(char *path); |
135 | extern char *bb_get_line_from_file(FILE *file); | 136 | extern char *bb_get_line_from_file(FILE *file); |
136 | extern char *bb_get_chomped_line_from_file(FILE *file); | 137 | extern char *bb_get_chomped_line_from_file(FILE *file); |
@@ -431,6 +432,15 @@ extern ssize_t bb_xread(int fd, void *buf, size_t count); | |||
431 | extern void bb_xread_all(int fd, void *buf, size_t count); | 432 | extern void bb_xread_all(int fd, void *buf, size_t count); |
432 | extern unsigned char bb_xread_char(int fd); | 433 | extern unsigned char bb_xread_char(int fd); |
433 | 434 | ||
435 | #ifndef COMM_LEN | ||
436 | /*#include <sched.h> *//* Task command name length */ | ||
437 | #ifdef TASK_COMM_LEN | ||
438 | #define COMM_LEN TASK_COMM_LEN | ||
439 | #else | ||
440 | #define COMM_LEN 16 /* synchronize with size of comm in struct task_struct | ||
441 | in /usr/include/linux/sched.h */ | ||
442 | #endif | ||
443 | #endif | ||
434 | typedef struct { | 444 | typedef struct { |
435 | int pid; | 445 | int pid; |
436 | char user[9]; | 446 | char user[9]; |
@@ -446,7 +456,7 @@ typedef struct { | |||
446 | 456 | ||
447 | /* basename of executable file in call to exec(2), | 457 | /* basename of executable file in call to exec(2), |
448 | size from kernel headers */ | 458 | size from kernel headers */ |
449 | char short_cmd[16]; | 459 | char short_cmd[COMM_LEN]; |
450 | } procps_status_t; | 460 | } procps_status_t; |
451 | 461 | ||
452 | extern procps_status_t * procps_scan(int save_user_arg0); | 462 | extern procps_status_t * procps_scan(int save_user_arg0); |
@@ -460,6 +470,8 @@ typedef struct llist_s { | |||
460 | } llist_t; | 470 | } llist_t; |
461 | extern llist_t *llist_add_to(llist_t *old_head, char *new_item); | 471 | extern llist_t *llist_add_to(llist_t *old_head, char *new_item); |
462 | extern llist_t *llist_add_to_end(llist_t *list_head, char *data); | 472 | extern llist_t *llist_add_to_end(llist_t *list_head, char *data); |
473 | extern llist_t *llist_free_one(llist_t *elm); | ||
474 | extern void llist_free(llist_t *elm); | ||
463 | 475 | ||
464 | extern void print_login_issue(const char *issue_file, const char *tty); | 476 | extern void print_login_issue(const char *issue_file, const char *tty); |
465 | extern void print_login_prompt(void); | 477 | extern void print_login_prompt(void); |