based on architecture.
short l_type;
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
short l_whence;
- off_t l_start;
- off_t l_len;
+ __kernel_off_t l_start;
+ __kernel_off_t l_len;
long l_sysid;
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
__kernel_pid_t l_pid;
#ifndef __ASSEMBLY__
typedef struct kldir_ent_s {
u64 magic;
- off_t offset;
+ __kernel_off_t offset;
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
unsigned long pointer;
size_t size;
gid_t st_gid;
unsigned st_rdev;
long st_pad2[2];
- off_t st_size;
+ __kernel_off_t st_size;
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
long st_pad3;
time_t st_atime;
unsigned int st_rdev;
unsigned int st_pad1[3];
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
- off_t st_size;
+ __kernel_off_t st_size;
unsigned int st_atime;
unsigned int st_atime_nsec;
unsigned int st_mtime;
if arch and arch in kernel_default_arch_macros:
macros.update(kernel_default_arch_macros[arch])
+ if arch and arch in kernel_arch_token_replacements:
+ blocks.replaceTokens( kernel_arch_token_replacements[arch] )
+
blocks.optimizeMacros( macros )
blocks.optimizeIf01()
blocks.removeVarsAndFuncs( statics )
"mips": {"CONFIG_32BIT":"1"},
}
+kernel_arch_token_replacements = {
+ "arm": {},
+ "x86": {},
+ "mips": {"off_t":"__kernel_off_t"},
+ }
# Replace tokens in the output according to this mapping
kernel_token_replacements = {
"asm": "__asm__",