Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: src



Module Name:    src
Committed By:   kamil
Date:           Fri Jan  5 20:30:51 UTC 2018

Modified Files:
        src/lib/libc/include: namespace.h
        src/lib/libc/stdlib: atoi.c
        src/sys/external/bsd/compiler_rt/dist/lib/profile: InstrProfilingFile.c

Log Message:
Register new weak symbol in libc for internal usage: atoi

The NetBSD Standard C Library uses internally some of its functions with
a mangled symbol name, usually "_symbol". The internal functions shall not
use the global (public) symbols.

Add atoi to namespace.h.

Register a new __weak_alias() entry for atoi() in atoi.c.

atoi() is used internally in getrpcent(), rresvport_af(), ftok(), err(),
__llvm_profile_write_file(), llvm_gcda_start_file(), citrus_iconv_open(),
getprotoent_r(), __rpc_uaddr2taddr_af(), __res_nopt_rdata() and
servent_parseline().

This revision switches the internal usage to the internal symbol.

Sponsored by <The NetBSD Foundation>


To generate a diff of this commit:
cvs rdiff -u -r1.192 -r1.193 src/lib/libc/include/namespace.h
cvs rdiff -u -r1.12 -r1.13 src/lib/libc/stdlib/atoi.c
cvs rdiff -u -r1.1.1.4 -r1.2 \
    src/sys/external/bsd/compiler_rt/dist/lib/profile/InstrProfilingFile.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.




Home | Main Index | Thread Index | Old Index