mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-27 17:11:46 +00:00
[PATCH] uml: umid cleanup
This patch cleans up the umid code: - The only_if_set argument to get_umid is gone. - get_umid returns an empty string rather than NULL if there is no umid. - umid_is_random is gone since its users went away. - Some printfs were turned into printks because the code runs late enough that printk is working. - Error paths were cleaned up. - Some functions now return an error and let the caller print the error message rather than printing it themselves. This eliminates the practice of passing a pointer to printf or printk in, depending on where in the boot process we are. - Major tidying of not_dead_yet - mostly error path cleanup, plus a comment explaining why it doesn't react to errors the way you might expect. - Calls to os_* interfaces that were moved under os are changed back to their native libc forms. - snprintf, strlcpy, and their bounds-checking friends are used more often, replacing by-hand bounds checking in some places. Signed-off-by: Jeff Dike <jdike@addtoit.com> Cc: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
2264c475e4
commit
7eebe8a9c5
6 changed files with 167 additions and 129 deletions
|
@ -64,7 +64,6 @@ extern void setup_machinename(char *machine_out);
|
|||
extern void setup_hostinfo(void);
|
||||
extern void do_exec(int old_pid, int new_pid);
|
||||
extern void tracer_panic(char *msg, ...);
|
||||
extern char *get_umid(int only_if_set);
|
||||
extern void do_longjmp(void *p, int val);
|
||||
extern int detach(int pid, int sig);
|
||||
extern int attach(int pid);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue