diff options
| author | Colin Cross <ccross@android.com> | 2010-04-21 12:04:20 -0700 |
|---|---|---|
| committer | Colin Cross <ccross@android.com> | 2010-04-21 20:59:38 -0700 |
| commit | f83d0b9af5cbe4440cc41ceaa8a7806a13c86282 (patch) | |
| tree | a72019f866501f5536271018dfa324492e65caef /init/util.h | |
| parent | 6310a8261c922533a692fb3e74ece2da98d4bafa (diff) | |
| download | system_core-f83d0b9af5cbe4440cc41ceaa8a7806a13c86282.tar.gz system_core-f83d0b9af5cbe4440cc41ceaa8a7806a13c86282.tar.bz2 system_core-f83d0b9af5cbe4440cc41ceaa8a7806a13c86282.zip | |
init: Move uevent handling to an external ueventd process
Change-Id: Iea6c56013062ade633a1754f7bcf8cf09b3dedc1
Diffstat (limited to 'init/util.h')
| -rw-r--r-- | init/util.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/init/util.h b/init/util.h index bf7928d3..5fcd2ec3 100644 --- a/init/util.h +++ b/init/util.h @@ -17,6 +17,11 @@ #ifndef _INIT_UTIL_H_ #define _INIT_UTIL_H_ +#include <sys/stat.h> +#include <sys/types.h> + +static const char *coldboot_done = "/dev/.coldboot_done"; + int mtd_name_to_number(const char *name); int create_socket(const char *name, int type, mode_t perm, uid_t uid, gid_t gid); @@ -29,4 +34,6 @@ void sanitize(char *p); void make_link(const char *oldpath, const char *newpath); void remove_link(const char *oldpath, const char *newpath); int wait_for_file(const char *filename, int timeout); +void open_devnull_stdio(void); +void get_hardware_name(char *hardware, unsigned int *revision); #endif |
