| udev.h | | udev.h | |
| | | | |
| skipping to change at line 61 | | skipping to change at line 61 | |
| DEV_DEVICE, | | DEV_DEVICE, | |
| }; | | }; | |
| | | | |
| struct udevice { | | struct udevice { | |
| char devpath[PATH_SIZE]; | | char devpath[PATH_SIZE]; | |
| char subsystem[NAME_SIZE]; | | char subsystem[NAME_SIZE]; | |
| char action[NAME_SIZE]; | | char action[NAME_SIZE]; | |
| | | | |
| enum device_type type; | | enum device_type type; | |
| char name[PATH_SIZE]; | | char name[PATH_SIZE]; | |
|
| char devname[PATH_SIZE]; | | | |
| struct list_head symlink_list; | | struct list_head symlink_list; | |
| int symlink_final; | | int symlink_final; | |
| char owner[USER_SIZE]; | | char owner[USER_SIZE]; | |
| int owner_final; | | int owner_final; | |
| char group[USER_SIZE]; | | char group[USER_SIZE]; | |
| int group_final; | | int group_final; | |
| mode_t mode; | | mode_t mode; | |
| int mode_final; | | int mode_final; | |
| dev_t devt; | | dev_t devt; | |
| struct list_head run_list; | | struct list_head run_list; | |
| int run_final; | | int run_final; | |
| struct list_head env_list; | | struct list_head env_list; | |
| | | | |
| char tmp_node[PATH_SIZE]; | | char tmp_node[PATH_SIZE]; | |
| int partitions; | | int partitions; | |
| int ignore_device; | | int ignore_device; | |
| int ignore_remove; | | int ignore_remove; | |
|
| int config_line; | | | |
| char config_file[PATH_SIZE]; | | | |
| char bus_id[NAME_SIZE]; | | char bus_id[NAME_SIZE]; | |
| char program_result[PATH_SIZE]; | | char program_result[PATH_SIZE]; | |
| char kernel_number[NAME_SIZE]; | | char kernel_number[NAME_SIZE]; | |
| char kernel_name[NAME_SIZE]; | | char kernel_name[NAME_SIZE]; | |
| int test_run; | | int test_run; | |
| }; | | }; | |
| | | | |
| extern int udev_init_device(struct udevice *udev, const char* devpath, cons
t char *subsystem, const char *action); | | extern int udev_init_device(struct udevice *udev, const char* devpath, cons
t char *subsystem, const char *action); | |
| extern void udev_cleanup_device(struct udevice *udev); | | extern void udev_cleanup_device(struct udevice *udev); | |
| extern dev_t get_devt(struct sysfs_class_device *class_dev); | | extern dev_t get_devt(struct sysfs_class_device *class_dev); | |
| | | | |
End of changes. 2 change blocks. |
| 3 lines changed or deleted | | 0 lines changed or added | |
|
| udev_libc_wrapper.h | | udev_libc_wrapper.h | |
| | | | |
| skipping to change at line 141 | | skipping to change at line 141 | |
| | | | |
| /* missing in some lazy distros */ | | /* missing in some lazy distros */ | |
| #ifndef NETLINK_KOBJECT_UEVENT | | #ifndef NETLINK_KOBJECT_UEVENT | |
| #define NETLINK_KOBJECT_UEVENT 15 | | #define NETLINK_KOBJECT_UEVENT 15 | |
| #endif | | #endif | |
| | | | |
| #ifndef SO_RCVBUFFORCE | | #ifndef SO_RCVBUFFORCE | |
| #define SO_RCVBUFFORCE 33 | | #define SO_RCVBUFFORCE 33 | |
| #endif | | #endif | |
| | | | |
|
| #ifdef __KLIBC__ | | | |
| static inline int clearenv(void) | | | |
| { | | | |
| environ[0] = NULL; | | | |
| return 0; | | | |
| } | | | |
| #endif | | | |
| | | | |
| extern uid_t lookup_user(const char *user); | | extern uid_t lookup_user(const char *user); | |
| extern gid_t lookup_group(const char *group); | | extern gid_t lookup_group(const char *group); | |
| | | | |
| extern size_t strlcpy(char *dst, const char *src, size_t size); | | extern size_t strlcpy(char *dst, const char *src, size_t size); | |
| extern size_t strlcat(char *dst, const char *src, size_t size); | | extern size_t strlcat(char *dst, const char *src, size_t size); | |
| | | | |
| #endif /* _UDEV_LIBC_WRAPPER_H_ */ | | #endif /* _UDEV_LIBC_WRAPPER_H_ */ | |
| | | | |
End of changes. 1 change blocks. |
| 8 lines changed or deleted | | 0 lines changed or added | |
|