uclibc-0004-libc-sysdeps-add-__kernel_long-and-__kernel_ulong.patch 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393
  1. From 7fef6b983456e4c529a5239ea90715050e6f4452 Mon Sep 17 00:00:00 2001
  2. From: Chris Packham <chris.packham@alliedtelesis.co.nz>
  3. Date: Mon, 1 Oct 2012 18:12:54 +1300
  4. Subject: [PATCH 4/8] libc/sysdeps: add __kernel_long and __kernel_ulong
  5. Linux 3.4 added __kernel_long_t and __kernel_ulong_t and various
  6. exported header files were updated to use these new types. Add the
  7. definitions for __kernel_long_t and __kernel_ulong_t to the relevant
  8. kernel_types.h headers.
  9. This change was automated with the following scriptlet
  10. git grep --name-only 'typedef.*__kernel_old_dev_t' \
  11. | xargs sed -i '/typedef.*__kernel_old_dev_t/ a\
  12. typedef long\t\t__kernel_long_t;\
  13. typedef unsigned long\t__kernel_ulong_t;'
  14. Whitespace in arm, avr32, hppa, sparc was then manually fixed up.
  15. Signed-off-by: Chris Packham <chris.packham@alliedtelesis.co.nz>
  16. --
  17. Here's a cleaned up patch which should get the whitespace right. I'm a
  18. bit iffy about the sparc changes they make sense to me but it's not a
  19. platform I have access to.
  20. I can break this up per arch or per maintainer if requested.
  21. libc/sysdeps/linux/alpha/bits/kernel_types.h | 2 ++
  22. libc/sysdeps/linux/arm/bits/kernel_types.h | 2 ++
  23. libc/sysdeps/linux/avr32/bits/kernel_types.h | 2 ++
  24. libc/sysdeps/linux/bfin/bits/kernel_types.h | 2 ++
  25. libc/sysdeps/linux/c6x/bits/kernel_types.h | 2 ++
  26. libc/sysdeps/linux/cris/bits/kernel_types.h | 2 ++
  27. libc/sysdeps/linux/e1/bits/kernel_types.h | 2 ++
  28. libc/sysdeps/linux/h8300/bits/kernel_types.h | 2 ++
  29. libc/sysdeps/linux/hppa/bits/kernel_types.h | 2 ++
  30. libc/sysdeps/linux/i386/bits/kernel_types.h | 2 ++
  31. libc/sysdeps/linux/ia64/bits/kernel_types.h | 2 ++
  32. libc/sysdeps/linux/m68k/bits/kernel_types.h | 2 ++
  33. libc/sysdeps/linux/microblaze/bits/kernel_types.h | 2 ++
  34. libc/sysdeps/linux/mips/bits/kernel_types.h | 4 ++++
  35. libc/sysdeps/linux/nios2/bits/kernel_types.h | 2 ++
  36. libc/sysdeps/linux/powerpc/bits/kernel_types.h | 4 ++++
  37. libc/sysdeps/linux/sh/bits/kernel_types.h | 2 ++
  38. libc/sysdeps/linux/sh64/bits/kernel_types.h | 2 ++
  39. libc/sysdeps/linux/sparc/bits/kernel_types.h | 4 ++++
  40. libc/sysdeps/linux/v850/bits/kernel_types.h | 2 ++
  41. libc/sysdeps/linux/x86_64/bits/kernel_types.h | 2 ++
  42. libc/sysdeps/linux/xtensa/bits/kernel_types.h | 2 ++
  43. 22 files changed, 50 insertions(+)
  44. Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
  45. Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
  46. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
  47. ---
  48. libc/sysdeps/linux/alpha/bits/kernel_types.h | 2 ++
  49. libc/sysdeps/linux/arm/bits/kernel_types.h | 2 ++
  50. libc/sysdeps/linux/avr32/bits/kernel_types.h | 2 ++
  51. libc/sysdeps/linux/bfin/bits/kernel_types.h | 2 ++
  52. libc/sysdeps/linux/c6x/bits/kernel_types.h | 2 ++
  53. libc/sysdeps/linux/cris/bits/kernel_types.h | 2 ++
  54. libc/sysdeps/linux/e1/bits/kernel_types.h | 2 ++
  55. libc/sysdeps/linux/h8300/bits/kernel_types.h | 2 ++
  56. libc/sysdeps/linux/hppa/bits/kernel_types.h | 2 ++
  57. libc/sysdeps/linux/i386/bits/kernel_types.h | 2 ++
  58. libc/sysdeps/linux/ia64/bits/kernel_types.h | 2 ++
  59. libc/sysdeps/linux/m68k/bits/kernel_types.h | 2 ++
  60. libc/sysdeps/linux/microblaze/bits/kernel_types.h | 2 ++
  61. libc/sysdeps/linux/mips/bits/kernel_types.h | 4 ++++
  62. libc/sysdeps/linux/nios2/bits/kernel_types.h | 2 ++
  63. libc/sysdeps/linux/powerpc/bits/kernel_types.h | 4 ++++
  64. libc/sysdeps/linux/sh/bits/kernel_types.h | 2 ++
  65. libc/sysdeps/linux/sh64/bits/kernel_types.h | 2 ++
  66. libc/sysdeps/linux/sparc/bits/kernel_types.h | 4 ++++
  67. libc/sysdeps/linux/v850/bits/kernel_types.h | 2 ++
  68. libc/sysdeps/linux/x86_64/bits/kernel_types.h | 2 ++
  69. libc/sysdeps/linux/xtensa/bits/kernel_types.h | 2 ++
  70. 22 files changed, 50 insertions(+)
  71. diff --git a/libc/sysdeps/linux/alpha/bits/kernel_types.h b/libc/sysdeps/linux/alpha/bits/kernel_types.h
  72. index d5574c9..cd59b9d 100644
  73. --- a/libc/sysdeps/linux/alpha/bits/kernel_types.h
  74. +++ b/libc/sysdeps/linux/alpha/bits/kernel_types.h
  75. @@ -33,6 +33,8 @@ typedef __kernel_gid_t __kernel_old_gid_t;
  76. typedef __kernel_uid_t __kernel_uid32_t;
  77. typedef __kernel_gid_t __kernel_gid32_t;
  78. typedef __kernel_dev_t __kernel_old_dev_t;
  79. +typedef long __kernel_long_t;
  80. +typedef unsigned long __kernel_ulong_t;
  81. typedef struct {
  82. int val[2];
  83. diff --git a/libc/sysdeps/linux/arm/bits/kernel_types.h b/libc/sysdeps/linux/arm/bits/kernel_types.h
  84. index 766a306..6b36f32 100644
  85. --- a/libc/sysdeps/linux/arm/bits/kernel_types.h
  86. +++ b/libc/sysdeps/linux/arm/bits/kernel_types.h
  87. @@ -32,6 +32,8 @@ typedef unsigned short __kernel_old_uid_t;
  88. typedef unsigned short __kernel_old_gid_t;
  89. typedef long long __kernel_loff_t;
  90. typedef __kernel_dev_t __kernel_old_dev_t;
  91. +typedef long __kernel_long_t;
  92. +typedef unsigned long __kernel_ulong_t;
  93. typedef struct {
  94. #ifdef __USE_ALL
  95. diff --git a/libc/sysdeps/linux/avr32/bits/kernel_types.h b/libc/sysdeps/linux/avr32/bits/kernel_types.h
  96. index f7d8b52..c551d57 100644
  97. --- a/libc/sysdeps/linux/avr32/bits/kernel_types.h
  98. +++ b/libc/sysdeps/linux/avr32/bits/kernel_types.h
  99. @@ -39,6 +39,8 @@ typedef unsigned int __kernel_gid32_t;
  100. typedef unsigned short __kernel_old_uid_t;
  101. typedef unsigned short __kernel_old_gid_t;
  102. typedef unsigned short __kernel_old_dev_t;
  103. +typedef long __kernel_long_t;
  104. +typedef unsigned long __kernel_ulong_t;
  105. #ifdef __GNUC__
  106. typedef long long __kernel_loff_t;
  107. diff --git a/libc/sysdeps/linux/bfin/bits/kernel_types.h b/libc/sysdeps/linux/bfin/bits/kernel_types.h
  108. index d69a875..9fec595 100644
  109. --- a/libc/sysdeps/linux/bfin/bits/kernel_types.h
  110. +++ b/libc/sysdeps/linux/bfin/bits/kernel_types.h
  111. @@ -32,6 +32,8 @@ typedef unsigned short __kernel_old_uid_t;
  112. typedef unsigned short __kernel_old_gid_t;
  113. typedef long long __kernel_loff_t;
  114. typedef __kernel_dev_t __kernel_old_dev_t;
  115. +typedef long __kernel_long_t;
  116. +typedef unsigned long __kernel_ulong_t;
  117. typedef struct {
  118. #ifdef __USE_ALL
  119. diff --git a/libc/sysdeps/linux/c6x/bits/kernel_types.h b/libc/sysdeps/linux/c6x/bits/kernel_types.h
  120. index 7557309..2c363a8 100644
  121. --- a/libc/sysdeps/linux/c6x/bits/kernel_types.h
  122. +++ b/libc/sysdeps/linux/c6x/bits/kernel_types.h
  123. @@ -22,6 +22,8 @@ typedef unsigned int __kernel_gid32_t;
  124. typedef unsigned int __kernel_old_uid_t;
  125. typedef unsigned int __kernel_old_gid_t;
  126. typedef unsigned int __kernel_old_dev_t;
  127. +typedef long __kernel_long_t;
  128. +typedef unsigned long __kernel_ulong_t;
  129. typedef unsigned int __kernel_size_t;
  130. typedef int __kernel_ssize_t;
  131. typedef int __kernel_ptrdiff_t;
  132. diff --git a/libc/sysdeps/linux/cris/bits/kernel_types.h b/libc/sysdeps/linux/cris/bits/kernel_types.h
  133. index f122c7f..5d31f7b 100644
  134. --- a/libc/sysdeps/linux/cris/bits/kernel_types.h
  135. +++ b/libc/sysdeps/linux/cris/bits/kernel_types.h
  136. @@ -28,6 +28,8 @@ typedef unsigned int __kernel_gid32_t;
  137. typedef unsigned short __kernel_old_uid_t;
  138. typedef unsigned short __kernel_old_gid_t;
  139. typedef __kernel_dev_t __kernel_old_dev_t;
  140. +typedef long __kernel_long_t;
  141. +typedef unsigned long __kernel_ulong_t;
  142. #ifdef __GNUC__
  143. typedef long long __kernel_loff_t;
  144. diff --git a/libc/sysdeps/linux/e1/bits/kernel_types.h b/libc/sysdeps/linux/e1/bits/kernel_types.h
  145. index 8017d85..f55a129 100644
  146. --- a/libc/sysdeps/linux/e1/bits/kernel_types.h
  147. +++ b/libc/sysdeps/linux/e1/bits/kernel_types.h
  148. @@ -31,6 +31,8 @@ typedef unsigned int __kernel_gid32_t;
  149. typedef unsigned short __kernel_old_uid_t;
  150. typedef unsigned short __kernel_old_gid_t;
  151. typedef __kernel_dev_t __kernel_old_dev_t;
  152. +typedef long __kernel_long_t;
  153. +typedef unsigned long __kernel_ulong_t;
  154. typedef long long __kernel_loff_t;
  155. /*
  156. diff --git a/libc/sysdeps/linux/h8300/bits/kernel_types.h b/libc/sysdeps/linux/h8300/bits/kernel_types.h
  157. index 0570675..4cfd1bf 100644
  158. --- a/libc/sysdeps/linux/h8300/bits/kernel_types.h
  159. +++ b/libc/sysdeps/linux/h8300/bits/kernel_types.h
  160. @@ -32,6 +32,8 @@ typedef unsigned short __kernel_old_uid_t;
  161. typedef unsigned short __kernel_old_gid_t;
  162. typedef long long __kernel_loff_t;
  163. typedef __kernel_dev_t __kernel_old_dev_t;
  164. +typedef long __kernel_long_t;
  165. +typedef unsigned long __kernel_ulong_t;
  166. typedef struct {
  167. #ifdef __USE_ALL
  168. diff --git a/libc/sysdeps/linux/hppa/bits/kernel_types.h b/libc/sysdeps/linux/hppa/bits/kernel_types.h
  169. index 4441f9b..6b2e794 100644
  170. --- a/libc/sysdeps/linux/hppa/bits/kernel_types.h
  171. +++ b/libc/sysdeps/linux/hppa/bits/kernel_types.h
  172. @@ -45,6 +45,8 @@ typedef long long __kernel_off64_t;
  173. typedef unsigned long long __kernel_ino64_t;
  174. typedef unsigned int __kernel_old_dev_t;
  175. +typedef long __kernel_long_t;
  176. +typedef unsigned long __kernel_ulong_t;
  177. typedef struct {
  178. #ifdef __USE_ALL
  179. diff --git a/libc/sysdeps/linux/i386/bits/kernel_types.h b/libc/sysdeps/linux/i386/bits/kernel_types.h
  180. index 9c07c72..59044b8 100644
  181. --- a/libc/sysdeps/linux/i386/bits/kernel_types.h
  182. +++ b/libc/sysdeps/linux/i386/bits/kernel_types.h
  183. @@ -40,6 +40,8 @@ typedef unsigned int __kernel_gid32_t;
  184. typedef unsigned short __kernel_old_uid_t;
  185. typedef unsigned short __kernel_old_gid_t;
  186. typedef __kernel_dev_t __kernel_old_dev_t;
  187. +typedef long __kernel_long_t;
  188. +typedef unsigned long __kernel_ulong_t;
  189. typedef long long __kernel_loff_t;
  190. typedef struct {
  191. diff --git a/libc/sysdeps/linux/ia64/bits/kernel_types.h b/libc/sysdeps/linux/ia64/bits/kernel_types.h
  192. index c8ef86d..e31dc65 100644
  193. --- a/libc/sysdeps/linux/ia64/bits/kernel_types.h
  194. +++ b/libc/sysdeps/linux/ia64/bits/kernel_types.h
  195. @@ -52,5 +52,7 @@ typedef __kernel_gid_t __kernel_gid32_t;
  196. typedef unsigned int __kernel_dev_t;
  197. typedef unsigned int __kernel_old_dev_t;
  198. +typedef long __kernel_long_t;
  199. +typedef unsigned long __kernel_ulong_t;
  200. #endif /* _ASM_IA64_POSIX_TYPES_H */
  201. diff --git a/libc/sysdeps/linux/m68k/bits/kernel_types.h b/libc/sysdeps/linux/m68k/bits/kernel_types.h
  202. index 0a77a8f..176b968 100644
  203. --- a/libc/sysdeps/linux/m68k/bits/kernel_types.h
  204. +++ b/libc/sysdeps/linux/m68k/bits/kernel_types.h
  205. @@ -32,6 +32,8 @@ typedef unsigned short __kernel_old_uid_t;
  206. typedef unsigned short __kernel_old_gid_t;
  207. typedef long long __kernel_loff_t;
  208. typedef __kernel_dev_t __kernel_old_dev_t;
  209. +typedef long __kernel_long_t;
  210. +typedef unsigned long __kernel_ulong_t;
  211. typedef struct {
  212. #ifdef __USE_ALL
  213. diff --git a/libc/sysdeps/linux/microblaze/bits/kernel_types.h b/libc/sysdeps/linux/microblaze/bits/kernel_types.h
  214. index 2a70575..a9f736b 100644
  215. --- a/libc/sysdeps/linux/microblaze/bits/kernel_types.h
  216. +++ b/libc/sysdeps/linux/microblaze/bits/kernel_types.h
  217. @@ -44,6 +44,8 @@ typedef unsigned int __kernel_gid32_t;
  218. typedef unsigned int __kernel_old_uid_t;
  219. typedef unsigned int __kernel_old_gid_t;
  220. typedef unsigned int __kernel_old_dev_t;
  221. +typedef long __kernel_long_t;
  222. +typedef unsigned long __kernel_ulong_t;
  223. #ifdef __GNUC__
  224. typedef long long __kernel_loff_t;
  225. diff --git a/libc/sysdeps/linux/mips/bits/kernel_types.h b/libc/sysdeps/linux/mips/bits/kernel_types.h
  226. index 9fc3b96..97faeac 100644
  227. --- a/libc/sysdeps/linux/mips/bits/kernel_types.h
  228. +++ b/libc/sysdeps/linux/mips/bits/kernel_types.h
  229. @@ -32,6 +32,8 @@ typedef int __kernel_gid32_t;
  230. typedef __kernel_uid_t __kernel_old_uid_t;
  231. typedef __kernel_gid_t __kernel_old_gid_t;
  232. typedef __kernel_dev_t __kernel_old_dev_t;
  233. +typedef long __kernel_long_t;
  234. +typedef unsigned long __kernel_ulong_t;
  235. typedef long long __kernel_loff_t;
  236. #else
  237. typedef unsigned int __kernel_dev_t;
  238. @@ -68,6 +70,8 @@ typedef int __kernel_gid32_t;
  239. typedef __kernel_uid_t __kernel_old_uid_t;
  240. typedef __kernel_gid_t __kernel_old_gid_t;
  241. typedef __kernel_dev_t __kernel_old_dev_t;
  242. +typedef long __kernel_long_t;
  243. +typedef unsigned long __kernel_ulong_t;
  244. typedef long long __kernel_loff_t;
  245. #endif
  246. diff --git a/libc/sysdeps/linux/nios2/bits/kernel_types.h b/libc/sysdeps/linux/nios2/bits/kernel_types.h
  247. index 8b86d79..3c030e7 100644
  248. --- a/libc/sysdeps/linux/nios2/bits/kernel_types.h
  249. +++ b/libc/sysdeps/linux/nios2/bits/kernel_types.h
  250. @@ -31,6 +31,8 @@ typedef unsigned int __kernel_gid32_t;
  251. typedef unsigned short __kernel_old_uid_t;
  252. typedef unsigned short __kernel_old_gid_t;
  253. typedef unsigned short __kernel_old_dev_t;
  254. +typedef long __kernel_long_t;
  255. +typedef unsigned long __kernel_ulong_t;
  256. typedef long long __kernel_loff_t;
  257. typedef struct {
  258. diff --git a/libc/sysdeps/linux/powerpc/bits/kernel_types.h b/libc/sysdeps/linux/powerpc/bits/kernel_types.h
  259. index 3f3b933..1167de2 100644
  260. --- a/libc/sysdeps/linux/powerpc/bits/kernel_types.h
  261. +++ b/libc/sysdeps/linux/powerpc/bits/kernel_types.h
  262. @@ -36,6 +36,8 @@ typedef unsigned int __kernel_gid32_t;
  263. typedef unsigned int __kernel_old_uid_t;
  264. typedef unsigned int __kernel_old_gid_t;
  265. typedef __kernel_dev_t __kernel_old_dev_t;
  266. +typedef long __kernel_long_t;
  267. +typedef unsigned long __kernel_ulong_t;
  268. #else
  269. typedef unsigned int __kernel_dev_t;
  270. typedef unsigned int __kernel_ino_t;
  271. @@ -61,6 +63,8 @@ typedef unsigned int __kernel_gid32_t;
  272. typedef unsigned int __kernel_old_uid_t;
  273. typedef unsigned int __kernel_old_gid_t;
  274. typedef __kernel_dev_t __kernel_old_dev_t;
  275. +typedef long __kernel_long_t;
  276. +typedef unsigned long __kernel_ulong_t;
  277. typedef long long __kernel_loff_t;
  278. #endif
  279. diff --git a/libc/sysdeps/linux/sh/bits/kernel_types.h b/libc/sysdeps/linux/sh/bits/kernel_types.h
  280. index f96e9fa..ac97261 100644
  281. --- a/libc/sysdeps/linux/sh/bits/kernel_types.h
  282. +++ b/libc/sysdeps/linux/sh/bits/kernel_types.h
  283. @@ -32,6 +32,8 @@ typedef unsigned int __kernel_gid32_t;
  284. typedef unsigned short __kernel_old_uid_t;
  285. typedef unsigned short __kernel_old_gid_t;
  286. typedef __kernel_dev_t __kernel_old_dev_t;
  287. +typedef long __kernel_long_t;
  288. +typedef unsigned long __kernel_ulong_t;
  289. typedef long long __kernel_loff_t;
  290. typedef struct {
  291. diff --git a/libc/sysdeps/linux/sh64/bits/kernel_types.h b/libc/sysdeps/linux/sh64/bits/kernel_types.h
  292. index 671cc83..8cc6c61 100644
  293. --- a/libc/sysdeps/linux/sh64/bits/kernel_types.h
  294. +++ b/libc/sysdeps/linux/sh64/bits/kernel_types.h
  295. @@ -43,6 +43,8 @@ typedef unsigned int __kernel_gid32_t;
  296. typedef unsigned short __kernel_old_uid_t;
  297. typedef unsigned short __kernel_old_gid_t;
  298. typedef __kernel_dev_t __kernel_old_dev_t;
  299. +typedef long __kernel_long_t;
  300. +typedef unsigned long __kernel_ulong_t;
  301. typedef long long __kernel_loff_t;
  302. typedef struct {
  303. diff --git a/libc/sysdeps/linux/sparc/bits/kernel_types.h b/libc/sysdeps/linux/sparc/bits/kernel_types.h
  304. index 0cc4bc2..a10e075 100644
  305. --- a/libc/sysdeps/linux/sparc/bits/kernel_types.h
  306. +++ b/libc/sysdeps/linux/sparc/bits/kernel_types.h
  307. @@ -32,6 +32,8 @@ typedef unsigned short __kernel_gid16_t;
  308. typedef __kernel_uid_t __kernel_old_uid_t;
  309. typedef __kernel_gid_t __kernel_old_gid_t;
  310. typedef __kernel_dev_t __kernel_old_dev_t;
  311. +typedef long __kernel_long_t;
  312. +typedef unsigned long __kernel_ulong_t;
  313. typedef __kernel_uid_t __kernel_uid32_t;
  314. typedef __kernel_gid_t __kernel_gid32_t;
  315. typedef int __kernel_suseconds_t;
  316. @@ -62,6 +64,8 @@ typedef unsigned int __kernel_gid32_t;
  317. typedef unsigned short __kernel_old_uid_t;
  318. typedef unsigned short __kernel_old_gid_t;
  319. typedef __kernel_dev_t __kernel_old_dev_t;
  320. +typedef long __kernel_long_t;
  321. +typedef unsigned long __kernel_ulong_t;
  322. typedef long long __kernel_loff_t;
  323. #endif
  324. diff --git a/libc/sysdeps/linux/v850/bits/kernel_types.h b/libc/sysdeps/linux/v850/bits/kernel_types.h
  325. index 3e851ab..780aa8a 100644
  326. --- a/libc/sysdeps/linux/v850/bits/kernel_types.h
  327. +++ b/libc/sysdeps/linux/v850/bits/kernel_types.h
  328. @@ -41,6 +41,8 @@ typedef unsigned int __kernel_gid32_t;
  329. typedef unsigned short __kernel_old_uid_t;
  330. typedef unsigned short __kernel_old_gid_t;
  331. typedef __kernel_dev_t __kernel_old_dev_t;
  332. +typedef long __kernel_long_t;
  333. +typedef unsigned long __kernel_ulong_t;
  334. typedef struct {
  335. #ifdef __USE_ALL
  336. diff --git a/libc/sysdeps/linux/x86_64/bits/kernel_types.h b/libc/sysdeps/linux/x86_64/bits/kernel_types.h
  337. index de800d7..0cae08c 100644
  338. --- a/libc/sysdeps/linux/x86_64/bits/kernel_types.h
  339. +++ b/libc/sysdeps/linux/x86_64/bits/kernel_types.h
  340. @@ -40,6 +40,8 @@ typedef unsigned int __kernel_gid32_t;
  341. typedef unsigned short __kernel_old_uid_t;
  342. typedef unsigned short __kernel_old_gid_t;
  343. typedef __kernel_dev_t __kernel_old_dev_t;
  344. +typedef long __kernel_long_t;
  345. +typedef unsigned long __kernel_ulong_t;
  346. typedef long long __kernel_loff_t;
  347. typedef struct {
  348. diff --git a/libc/sysdeps/linux/xtensa/bits/kernel_types.h b/libc/sysdeps/linux/xtensa/bits/kernel_types.h
  349. index 44f1075..ed38f2e 100644
  350. --- a/libc/sysdeps/linux/xtensa/bits/kernel_types.h
  351. +++ b/libc/sysdeps/linux/xtensa/bits/kernel_types.h
  352. @@ -33,6 +33,8 @@ typedef unsigned int __kernel_gid32_t;
  353. typedef unsigned short __kernel_old_uid_t;
  354. typedef unsigned short __kernel_old_gid_t;
  355. typedef unsigned short __kernel_old_dev_t;
  356. +typedef long __kernel_long_t;
  357. +typedef unsigned long __kernel_ulong_t;
  358. typedef long long __kernel_loff_t;
  359. /* Beginning in 2.6 kernels, which is the first version that includes the
  360. --
  361. 1.8.1.2