]>
Commit | Line | Data |
---|---|---|
5341464c JR |
1 | diff -ur udev-150/extras/ata_id/ata_id.c udev-150-uclibc/extras/ata_id/ata_id.c |
2 | --- udev-150/extras/ata_id/ata_id.c 2009-12-08 18:43:09.000000000 +0100 | |
3 | +++ udev-150-uclibc/extras/ata_id/ata_id.c 2010-01-19 17:10:19.000000000 +0100 | |
4 | @@ -168,7 +168,11 @@ | |
5 | uint16_t *p; | |
6 | ||
7 | p = (uint16_t *) identify; | |
8 | +#ifdef __UCLIBC__ | |
9 | + p[offset_words] = __le16_to_cpu (p[offset_words]); | |
10 | +#else | |
11 | p[offset_words] = le16toh (p[offset_words]); | |
12 | +#endif | |
13 | } | |
14 | ||
15 | /** | |
16 | diff -ur udev-150/udev/udevadm-info.c udev-150-uclibc/udev/udevadm-info.c | |
17 | --- udev-150/udev/udevadm-info.c 2009-12-24 20:40:34.000000000 +0100 | |
18 | +++ udev-150-uclibc/udev/udevadm-info.c 2010-01-19 17:47:00.000000000 +0100 | |
19 | @@ -43,6 +43,9 @@ | |
20 | struct stat statbuf; | |
21 | const char *value; | |
22 | size_t len; | |
23 | +#ifdef __UCLIBC__ | |
24 | + char filename[UTIL_PATH_SIZE]; | |
25 | +#endif | |
26 | ||
27 | if (dent->d_name[0] == '.') | |
28 | continue; | |
29 | @@ -52,7 +55,12 @@ | |
30 | if (strcmp(dent->d_name, "dev") == 0) | |
31 | continue; | |
32 | ||
33 | +#ifdef __UCLIBC__ | |
34 | + util_strscpyl(filename, sizeof(filename), udev_device_get_syspath(device), "/", dent->d_name, NULL); | |
35 | + if (lstat(filename, &statbuf) != 0) | |
36 | +#else | |
37 | if (fstatat(dirfd(dir), dent->d_name, &statbuf, AT_SYMLINK_NOFOLLOW) != 0) | |
38 | +#endif | |
39 | continue; | |
40 | if (S_ISLNK(statbuf.st_mode)) | |
41 | continue; | |
68e6cf25 | 42 |