This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Are syconf(_SC_XXX) issues glibc or kernel issues?


That would be my interpretation.  See:
https://sourceware.org/git/?p=glibc.git;a=blob;f=sysdeps/posix/sysconf.c;h=8b74ad6184cc724b2291c35249021a059e331fcc;hb=HEAD#l1182

What value are you seeing returned?

Jason

On Wed, Mar 21, 2018 at 2:21 PM, Jeffrey Walton <noloader@gmail.com> wrote:
> On Wed, Mar 21, 2018 at 12:38 PM, Jason Duerstock
> <jason.duerstock@gmail.com> wrote:
>> Run strace against the binary.  If the syscall returns the "correct"
>> value(s), then it's a glibc issue.  If not, it's a kernel issue.
>
> Thanks Jason.
>
> If I _don't_ see a system call, then would that indicate it is
> probably a glibc issue? That is, glibc provides the answer without
> going to the kernel?
>
> Jeff
>
>> On Wed, Mar 21, 2018 at 12:30 PM, Jeffrey Walton <noloader@gmail.com> wrote:
>>> Hi Everyone,
>>>
>>> My apologies for asking. I'm seeing bug reports against both components.
>>>
>>> Are syconf(_SC_XXX) issues glibc or kernel issues?
>>>
>>> In my particular case, I'm getting an unexpected value from
>>> _SC_LEVEL1_DCACHE_LINESIZE on PPC64. AIX and SC_L1C_DLS returns an
>>> expected value.
>>>
>>> Jeff


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]