lkml.org 
[lkml]   [2008]   [Oct]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH,RFC] ext3: Add support for non-native signed/unsigned htree hash algorithms
Andreas Dilger wrote:
>
>> Hmm..... is it considered safe to depend on the userspace limits.h
>> header file? I guess if we trust that header file to be correct we
>> could check the value of CHAR_MIN and/or CHAR_MAX as defined by
>> limits.h.
>>
>
> That would likely fail on cross-compiled environments, right?
>

/usr/include/limits.h uses #include_next to pick up gcc's private
limits.h, so it should be safe to use in a kernel cross-build
environment. (Picking up the compiler's limits.h directly would be better.)

J


\
 
 \ /
  Last update: 2008-10-24 20:27    [W:0.073 / U:0.852 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site