This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc 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: [PATCH 25/58] Hide internal sysinfo functions [BZ #18822]


On 9/1/17, H.J. Lu <hjl.tools@gmail.com> wrote:
> Hide internal sysinfo functions to allow direct access within libc.so
> and libc.a without using GOT nor PLT.
>
> 	[BZ #18822]
> 	* include/sys/sysinfo.h (__get_nprocs_conf): Add
> 	libc_hidden_proto.
> 	(__get_nprocs): Likewise.
> 	(__get_phys_pages): Likewise.
> 	(__get_avphys_pages): Likewise.
> 	(__get_child_max): Add attribute_hidden.
> 	* misc/getsysstats.c (__get_nprocs_conf): Add libc_hidden_def.
> 	(__get_nprocs): Likewise.
> 	(__get_phys_pages): Likewise.
> 	(__get_avphys_pages): Likewise.
> 	* sysdeps/mach/getsysstats.c (__get_nprocs_conf): Add
> 	libc_hidden_def.
> 	(__get_nprocs): Likewise.
> 	(__get_phys_pages): Likewise.
> 	(__get_avphys_pages): Likewise.
> 	* sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Add
> 	libc_hidden_def.
> 	(__get_nprocs_conf): Likewise.
> 	(__get_phys_pages): Likewise.
> 	(__get_avphys_pages): Likewise.

Tested with build-many-glibcs.py.  I am checking it in.

-- 
H.J.


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