summaryrefslogtreecommitdiff
path: root/usr/src/lib/libc
diff options
context:
space:
mode:
authorraf <none@none>2008-06-06 14:02:15 -0700
committerraf <none@none>2008-06-06 14:02:15 -0700
commit7257d1b4d25bfac0c802847390e98a464fd787ac (patch)
treec73fc17df920bc2ca9438c25fea3529890296afd /usr/src/lib/libc
parent455903679f53d12d92035adc60bc7c3d95e6b6a2 (diff)
downloadillumos-joyent-7257d1b4d25bfac0c802847390e98a464fd787ac.tar.gz
PSARC 2008/309 expunge synonyms.h
6700179 expunge synonyms.h --HG-- rename : usr/src/cmd/sgs/libelf/common/syn.h => deleted_files/usr/src/cmd/sgs/libelf/common/syn.h rename : usr/src/cmd/sgs/librtld/common/lintsup.c => deleted_files/usr/src/cmd/sgs/librtld/common/lintsup.c rename : usr/src/cmd/sgs/rtld/common/_synonyms.h => deleted_files/usr/src/cmd/sgs/rtld/common/_synonyms.h rename : usr/src/common/atomic/atomic_asm_weak.h => deleted_files/usr/src/common/atomic/atomic_asm_weak.h rename : usr/src/lib/common/inc/c_synonyms.h => deleted_files/usr/src/lib/common/inc/c_synonyms.h rename : usr/src/lib/libc/amd64/gen/lexp10.c => deleted_files/usr/src/lib/libc/amd64/gen/lexp10.c rename : usr/src/lib/libc/amd64/gen/llog10.c => deleted_files/usr/src/lib/libc/amd64/gen/llog10.c rename : usr/src/lib/libc/amd64/gen/ltostr.c => deleted_files/usr/src/lib/libc/amd64/gen/ltostr.c rename : usr/src/lib/libc/i386/gen/lexp10.c => deleted_files/usr/src/lib/libc/i386/gen/lexp10.c rename : usr/src/lib/libc/i386/gen/llog10.c => deleted_files/usr/src/lib/libc/i386/gen/llog10.c rename : usr/src/lib/libc/i386/gen/ltostr.c => deleted_files/usr/src/lib/libc/i386/gen/ltostr.c rename : usr/src/lib/libc/inc/synonyms.h => deleted_files/usr/src/lib/libc/inc/synonyms.h rename : usr/src/lib/libc/sparcv9/gen/lexp10.c => deleted_files/usr/src/lib/libc/sparcv9/gen/lexp10.c rename : usr/src/lib/libc/sparcv9/gen/llog10.c => deleted_files/usr/src/lib/libc/sparcv9/gen/llog10.c rename : usr/src/lib/libc_psr/inc.flg => deleted_files/usr/src/lib/libc_psr/inc.flg rename : usr/src/lib/libcrypt/inc/des_synonyms.h => deleted_files/usr/src/lib/libcrypt/inc/des_synonyms.h rename : usr/src/lib/libgen/inc/gen_synonyms.h => deleted_files/usr/src/lib/libgen/inc/gen_synonyms.h rename : usr/src/lib/libtsnet/common/synonyms.h => deleted_files/usr/src/lib/libtsnet/common/synonyms.h rename : usr/src/tools/scripts/check_fnames.sh => deleted_files/usr/src/tools/scripts/check_fnames.sh rename : usr/src/lib/libc/sparc/gen/lexp10.c => usr/src/lib/libc/port/gen/lexp10.c rename : usr/src/lib/libc/sparc/gen/llog10.c => usr/src/lib/libc/port/gen/llog10.c
Diffstat (limited to 'usr/src/lib/libc')
-rw-r--r--usr/src/lib/libc/amd64/Makefile8
-rw-r--r--usr/src/lib/libc/amd64/fp/_base_il.c12
-rw-r--r--usr/src/lib/libc/amd64/fp/fpgetmask.c18
-rw-r--r--usr/src/lib/libc/amd64/fp/fpgetround.c18
-rw-r--r--usr/src/lib/libc/amd64/fp/fpgetsticky.c16
-rw-r--r--usr/src/lib/libc/amd64/fp/fpsetmask.c18
-rw-r--r--usr/src/lib/libc/amd64/fp/fpsetround.c18
-rw-r--r--usr/src/lib/libc/amd64/fp/fpsetsticky.c14
-rw-r--r--usr/src/lib/libc/amd64/fp/fpstart.c2
-rw-r--r--usr/src/lib/libc/amd64/gen/abs.s13
-rw-r--r--usr/src/lib/libc/amd64/gen/ecvt.c22
-rw-r--r--usr/src/lib/libc/amd64/gen/lexp10.c53
-rw-r--r--usr/src/lib/libc/amd64/gen/llog10.c54
-rw-r--r--usr/src/lib/libc/amd64/gen/ltostr.c67
-rw-r--r--usr/src/lib/libc/amd64/gen/makectxt.c17
-rw-r--r--usr/src/lib/libc/amd64/gen/memccpy.s12
-rw-r--r--usr/src/lib/libc/amd64/gen/memcpy.s10
-rw-r--r--usr/src/lib/libc/amd64/gen/memset.s13
-rw-r--r--usr/src/lib/libc/amd64/gen/proc64_support.s9
-rw-r--r--usr/src/lib/libc/amd64/gen/setjmp.s12
-rw-r--r--usr/src/lib/libc/amd64/gen/siginfolst.c11
-rw-r--r--usr/src/lib/libc/amd64/gen/siglongjmp.c12
-rw-r--r--usr/src/lib/libc/amd64/gen/wschr.s24
-rw-r--r--usr/src/lib/libc/amd64/gen/wslen.s24
-rw-r--r--usr/src/lib/libc/amd64/gen/wsncmp.s24
-rw-r--r--usr/src/lib/libc/amd64/inc/SYS.h12
-rw-r--r--usr/src/lib/libc/amd64/sys/_lwp_mutex_unlock.s4
-rw-r--r--usr/src/lib/libc/amd64/sys/door.s27
-rw-r--r--usr/src/lib/libc/amd64/sys/gettimeofday.s16
-rw-r--r--usr/src/lib/libc/amd64/sys/lwp_private.s14
-rw-r--r--usr/src/lib/libc/amd64/sys/syscall.s19
-rw-r--r--usr/src/lib/libc/amd64/sys/sysi86.s10
-rw-r--r--usr/src/lib/libc/amd64/sys/uadmin.c4
-rw-r--r--usr/src/lib/libc/amd64/sys/vforkx.s7
-rw-r--r--usr/src/lib/libc/amd64/threads/asm_subr.s4
-rw-r--r--usr/src/lib/libc/amd64/threads/machdep.c2
-rw-r--r--usr/src/lib/libc/amd64/unwind/call_frame_inst.c46
-rw-r--r--usr/src/lib/libc/amd64/unwind/eh_frame.c18
-rw-r--r--usr/src/lib/libc/amd64/unwind/thrp_unwind.c10
-rw-r--r--usr/src/lib/libc/amd64/unwind/unwind.c40
-rw-r--r--usr/src/lib/libc/common/sys/_lgrp_home_fast.s18
-rw-r--r--usr/src/lib/libc/common/sys/acl.s17
-rw-r--r--usr/src/lib/libc/common/sys/adjtime.s17
-rw-r--r--usr/src/lib/libc/common/sys/cladm.s12
-rw-r--r--usr/src/lib/libc/common/sys/facl.s17
-rw-r--r--usr/src/lib/libc/common/sys/fchroot.s17
-rw-r--r--usr/src/lib/libc/common/sys/fstatfs.s17
-rw-r--r--usr/src/lib/libc/common/sys/getcpuid.s18
-rw-r--r--usr/src/lib/libc/common/sys/gtty.s17
-rw-r--r--usr/src/lib/libc/common/sys/link.s15
-rw-r--r--usr/src/lib/libc/common/sys/mincore.s17
-rw-r--r--usr/src/lib/libc/common/sys/pollsys.s14
-rw-r--r--usr/src/lib/libc/common/sys/seteguid.s18
-rw-r--r--usr/src/lib/libc/common/sys/statfs.s17
-rw-r--r--usr/src/lib/libc/common/sys/stty.s17
-rw-r--r--usr/src/lib/libc/common/sys/syslwp.s61
-rw-r--r--usr/src/lib/libc/common/sys/utimes.s17
-rw-r--r--usr/src/lib/libc/common/sys/utssys.s17
-rw-r--r--usr/src/lib/libc/common/sys/uucopy.s10
-rw-r--r--usr/src/lib/libc/common/sys/vhangup.s17
-rw-r--r--usr/src/lib/libc/common/sys/yield.s12
-rw-r--r--usr/src/lib/libc/i386/Makefile.com8
-rw-r--r--usr/src/lib/libc/i386/fp/_base_il.c10
-rw-r--r--usr/src/lib/libc/i386/fp/fpgetmask.c22
-rw-r--r--usr/src/lib/libc/i386/fp/fpgetround.c20
-rw-r--r--usr/src/lib/libc/i386/fp/fpgetsticky.c14
-rw-r--r--usr/src/lib/libc/i386/fp/fpsetmask.c18
-rw-r--r--usr/src/lib/libc/i386/fp/fpsetround.c18
-rw-r--r--usr/src/lib/libc/i386/fp/fpsetsticky.c12
-rw-r--r--usr/src/lib/libc/i386/fp/fpstart.c2
-rw-r--r--usr/src/lib/libc/i386/gen/ecvt.c23
-rw-r--r--usr/src/lib/libc/i386/gen/ladd.s14
-rw-r--r--usr/src/lib/libc/i386/gen/ldivide.s14
-rw-r--r--usr/src/lib/libc/i386/gen/lexp10.c53
-rw-r--r--usr/src/lib/libc/i386/gen/llog10.c54
-rw-r--r--usr/src/lib/libc/i386/gen/lmul.s14
-rw-r--r--usr/src/lib/libc/i386/gen/lshiftl.s14
-rw-r--r--usr/src/lib/libc/i386/gen/lsign.s14
-rw-r--r--usr/src/lib/libc/i386/gen/lsub.s14
-rw-r--r--usr/src/lib/libc/i386/gen/ltostr.c61
-rw-r--r--usr/src/lib/libc/i386/gen/makectxt.c15
-rw-r--r--usr/src/lib/libc/i386/gen/siglongjmp.c12
-rw-r--r--usr/src/lib/libc/i386/gen/wschr.s26
-rw-r--r--usr/src/lib/libc/i386/gen/wslen.s26
-rw-r--r--usr/src/lib/libc/i386/gen/wsncmp.s26
-rw-r--r--usr/src/lib/libc/i386/inc/SYS.h10
-rw-r--r--usr/src/lib/libc/i386/mapfile-vers2
-rw-r--r--usr/src/lib/libc/i386/sys/_lwp_mutex_unlock.s6
-rw-r--r--usr/src/lib/libc/i386/sys/door.s27
-rw-r--r--usr/src/lib/libc/i386/sys/gettimeofday.s16
-rw-r--r--usr/src/lib/libc/i386/sys/lwp_private.s14
-rw-r--r--usr/src/lib/libc/i386/sys/nuname.s16
-rw-r--r--usr/src/lib/libc/i386/sys/ptrace.c4
-rw-r--r--usr/src/lib/libc/i386/sys/syscall.s23
-rw-r--r--usr/src/lib/libc/i386/sys/sysi86.s10
-rw-r--r--usr/src/lib/libc/i386/sys/uadmin.c4
-rw-r--r--usr/src/lib/libc/i386/sys/vforkx.s7
-rw-r--r--usr/src/lib/libc/i386/threads/asm_subr.s4
-rw-r--r--usr/src/lib/libc/i386/threads/machdep.c4
-rw-r--r--usr/src/lib/libc/i386_hwcap1/gen/memcpy.s4
-rw-r--r--usr/src/lib/libc/i386_hwcap1/gen/memset.s4
-rw-r--r--usr/src/lib/libc/inc/base_conversion.h31
-rw-r--r--usr/src/lib/libc/inc/libc.h42
-rw-r--r--usr/src/lib/libc/inc/lint.h22
-rw-r--r--usr/src/lib/libc/inc/mtlib.h50
-rw-r--r--usr/src/lib/libc/inc/synonyms.h1232
-rw-r--r--usr/src/lib/libc/inc/thr_uberdata.h77
-rw-r--r--usr/src/lib/libc/port/aio/aio.c2
-rw-r--r--usr/src/lib/libc/port/aio/aio_alloc.c4
-rw-r--r--usr/src/lib/libc/port/aio/posix_aio.c2
-rw-r--r--usr/src/lib/libc/port/fp/__flt_decim.c10
-rw-r--r--usr/src/lib/libc/port/fp/__flt_rounds.c10
-rw-r--r--usr/src/lib/libc/port/fp/__tbl_10_b.c10
-rw-r--r--usr/src/lib/libc/port/fp/__tbl_10_h.c10
-rw-r--r--usr/src/lib/libc/port/fp/__tbl_10_s.c10
-rw-r--r--usr/src/lib/libc/port/fp/__tbl_2_b.c10
-rw-r--r--usr/src/lib/libc/port/fp/__tbl_2_h.c10
-rw-r--r--usr/src/lib/libc/port/fp/__tbl_2_s.c10
-rw-r--r--usr/src/lib/libc/port/fp/__tbl_fdq.c10
-rw-r--r--usr/src/lib/libc/port/fp/__tbl_tens.c13
-rw-r--r--usr/src/lib/libc/port/fp/__x_power.c13
-rw-r--r--usr/src/lib/libc/port/fp/_base_sup.c12
-rw-r--r--usr/src/lib/libc/port/fp/aconvert.c10
-rw-r--r--usr/src/lib/libc/port/fp/decimal_bin.c15
-rw-r--r--usr/src/lib/libc/port/fp/double_decim.c15
-rw-r--r--usr/src/lib/libc/port/fp/econvert.c14
-rw-r--r--usr/src/lib/libc/port/fp/fconvert.c14
-rw-r--r--usr/src/lib/libc/port/fp/file_decim.c12
-rw-r--r--usr/src/lib/libc/port/fp/finite.c19
-rw-r--r--usr/src/lib/libc/port/fp/func_decim.c12
-rw-r--r--usr/src/lib/libc/port/fp/gconvert.c14
-rw-r--r--usr/src/lib/libc/port/fp/hex_bin.c10
-rw-r--r--usr/src/lib/libc/port/fp/ieee_globals.c34
-rw-r--r--usr/src/lib/libc/port/fp/pack_float.c16
-rw-r--r--usr/src/lib/libc/port/fp/sigfpe.c25
-rw-r--r--usr/src/lib/libc/port/fp/string_decim.c12
-rw-r--r--usr/src/lib/libc/port/gen/_ftoll.c14
-rw-r--r--usr/src/lib/libc/port/gen/_ftoull.c10
-rw-r--r--usr/src/lib/libc/port/gen/_libc_gettext.h22
-rw-r--r--usr/src/lib/libc/port/gen/_xftw.c31
-rw-r--r--usr/src/lib/libc/port/gen/a64l.c14
-rw-r--r--usr/src/lib/libc/port/gen/abort.c13
-rw-r--r--usr/src/lib/libc/port/gen/addsev.c11
-rw-r--r--usr/src/lib/libc/port/gen/assert.c19
-rw-r--r--usr/src/lib/libc/port/gen/atexit.c10
-rw-r--r--usr/src/lib/libc/port/gen/atfork.c3
-rw-r--r--usr/src/lib/libc/port/gen/atoi.c13
-rw-r--r--usr/src/lib/libc/port/gen/atol.c13
-rw-r--r--usr/src/lib/libc/port/gen/atoll.c15
-rw-r--r--usr/src/lib/libc/port/gen/attrat.c2
-rw-r--r--usr/src/lib/libc/port/gen/attropen.c33
-rw-r--r--usr/src/lib/libc/port/gen/basename.c17
-rw-r--r--usr/src/lib/libc/port/gen/calloc.c17
-rw-r--r--usr/src/lib/libc/port/gen/catgets.c44
-rw-r--r--usr/src/lib/libc/port/gen/catopen.c24
-rw-r--r--usr/src/lib/libc/port/gen/cfgetispeed.c16
-rw-r--r--usr/src/lib/libc/port/gen/cfgetospeed.c20
-rw-r--r--usr/src/lib/libc/port/gen/cfree.c7
-rw-r--r--usr/src/lib/libc/port/gen/cfsetispeed.c16
-rw-r--r--usr/src/lib/libc/port/gen/cfsetospeed.c16
-rw-r--r--usr/src/lib/libc/port/gen/cftime.c20
-rw-r--r--usr/src/lib/libc/port/gen/clock.c13
-rw-r--r--usr/src/lib/libc/port/gen/closedir.c12
-rw-r--r--usr/src/lib/libc/port/gen/closefrom.c10
-rw-r--r--usr/src/lib/libc/port/gen/confstr.c15
-rw-r--r--usr/src/lib/libc/port/gen/crypt.c30
-rw-r--r--usr/src/lib/libc/port/gen/csetlen.c10
-rw-r--r--usr/src/lib/libc/port/gen/ctime.c18
-rw-r--r--usr/src/lib/libc/port/gen/ctime_r.c15
-rw-r--r--usr/src/lib/libc/port/gen/deflt.c8
-rw-r--r--usr/src/lib/libc/port/gen/directio.c9
-rw-r--r--usr/src/lib/libc/port/gen/dirname.c16
-rw-r--r--usr/src/lib/libc/port/gen/div.c8
-rw-r--r--usr/src/lib/libc/port/gen/drand48.c40
-rw-r--r--usr/src/lib/libc/port/gen/dup2.c16
-rw-r--r--usr/src/lib/libc/port/gen/ecvt.c18
-rw-r--r--usr/src/lib/libc/port/gen/err.c11
-rw-r--r--usr/src/lib/libc/port/gen/errlist.awk17
-rw-r--r--usr/src/lib/libc/port/gen/euclen.c16
-rw-r--r--usr/src/lib/libc/port/gen/event_port.c27
-rw-r--r--usr/src/lib/libc/port/gen/execvp.c21
-rw-r--r--usr/src/lib/libc/port/gen/fattach.c12
-rw-r--r--usr/src/lib/libc/port/gen/fdetach.c15
-rw-r--r--usr/src/lib/libc/port/gen/fdopendir.c5
-rw-r--r--usr/src/lib/libc/port/gen/fmtmsg.c15
-rw-r--r--usr/src/lib/libc/port/gen/ftime.c10
-rw-r--r--usr/src/lib/libc/port/gen/ftok.c9
-rw-r--r--usr/src/lib/libc/port/gen/ftw.c31
-rw-r--r--usr/src/lib/libc/port/gen/gcvt.c15
-rw-r--r--usr/src/lib/libc/port/gen/getauxv.c4
-rw-r--r--usr/src/lib/libc/port/gen/getcwd.c12
-rw-r--r--usr/src/lib/libc/port/gen/getdate_err.c19
-rw-r--r--usr/src/lib/libc/port/gen/getdtblsize.c14
-rw-r--r--usr/src/lib/libc/port/gen/getenv.c12
-rw-r--r--usr/src/lib/libc/port/gen/getexecname.c14
-rw-r--r--usr/src/lib/libc/port/gen/getgrnam.c14
-rw-r--r--usr/src/lib/libc/port/gen/getgrnam_r.c48
-rw-r--r--usr/src/lib/libc/port/gen/gethostid.c10
-rw-r--r--usr/src/lib/libc/port/gen/gethostname.c10
-rw-r--r--usr/src/lib/libc/port/gen/gethz.c15
-rw-r--r--usr/src/lib/libc/port/gen/getisax.c14
-rw-r--r--usr/src/lib/libc/port/gen/getloadavg.c17
-rw-r--r--usr/src/lib/libc/port/gen/getlogin.c23
-rw-r--r--usr/src/lib/libc/port/gen/getmntent.c13
-rw-r--r--usr/src/lib/libc/port/gen/getnetgrent.c4
-rw-r--r--usr/src/lib/libc/port/gen/getopt.c37
-rw-r--r--usr/src/lib/libc/port/gen/getopt_long.c15
-rw-r--r--usr/src/lib/libc/port/gen/getpagesize.c14
-rw-r--r--usr/src/lib/libc/port/gen/getpw.c11
-rw-r--r--usr/src/lib/libc/port/gen/getpwnam.c14
-rw-r--r--usr/src/lib/libc/port/gen/getpwnam_r.c34
-rw-r--r--usr/src/lib/libc/port/gen/getrusage.c6
-rw-r--r--usr/src/lib/libc/port/gen/getspent.c18
-rw-r--r--usr/src/lib/libc/port/gen/getspent_r.c23
-rw-r--r--usr/src/lib/libc/port/gen/getsubopt.c12
-rw-r--r--usr/src/lib/libc/port/gen/gettxt.c9
-rw-r--r--usr/src/lib/libc/port/gen/getusershell.c9
-rw-r--r--usr/src/lib/libc/port/gen/getut.c8
-rw-r--r--usr/src/lib/libc/port/gen/getutx.c25
-rw-r--r--usr/src/lib/libc/port/gen/getvfsent.c18
-rw-r--r--usr/src/lib/libc/port/gen/getwd.c13
-rw-r--r--usr/src/lib/libc/port/gen/getwidth.c13
-rw-r--r--usr/src/lib/libc/port/gen/getxby_door.c2
-rw-r--r--usr/src/lib/libc/port/gen/gtxt.c10
-rw-r--r--usr/src/lib/libc/port/gen/hsearch.c65
-rw-r--r--usr/src/lib/libc/port/gen/iconv.c44
-rw-r--r--usr/src/lib/libc/port/gen/imaxabs.c9
-rw-r--r--usr/src/lib/libc/port/gen/index.c10
-rw-r--r--usr/src/lib/libc/port/gen/initgroups.c12
-rw-r--r--usr/src/lib/libc/port/gen/insque.c21
-rw-r--r--usr/src/lib/libc/port/gen/isaexec.c12
-rw-r--r--usr/src/lib/libc/port/gen/isastream.c15
-rw-r--r--usr/src/lib/libc/port/gen/isatty.c15
-rw-r--r--usr/src/lib/libc/port/gen/killpg.c10
-rw-r--r--usr/src/lib/libc/port/gen/klpdlib.c4
-rw-r--r--usr/src/lib/libc/port/gen/l3.c17
-rw-r--r--usr/src/lib/libc/port/gen/l64a.c17
-rw-r--r--usr/src/lib/libc/port/gen/lckpwdf.c16
-rw-r--r--usr/src/lib/libc/port/gen/lconstants.c23
-rw-r--r--usr/src/lib/libc/port/gen/ldivide.c14
-rw-r--r--usr/src/lib/libc/port/gen/lexp10.c (renamed from usr/src/lib/libc/sparc/gen/lexp10.c)23
-rw-r--r--usr/src/lib/libc/port/gen/lfind.c15
-rw-r--r--usr/src/lib/libc/port/gen/lfmt.c10
-rw-r--r--usr/src/lib/libc/port/gen/lfmt_log.c20
-rw-r--r--usr/src/lib/libc/port/gen/llabs.c15
-rw-r--r--usr/src/lib/libc/port/gen/lldiv.c16
-rw-r--r--usr/src/lib/libc/port/gen/llog10.c (renamed from usr/src/lib/libc/sparcv9/gen/llog10.c)15
-rw-r--r--usr/src/lib/libc/port/gen/lltostr.c17
-rw-r--r--usr/src/lib/libc/port/gen/lmath.c19
-rw-r--r--usr/src/lib/libc/port/gen/localtime.c23
-rw-r--r--usr/src/lib/libc/port/gen/lsearch.c15
-rw-r--r--usr/src/lib/libc/port/gen/madvise.c12
-rw-r--r--usr/src/lib/libc/port/gen/malloc.c6
-rw-r--r--usr/src/lib/libc/port/gen/memalign.c6
-rw-r--r--usr/src/lib/libc/port/gen/mkdev.c13
-rw-r--r--usr/src/lib/libc/port/gen/mkdtemp.c9
-rw-r--r--usr/src/lib/libc/port/gen/mkfifo.c15
-rw-r--r--usr/src/lib/libc/port/gen/mkstemp.c25
-rw-r--r--usr/src/lib/libc/port/gen/mktemp.c11
-rw-r--r--usr/src/lib/libc/port/gen/mlock.c15
-rw-r--r--usr/src/lib/libc/port/gen/mlockall.c16
-rw-r--r--usr/src/lib/libc/port/gen/mon.c28
-rw-r--r--usr/src/lib/libc/port/gen/msync.c6
-rw-r--r--usr/src/lib/libc/port/gen/munlock.c15
-rw-r--r--usr/src/lib/libc/port/gen/munlockall.c15
-rw-r--r--usr/src/lib/libc/port/gen/ndbm.c2
-rw-r--r--usr/src/lib/libc/port/gen/nftw.c52
-rw-r--r--usr/src/lib/libc/port/gen/nlspath_checks.c19
-rw-r--r--usr/src/lib/libc/port/gen/nsparse.c8
-rw-r--r--usr/src/lib/libc/port/gen/nss_common.c8
-rw-r--r--usr/src/lib/libc/port/gen/nss_dbdefs.c2
-rw-r--r--usr/src/lib/libc/port/gen/nss_deffinder.c9
-rw-r--r--usr/src/lib/libc/port/gen/opendir.c10
-rw-r--r--usr/src/lib/libc/port/gen/opt_data.c13
-rw-r--r--usr/src/lib/libc/port/gen/perror.c13
-rw-r--r--usr/src/lib/libc/port/gen/pfmt.c11
-rw-r--r--usr/src/lib/libc/port/gen/pfmt_print.c15
-rw-r--r--usr/src/lib/libc/port/gen/plock.c11
-rw-r--r--usr/src/lib/libc/port/gen/poll.c12
-rw-r--r--usr/src/lib/libc/port/gen/priocntl.c6
-rw-r--r--usr/src/lib/libc/port/gen/priv_str_xlate.c13
-rw-r--r--usr/src/lib/libc/port/gen/privlib.c66
-rw-r--r--usr/src/lib/libc/port/gen/psiginfo.c51
-rw-r--r--usr/src/lib/libc/port/gen/psignal.c26
-rw-r--r--usr/src/lib/libc/port/gen/pt.c15
-rw-r--r--usr/src/lib/libc/port/gen/putpwent.c31
-rw-r--r--usr/src/lib/libc/port/gen/putspent.c17
-rw-r--r--usr/src/lib/libc/port/gen/raise.c15
-rw-r--r--usr/src/lib/libc/port/gen/rand.c12
-rw-r--r--usr/src/lib/libc/port/gen/random.c9
-rw-r--r--usr/src/lib/libc/port/gen/rctlops.c9
-rw-r--r--usr/src/lib/libc/port/gen/readdir.c8
-rw-r--r--usr/src/lib/libc/port/gen/readdir_r.c11
-rw-r--r--usr/src/lib/libc/port/gen/realpath.c15
-rw-r--r--usr/src/lib/libc/port/gen/reboot.c16
-rw-r--r--usr/src/lib/libc/port/gen/regexpr.c17
-rw-r--r--usr/src/lib/libc/port/gen/remove.c6
-rw-r--r--usr/src/lib/libc/port/gen/rewinddir.c13
-rw-r--r--usr/src/lib/libc/port/gen/rindex.c10
-rw-r--r--usr/src/lib/libc/port/gen/scandir.c24
-rw-r--r--usr/src/lib/libc/port/gen/seekdir.c12
-rw-r--r--usr/src/lib/libc/port/gen/select.c10
-rw-r--r--usr/src/lib/libc/port/gen/select_large_fdset.c26
-rw-r--r--usr/src/lib/libc/port/gen/setlabel.c11
-rw-r--r--usr/src/lib/libc/port/gen/setpriority.c3
-rw-r--r--usr/src/lib/libc/port/gen/settimeofday.c18
-rw-r--r--usr/src/lib/libc/port/gen/sh_locks.c2
-rw-r--r--usr/src/lib/libc/port/gen/sigflag.c10
-rw-r--r--usr/src/lib/libc/port/gen/siglist.c10
-rw-r--r--usr/src/lib/libc/port/gen/sigsend.c15
-rw-r--r--usr/src/lib/libc/port/gen/sigsetops.c17
-rw-r--r--usr/src/lib/libc/port/gen/ssignal.c15
-rw-r--r--usr/src/lib/libc/port/gen/stack.c26
-rw-r--r--usr/src/lib/libc/port/gen/str2sig.c18
-rw-r--r--usr/src/lib/libc/port/gen/strcase_charmap.c10
-rw-r--r--usr/src/lib/libc/port/gen/strcasecmp.c10
-rw-r--r--usr/src/lib/libc/port/gen/strcat.c14
-rw-r--r--usr/src/lib/libc/port/gen/strchr.c13
-rw-r--r--usr/src/lib/libc/port/gen/strcmp.c13
-rw-r--r--usr/src/lib/libc/port/gen/strcpy.c13
-rw-r--r--usr/src/lib/libc/port/gen/strcspn.c13
-rw-r--r--usr/src/lib/libc/port/gen/strdup.c15
-rw-r--r--usr/src/lib/libc/port/gen/strerror.c20
-rw-r--r--usr/src/lib/libc/port/gen/strlcat.c10
-rw-r--r--usr/src/lib/libc/port/gen/strlcpy.c10
-rw-r--r--usr/src/lib/libc/port/gen/strlen.c13
-rw-r--r--usr/src/lib/libc/port/gen/strncasecmp.c10
-rw-r--r--usr/src/lib/libc/port/gen/strncat.c13
-rw-r--r--usr/src/lib/libc/port/gen/strncmp.c13
-rw-r--r--usr/src/lib/libc/port/gen/strncpy.c13
-rw-r--r--usr/src/lib/libc/port/gen/strnlen.c6
-rw-r--r--usr/src/lib/libc/port/gen/strpbrk.c13
-rw-r--r--usr/src/lib/libc/port/gen/strrchr.c13
-rw-r--r--usr/src/lib/libc/port/gen/strsignal.c14
-rw-r--r--usr/src/lib/libc/port/gen/strspn.c13
-rw-r--r--usr/src/lib/libc/port/gen/strstr.c13
-rw-r--r--usr/src/lib/libc/port/gen/strtod.c13
-rw-r--r--usr/src/lib/libc/port/gen/strtoimax.c9
-rw-r--r--usr/src/lib/libc/port/gen/strtok.c13
-rw-r--r--usr/src/lib/libc/port/gen/strtok_r.c15
-rw-r--r--usr/src/lib/libc/port/gen/strtoll.c17
-rw-r--r--usr/src/lib/libc/port/gen/strtoull.c17
-rw-r--r--usr/src/lib/libc/port/gen/strtoumax.c9
-rw-r--r--usr/src/lib/libc/port/gen/swab.c15
-rw-r--r--usr/src/lib/libc/port/gen/swapctl.c15
-rw-r--r--usr/src/lib/libc/port/gen/sysconf.c11
-rw-r--r--usr/src/lib/libc/port/gen/syslog.c10
-rw-r--r--usr/src/lib/libc/port/gen/tcdrain.c6
-rw-r--r--usr/src/lib/libc/port/gen/tcflow.c15
-rw-r--r--usr/src/lib/libc/port/gen/tcflush.c15
-rw-r--r--usr/src/lib/libc/port/gen/tcgetattr.c15
-rw-r--r--usr/src/lib/libc/port/gen/tcgetpgrp.c15
-rw-r--r--usr/src/lib/libc/port/gen/tcgetsid.c15
-rw-r--r--usr/src/lib/libc/port/gen/tcsendbreak.c15
-rw-r--r--usr/src/lib/libc/port/gen/tcsetattr.c15
-rw-r--r--usr/src/lib/libc/port/gen/tcsetpgrp.c15
-rw-r--r--usr/src/lib/libc/port/gen/tell.c17
-rw-r--r--usr/src/lib/libc/port/gen/telldir.c12
-rw-r--r--usr/src/lib/libc/port/gen/tfind.c15
-rw-r--r--usr/src/lib/libc/port/gen/time_data.c13
-rw-r--r--usr/src/lib/libc/port/gen/time_gdata.c25
-rw-r--r--usr/src/lib/libc/port/gen/truncate.c20
-rw-r--r--usr/src/lib/libc/port/gen/tsdalloc.c11
-rw-r--r--usr/src/lib/libc/port/gen/tsearch.c19
-rw-r--r--usr/src/lib/libc/port/gen/ttyname.c18
-rw-r--r--usr/src/lib/libc/port/gen/ttyslot.c8
-rw-r--r--usr/src/lib/libc/port/gen/ualarm.c9
-rw-r--r--usr/src/lib/libc/port/gen/ucred.c47
-rw-r--r--usr/src/lib/libc/port/gen/valloc.c7
-rw-r--r--usr/src/lib/libc/port/gen/vlfmt.c10
-rw-r--r--usr/src/lib/libc/port/gen/vpfmt.c10
-rw-r--r--usr/src/lib/libc/port/gen/waitpid.c14
-rw-r--r--usr/src/lib/libc/port/gen/walkstack.c53
-rw-r--r--usr/src/lib/libc/port/gen/wdata.c15
-rw-r--r--usr/src/lib/libc/port/gen/xgetwidth.c15
-rw-r--r--usr/src/lib/libc/port/i18n/__fputws_xpg5.c14
-rw-r--r--usr/src/lib/libc/port/i18n/_ctype.c15
-rw-r--r--usr/src/lib/libc/port/i18n/gettext.c42
-rw-r--r--usr/src/lib/libc/port/i18n/gettext_gnu.c2
-rw-r--r--usr/src/lib/libc/port/i18n/gettext_real.c2
-rw-r--r--usr/src/lib/libc/port/i18n/gettext_util.c2
-rw-r--r--usr/src/lib/libc/port/i18n/isascii.c15
-rw-r--r--usr/src/lib/libc/port/i18n/plural_parser.c10
-rw-r--r--usr/src/lib/libc/port/i18n/putws.c17
-rw-r--r--usr/src/lib/libc/port/i18n/strtows.c9
-rw-r--r--usr/src/lib/libc/port/i18n/toascii.c15
-rw-r--r--usr/src/lib/libc/port/i18n/wcstoimax.c9
-rw-r--r--usr/src/lib/libc/port/i18n/wcstol.c16
-rw-r--r--usr/src/lib/libc/port/i18n/wcstoul.c16
-rw-r--r--usr/src/lib/libc/port/i18n/wcswcs.c17
-rw-r--r--usr/src/lib/libc/port/i18n/wdresolve.c4
-rw-r--r--usr/src/lib/libc/port/i18n/wmemcpy.c13
-rw-r--r--usr/src/lib/libc/port/i18n/wmemmove.c11
-rw-r--r--usr/src/lib/libc/port/i18n/wscasecmp.c16
-rw-r--r--usr/src/lib/libc/port/i18n/wscat.c23
-rw-r--r--usr/src/lib/libc/port/i18n/wschr.c23
-rw-r--r--usr/src/lib/libc/port/i18n/wscmp.c23
-rw-r--r--usr/src/lib/libc/port/i18n/wscpy.c21
-rw-r--r--usr/src/lib/libc/port/i18n/wscspn.c23
-rw-r--r--usr/src/lib/libc/port/i18n/wsdup.c15
-rw-r--r--usr/src/lib/libc/port/i18n/wslen.c23
-rw-r--r--usr/src/lib/libc/port/i18n/wsncasecmp.c16
-rw-r--r--usr/src/lib/libc/port/i18n/wsncat.c23
-rw-r--r--usr/src/lib/libc/port/i18n/wsncmp.c23
-rw-r--r--usr/src/lib/libc/port/i18n/wsncpy.c23
-rw-r--r--usr/src/lib/libc/port/i18n/wspbrk.c23
-rw-r--r--usr/src/lib/libc/port/i18n/wsprintf.c12
-rw-r--r--usr/src/lib/libc/port/i18n/wsrchr.c23
-rw-r--r--usr/src/lib/libc/port/i18n/wsscanf.c13
-rw-r--r--usr/src/lib/libc/port/i18n/wstod.c23
-rw-r--r--usr/src/lib/libc/port/i18n/wstok.c18
-rw-r--r--usr/src/lib/libc/port/i18n/wstol.c16
-rw-r--r--usr/src/lib/libc/port/i18n/wstoll.c19
-rw-r--r--usr/src/lib/libc/port/i18n/wsxfrm.c20
-rw-r--r--usr/src/lib/libc/port/llib-lc3
-rw-r--r--usr/src/lib/libc/port/mapfile-vers687
-rw-r--r--usr/src/lib/libc/port/print/doprnt.c20
-rw-r--r--usr/src/lib/libc/port/print/fprintf.c21
-rw-r--r--usr/src/lib/libc/port/print/printf.c13
-rw-r--r--usr/src/lib/libc/port/print/snprintf.c10
-rw-r--r--usr/src/lib/libc/port/print/sprintf.c13
-rw-r--r--usr/src/lib/libc/port/print/vfprintf.c13
-rw-r--r--usr/src/lib/libc/port/print/vprintf.c13
-rw-r--r--usr/src/lib/libc/port/print/vsnprintf.c10
-rw-r--r--usr/src/lib/libc/port/print/vsprintf.c13
-rw-r--r--usr/src/lib/libc/port/print/vwprintf.c10
-rw-r--r--usr/src/lib/libc/port/print/wprintf.c10
-rw-r--r--usr/src/lib/libc/port/regex/glob.c18
-rw-r--r--usr/src/lib/libc/port/regex/regcmp.c14
-rw-r--r--usr/src/lib/libc/port/regex/regex.c17
-rw-r--r--usr/src/lib/libc/port/regex/wordexp.c10
-rw-r--r--usr/src/lib/libc/port/rt/clock_timer.c29
-rw-r--r--usr/src/lib/libc/port/rt/fallocate.c4
-rw-r--r--usr/src/lib/libc/port/rt/mqueue.c43
-rw-r--r--usr/src/lib/libc/port/rt/pos4obj.c2
-rw-r--r--usr/src/lib/libc/port/rt/sched.c14
-rw-r--r--usr/src/lib/libc/port/rt/sem.c42
-rw-r--r--usr/src/lib/libc/port/rt/shm.c4
-rw-r--r--usr/src/lib/libc/port/rt/sigev_thread.c10
-rw-r--r--usr/src/lib/libc/port/rt/sigev_thread.h6
-rw-r--r--usr/src/lib/libc/port/stdio/__extensions.c10
-rw-r--r--usr/src/lib/libc/port/stdio/_endopen.c16
-rw-r--r--usr/src/lib/libc/port/stdio/_filbuf.c4
-rw-r--r--usr/src/lib/libc/port/stdio/_findbuf.c4
-rw-r--r--usr/src/lib/libc/port/stdio/_flsbuf.c5
-rw-r--r--usr/src/lib/libc/port/stdio/_wrtchk.c13
-rw-r--r--usr/src/lib/libc/port/stdio/clearerr.c21
-rw-r--r--usr/src/lib/libc/port/stdio/ctermid.c15
-rw-r--r--usr/src/lib/libc/port/stdio/ctermid_r.c17
-rw-r--r--usr/src/lib/libc/port/stdio/cuserid.c8
-rw-r--r--usr/src/lib/libc/port/stdio/data.c15
-rw-r--r--usr/src/lib/libc/port/stdio/doscan.c43
-rw-r--r--usr/src/lib/libc/port/stdio/fdopen.c6
-rw-r--r--usr/src/lib/libc/port/stdio/feof.c13
-rw-r--r--usr/src/lib/libc/port/stdio/ferror.c13
-rw-r--r--usr/src/lib/libc/port/stdio/fgetc.c13
-rw-r--r--usr/src/lib/libc/port/stdio/fgets.c13
-rw-r--r--usr/src/lib/libc/port/stdio/fileno.c12
-rw-r--r--usr/src/lib/libc/port/stdio/flockf.c15
-rw-r--r--usr/src/lib/libc/port/stdio/flush.c16
-rw-r--r--usr/src/lib/libc/port/stdio/fopen.c9
-rw-r--r--usr/src/lib/libc/port/stdio/fpos.c12
-rw-r--r--usr/src/lib/libc/port/stdio/fputc.c13
-rw-r--r--usr/src/lib/libc/port/stdio/fputs.c2
-rw-r--r--usr/src/lib/libc/port/stdio/fread.c13
-rw-r--r--usr/src/lib/libc/port/stdio/fseek.c15
-rw-r--r--usr/src/lib/libc/port/stdio/fseeko.c17
-rw-r--r--usr/src/lib/libc/port/stdio/ftell.c17
-rw-r--r--usr/src/lib/libc/port/stdio/ftello.c19
-rw-r--r--usr/src/lib/libc/port/stdio/fwrite.c5
-rw-r--r--usr/src/lib/libc/port/stdio/getc.c20
-rw-r--r--usr/src/lib/libc/port/stdio/getchar.c21
-rw-r--r--usr/src/lib/libc/port/stdio/getpass.c14
-rw-r--r--usr/src/lib/libc/port/stdio/gets.c13
-rw-r--r--usr/src/lib/libc/port/stdio/getw.c15
-rw-r--r--usr/src/lib/libc/port/stdio/mse.c18
-rw-r--r--usr/src/lib/libc/port/stdio/popen.c6
-rw-r--r--usr/src/lib/libc/port/stdio/putc.c18
-rw-r--r--usr/src/lib/libc/port/stdio/putchar.c19
-rw-r--r--usr/src/lib/libc/port/stdio/puts.c13
-rw-r--r--usr/src/lib/libc/port/stdio/putw.c15
-rw-r--r--usr/src/lib/libc/port/stdio/rewind.c13
-rw-r--r--usr/src/lib/libc/port/stdio/scanf.c13
-rw-r--r--usr/src/lib/libc/port/stdio/setbuf.c5
-rw-r--r--usr/src/lib/libc/port/stdio/setbuffer.c10
-rw-r--r--usr/src/lib/libc/port/stdio/setvbuf.c5
-rw-r--r--usr/src/lib/libc/port/stdio/system.c6
-rw-r--r--usr/src/lib/libc/port/stdio/tempnam.c15
-rw-r--r--usr/src/lib/libc/port/stdio/tmpfile.c13
-rw-r--r--usr/src/lib/libc/port/stdio/tmpnam_r.c16
-rw-r--r--usr/src/lib/libc/port/stdio/ungetc.c13
-rw-r--r--usr/src/lib/libc/port/stdio/vscanf.c11
-rw-r--r--usr/src/lib/libc/port/stdio/vwscanf.c4
-rw-r--r--usr/src/lib/libc/port/stdio/wscanf.c10
-rw-r--r--usr/src/lib/libc/port/sys/_autofssys.c10
-rw-r--r--usr/src/lib/libc/port/sys/acctctl.c16
-rw-r--r--usr/src/lib/libc/port/sys/bsd_signal.c12
-rw-r--r--usr/src/lib/libc/port/sys/corectl.c25
-rw-r--r--usr/src/lib/libc/port/sys/exacctsys.c18
-rw-r--r--usr/src/lib/libc/port/sys/execl.c15
-rw-r--r--usr/src/lib/libc/port/sys/execle.c15
-rw-r--r--usr/src/lib/libc/port/sys/execv.c15
-rw-r--r--usr/src/lib/libc/port/sys/faccessat.c5
-rw-r--r--usr/src/lib/libc/port/sys/fsmisc.c12
-rw-r--r--usr/src/lib/libc/port/sys/fstatat.c14
-rw-r--r--usr/src/lib/libc/port/sys/getpagesizes.c8
-rw-r--r--usr/src/lib/libc/port/sys/getpeerucred.c12
-rw-r--r--usr/src/lib/libc/port/sys/inst_sync.c14
-rw-r--r--usr/src/lib/libc/port/sys/issetugid.c7
-rw-r--r--usr/src/lib/libc/port/sys/label.c7
-rw-r--r--usr/src/lib/libc/port/sys/libc_fcntl.c7
-rw-r--r--usr/src/lib/libc/port/sys/libc_link.c12
-rw-r--r--usr/src/lib/libc/port/sys/libc_open.c2
-rw-r--r--usr/src/lib/libc/port/sys/lockf.c6
-rw-r--r--usr/src/lib/libc/port/sys/lwp.c20
-rw-r--r--usr/src/lib/libc/port/sys/lwp_cond.c16
-rw-r--r--usr/src/lib/libc/port/sys/lwp_rwlock.c2
-rw-r--r--usr/src/lib/libc/port/sys/lwp_sigmask.c10
-rw-r--r--usr/src/lib/libc/port/sys/meminfosys.c12
-rw-r--r--usr/src/lib/libc/port/sys/msgsys.c15
-rw-r--r--usr/src/lib/libc/port/sys/nfssys.c9
-rw-r--r--usr/src/lib/libc/port/sys/openat.c2
-rw-r--r--usr/src/lib/libc/port/sys/pgrpsys.c14
-rw-r--r--usr/src/lib/libc/port/sys/posix_sigwait.c10
-rw-r--r--usr/src/lib/libc/port/sys/ppriv.c20
-rw-r--r--usr/src/lib/libc/port/sys/psetsys.c30
-rw-r--r--usr/src/lib/libc/port/sys/rctlsys.c12
-rw-r--r--usr/src/lib/libc/port/sys/sbrk.c10
-rw-r--r--usr/src/lib/libc/port/sys/semsys.c25
-rw-r--r--usr/src/lib/libc/port/sys/sharefs.c2
-rw-r--r--usr/src/lib/libc/port/sys/shmsys.c25
-rw-r--r--usr/src/lib/libc/port/sys/sidsys.c4
-rw-r--r--usr/src/lib/libc/port/sys/siginterrupt.c12
-rw-r--r--usr/src/lib/libc/port/sys/signal.c12
-rw-r--r--usr/src/lib/libc/port/sys/sigpending.c12
-rw-r--r--usr/src/lib/libc/port/sys/sigstack.c6
-rw-r--r--usr/src/lib/libc/port/sys/tasksys.c21
-rw-r--r--usr/src/lib/libc/port/sys/time.c14
-rw-r--r--usr/src/lib/libc/port/sys/ucontext.c6
-rw-r--r--usr/src/lib/libc/port/sys/umount.c12
-rw-r--r--usr/src/lib/libc/port/sys/ustat.c12
-rw-r--r--usr/src/lib/libc/port/sys/zone.c9
-rw-r--r--usr/src/lib/libc/port/threads/assfail.c18
-rw-r--r--usr/src/lib/libc/port/threads/cancel.c24
-rw-r--r--usr/src/lib/libc/port/threads/door_calls.c16
-rw-r--r--usr/src/lib/libc/port/threads/pthr_attr.c80
-rw-r--r--usr/src/lib/libc/port/threads/pthr_barrier.c43
-rw-r--r--usr/src/lib/libc/port/threads/pthr_cond.c34
-rw-r--r--usr/src/lib/libc/port/threads/pthr_mutex.c57
-rw-r--r--usr/src/lib/libc/port/threads/pthr_rwlock.c26
-rw-r--r--usr/src/lib/libc/port/threads/pthread.c43
-rw-r--r--usr/src/lib/libc/port/threads/rwlock.c98
-rw-r--r--usr/src/lib/libc/port/threads/scalls.c196
-rw-r--r--usr/src/lib/libc/port/threads/sema.c36
-rw-r--r--usr/src/lib/libc/port/threads/sigaction.c52
-rw-r--r--usr/src/lib/libc/port/threads/spawn.c90
-rw-r--r--usr/src/lib/libc/port/threads/synch.c203
-rw-r--r--usr/src/lib/libc/port/threads/tdb_agent.c4
-rw-r--r--usr/src/lib/libc/port/threads/thr.c214
-rw-r--r--usr/src/lib/libc/port/threads/tls.c2
-rw-r--r--usr/src/lib/libc/port/threads/tsd.c65
-rw-r--r--usr/src/lib/libc/port/tpool/thread_pool.c8
-rw-r--r--usr/src/lib/libc/port/tpool/thread_pool_impl.h4
-rw-r--r--usr/src/lib/libc/port/unwind/unwind.c11
-rw-r--r--usr/src/lib/libc/sparc/Makefile6
-rw-r--r--usr/src/lib/libc/sparc/crt/_ftou.c10
-rw-r--r--usr/src/lib/libc/sparc/crt/_rtld.c12
-rw-r--r--usr/src/lib/libc/sparc/fp/_Q_get_rp_rd.s11
-rw-r--r--usr/src/lib/libc/sparc/fp/_Q_set_except.c10
-rw-r--r--usr/src/lib/libc/sparc/fp/fpgetmask.s22
-rw-r--r--usr/src/lib/libc/sparc/fp/fpgetrnd.s22
-rw-r--r--usr/src/lib/libc/sparc/fp/fpgetsticky.s22
-rw-r--r--usr/src/lib/libc/sparc/fp/fpsetmask.s23
-rw-r--r--usr/src/lib/libc/sparc/fp/fpsetrnd.s22
-rw-r--r--usr/src/lib/libc/sparc/fp/fpsetsticky.s23
-rw-r--r--usr/src/lib/libc/sparc/gen/_stack_grow.s9
-rw-r--r--usr/src/lib/libc/sparc/gen/_xregs_clrptr.c10
-rw-r--r--usr/src/lib/libc/sparc/gen/ecvt.c21
-rw-r--r--usr/src/lib/libc/sparc/gen/getctxt.c4
-rw-r--r--usr/src/lib/libc/sparc/gen/ladd.s24
-rw-r--r--usr/src/lib/libc/sparc/gen/llog10.c53
-rw-r--r--usr/src/lib/libc/sparc/gen/lmul.c15
-rw-r--r--usr/src/lib/libc/sparc/gen/lshiftl.s25
-rw-r--r--usr/src/lib/libc/sparc/gen/lsign.s24
-rw-r--r--usr/src/lib/libc/sparc/gen/lsub.s24
-rw-r--r--usr/src/lib/libc/sparc/gen/makectxt.c19
-rw-r--r--usr/src/lib/libc/sparc/gen/memchr.s14
-rw-r--r--usr/src/lib/libc/sparc/gen/memcmp.s14
-rw-r--r--usr/src/lib/libc/sparc/gen/memcpy.s6
-rw-r--r--usr/src/lib/libc/sparc/gen/memmove.s14
-rw-r--r--usr/src/lib/libc/sparc/gen/memset.s4
-rw-r--r--usr/src/lib/libc/sparc/gen/setjmp.s19
-rw-r--r--usr/src/lib/libc/sparc/gen/siginfolst.c13
-rw-r--r--usr/src/lib/libc/sparc/gen/siglongjmp.c14
-rw-r--r--usr/src/lib/libc/sparc/gen/strcasecmp.s12
-rw-r--r--usr/src/lib/libc/sparc/gen/strchr.s11
-rw-r--r--usr/src/lib/libc/sparc/gen/strcmp.s11
-rw-r--r--usr/src/lib/libc/sparc/gen/strcpy.s11
-rw-r--r--usr/src/lib/libc/sparc/gen/strlcpy.s11
-rw-r--r--usr/src/lib/libc/sparc/gen/strlen.s12
-rw-r--r--usr/src/lib/libc/sparc/gen/strncmp.s18
-rw-r--r--usr/src/lib/libc/sparc/gen/strncpy.s12
-rw-r--r--usr/src/lib/libc/sparc/gen/swapctxt.c4
-rw-r--r--usr/src/lib/libc/sparc/inc/SYS.h9
-rw-r--r--usr/src/lib/libc/sparc/mapfile-vers2
-rw-r--r--usr/src/lib/libc/sparc/sys/_lwp_mutex_unlock.s7
-rw-r--r--usr/src/lib/libc/sparc/sys/door.s27
-rw-r--r--usr/src/lib/libc/sparc/sys/gettimeofday.s21
-rw-r--r--usr/src/lib/libc/sparc/sys/ptrace.c4
-rw-r--r--usr/src/lib/libc/sparc/sys/syscall.s24
-rw-r--r--usr/src/lib/libc/sparc/sys/vforkx.s13
-rw-r--r--usr/src/lib/libc/sparc/threads/asm_subr.s9
-rw-r--r--usr/src/lib/libc/sparc/threads/machdep.c2
-rw-r--r--usr/src/lib/libc/sparc/threads/tls_get_addr.s12
-rw-r--r--usr/src/lib/libc/sparcv9/Makefile6
-rw-r--r--usr/src/lib/libc/sparcv9/crt/__align_cpy_2.s14
-rw-r--r--usr/src/lib/libc/sparcv9/crt/__align_cpy_4.s16
-rw-r--r--usr/src/lib/libc/sparcv9/crt/__align_cpy_8.s16
-rw-r--r--usr/src/lib/libc/sparcv9/crt/_ftou.c10
-rw-r--r--usr/src/lib/libc/sparcv9/fp/_Q_get_rp_rd.s11
-rw-r--r--usr/src/lib/libc/sparcv9/fp/fpgetmask.s22
-rw-r--r--usr/src/lib/libc/sparcv9/fp/fpgetrnd.s22
-rw-r--r--usr/src/lib/libc/sparcv9/fp/fpgetsticky.s22
-rw-r--r--usr/src/lib/libc/sparcv9/fp/fpsetmask.s23
-rw-r--r--usr/src/lib/libc/sparcv9/fp/fpsetrnd.s22
-rw-r--r--usr/src/lib/libc/sparcv9/fp/fpsetsticky.s23
-rw-r--r--usr/src/lib/libc/sparcv9/gen/_xregs_clrptr.c10
-rw-r--r--usr/src/lib/libc/sparcv9/gen/abs.s15
-rw-r--r--usr/src/lib/libc/sparcv9/gen/ecvt.c21
-rw-r--r--usr/src/lib/libc/sparcv9/gen/getctxt.c4
-rw-r--r--usr/src/lib/libc/sparcv9/gen/lexp10.c52
-rw-r--r--usr/src/lib/libc/sparcv9/gen/makectxt.c19
-rw-r--r--usr/src/lib/libc/sparcv9/gen/memchr.s14
-rw-r--r--usr/src/lib/libc/sparcv9/gen/memcmp.s14
-rw-r--r--usr/src/lib/libc/sparcv9/gen/memcpy.s4
-rw-r--r--usr/src/lib/libc/sparcv9/gen/memmove.s14
-rw-r--r--usr/src/lib/libc/sparcv9/gen/memset.s4
-rw-r--r--usr/src/lib/libc/sparcv9/gen/setjmp.s19
-rw-r--r--usr/src/lib/libc/sparcv9/gen/siginfolst.c13
-rw-r--r--usr/src/lib/libc/sparcv9/gen/siglongjmp.c14
-rw-r--r--usr/src/lib/libc/sparcv9/gen/strcasecmp.s13
-rw-r--r--usr/src/lib/libc/sparcv9/gen/strchr.s11
-rw-r--r--usr/src/lib/libc/sparcv9/gen/strcmp.s12
-rw-r--r--usr/src/lib/libc/sparcv9/gen/strcpy.s11
-rw-r--r--usr/src/lib/libc/sparcv9/gen/strlcpy.s11
-rw-r--r--usr/src/lib/libc/sparcv9/gen/strlen.s12
-rw-r--r--usr/src/lib/libc/sparcv9/gen/strncmp.s3
-rw-r--r--usr/src/lib/libc/sparcv9/gen/strncpy.s11
-rw-r--r--usr/src/lib/libc/sparcv9/gen/swapctxt.c4
-rw-r--r--usr/src/lib/libc/sparcv9/inc/SYS.h9
-rw-r--r--usr/src/lib/libc/sparcv9/mapfile-vers1
651 files changed, 4665 insertions, 8223 deletions
diff --git a/usr/src/lib/libc/amd64/Makefile b/usr/src/lib/libc/amd64/Makefile
index 3762e097e0..d2db427b4f 100644
--- a/usr/src/lib/libc/amd64/Makefile
+++ b/usr/src/lib/libc/amd64/Makefile
@@ -109,10 +109,7 @@ GENOBJS= \
errlst.o \
amd64_data.o \
ldivide.o \
- lexp10.o \
- llog10.o \
lock.o \
- ltostr.o \
makectxt.o \
memccpy.o \
memchr.o \
@@ -452,10 +449,12 @@ PORTGEN= \
l64a.o \
lckpwdf.o \
lconstants.o \
+ lexp10.o \
lfind.o \
lfmt.o \
lfmt_log.o \
lldiv.o \
+ llog10.o \
lltostr.o \
lmath.o \
localtime.o \
@@ -988,9 +987,6 @@ SRCS= \
$(FPOBJS:%.o=fp/%.c) \
$(I386FPOBJS:%.o=../i386/fp/%.c) \
$(LIBCBASE)/gen/ecvt.c \
- $(LIBCBASE)/gen/lexp10.c \
- $(LIBCBASE)/gen/llog10.c \
- $(LIBCBASE)/gen/ltostr.c \
$(LIBCBASE)/gen/makectxt.c \
$(LIBCBASE)/gen/siginfolst.c \
$(LIBCBASE)/gen/siglongjmp.c \
diff --git a/usr/src/lib/libc/amd64/fp/_base_il.c b/usr/src/lib/libc/amd64/fp/_base_il.c
index 5ced00d6cf..da4e3ea506 100644
--- a/usr/src/lib/libc/amd64/fp/_base_il.c
+++ b/usr/src/lib/libc/amd64/fp/_base_il.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,16 +18,15 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2005 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
-/*LINTLIBRARY*/
-
-#include "synonyms.h"
+#include "lint.h"
#include "base_conversion.h"
#include <sys/isa_defs.h>
diff --git a/usr/src/lib/libc/amd64/fp/fpgetmask.c b/usr/src/lib/libc/amd64/fp/fpgetmask.c
index c0ac38ffb6..169d911a40 100644
--- a/usr/src/lib/libc/amd64/fp/fpgetmask.c
+++ b/usr/src/lib/libc/amd64/fp/fpgetmask.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,20 +18,21 @@
*
* CDDL HEADER END
*/
-/* Copyright (c) 1990, 1991 UNIX System Laboratories, Inc. */
-/* Copyright (c) 1988 AT&T */
-/* All Rights Reserved */
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
+/* Copyright (c) 1990, 1991 UNIX System Laboratories, Inc. */
+/* Copyright (c) 1988 AT&T */
+/* All Rights Reserved */
+
#pragma ident "%Z%%M% %I% %E% SMI"
-#pragma weak fpgetmask = _fpgetmask
+#pragma weak _fpgetmask = fpgetmask
-#include "synonyms.h"
+#include "lint.h"
#include <ieeefp.h>
#include "fp.h"
diff --git a/usr/src/lib/libc/amd64/fp/fpgetround.c b/usr/src/lib/libc/amd64/fp/fpgetround.c
index 4966c4fb0b..19a437f04d 100644
--- a/usr/src/lib/libc/amd64/fp/fpgetround.c
+++ b/usr/src/lib/libc/amd64/fp/fpgetround.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,20 +18,21 @@
*
* CDDL HEADER END
*/
-/* Copyright (c) 1990, 1991 UNIX System Laboratories, Inc. */
-/* Copyright (c) 1988 AT&T */
-/* All Rights Reserved */
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
+/* Copyright (c) 1990, 1991 UNIX System Laboratories, Inc. */
+/* Copyright (c) 1988 AT&T */
+/* All Rights Reserved */
+
#pragma ident "%Z%%M% %I% %E% SMI"
-#pragma weak fpgetround = _fpgetround
+#pragma weak _fpgetround = fpgetround
-#include "synonyms.h"
+#include "lint.h"
#include <ieeefp.h>
#include "fp.h"
diff --git a/usr/src/lib/libc/amd64/fp/fpgetsticky.c b/usr/src/lib/libc/amd64/fp/fpgetsticky.c
index c0eb41d6a3..651922b0cc 100644
--- a/usr/src/lib/libc/amd64/fp/fpgetsticky.c
+++ b/usr/src/lib/libc/amd64/fp/fpgetsticky.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,22 +18,23 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
-#include <ieeefp.h>
-#include "synonyms.h"
+#pragma weak _fpgetsticky = fpgetsticky
-#pragma weak fpgetsticky = _fpgetsticky
+#include "lint.h"
+#include <ieeefp.h>
extern void _getsw(int *), _getmxcsr(int *);
fp_except
-_fpgetsticky(void) {
+fpgetsticky(void) {
int sw, mxcsr;
_getsw(&sw);
diff --git a/usr/src/lib/libc/amd64/fp/fpsetmask.c b/usr/src/lib/libc/amd64/fp/fpsetmask.c
index 36354eb342..b6b7230ae8 100644
--- a/usr/src/lib/libc/amd64/fp/fpsetmask.c
+++ b/usr/src/lib/libc/amd64/fp/fpsetmask.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,22 +18,23 @@
*
* CDDL HEADER END
*/
-/* Copyright (c) 1990, 1991 UNIX System Laboratories, Inc. */
-/* Copyright (c) 1988 AT&T */
-/* All Rights Reserved */
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
+/* Copyright (c) 1990, 1991 UNIX System Laboratories, Inc. */
+/* Copyright (c) 1988 AT&T */
+/* All Rights Reserved */
+
#pragma ident "%Z%%M% %I% %E% SMI"
-#pragma weak fpsetmask = _fpsetmask
+#pragma weak _fpsetmask = fpsetmask
extern void _getmxcsr(int *), _putmxcsr(int);
-#include "synonyms.h"
+#include "lint.h"
#include <ieeefp.h>
#include "fp.h"
diff --git a/usr/src/lib/libc/amd64/fp/fpsetround.c b/usr/src/lib/libc/amd64/fp/fpsetround.c
index df1d14408c..3312c2d5d8 100644
--- a/usr/src/lib/libc/amd64/fp/fpsetround.c
+++ b/usr/src/lib/libc/amd64/fp/fpsetround.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,20 +18,21 @@
*
* CDDL HEADER END
*/
-/* Copyright (c) 1990, 1991 UNIX System Laboratories, Inc. */
-/* Copyright (c) 1988 AT&T */
-/* All Rights Reserved */
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
+/* Copyright (c) 1990, 1991 UNIX System Laboratories, Inc. */
+/* Copyright (c) 1988 AT&T */
+/* All Rights Reserved */
+
#pragma ident "%Z%%M% %I% %E% SMI"
-#pragma weak fpsetround = _fpsetround
+#pragma weak _fpsetround = fpsetround
-#include "synonyms.h"
+#include "lint.h"
#include <ieeefp.h>
#include "fp.h"
diff --git a/usr/src/lib/libc/amd64/fp/fpsetsticky.c b/usr/src/lib/libc/amd64/fp/fpsetsticky.c
index c764dd3075..7092506a5a 100644
--- a/usr/src/lib/libc/amd64/fp/fpsetsticky.c
+++ b/usr/src/lib/libc/amd64/fp/fpsetsticky.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,22 +18,23 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
+#include "lint.h"
#include <ieeefp.h>
-#include "synonyms.h"
-#pragma weak fpsetsticky = _fpsetsticky
+#pragma weak _fpsetsticky = fpsetsticky
extern void _getsw(int *), _putsw(int), _getmxcsr(int *), _putmxcsr(int);
fp_except
-_fpsetsticky(fp_except s) {
+fpsetsticky(fp_except s) {
int sw, mxcsr;
_getsw(&sw);
diff --git a/usr/src/lib/libc/amd64/fp/fpstart.c b/usr/src/lib/libc/amd64/fp/fpstart.c
index 7648ced19a..a091d82977 100644
--- a/usr/src/lib/libc/amd64/fp/fpstart.c
+++ b/usr/src/lib/libc/amd64/fp/fpstart.c
@@ -43,7 +43,7 @@
#pragma weak _fpstart = __fpstart
-#include "synonyms.h"
+#include "lint.h"
#include <sys/types.h>
#include <sys/sysi86.h> /* for SI86FPHW/SI86FPSTART definitions */
#include <sys/fp.h> /* for FPU_CW_INIT and SSE_MXCSR_INIT */
diff --git a/usr/src/lib/libc/amd64/gen/abs.s b/usr/src/lib/libc/amd64/gen/abs.s
index fe559eb08f..cbbad9e274 100644
--- a/usr/src/lib/libc/amd64/gen/abs.s
+++ b/usr/src/lib/libc/amd64/gen/abs.s
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -21,11 +20,11 @@
*/
/*
- * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
- .ident "%Z%%M% %I% %E% SMI"
+#pragma ident "%Z%%M% %I% %E% SMI"
.file "%M%"
@@ -39,10 +38,6 @@
* }
*/
-#include <sys/asm_linkage.h>
-
- ANSI_PRAGMA_WEAK(llabs,function)
-
#include "SYS.h"
ENTRY(abs)
diff --git a/usr/src/lib/libc/amd64/gen/ecvt.c b/usr/src/lib/libc/amd64/gen/ecvt.c
index 5b135f343c..23e82f8945 100644
--- a/usr/src/lib/libc/amd64/gen/ecvt.c
+++ b/usr/src/lib/libc/amd64/gen/ecvt.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,15 +18,15 @@
*
* CDDL HEADER END
*/
-/* Copyright (c) 1988 AT&T */
-/* All Rights Reserved */
-
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
+/* Copyright (c) 1988 AT&T */
+/* All Rights Reserved */
+
#pragma ident "%Z%%M% %I% %E% SMI"
/*
@@ -38,13 +37,10 @@
*
*/
-#pragma weak ecvt = _ecvt
-#pragma weak fcvt = _fcvt
-#pragma weak qecvt = _qecvt
-#pragma weak qfcvt = _qfcvt
-#pragma weak qgcvt = _qgcvt
+#pragma weak _ecvt = ecvt
+#pragma weak _fcvt = fcvt
-#include "synonyms.h"
+#include "lint.h"
#include <sys/types.h>
#include <stdlib.h>
#include <floatingpoint.h>
diff --git a/usr/src/lib/libc/amd64/gen/lexp10.c b/usr/src/lib/libc/amd64/gen/lexp10.c
deleted file mode 100644
index 122d1aa736..0000000000
--- a/usr/src/lib/libc/amd64/gen/lexp10.c
+++ /dev/null
@@ -1,53 +0,0 @@
-/*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
- *
- * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information: Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- */
-/* Copyright (c) 1988 AT&T */
-/* All Rights Reserved */
-
-
-/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
- * Use is subject to license terms.
- */
-
-#pragma ident "%Z%%M% %I% %E% SMI"
-
-#pragma weak lexp10 = _lexp10
-
-#include "synonyms.h"
-#include <sys/types.h>
-#include <sys/dl.h>
-
-dl_t
-lexp10(exp)
-dl_t exp;
-{
- dl_t result;
-
- result = lone;
-
- while (exp.dl_hop != 0 || exp.dl_lop != 0) {
- result = lmul(result, lten);
- exp = lsub(exp, lone);
- }
-
- return (result);
-}
diff --git a/usr/src/lib/libc/amd64/gen/llog10.c b/usr/src/lib/libc/amd64/gen/llog10.c
deleted file mode 100644
index 13407fa44a..0000000000
--- a/usr/src/lib/libc/amd64/gen/llog10.c
+++ /dev/null
@@ -1,54 +0,0 @@
-/*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
- *
- * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information: Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- */
-/* Copyright (c) 1988 AT&T */
-/* All Rights Reserved */
-
-
-/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
- * Use is subject to license terms.
- */
-
-#pragma ident "%Z%%M% %I% %E% SMI"
-
-#pragma weak llog10 = _llog10
-
-#include "synonyms.h"
-#include <sys/types.h>
-#include <sys/dl.h>
-
-dl_t
-llog10(val)
-dl_t val;
-{
- dl_t result;
-
- result = lzero;
- val = ldivide(val, lten);
-
- while (val.dl_hop != 0 || val.dl_lop != 0) {
- val = ldivide(val, lten);
- result = ladd(result, lone);
- }
-
- return (result);
-}
diff --git a/usr/src/lib/libc/amd64/gen/ltostr.c b/usr/src/lib/libc/amd64/gen/ltostr.c
deleted file mode 100644
index a213156374..0000000000
--- a/usr/src/lib/libc/amd64/gen/ltostr.c
+++ /dev/null
@@ -1,67 +0,0 @@
-/*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
- *
- * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information: Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- */
-/* Copyright (c) 1988 AT&T */
-/* All Rights Reserved */
-
-
-/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
- * Use is subject to license terms.
- */
-
-#pragma ident "%Z%%M% %I% %E% SMI"
-
-/*
- * ltostr -- convert long to decimal string
- *
- *
- * char *
- * ltostr(value, ptr)
- * long value;
- * char *ptr;
- *
- * Ptr is assumed to point to the byte following a storage area
- * into which the decimal representation of "value" is to be
- * placed as a string. Ltostr converts "value" to decimal and
- * produces the string, and returns a pointer to the beginning
- * of the string. No leading zeroes are produced, and no
- * terminating null is produced. The low-order digit of the
- * result always occupies memory position ptr-1.
- * Ltostr's behavior is undefined if "value" is negative. A single
- * zero digit is produced if "value" is zero.
- *
- */
-#include "synonyms.h"
-
-char *
-_ltostr(value, ptr)
-register long value;
-register char *ptr;
-{
- register long t;
-
- do {
- *--ptr = '0' + value - 10 * (t = value / 10);
- } while ((value = t) != 0);
-
- return (ptr);
-}
diff --git a/usr/src/lib/libc/amd64/gen/makectxt.c b/usr/src/lib/libc/amd64/gen/makectxt.c
index 1ca4bebd50..5b2ce15313 100644
--- a/usr/src/lib/libc/amd64/gen/makectxt.c
+++ b/usr/src/lib/libc/amd64/gen/makectxt.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,20 +18,20 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
-
#pragma ident "%Z%%M% %I% %E% SMI"
-#pragma weak makecontext = _makecontext
+#pragma weak _makecontext = makecontext
-#include "synonyms.h"
+#include "lint.h"
#include <stdarg.h>
#include <ucontext.h>
#include <sys/stack.h>
@@ -120,6 +119,6 @@ resumecontext(void)
{
ucontext_t uc;
- getcontext(&uc);
- setcontext(uc.uc_link);
+ (void) getcontext(&uc);
+ (void) setcontext(uc.uc_link);
}
diff --git a/usr/src/lib/libc/amd64/gen/memccpy.s b/usr/src/lib/libc/amd64/gen/memccpy.s
index 2743161583..a3c57d0115 100644
--- a/usr/src/lib/libc/amd64/gen/memccpy.s
+++ b/usr/src/lib/libc/amd64/gen/memccpy.s
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,12 +18,13 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
- .ident "%Z%%M% %I% %E% SMI"
+#pragma ident "%Z%%M% %I% %E% SMI"
.file "%M%"
@@ -32,8 +32,6 @@
ANSI_PRAGMA_WEAK(memccpy,function)
-#include "SYS.h"
-
ENTRY(memccpy) /* (void *dst, void *src, uchar_t c, size_t) */
.loop:
decq %rcx / decrement bytes to go
diff --git a/usr/src/lib/libc/amd64/gen/memcpy.s b/usr/src/lib/libc/amd64/gen/memcpy.s
index 1b77babf0a..7d5dc2f624 100644
--- a/usr/src/lib/libc/amd64/gen/memcpy.s
+++ b/usr/src/lib/libc/amd64/gen/memcpy.s
@@ -20,6 +20,11 @@
*/
/*
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
+ * Use is subject to license terms.
+ */
+
+/*
* Copyright (c) 2008, Intel Corporation
* All rights reserved.
*/
@@ -28,15 +33,16 @@
* memcpy.s - copies two blocks of memory
* Implements memcpy() and memmove() libc primitives.
*/
- .ident "%Z%%M% %I% %E% SMI"
+
+#pragma ident "%Z%%M% %I% %E% SMI"
.file "%M%"
#include <sys/asm_linkage.h>
+
ANSI_PRAGMA_WEAK(memmove,function)
ANSI_PRAGMA_WEAK(memcpy,function)
-#include "synonyms.h"
#include "cache.h"
#include "proc64_id.h"
diff --git a/usr/src/lib/libc/amd64/gen/memset.s b/usr/src/lib/libc/amd64/gen/memset.s
index 618fcb874d..754d72910f 100644
--- a/usr/src/lib/libc/amd64/gen/memset.s
+++ b/usr/src/lib/libc/amd64/gen/memset.s
@@ -20,18 +20,23 @@
*/
/*
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
+ * Use is subject to license terms.
+ */
+
+/*
* Copyright (c) 2008, Intel Corporation
* All rights reserved.
*/
- .ident "%Z%%M% %I% %E% SMI"
- .file "%M%"
+#pragma ident "%Z%%M% %I% %E% SMI"
+
+ .file "%M%"
#include <sys/asm_linkage.h>
- ANSI_PRAGMA_WEAK(memset,function)
+ ANSI_PRAGMA_WEAK(memset,function)
-#include "synonyms.h"
#include "cache.h"
#include "proc64_id.h"
diff --git a/usr/src/lib/libc/amd64/gen/proc64_support.s b/usr/src/lib/libc/amd64/gen/proc64_support.s
index ac2c354aa5..5ac7f046b2 100644
--- a/usr/src/lib/libc/amd64/gen/proc64_support.s
+++ b/usr/src/lib/libc/amd64/gen/proc64_support.s
@@ -20,6 +20,11 @@
*/
/*
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
+ * Use is subject to license terms.
+ */
+
+/*
* Copyright (c) 2008, Intel Corporation
* All rights reserved.
*/
@@ -28,12 +33,12 @@
* Assembler support routines to getcpuid information used to set
* cache size information. Cache information used by memset, strcpy, etc..
*/
- .ident "%Z%%M% %I% %E% SMI"
+
+#pragma ident "%Z%%M% %I% %E% SMI"
.file "%M%"
#include <sys/asm_linkage.h>
-#include "synonyms.h"
#include "proc64_id.h"
.global .memops_method
diff --git a/usr/src/lib/libc/amd64/gen/setjmp.s b/usr/src/lib/libc/amd64/gen/setjmp.s
index ab8b79fcec..762a88f3a7 100644
--- a/usr/src/lib/libc/amd64/gen/setjmp.s
+++ b/usr/src/lib/libc/amd64/gen/setjmp.s
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,12 +18,13 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
- .ident "%Z%%M% %I% %E% SMI"
+#pragma ident "%Z%%M% %I% %E% SMI"
.file "%M%"
@@ -54,8 +54,6 @@
ANSI_PRAGMA_WEAK(setjmp,function)
ANSI_PRAGMA_WEAK(longjmp,function)
-#include "SYS.h"
-
ENTRY(setjmp)
movq %rbx, 0(%rdi)
movq %r12, 8(%rdi)
diff --git a/usr/src/lib/libc/amd64/gen/siginfolst.c b/usr/src/lib/libc/amd64/gen/siginfolst.c
index 28a17bc804..fb2868f22f 100644
--- a/usr/src/lib/libc/amd64/gen/siginfolst.c
+++ b/usr/src/lib/libc/amd64/gen/siginfolst.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,18 +18,18 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
-
#pragma ident "%Z%%M% %I% %E% SMI"
-#include "synonyms.h"
+#include "lint.h"
#include <signal.h>
#include <siginfo.h>
diff --git a/usr/src/lib/libc/amd64/gen/siglongjmp.c b/usr/src/lib/libc/amd64/gen/siglongjmp.c
index 4bc4c579a4..07a89b485f 100644
--- a/usr/src/lib/libc/amd64/gen/siglongjmp.c
+++ b/usr/src/lib/libc/amd64/gen/siglongjmp.c
@@ -20,24 +20,22 @@
*/
/*
- * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
-#pragma weak siglongjmp = _siglongjmp
+#pragma weak _siglongjmp = siglongjmp
-#include "synonyms.h"
+#include "lint.h"
#include <sys/types.h>
#include <sys/ucontext.h>
#include <setjmp.h>
#include <ucontext.h>
-extern int _setcontext(const ucontext_t *);
-
void
-_siglongjmp(sigjmp_buf env, int val)
+siglongjmp(sigjmp_buf env, int val)
{
/* LINTED alignment */
ucontext_t *ucp = (ucontext_t *)env;
@@ -47,5 +45,5 @@ _siglongjmp(sigjmp_buf env, int val)
else
ucp->uc_mcontext.gregs[REG_R0] = 1;
- (void) _setcontext(ucp);
+ (void) setcontext(ucp);
}
diff --git a/usr/src/lib/libc/amd64/gen/wschr.s b/usr/src/lib/libc/amd64/gen/wschr.s
index ced5362101..eb80866bf2 100644
--- a/usr/src/lib/libc/amd64/gen/wschr.s
+++ b/usr/src/lib/libc/amd64/gen/wschr.s
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,12 +18,13 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
- .ident "%Z%%M% %I% %E% SMI"
+#pragma ident "%Z%%M% %I% %E% SMI"
.file "%M%"
@@ -33,19 +33,15 @@
/
/ Algorithm based on Solaris 2.6 gen/strchr.s implementation
/
-/ .ident "@(#)strchr.s 1.1 92/04/17 SMI"
-/
#include <sys/asm_linkage.h>
ANSI_PRAGMA_WEAK(wcschr,function)
ANSI_PRAGMA_WEAK(wschr,function)
-#include "SYS.h"
-
.align 8 / accounts for .loop alignment and prolog
- ENTRY(_wcschr) /* (wchar_t *s, wchar_t wc) */
+ ENTRY(wcschr) /* (wchar_t *s, wchar_t wc) */
movq %rdi,%rax
.loop:
movl (%rax),%edx / %edx = wchar of string
@@ -87,8 +83,8 @@
addq $4,%rax
.found:
ret
- SET_SIZE(_wcschr)
+ SET_SIZE(wcschr)
- ENTRY(_wschr)
- jmp _wcschr / tail call into _wcschr
- SET_SIZE(_wschr)
+ ENTRY(wschr)
+ jmp wcschr / tail call into wcschr
+ SET_SIZE(wschr)
diff --git a/usr/src/lib/libc/amd64/gen/wslen.s b/usr/src/lib/libc/amd64/gen/wslen.s
index f27d0ba675..155191a997 100644
--- a/usr/src/lib/libc/amd64/gen/wslen.s
+++ b/usr/src/lib/libc/amd64/gen/wslen.s
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,12 +18,13 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
- .ident "%Z%%M% %I% %E% SMI"
+#pragma ident "%Z%%M% %I% %E% SMI"
.file "%M%"
@@ -32,7 +32,7 @@
* Wide character wcslen() implementation
*
* size_t
- * _wcslen(const wchar_t *s)
+ * wcslen(const wchar_t *s)
*{
* const wchar_t *s0 = s + 1;
* while (*s++)
@@ -46,9 +46,7 @@
ANSI_PRAGMA_WEAK(wcslen,function)
ANSI_PRAGMA_WEAK(wslen,function)
-#include "SYS.h"
-
- ENTRY(_wcslen) /* (wchar_t *) */
+ ENTRY(wcslen) /* (wchar_t *) */
xorl %eax,%eax
.align 8
@@ -80,8 +78,8 @@
.out3:
addq $3, %rax
ret
- SET_SIZE(_wcslen)
+ SET_SIZE(wcslen)
- ENTRY(_wslen)
- jmp _wcslen / tail call into _wcslen
- SET_SIZE(_wslen)
+ ENTRY(wslen)
+ jmp wcslen / tail call into wcslen
+ SET_SIZE(wslen)
diff --git a/usr/src/lib/libc/amd64/gen/wsncmp.s b/usr/src/lib/libc/amd64/gen/wsncmp.s
index b1e8fd91ff..7697cac3b7 100644
--- a/usr/src/lib/libc/amd64/gen/wsncmp.s
+++ b/usr/src/lib/libc/amd64/gen/wsncmp.s
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,12 +18,13 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
- .ident "%Z%%M% %I% %E% SMI"
+#pragma ident "%Z%%M% %I% %E% SMI"
.file "%M%"
@@ -33,17 +33,13 @@
/
/ Algorithm based on Solaris 2.6 gen/strncpy.s implementation
/
-/ .ident "@(#)strncpy.s 1.1 92/04/17 SMI"
-/
#include <sys/asm_linkage.h>
ANSI_PRAGMA_WEAK(wcsncmp,function)
ANSI_PRAGMA_WEAK(wsncmp,function)
-#include "SYS.h"
-
- ENTRY(_wcsncmp) /* (wchar *ws1, wchar_t *ws2, size_t n) */
+ ENTRY(wcsncmp) /* (wchar *ws1, wchar_t *ws2, size_t n) */
cmpq %rdi,%rsi / same string?
je .equal
incq %rdx / will later predecrement this uint
@@ -96,8 +92,8 @@
.notequal_0:
subl (%rsi),%eax / return value is (*s1 - *--s2)
ret
- SET_SIZE(_wcsncmp)
+ SET_SIZE(wcsncmp)
- ENTRY(_wsncmp)
- jmp _wcsncmp / tail call into _wcsncmp
- SET_SIZE(_wsncmp)
+ ENTRY(wsncmp)
+ jmp wcsncmp / tail call into wcsncmp
+ SET_SIZE(wsncmp)
diff --git a/usr/src/lib/libc/amd64/inc/SYS.h b/usr/src/lib/libc/amd64/inc/SYS.h
index 3c45d609a8..e3b1e09bb3 100644
--- a/usr/src/lib/libc/amd64/inc/SYS.h
+++ b/usr/src/lib/libc/amd64/inc/SYS.h
@@ -18,8 +18,9 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
@@ -34,15 +35,6 @@
#include <sys/asm_linkage.h>
#include <sys/syscall.h>
#include <sys/errno.h>
-#include "synonyms.h"
-
-#undef syscall /* override synonyms.h */
-
-/*
- * XX64 -- the SOS9 assembler doesn't recognize the 'syscall' instruction yet.
- * We compensate by defining the byte sequence here.
- */
-#define syscall .byte 0xf, 0x5
#define _fref_(name) name@PLT
#define _daref_(name) name@GOTPCREL(%rip)
diff --git a/usr/src/lib/libc/amd64/sys/_lwp_mutex_unlock.s b/usr/src/lib/libc/amd64/sys/_lwp_mutex_unlock.s
index bb8723a8ae..e89a141fa4 100644
--- a/usr/src/lib/libc/amd64/sys/_lwp_mutex_unlock.s
+++ b/usr/src/lib/libc/amd64/sys/_lwp_mutex_unlock.s
@@ -28,10 +28,6 @@
.file "%M%"
-#include <sys/asm_linkage.h>
-
- ANSI_PRAGMA_WEAK(_lwp_mutex_unlock,function)
-
#include "SYS.h"
#include <../assym.h>
diff --git a/usr/src/lib/libc/amd64/sys/door.s b/usr/src/lib/libc/amd64/sys/door.s
index 381e14b503..fc32051198 100644
--- a/usr/src/lib/libc/amd64/sys/door.s
+++ b/usr/src/lib/libc/amd64/sys/door.s
@@ -28,27 +28,18 @@
.file "%M%"
-#include <sys/asm_linkage.h>
+#include "SYS.h"
+#include <sys/door.h>
/*
* weak aliases for public interfaces
*/
- ANSI_PRAGMA_WEAK(_door_bind,function)
- ANSI_PRAGMA_WEAK(_door_getparam,function)
- ANSI_PRAGMA_WEAK(_door_info,function)
- ANSI_PRAGMA_WEAK(_door_revoke,function)
- ANSI_PRAGMA_WEAK(_door_setparam,function)
- ANSI_PRAGMA_WEAK(_door_unbind,function)
-
- ANSI_PRAGMA_WEAK(door_bind,function)
- ANSI_PRAGMA_WEAK(door_getparam,function)
- ANSI_PRAGMA_WEAK(door_info,function)
- ANSI_PRAGMA_WEAK(door_revoke,function)
- ANSI_PRAGMA_WEAK(door_setparam,function)
- ANSI_PRAGMA_WEAK(door_unbind,function)
-
-#include <sys/door.h>
-#include "SYS.h"
+ ANSI_PRAGMA_WEAK2(door_bind,__door_bind,function)
+ ANSI_PRAGMA_WEAK2(door_getparam,__door_getparam,function)
+ ANSI_PRAGMA_WEAK2(door_info,__door_info,function)
+ ANSI_PRAGMA_WEAK2(door_revoke,__door_revoke,function)
+ ANSI_PRAGMA_WEAK2(door_setparam,__door_setparam,function)
+ ANSI_PRAGMA_WEAK2(door_unbind,__door_unbind,function)
/*
* Offsets within struct door_results
@@ -127,7 +118,7 @@ door_restart:
call *%rax
/* Exit the thread if we return here */
movq $0, %rdi
- call _thr_terminate
+ call _thrp_terminate
/* NOTREACHED */
2:
/*
diff --git a/usr/src/lib/libc/amd64/sys/gettimeofday.s b/usr/src/lib/libc/amd64/sys/gettimeofday.s
index 0693fd8161..9dfd958292 100644
--- a/usr/src/lib/libc/amd64/sys/gettimeofday.s
+++ b/usr/src/lib/libc/amd64/sys/gettimeofday.s
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,8 +18,9 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
@@ -28,19 +28,17 @@
.file "%M%"
-#include <sys/asm_linkage.h>
+#include "SYS.h"
ANSI_PRAGMA_WEAK(gettimeofday,function)
-#include "SYS.h"
-
/*
* implements int gettimeofday(struct timeval *tp, void *tzp)
*
* note that tzp is always ignored
*/
- ENTRY(_gettimeofday)
+ ENTRY(gettimeofday)
/*
* use long long gethrestime()
*/
@@ -60,5 +58,5 @@
movq %rdx, 8(%rcx) /* store usecs into timeval ptr + 8. */
1:
RETC /* return 0 */
- SET_SIZE(_gettimeofday)
+ SET_SIZE(gettimeofday)
diff --git a/usr/src/lib/libc/amd64/sys/lwp_private.s b/usr/src/lib/libc/amd64/sys/lwp_private.s
index d6f0f0621a..757dd83209 100644
--- a/usr/src/lib/libc/amd64/sys/lwp_private.s
+++ b/usr/src/lib/libc/amd64/sys/lwp_private.s
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,22 +18,21 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
- .file "lwp_private.s"
-
-#include <sys/asm_linkage.h>
+ .file "%M%"
#include "SYS.h"
/*
* int
- * __lwp_setprivate(int cmd, int which, void *base)
+ * ___lwp_private(int cmd, int which, void *base)
*/
ENTRY(___lwp_private)
SYSTRAP_RVAL1(lwp_private)
diff --git a/usr/src/lib/libc/amd64/sys/syscall.s b/usr/src/lib/libc/amd64/sys/syscall.s
index 1eb1627751..d93ca204b6 100644
--- a/usr/src/lib/libc/amd64/sys/syscall.s
+++ b/usr/src/lib/libc/amd64/sys/syscall.s
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,8 +18,9 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
@@ -28,16 +28,11 @@
.file "%M%"
-#include <sys/asm_linkage.h>
-
- ANSI_PRAGMA_WEAK(syscall,function)
-
#include "SYS.h"
-#undef _syscall /* override "synonyms.h" */
-#undef __systemcall
+ ANSI_PRAGMA_WEAK(syscall,function)
- ENTRY(_syscall)
+ ENTRY(syscall)
pushq %rbp
movq %rsp, %rbp
/* construct a new call stack frame */
@@ -61,7 +56,7 @@
leave
SYSCERROR
ret
- SET_SIZE(_syscall)
+ SET_SIZE(syscall)
/*
* Same as _syscall(), but restricted to 6 syscall arguments
diff --git a/usr/src/lib/libc/amd64/sys/sysi86.s b/usr/src/lib/libc/amd64/sys/sysi86.s
index 14e47db53c..bb1edbfd2a 100644
--- a/usr/src/lib/libc/amd64/sys/sysi86.s
+++ b/usr/src/lib/libc/amd64/sys/sysi86.s
@@ -28,14 +28,10 @@
.file "%M%"
-#include <sys/asm_linkage.h>
+#include "SYS.h"
ANSI_PRAGMA_WEAK(sysi86,function)
-#include "SYS.h"
-
- ENTRY(_sysi86)
- SYSTRAP_RVAL1(sysi86)
- SYSCERROR
+ SYSCALL_RVAL1(sysi86)
RET
- SET_SIZE(_sysi86)
+ SET_SIZE(sysi86)
diff --git a/usr/src/lib/libc/amd64/sys/uadmin.c b/usr/src/lib/libc/amd64/sys/uadmin.c
index 8caf6d5bc3..bc15f4a9e3 100644
--- a/usr/src/lib/libc/amd64/sys/uadmin.c
+++ b/usr/src/lib/libc/amd64/sys/uadmin.c
@@ -26,8 +26,6 @@
#pragma ident "%Z%%M% %I% %E% SMI"
-#pragma weak uadmin = _uadmin
-
/*
* Wrapper function to implement reboot w/ arguments on x86
* platforms. Extract reboot arguments and place them in
@@ -35,7 +33,7 @@
* All other commands are passed through.
*/
-#include "synonyms.h"
+#include "lint.h"
#include <fcntl.h>
#include <ctype.h>
#include <stdio.h>
diff --git a/usr/src/lib/libc/amd64/sys/vforkx.s b/usr/src/lib/libc/amd64/sys/vforkx.s
index 507518572b..741cf593c7 100644
--- a/usr/src/lib/libc/amd64/sys/vforkx.s
+++ b/usr/src/lib/libc/amd64/sys/vforkx.s
@@ -20,7 +20,7 @@
*/
/*
- * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
@@ -28,11 +28,6 @@
.file "%M%"
-#include <sys/asm_linkage.h>
-
- ANSI_PRAGMA_WEAK(vforkx,function)
- ANSI_PRAGMA_WEAK(vfork,function)
-
#include "SYS.h"
#include <assym.h>
diff --git a/usr/src/lib/libc/amd64/threads/asm_subr.s b/usr/src/lib/libc/amd64/threads/asm_subr.s
index 181b7b050e..fc724a0bfc 100644
--- a/usr/src/lib/libc/amd64/threads/asm_subr.s
+++ b/usr/src/lib/libc/amd64/threads/asm_subr.s
@@ -35,11 +35,11 @@
/*
* This is where execution resumes when a thread created with
* thr_create() or pthread_create() returns (see setup_context()).
- * We pass the (void *) return value to _thr_terminate().
+ * We pass the (void *) return value to _thrp_terminate().
*/
ENTRY(_lwp_start)
movq %rax, %rdi
- call _thr_terminate
+ call _thrp_terminate
RET /* actually, never returns */
SET_SIZE(_lwp_start)
diff --git a/usr/src/lib/libc/amd64/threads/machdep.c b/usr/src/lib/libc/amd64/threads/machdep.c
index b9b186398e..844490fabb 100644
--- a/usr/src/lib/libc/amd64/threads/machdep.c
+++ b/usr/src/lib/libc/amd64/threads/machdep.c
@@ -73,7 +73,7 @@ setup_context(ucontext_t *ucp, void *(*func)(ulwp_t *),
* Machine-dependent startup code for a newly-created thread.
*/
void *
-_thr_setup(ulwp_t *self)
+_thrp_setup(ulwp_t *self)
{
self->ul_ustack.ss_sp = (void *)(self->ul_stktop - self->ul_stksiz);
self->ul_ustack.ss_size = self->ul_stksiz;
diff --git a/usr/src/lib/libc/amd64/unwind/call_frame_inst.c b/usr/src/lib/libc/amd64/unwind/call_frame_inst.c
index 70f6ebab46..f803556066 100644
--- a/usr/src/lib/libc/amd64/unwind/call_frame_inst.c
+++ b/usr/src/lib/libc/amd64/unwind/call_frame_inst.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,8 +18,9 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2005 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
@@ -31,7 +31,7 @@
*/
#ifndef _LIBCRUN_
-#include "synonyms.h"
+#include "lint.h"
#endif
#include <sys/types.h>
#include "stack_unwind.h"
@@ -144,19 +144,19 @@ fix_cfa(struct _Unwind_Context *ctx, struct register_state *rs)
{
switch (rs[CF_ADDR].rule) {
default:
- ctx->cfa = 0;
+ ctx->cfa = 0;
break;
case register_rule: /* CFA = offset + source_reg */
ctx->cfa = (ctx->current_regs)[rs[CF_ADDR].source_reg] +
- rs[CF_ADDR].offset;
+ rs[CF_ADDR].offset;
break;
case constant_rule: /* CFA = offset */
ctx->cfa = rs[CF_ADDR].offset;
break;
case indirect_rule: /* CFA = *(offset + source_reg) */
ctx->cfa = *(uint64_t *)
- (ctx->current_regs[rs[CF_ADDR].source_reg] +
- rs[CF_ADDR].offset);
+ (ctx->current_regs[rs[CF_ADDR].source_reg] +
+ rs[CF_ADDR].offset);
break;
}
ctx->entry_regs[SP_RSP] = ctx->cfa;
@@ -168,19 +168,19 @@ fix_ra(struct _Unwind_Context *ctx, struct register_state *rs)
switch (rs[RET_ADD].rule) {
case undefined_rule:
default:
- ctx->ra = 0;
+ ctx->ra = 0;
break;
case offset_rule: /* RA = *(offset + CFA) */
ctx->ra = *(uint64_t *)(ctx->cfa + rs[RET_ADD].offset);
break;
case register_rule: /* RA = offset + source_reg */
ctx->ra = ctx->current_regs[rs[RET_ADD].source_reg] +
- rs[RET_ADD].offset;
+ rs[RET_ADD].offset;
break;
case indirect_rule: /* RA = *(offset + source_reg) */
ctx->ra = *(uint64_t *)
- (ctx->current_regs[rs[RET_ADD].source_reg] +
- rs[RET_ADD].offset);
+ (ctx->current_regs[rs[RET_ADD].source_reg] +
+ rs[RET_ADD].offset);
break;
}
}
@@ -194,23 +194,23 @@ fix_reg(struct _Unwind_Context *ctx, struct register_state *rs, int index)
break;
case offset_rule: /* target_reg = *(offset + CFA) */
ctx->entry_regs[index] = *(uint64_t *)
- (ctx->cfa + rs[index].offset);
+ (ctx->cfa + rs[index].offset);
break;
case is_offset_rule: /* target_reg = offset + CFA */
ctx->entry_regs[index] = ctx->cfa + rs[index].offset;
break;
case register_rule: /* target_reg = offset + source_reg */
ctx->entry_regs[index] =
- ctx->current_regs[rs[index].source_reg] +
- rs[index].offset;
+ ctx->current_regs[rs[index].source_reg] +
+ rs[index].offset;
break;
case constant_rule: /* target_reg = offset */
ctx->entry_regs[index] = rs[index].offset;
break;
case indirect_rule: /* target_reg = *(offset + source_reg) */
ctx->entry_regs[index] = *(uint64_t *)
- (ctx->current_regs[rs[index].source_reg] +
- rs[index].offset);
+ (ctx->current_regs[rs[index].source_reg] +
+ rs[index].offset);
break;
}
}
@@ -249,7 +249,7 @@ _Unw_Rollback_Registers(struct eh_frame_fields *f,
return (0);
}
ctx->entry_regs[FP_RBP] = ((uint64_t *)
- (ctx->current_regs[FP_RBP]))[0];
+ (ctx->current_regs[FP_RBP]))[0];
ctx->cfa = ctx->current_regs[FP_RBP] + 16;
ctx->entry_regs[SP_RSP] = ctx->cfa;
ctx->entry_regs[GPR_RBX] = ctx->current_regs[GPR_RBX];
@@ -264,13 +264,13 @@ _Unw_Rollback_Registers(struct eh_frame_fields *f,
for (i = 0; i < 18; i++)
func_start_state[i] = nop;
first_pc = interpret_ops(f->cie_ops, f->cie_ops_end,
- f->cie_reloc, ctx->func, ctx->pc, func_start_state, 0,
- f->data_align, f->code_align, f->code_enc);
+ f->cie_reloc, ctx->func, ctx->pc, func_start_state, 0,
+ f->data_align, f->code_align, f->code_enc);
for (i = 0; i < 18; i++)
func_state[i] = func_start_state[i];
(void) interpret_ops(f->fde_ops, f->fde_ops_end,
- f->fde_reloc, first_pc, ctx->pc, func_state, func_start_state,
- f->data_align, f->code_align, f->code_enc);
+ f->fde_reloc, first_pc, ctx->pc, func_state, func_start_state,
+ f->data_align, f->code_align, f->code_enc);
fix_cfa(ctx, func_state);
if (ctx->cfa < ctx->current_regs[SP_RSP]) {
diff --git a/usr/src/lib/libc/amd64/unwind/eh_frame.c b/usr/src/lib/libc/amd64/unwind/eh_frame.c
index 8e3490b318..b4dcad7b24 100644
--- a/usr/src/lib/libc/amd64/unwind/eh_frame.c
+++ b/usr/src/lib/libc/amd64/unwind/eh_frame.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,8 +18,9 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2005 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
@@ -31,7 +31,7 @@
*/
#ifndef _LIBCRUN_
-#include "synonyms.h"
+#include "lint.h"
#endif
#include <sys/types.h>
#include <limits.h>
@@ -92,13 +92,13 @@ _Unw_Decode_FDE(struct eh_frame_fields *f, struct _Unwind_Context *ctx)
fde_data = ctx->fde;
data = fde_data;
fde_end = (void *)(((intptr_t)fde_data) + 4 +
- _Unw_get_val(&data, 0, UNUM32, 1, 1, 0));
+ _Unw_get_val(&data, 0, UNUM32, 1, 1, 0));
reloc = 0;
base = ((intptr_t)data) + reloc;
cie_data = (void *)(base - _Unw_get_val(&data, 0, UNUM32, 1, 1, 0));
cdata = cie_data;
cie_end = (void *)(((intptr_t)cie_data) + 4 +
- _Unw_get_val(&cdata, 0, UNUM32, 1, 1, 0));
+ _Unw_get_val(&cdata, 0, UNUM32, 1, 1, 0));
creloc = 0;
/* data mapping has happened */
@@ -111,7 +111,7 @@ _Unw_Decode_FDE(struct eh_frame_fields *f, struct _Unwind_Context *ctx)
(void) _Unw_get_val(&cdata, creloc, UNUM8, 1, 1, 0);
/* LINTED alignment */
(*((uint64_t *)(&(augment[0])))) =
- _Unw_get_val(&cdata, creloc, ZTSTRING, 1, 1, 0);
+ _Unw_get_val(&cdata, creloc, ZTSTRING, 1, 1, 0);
f->code_align = _Unw_get_val(&cdata, creloc, ULEB128, 1, 1, 0);
f->data_align = _Unw_get_val(&cdata, creloc, SLEB128, 1, 1, 0);
(void) _Unw_get_val(&cdata, creloc, UNUM8, 1, 1, 0);
@@ -371,7 +371,7 @@ locate_fde_for_pc(uint64_t pc, int enc,
pi + (((pj - pi) >> (log_size + 1)) << log_size);
/* Don't use (pi+pj)>>1 */
get_table_ent_val(pr, table_end, enc, reloc, base,
- &range_start, &range_end, &fde);
+ &range_start, &range_end, &fde);
/* Return fde if tpc is in this range. */
diff --git a/usr/src/lib/libc/amd64/unwind/thrp_unwind.c b/usr/src/lib/libc/amd64/unwind/thrp_unwind.c
index 365cbf77be..648a93894d 100644
--- a/usr/src/lib/libc/amd64/unwind/thrp_unwind.c
+++ b/usr/src/lib/libc/amd64/unwind/thrp_unwind.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,14 +18,15 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2005 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
-#include "synonyms.h"
+#include "lint.h"
#include "thr_uberdata.h"
#include "stack_unwind.h"
#include "reg_num.h"
diff --git a/usr/src/lib/libc/amd64/unwind/unwind.c b/usr/src/lib/libc/amd64/unwind/unwind.c
index 1fb774a28e..788d7b2d68 100644
--- a/usr/src/lib/libc/amd64/unwind/unwind.c
+++ b/usr/src/lib/libc/amd64/unwind/unwind.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -21,7 +20,7 @@
*/
/*
- * Copyright 2005 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
@@ -131,22 +130,21 @@
#define _Unwind_SetGR _SUNW_Unwind_SetGR
#define _Unwind_SetIP _SUNW_Unwind_SetIP
#else
-#pragma weak _Unwind_DeleteException = _SUNW_Unwind_DeleteException
-#pragma weak _Unwind_ForcedUnwind = _SUNW_Unwind_ForcedUnwind
-#pragma weak _Unwind_GetCFA = _SUNW_Unwind_GetCFA
-#pragma weak _Unwind_GetGR = _SUNW_Unwind_GetGR
-#pragma weak _Unwind_GetIP = _SUNW_Unwind_GetIP
-#pragma weak _Unwind_GetLanguageSpecificData = \
- _SUNW_Unwind_GetLanguageSpecificData
-#pragma weak _Unwind_GetRegionStart = _SUNW_Unwind_GetRegionStart
-#pragma weak _Unwind_RaiseException = _SUNW_Unwind_RaiseException
-#pragma weak _Unwind_Resume = _SUNW_Unwind_Resume
-#pragma weak _Unwind_SetGR = _SUNW_Unwind_SetGR
-#pragma weak _Unwind_SetIP = _SUNW_Unwind_SetIP
-
-#include "synonyms.h"
+#pragma weak _SUNW_Unwind_DeleteException = _Unwind_DeleteException
+#pragma weak _SUNW_Unwind_ForcedUnwind = _Unwind_ForcedUnwind
+#pragma weak _SUNW_Unwind_GetCFA = _Unwind_GetCFA
+#pragma weak _SUNW_Unwind_GetGR = _Unwind_GetGR
+#pragma weak _SUNW_Unwind_GetIP = _Unwind_GetIP
+#pragma weak _SUNW_Unwind_GetLanguageSpecificData = \
+ _Unwind_GetLanguageSpecificData
+#pragma weak _SUNW_Unwind_GetRegionStart = _Unwind_GetRegionStart
+#pragma weak _SUNW_Unwind_RaiseException = _Unwind_RaiseException
+#pragma weak _SUNW_Unwind_Resume = _Unwind_Resume
+#pragma weak _SUNW_Unwind_SetGR = _Unwind_SetGR
+#pragma weak _SUNW_Unwind_SetIP = _Unwind_SetIP
#endif
+#include "lint.h"
#include <string.h>
#include "stack_unwind.h"
#include "reg_num.h"
@@ -376,7 +374,7 @@ _Unwind_ForcedUnwind_Body(struct _Unwind_Exception *exception_object,
finish_capture(ctx, resume);
if (resume && down_one(ctx, ctx))
- return (_URC_FATAL_PHASE2_ERROR);
+ return (_URC_FATAL_PHASE2_ERROR);
do {
again = 0;
@@ -418,8 +416,8 @@ _Unwind_ForcedUnwind_Body(struct _Unwind_Exception *exception_object,
case _URC_END_OF_STACK:
ctx->cfa = ctx->ra = ctx->pc = 0;
res = (*stop)(1, phase,
- exception_object->exception_class,
- exception_object, ctx, stop_parameter);
+ exception_object->exception_class,
+ exception_object, ctx, stop_parameter);
return (_URC_END_OF_STACK);
break;
default:
diff --git a/usr/src/lib/libc/common/sys/_lgrp_home_fast.s b/usr/src/lib/libc/common/sys/_lgrp_home_fast.s
index a88268810a..7347d994c1 100644
--- a/usr/src/lib/libc/common/sys/_lgrp_home_fast.s
+++ b/usr/src/lib/libc/common/sys/_lgrp_home_fast.s
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,14 +18,15 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
- .file "%M%"
+ .file "%M%"
/*
* C library -- gethomelgroup
@@ -34,12 +34,10 @@
* lgrp_id_t _lgrp_home_fast()
*/
-#include <sys/asm_linkage.h>
+#include "SYS.h"
ANSI_PRAGMA_WEAK(gethomelgroup,function)
-#include "SYS.h"
-
/*
* lgrp_id_t _lgrp_home_fast(void)
* lgrpid_t gethomelgroup(void)
@@ -48,8 +46,8 @@
* XXX gethomelgroup() being replaced by lgrp_home() XXX
*/
- ENTRY2(_lgrp_home_fast,_gethomelgroup)
+ ENTRY2(_lgrp_home_fast,gethomelgroup)
SYSFASTTRAP(GETLGRP) /* share fast trap with getcpuid */
RET2 /* return rval2 */
SET_SIZE(_lgrp_home_fast)
- SET_SIZE(_gethomelgroup)
+ SET_SIZE(gethomelgroup)
diff --git a/usr/src/lib/libc/common/sys/acl.s b/usr/src/lib/libc/common/sys/acl.s
index 64f697e881..3a3fb614c5 100644
--- a/usr/src/lib/libc/common/sys/acl.s
+++ b/usr/src/lib/libc/common/sys/acl.s
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,15 +18,15 @@
*
* CDDL HEADER END
*/
-/* Copyright (c) 1988 AT&T */
-/* All Rights Reserved */
-
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
+/* Copyright (c) 1988 AT&T */
+/* All Rights Reserved */
+
#pragma ident "%Z%%M% %I% %E% SMI"
.file "%M%"
@@ -35,10 +34,6 @@
/* C library -- acl */
/* int acl(const char *path, int cmd, int cnt, struct aclent *buf) */
-#include <sys/asm_linkage.h>
-
- ANSI_PRAGMA_WEAK(acl,function)
-
#include "SYS.h"
SYSCALL_RVAL1(acl)
diff --git a/usr/src/lib/libc/common/sys/adjtime.s b/usr/src/lib/libc/common/sys/adjtime.s
index 8c103ee2ae..bede3400cb 100644
--- a/usr/src/lib/libc/common/sys/adjtime.s
+++ b/usr/src/lib/libc/common/sys/adjtime.s
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,15 +18,15 @@
*
* CDDL HEADER END
*/
-/* Copyright (c) 1988 AT&T */
-/* All Rights Reserved */
-
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
+/* Copyright (c) 1988 AT&T */
+/* All Rights Reserved */
+
#pragma ident "%Z%%M% %I% %E% SMI"
.file "%M%"
@@ -35,10 +34,6 @@
/* C Library -- adjtime */
/* int adjtime(struct timeval *delta, struct timeval *olddelta) */
-#include <sys/asm_linkage.h>
-
- ANSI_PRAGMA_WEAK(adjtime,function)
-
#include "SYS.h"
SYSCALL_RVAL1(adjtime)
diff --git a/usr/src/lib/libc/common/sys/cladm.s b/usr/src/lib/libc/common/sys/cladm.s
index 17d74041a3..491d849643 100644
--- a/usr/src/lib/libc/common/sys/cladm.s
+++ b/usr/src/lib/libc/common/sys/cladm.s
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,8 +18,9 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
@@ -28,10 +28,6 @@
.file "%M%"
-#include <sys/asm_linkage.h>
-
- ANSI_PRAGMA_WEAK(_cladm,function)
-
#include "SYS.h"
/*
diff --git a/usr/src/lib/libc/common/sys/facl.s b/usr/src/lib/libc/common/sys/facl.s
index ebccb91f78..2cd5cd103a 100644
--- a/usr/src/lib/libc/common/sys/facl.s
+++ b/usr/src/lib/libc/common/sys/facl.s
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,15 +18,15 @@
*
* CDDL HEADER END
*/
-/* Copyright (c) 1988 AT&T */
-/* All Rights Reserved */
-
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
+/* Copyright (c) 1988 AT&T */
+/* All Rights Reserved */
+
#pragma ident "%Z%%M% %I% %E% SMI"
.file "%M%"
@@ -35,10 +34,6 @@
/* C library -- facl */
/* int facl(int fd, int cmd, int cnt, struct aclent *buf) */
-#include <sys/asm_linkage.h>
-
- ANSI_PRAGMA_WEAK(facl,function)
-
#include "SYS.h"
SYSCALL_RVAL1(facl)
diff --git a/usr/src/lib/libc/common/sys/fchroot.s b/usr/src/lib/libc/common/sys/fchroot.s
index b541215132..404169e225 100644
--- a/usr/src/lib/libc/common/sys/fchroot.s
+++ b/usr/src/lib/libc/common/sys/fchroot.s
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,15 +18,15 @@
*
* CDDL HEADER END
*/
-/* Copyright (c) 1988 AT&T */
-/* All Rights Reserved */
-
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
+/* Copyright (c) 1988 AT&T */
+/* All Rights Reserved */
+
#pragma ident "%Z%%M% %I% %E% SMI"
.file "%M%"
@@ -35,10 +34,6 @@
/* C library -- fchroot */
/* int fchroot(const int fd) */
-#include <sys/asm_linkage.h>
-
- ANSI_PRAGMA_WEAK(fchroot,function)
-
#include "SYS.h"
SYSCALL_RVAL1(fchroot)
diff --git a/usr/src/lib/libc/common/sys/fstatfs.s b/usr/src/lib/libc/common/sys/fstatfs.s
index 271bf07e4d..51be44dddb 100644
--- a/usr/src/lib/libc/common/sys/fstatfs.s
+++ b/usr/src/lib/libc/common/sys/fstatfs.s
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,15 +18,15 @@
*
* CDDL HEADER END
*/
-/* Copyright (c) 1988 AT&T */
-/* All Rights Reserved */
-
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
+/* Copyright (c) 1988 AT&T */
+/* All Rights Reserved */
+
#pragma ident "%Z%%M% %I% %E% SMI"
.file "%M%"
@@ -36,10 +35,6 @@
/* int fstatfs(int fildes, struct statfs *buf, int len,
int fstyp) */
-#include <sys/asm_linkage.h>
-
- ANSI_PRAGMA_WEAK(fstatfs,function)
-
#include "SYS.h"
SYSCALL_RVAL1(fstatfs)
diff --git a/usr/src/lib/libc/common/sys/getcpuid.s b/usr/src/lib/libc/common/sys/getcpuid.s
index 62749efccd..3bfa8f7728 100644
--- a/usr/src/lib/libc/common/sys/getcpuid.s
+++ b/usr/src/lib/libc/common/sys/getcpuid.s
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,33 +18,32 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
- .file "%M%"
+ .file "%M%"
/*
* C library -- getcpuid
* processorid_t getcpuid()
*/
-#include <sys/asm_linkage.h>
+#include "SYS.h"
ANSI_PRAGMA_WEAK(getcpuid,function)
-#include "SYS.h"
-
/*
* processorid_t getcpuid(void)
*
* Returns the cpu id
*/
- ENTRY(_getcpuid)
+ ENTRY(getcpuid)
SYSFASTTRAP(GETLGRP) /* share fast trap with _lgrp_home_fast() */
RET /* return rval1 */
- SET_SIZE(_getcpuid)
+ SET_SIZE(getcpuid)
diff --git a/usr/src/lib/libc/common/sys/gtty.s b/usr/src/lib/libc/common/sys/gtty.s
index a1af420723..363533a953 100644
--- a/usr/src/lib/libc/common/sys/gtty.s
+++ b/usr/src/lib/libc/common/sys/gtty.s
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,15 +18,15 @@
*
* CDDL HEADER END
*/
-/* Copyright (c) 1988 AT&T */
-/* All Rights Reserved */
-
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
+/* Copyright (c) 1988 AT&T */
+/* All Rights Reserved */
+
#pragma ident "%Z%%M% %I% %E% SMI"
.file "%M%"
@@ -35,10 +34,6 @@
/* C library -- gtty */
/* int gtty (int fildes, int arg); */
-#include <sys/asm_linkage.h>
-
- ANSI_PRAGMA_WEAK(gtty,function)
-
#include "SYS.h"
SYSCALL_RVAL1(gtty)
diff --git a/usr/src/lib/libc/common/sys/link.s b/usr/src/lib/libc/common/sys/link.s
index 290daa3a6a..6ec6e69686 100644
--- a/usr/src/lib/libc/common/sys/link.s
+++ b/usr/src/lib/libc/common/sys/link.s
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,15 +18,15 @@
*
* CDDL HEADER END
*/
-/* Copyright (c) 1988 AT&T */
-/* All Rights Reserved */
-
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
+/* Copyright (c) 1988 AT&T */
+/* All Rights Reserved */
+
#pragma ident "%Z%%M% %I% %E% SMI"
.file "%M%"
@@ -35,8 +34,6 @@
/* C library -- link */
/* int link (const char *path1, const char *path2); */
-#include <sys/asm_linkage.h>
-
#include "SYS.h"
SYSCALL2_RVAL1(__link,link)
diff --git a/usr/src/lib/libc/common/sys/mincore.s b/usr/src/lib/libc/common/sys/mincore.s
index 7f2cc90b8f..8819a652bd 100644
--- a/usr/src/lib/libc/common/sys/mincore.s
+++ b/usr/src/lib/libc/common/sys/mincore.s
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,15 +18,15 @@
*
* CDDL HEADER END
*/
-/* Copyright (c) 1988 AT&T */
-/* All Rights Reserved */
-
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
+/* Copyright (c) 1988 AT&T */
+/* All Rights Reserved */
+
#pragma ident "%Z%%M% %I% %E% SMI"
.file "%M%"
@@ -35,10 +34,6 @@
/* C library -- mincore */
/* int mincore(caddr_t addr, size_t len, char *vec) */
-#include <sys/asm_linkage.h>
-
- ANSI_PRAGMA_WEAK(mincore,function)
-
#include "SYS.h"
SYSCALL_RVAL1(mincore)
diff --git a/usr/src/lib/libc/common/sys/pollsys.s b/usr/src/lib/libc/common/sys/pollsys.s
index 4294f73a50..295e437d5f 100644
--- a/usr/src/lib/libc/common/sys/pollsys.s
+++ b/usr/src/lib/libc/common/sys/pollsys.s
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,15 +18,15 @@
*
* CDDL HEADER END
*/
-/* Copyright (c) 1988 AT&T */
-/* All Rights Reserved */
-
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
+/* Copyright (c) 1988 AT&T */
+/* All Rights Reserved */
+
#pragma ident "%Z%%M% %I% %E% SMI"
.file "%M%"
@@ -38,7 +37,6 @@
timespec_t *timeout, sigset_t *sigmask);
*/
-#include <sys/asm_linkage.h>
#include "SYS.h"
SYSCALL2_RVAL1(__pollsys,pollsys)
diff --git a/usr/src/lib/libc/common/sys/seteguid.s b/usr/src/lib/libc/common/sys/seteguid.s
index cfc6991dc3..c370446587 100644
--- a/usr/src/lib/libc/common/sys/seteguid.s
+++ b/usr/src/lib/libc/common/sys/seteguid.s
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,15 +18,15 @@
*
* CDDL HEADER END
*/
-/* Copyright (c) 1988 AT&T */
-/* All Rights Reserved */
-
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
+/* Copyright (c) 1988 AT&T */
+/* All Rights Reserved */
+
#pragma ident "%Z%%M% %I% %E% SMI"
.file "%M%"
@@ -35,11 +34,6 @@
/* C library -- setegid, seteuid */
/* int setegid (gid_t gid) */
-#include <sys/asm_linkage.h>
-
- ANSI_PRAGMA_WEAK(setegid,function)
- ANSI_PRAGMA_WEAK(seteuid,function)
-
#include "SYS.h"
SYSCALL_RVAL1(setegid)
diff --git a/usr/src/lib/libc/common/sys/statfs.s b/usr/src/lib/libc/common/sys/statfs.s
index 4010e364d6..aee5c59b2d 100644
--- a/usr/src/lib/libc/common/sys/statfs.s
+++ b/usr/src/lib/libc/common/sys/statfs.s
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,15 +18,15 @@
*
* CDDL HEADER END
*/
-/* Copyright (c) 1988 AT&T */
-/* All Rights Reserved */
-
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
+/* Copyright (c) 1988 AT&T */
+/* All Rights Reserved */
+
#pragma ident "%Z%%M% %I% %E% SMI"
.file "%M%"
@@ -36,10 +35,6 @@
/* int statfs (const char *path, struct statfs *buf, int len, */
/* int fstyp); */
-#include <sys/asm_linkage.h>
-
- ANSI_PRAGMA_WEAK(statfs,function)
-
#include "SYS.h"
SYSCALL_RVAL1(statfs)
diff --git a/usr/src/lib/libc/common/sys/stty.s b/usr/src/lib/libc/common/sys/stty.s
index f020360c64..0350573531 100644
--- a/usr/src/lib/libc/common/sys/stty.s
+++ b/usr/src/lib/libc/common/sys/stty.s
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,15 +18,15 @@
*
* CDDL HEADER END
*/
-/* Copyright (c) 1988 AT&T */
-/* All Rights Reserved */
-
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
+/* Copyright (c) 1988 AT&T */
+/* All Rights Reserved */
+
#pragma ident "%Z%%M% %I% %E% SMI"
.file "%M%"
@@ -35,10 +34,6 @@
/* C library -- stty */
/* int stty (char *path, struct ?? buf, int len); */
-#include <sys/asm_linkage.h>
-
- ANSI_PRAGMA_WEAK(stty,function)
-
#include "SYS.h"
SYSCALL_RVAL1(stty)
diff --git a/usr/src/lib/libc/common/sys/syslwp.s b/usr/src/lib/libc/common/sys/syslwp.s
index fda8f2625a..7034c709f9 100644
--- a/usr/src/lib/libc/common/sys/syslwp.s
+++ b/usr/src/lib/libc/common/sys/syslwp.s
@@ -20,7 +20,7 @@
*/
/*
- * Copyright 2007 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
@@ -28,17 +28,6 @@
.file "%M%"
-#include <sys/asm_linkage.h>
-
- ANSI_PRAGMA_WEAK(_lwp_continue,function)
- ANSI_PRAGMA_WEAK(_lwp_kill,function)
- ANSI_PRAGMA_WEAK(_lwp_self,function)
- ANSI_PRAGMA_WEAK(_lwp_cond_broadcast,function)
- ANSI_PRAGMA_WEAK(_lwp_cond_signal,function)
- ANSI_PRAGMA_WEAK(_lwp_sema_trywait,function)
- ANSI_PRAGMA_WEAK(_lwp_sema_post,function)
- ANSI_PRAGMA_WEAK(_lwp_info,function)
-
#include "SYS.h"
/*
@@ -53,13 +42,13 @@
/*
* int
- * __lwp_continue(lwpid_t lwpid)
+ * _lwp_continue(lwpid_t lwpid)
*/
- ENTRY(__lwp_continue)
+ ENTRY(_lwp_continue)
SYSTRAP_RVAL1(lwp_continue)
SYSLWPERR
RET
- SET_SIZE(__lwp_continue)
+ SET_SIZE(_lwp_continue)
/*
* int
@@ -73,22 +62,22 @@
/*
* int
- * __lwp_kill(lwpid_t lwpid, int sig)
+ * _lwp_kill(lwpid_t lwpid, int sig)
*/
- ENTRY(__lwp_kill)
+ ENTRY(_lwp_kill)
SYSTRAP_RVAL1(lwp_kill)
SYSLWPERR
RET
- SET_SIZE(__lwp_kill)
+ SET_SIZE(_lwp_kill)
/*
* lwpid_t
- * __lwp_self(void)
+ * _lwp_self(void)
*/
- ENTRY(__lwp_self)
+ ENTRY(_lwp_self)
SYSTRAP_RVAL1(lwp_self)
RET
- SET_SIZE(__lwp_self)
+ SET_SIZE(_lwp_self)
/*
* int
@@ -140,13 +129,13 @@
/*
* int
- * __lwp_cond_broadcast(lwp_cond_t *cvp)
+ * _lwp_cond_broadcast(lwp_cond_t *cvp)
*/
- ENTRY(__lwp_cond_broadcast)
+ ENTRY(_lwp_cond_broadcast)
SYSTRAP_RVAL1(lwp_cond_broadcast)
SYSLWPERR
RET
- SET_SIZE(__lwp_cond_broadcast)
+ SET_SIZE(_lwp_cond_broadcast)
/*
* int
@@ -160,13 +149,13 @@
/*
* int
- * __lwp_cond_signal(lwp_cond_t *cvp)
+ * _lwp_cond_signal(lwp_cond_t *cvp)
*/
- ENTRY(__lwp_cond_signal)
+ ENTRY(_lwp_cond_signal)
SYSTRAP_RVAL1(lwp_cond_signal)
SYSLWPERR
RET
- SET_SIZE(__lwp_cond_signal)
+ SET_SIZE(_lwp_cond_signal)
/*
* int
@@ -180,33 +169,33 @@
/*
* int
- * __lwp_sema_trywait(lwp_sema_t *sp)
+ * _lwp_sema_trywait(lwp_sema_t *sp)
*/
- ENTRY(__lwp_sema_trywait)
+ ENTRY(_lwp_sema_trywait)
SYSTRAP_RVAL1(lwp_sema_trywait)
SYSLWPERR
RET
- SET_SIZE(__lwp_sema_trywait)
+ SET_SIZE(_lwp_sema_trywait)
/*
* int
- * __lwp_sema_post(lwp_sema_t *sp)
+ * _lwp_sema_post(lwp_sema_t *sp)
*/
- ENTRY(__lwp_sema_post)
+ ENTRY(_lwp_sema_post)
SYSTRAP_RVAL1(lwp_sema_post)
SYSLWPERR
RET
- SET_SIZE(__lwp_sema_post)
+ SET_SIZE(_lwp_sema_post)
/*
* int
- * __lwp_info(struct lwpinfo *infop)
+ * _lwp_info(struct lwpinfo *infop)
*/
- ENTRY(__lwp_info)
+ ENTRY(_lwp_info)
SYSTRAP_RVAL1(lwp_info)
SYSLWPERR
RET
- SET_SIZE(__lwp_info)
+ SET_SIZE(_lwp_info)
/*
* sc_shared_t *
diff --git a/usr/src/lib/libc/common/sys/utimes.s b/usr/src/lib/libc/common/sys/utimes.s
index dc0cb1fbd6..4479682770 100644
--- a/usr/src/lib/libc/common/sys/utimes.s
+++ b/usr/src/lib/libc/common/sys/utimes.s
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,15 +18,15 @@
*
* CDDL HEADER END
*/
-/* Copyright (c) 1988 AT&T */
-/* All Rights Reserved */
-
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
+/* Copyright (c) 1988 AT&T */
+/* All Rights Reserved */
+
#pragma ident "%Z%%M% %I% %E% SMI"
.file "%M%"
@@ -35,10 +34,6 @@
/* C library -- utimes */
/* int utimes (const char *path, const struct timeval *times); */
-#include <sys/asm_linkage.h>
-
- ANSI_PRAGMA_WEAK(utimes,function)
-
#include "SYS.h"
SYSCALL_RVAL1(utimes)
diff --git a/usr/src/lib/libc/common/sys/utssys.s b/usr/src/lib/libc/common/sys/utssys.s
index e953257c31..35d4e3fed0 100644
--- a/usr/src/lib/libc/common/sys/utssys.s
+++ b/usr/src/lib/libc/common/sys/utssys.s
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,15 +18,15 @@
*
* CDDL HEADER END
*/
-/* Copyright (c) 1988 AT&T */
-/* All Rights Reserved */
-
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
+/* Copyright (c) 1988 AT&T */
+/* All Rights Reserved */
+
#pragma ident "%Z%%M% %I% %E% SMI"
.file "%M%"
@@ -35,10 +34,6 @@
/* C library -- utssys */
/* error = utssys(cbuf, mv, type, outbufp) */
-#include <sys/asm_linkage.h>
-
- ANSI_PRAGMA_WEAK(utssys,function)
-
#include "SYS.h"
SYSCALL_RVAL1(utssys)
diff --git a/usr/src/lib/libc/common/sys/uucopy.s b/usr/src/lib/libc/common/sys/uucopy.s
index 758ef92158..d7674f1b23 100644
--- a/usr/src/lib/libc/common/sys/uucopy.s
+++ b/usr/src/lib/libc/common/sys/uucopy.s
@@ -18,19 +18,15 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
- .file "uucopy.s"
-
-#include <sys/asm_linkage.h>
-
- ANSI_PRAGMA_WEAK(uucopy,function)
- ANSI_PRAGMA_WEAK(uucopystr,function)
+ .file "%M%"
#include "SYS.h"
diff --git a/usr/src/lib/libc/common/sys/vhangup.s b/usr/src/lib/libc/common/sys/vhangup.s
index b8cf195581..1b6a4b58d1 100644
--- a/usr/src/lib/libc/common/sys/vhangup.s
+++ b/usr/src/lib/libc/common/sys/vhangup.s
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,15 +18,15 @@
*
* CDDL HEADER END
*/
-/* Copyright (c) 1988 AT&T */
-/* All Rights Reserved */
-
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
+/* Copyright (c) 1988 AT&T */
+/* All Rights Reserved */
+
#pragma ident "%Z%%M% %I% %E% SMI"
.file "%M%"
@@ -35,10 +34,6 @@
/* C library -- vhangup */
/* int vhangup() */
-#include <sys/asm_linkage.h>
-
- ANSI_PRAGMA_WEAK(vhangup,function)
-
#include "SYS.h"
SYSCALL_RVAL1(vhangup)
diff --git a/usr/src/lib/libc/common/sys/yield.s b/usr/src/lib/libc/common/sys/yield.s
index 5386349c0f..c36b8fe9aa 100644
--- a/usr/src/lib/libc/common/sys/yield.s
+++ b/usr/src/lib/libc/common/sys/yield.s
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,8 +18,9 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
@@ -28,10 +28,6 @@
.file "%M%"
-#include <sys/asm_linkage.h>
-
- ANSI_PRAGMA_WEAK(yield,function)
-
#include "SYS.h"
/*
diff --git a/usr/src/lib/libc/i386/Makefile.com b/usr/src/lib/libc/i386/Makefile.com
index 93e3a5cb69..8303dee02d 100644
--- a/usr/src/lib/libc/i386/Makefile.com
+++ b/usr/src/lib/libc/i386/Makefile.com
@@ -114,14 +114,11 @@ GENOBJS= \
i386_data.o \
ladd.o \
ldivide.o \
- lexp10.o \
- llog10.o \
lmul.o \
lock.o \
lshiftl.o \
lsign.o \
lsub.o \
- ltostr.o \
makectxt.o \
memccpy.o \
memchr.o \
@@ -484,11 +481,13 @@ PORTGEN= \
l64a.o \
lckpwdf.o \
lconstants.o \
+ lexp10.o \
lfind.o \
lfmt.o \
lfmt_log.o \
llabs.o \
lldiv.o \
+ llog10.o \
lltostr.o \
localtime.o \
lsearch.o \
@@ -1046,9 +1045,6 @@ SRCS= \
$(UNWINDMACHOBJS:%.o=../port/unwind/%.c) \
$(FPOBJS:%.o=../$(MACH)/fp/%.c) \
$(LIBCBASE)/gen/ecvt.c \
- $(LIBCBASE)/gen/lexp10.c \
- $(LIBCBASE)/gen/llog10.c \
- $(LIBCBASE)/gen/ltostr.c \
$(LIBCBASE)/gen/makectxt.c \
$(LIBCBASE)/gen/siginfolst.c \
$(LIBCBASE)/gen/siglongjmp.c \
diff --git a/usr/src/lib/libc/i386/fp/_base_il.c b/usr/src/lib/libc/i386/fp/_base_il.c
index d20789999a..a821932d41 100644
--- a/usr/src/lib/libc/i386/fp/_base_il.c
+++ b/usr/src/lib/libc/i386/fp/_base_il.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,14 +18,15 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2005 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
-#include "synonyms.h"
+#include "lint.h"
#include "base_conversion.h"
/* The following should be coded as inline expansion templates. */
diff --git a/usr/src/lib/libc/i386/fp/fpgetmask.c b/usr/src/lib/libc/i386/fp/fpgetmask.c
index 3e9771cd4b..0dea85fafa 100644
--- a/usr/src/lib/libc/i386/fp/fpgetmask.c
+++ b/usr/src/lib/libc/i386/fp/fpgetmask.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,20 +18,21 @@
*
* CDDL HEADER END
*/
-/* Copyright (c) 1990, 1991 UNIX System Laboratories, Inc. */
-/* Copyright (c) 1988 AT&T */
-/* All Rights Reserved */
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
+/* Copyright (c) 1990, 1991 UNIX System Laboratories, Inc. */
+/* Copyright (c) 1988 AT&T */
+/* All Rights Reserved */
+
#pragma ident "%Z%%M% %I% %E% SMI"
-#pragma weak fpgetmask = _fpgetmask
+#pragma weak _fpgetmask = fpgetmask
-#include "synonyms.h"
+#include "lint.h"
#include <ieeefp.h>
#include "fp.h"
@@ -44,7 +44,3 @@ fpgetmask()
_getcw(&cw);
return (fp_except)(~cw.mask & EXCPMASK);
}
-
-
-
-
diff --git a/usr/src/lib/libc/i386/fp/fpgetround.c b/usr/src/lib/libc/i386/fp/fpgetround.c
index 35acea5fb7..49e11bbb14 100644
--- a/usr/src/lib/libc/i386/fp/fpgetround.c
+++ b/usr/src/lib/libc/i386/fp/fpgetround.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,20 +18,21 @@
*
* CDDL HEADER END
*/
-/* Copyright (c) 1990, 1991 UNIX System Laboratories, Inc. */
-/* Copyright (c) 1988 AT&T */
-/* All Rights Reserved */
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
+/* Copyright (c) 1990, 1991 UNIX System Laboratories, Inc. */
+/* Copyright (c) 1988 AT&T */
+/* All Rights Reserved */
+
#pragma ident "%Z%%M% %I% %E% SMI"
-#pragma weak fpgetround = _fpgetround
+#pragma weak _fpgetround = fpgetround
-#include "synonyms.h"
+#include "lint.h"
#include <ieeefp.h>
#include "fp.h"
@@ -42,5 +42,5 @@ fpgetround()
struct _cw87 cw;
_getcw(&cw);
- return (fp_rnd)cw.rnd;
+ return ((fp_rnd)cw.rnd);
}
diff --git a/usr/src/lib/libc/i386/fp/fpgetsticky.c b/usr/src/lib/libc/i386/fp/fpgetsticky.c
index ab45e2b910..92a16785aa 100644
--- a/usr/src/lib/libc/i386/fp/fpgetsticky.c
+++ b/usr/src/lib/libc/i386/fp/fpgetsticky.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,17 +18,18 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
-#include <ieeefp.h>
-#include "synonyms.h"
+#pragma weak _fpgetsticky = fpgetsticky
-#pragma weak fpgetsticky = _fpgetsticky
+#include "lint.h"
+#include <ieeefp.h>
extern int _sse_hw;
extern void _getsw(int *), _getmxcsr(int *);
diff --git a/usr/src/lib/libc/i386/fp/fpsetmask.c b/usr/src/lib/libc/i386/fp/fpsetmask.c
index 86bc442f04..dc14162934 100644
--- a/usr/src/lib/libc/i386/fp/fpsetmask.c
+++ b/usr/src/lib/libc/i386/fp/fpsetmask.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,20 +18,21 @@
*
* CDDL HEADER END
*/
-/* Copyright (c) 1990, 1991 UNIX System Laboratories, Inc. */
-/* Copyright (c) 1988 AT&T */
-/* All Rights Reserved */
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
+/* Copyright (c) 1990, 1991 UNIX System Laboratories, Inc. */
+/* Copyright (c) 1988 AT&T */
+/* All Rights Reserved */
+
#pragma ident "%Z%%M% %I% %E% SMI"
-#pragma weak fpsetmask = _fpsetmask
+#pragma weak _fpsetmask = fpsetmask
-#include "synonyms.h"
+#include "lint.h"
#include <ieeefp.h>
#include "fp.h"
diff --git a/usr/src/lib/libc/i386/fp/fpsetround.c b/usr/src/lib/libc/i386/fp/fpsetround.c
index 901cc14a1a..cdd78261d3 100644
--- a/usr/src/lib/libc/i386/fp/fpsetround.c
+++ b/usr/src/lib/libc/i386/fp/fpsetround.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,20 +18,21 @@
*
* CDDL HEADER END
*/
-/* Copyright (c) 1990, 1991 UNIX System Laboratories, Inc. */
-/* Copyright (c) 1988 AT&T */
-/* All Rights Reserved */
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
+/* Copyright (c) 1990, 1991 UNIX System Laboratories, Inc. */
+/* Copyright (c) 1988 AT&T */
+/* All Rights Reserved */
+
#pragma ident "%Z%%M% %I% %E% SMI"
-#pragma weak fpsetround = _fpsetround
+#pragma weak _fpsetround = fpsetround
-#include "synonyms.h"
+#include "lint.h"
#include <ieeefp.h>
#include "fp.h"
diff --git a/usr/src/lib/libc/i386/fp/fpsetsticky.c b/usr/src/lib/libc/i386/fp/fpsetsticky.c
index d464303200..67fe9a08cf 100644
--- a/usr/src/lib/libc/i386/fp/fpsetsticky.c
+++ b/usr/src/lib/libc/i386/fp/fpsetsticky.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,17 +18,18 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
+#include "lint.h"
#include <ieeefp.h>
-#include "synonyms.h"
-#pragma weak fpsetsticky = _fpsetsticky
+#pragma weak _fpsetsticky = fpsetsticky
extern int _sse_hw;
extern void _getsw(int *), _putsw(int), _getmxcsr(int *), _putmxcsr(int);
diff --git a/usr/src/lib/libc/i386/fp/fpstart.c b/usr/src/lib/libc/i386/fp/fpstart.c
index 7c5a1bb291..141ca99db9 100644
--- a/usr/src/lib/libc/i386/fp/fpstart.c
+++ b/usr/src/lib/libc/i386/fp/fpstart.c
@@ -46,7 +46,7 @@
#pragma weak _fpstart = __fpstart
-#include "synonyms.h"
+#include "lint.h"
#include <sys/types.h>
#include <sys/sysi86.h> /* for SI86FPHW/SI86FPSTART definitions */
#include <sys/fp.h> /* for FPU_CW_INIT and SSE_MXCSR_INIT */
diff --git a/usr/src/lib/libc/i386/gen/ecvt.c b/usr/src/lib/libc/i386/gen/ecvt.c
index 4ad7319792..b791e513cf 100644
--- a/usr/src/lib/libc/i386/gen/ecvt.c
+++ b/usr/src/lib/libc/i386/gen/ecvt.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,15 +18,15 @@
*
* CDDL HEADER END
*/
-/* Copyright (c) 1988 AT&T */
-/* All Rights Reserved */
-
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
+/* Copyright (c) 1988 AT&T */
+/* All Rights Reserved */
+
#pragma ident "%Z%%M% %I% %E% SMI"
/*
@@ -37,13 +36,11 @@
* sign is set to 0 for positive, 1 for negative
*
*/
-#pragma weak ecvt = _ecvt
-#pragma weak fcvt = _fcvt
-#pragma weak qecvt = _qecvt
-#pragma weak qfcvt = _qfcvt
-#pragma weak qgcvt = _qgcvt
-#include "synonyms.h"
+#pragma weak _ecvt = ecvt
+#pragma weak _fcvt = fcvt
+
+#include "lint.h"
#include <sys/types.h>
#include <stdlib.h>
#include <floatingpoint.h>
diff --git a/usr/src/lib/libc/i386/gen/ladd.s b/usr/src/lib/libc/i386/gen/ladd.s
index d20596666d..6b3b7ffde1 100644
--- a/usr/src/lib/libc/i386/gen/ladd.s
+++ b/usr/src/lib/libc/i386/gen/ladd.s
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,21 +18,18 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
- .ident "%Z%%M% %I% %E% SMI"
+#pragma ident "%Z%%M% %I% %E% SMI"
.file "%M%"
/ Double long add routine.
-#include <sys/asm_linkage.h>
-
- ANSI_PRAGMA_WEAK(ladd,function)
-
#include "SYS.h"
.set lop,4
diff --git a/usr/src/lib/libc/i386/gen/ldivide.s b/usr/src/lib/libc/i386/gen/ldivide.s
index a75b5e3f52..3df4afcb36 100644
--- a/usr/src/lib/libc/i386/gen/ldivide.s
+++ b/usr/src/lib/libc/i386/gen/ldivide.s
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,21 +18,18 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
- .ident "%Z%%M% %I% %E% SMI"
+#pragma ident "%Z%%M% %I% %E% SMI"
.file "%M%"
/ Double long divide routine.
-#include <sys/asm_linkage.h>
-
- ANSI_PRAGMA_WEAK(ldivide,function)
-
#include "SYS.h"
.set lop,16
diff --git a/usr/src/lib/libc/i386/gen/lexp10.c b/usr/src/lib/libc/i386/gen/lexp10.c
deleted file mode 100644
index b02a328acc..0000000000
--- a/usr/src/lib/libc/i386/gen/lexp10.c
+++ /dev/null
@@ -1,53 +0,0 @@
-/*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
- *
- * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information: Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- */
-/* Copyright (c) 1988 AT&T */
-/* All Rights Reserved */
-
-
-/*
- * Copyright 1992-2003 Sun Microsystems, Inc. All rights reserved.
- * Use is subject to license terms.
- */
-
-#pragma ident "%Z%%M% %I% %E% SMI"
-
-#pragma weak lexp10 = _lexp10
-
-#include "synonyms.h"
-#include <sys/types.h>
-#include <sys/dl.h>
-
-dl_t
-lexp10(exp)
-dl_t exp;
-{
- dl_t result;
-
- result = lone;
-
- while(exp.dl_hop != 0 || exp.dl_lop != 0){
- result = lmul(result, lten);
- exp = lsub(exp, lone);
- }
-
- return(result);
-}
diff --git a/usr/src/lib/libc/i386/gen/llog10.c b/usr/src/lib/libc/i386/gen/llog10.c
deleted file mode 100644
index e4a6f8ac20..0000000000
--- a/usr/src/lib/libc/i386/gen/llog10.c
+++ /dev/null
@@ -1,54 +0,0 @@
-/*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
- *
- * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information: Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- */
-/* Copyright (c) 1988 AT&T */
-/* All Rights Reserved */
-
-
-/*
- * Copyright 1992-2003 Sun Microsystems, Inc. All rights reserved.
- * Use is subject to license terms.
- */
-
-#pragma ident "%Z%%M% %I% %E% SMI"
-
-#pragma weak llog10 = _llog10
-
-#include "synonyms.h"
-#include <sys/types.h>
-#include <sys/dl.h>
-
-dl_t
-llog10(val)
-dl_t val;
-{
- dl_t result;
-
- result = lzero;
- val = ldivide(val, lten);
-
- while(val.dl_hop != 0 || val.dl_lop != 0){
- val = ldivide(val, lten);
- result = ladd(result, lone);
- }
-
- return(result);
-}
diff --git a/usr/src/lib/libc/i386/gen/lmul.s b/usr/src/lib/libc/i386/gen/lmul.s
index 2007f34682..c25ca556f7 100644
--- a/usr/src/lib/libc/i386/gen/lmul.s
+++ b/usr/src/lib/libc/i386/gen/lmul.s
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,21 +18,18 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
- .ident "%Z%%M% %I% %E% SMI"
+#pragma ident "%Z%%M% %I% %E% SMI"
.file "%M%"
/ Double long multiply routine.
-#include <sys/asm_linkage.h>
-
- ANSI_PRAGMA_WEAK(lmul,function)
-
#include "SYS.h"
.set lop,8
diff --git a/usr/src/lib/libc/i386/gen/lshiftl.s b/usr/src/lib/libc/i386/gen/lshiftl.s
index 29dbe1e5ba..1d684ccc1e 100644
--- a/usr/src/lib/libc/i386/gen/lshiftl.s
+++ b/usr/src/lib/libc/i386/gen/lshiftl.s
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,21 +18,18 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
- .ident "%Z%%M% %I% %E% SMI"
+#pragma ident "%Z%%M% %I% %E% SMI"
.file "%M%"
/ Shift a double long value.
-#include <sys/asm_linkage.h>
-
- ANSI_PRAGMA_WEAK(lshiftl,function)
-
#include "SYS.h"
.set arg,8
diff --git a/usr/src/lib/libc/i386/gen/lsign.s b/usr/src/lib/libc/i386/gen/lsign.s
index 5bfc198a31..2854113a28 100644
--- a/usr/src/lib/libc/i386/gen/lsign.s
+++ b/usr/src/lib/libc/i386/gen/lsign.s
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,21 +18,18 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
- .ident "%Z%%M% %I% %E% SMI"
+#pragma ident "%Z%%M% %I% %E% SMI"
.file "%M%"
/ Determine the sign of a double-long number.
-#include <sys/asm_linkage.h>
-
- ANSI_PRAGMA_WEAK(lsign,function)
-
#include "SYS.h"
ENTRY(lsign)
diff --git a/usr/src/lib/libc/i386/gen/lsub.s b/usr/src/lib/libc/i386/gen/lsub.s
index 92e744ed1a..db39d376a1 100644
--- a/usr/src/lib/libc/i386/gen/lsub.s
+++ b/usr/src/lib/libc/i386/gen/lsub.s
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,21 +18,18 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
- .ident "%Z%%M% %I% %E% SMI"
+#pragma ident "%Z%%M% %I% %E% SMI"
.file "%M%"
/ Double long subtraction routine.
-#include <sys/asm_linkage.h>
-
- ANSI_PRAGMA_WEAK(lsub,function)
-
#include "SYS.h"
.set lop,4
diff --git a/usr/src/lib/libc/i386/gen/ltostr.c b/usr/src/lib/libc/i386/gen/ltostr.c
deleted file mode 100644
index 04129a34ad..0000000000
--- a/usr/src/lib/libc/i386/gen/ltostr.c
+++ /dev/null
@@ -1,61 +0,0 @@
-/*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
- *
- * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information: Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- */
-/* Copyright (c) 1988 AT&T */
-/* All Rights Reserved */
-
-
-#ident "%W% %E% SMI" /* SVr4.0 1.4 */
-/*
- * ltostr -- convert long to decimal string
- *
- *
- * char *
- * ltostr(value, ptr)
- * long value;
- * char *ptr;
- *
- * Ptr is assumed to point to the byte following a storage area
- * into which the decimal representation of "value" is to be
- * placed as a string. Ltostr converts "value" to decimal and
- * produces the string, and returns a pointer to the beginning
- * of the string. No leading zeroes are produced, and no
- * terminating null is produced. The low-order digit of the
- * result always occupies memory position ptr-1.
- * Ltostr's behavior is undefined if "value" is negative. A single
- * zero digit is produced if "value" is zero.
- *
- */
-#include "synonyms.h"
-
-char *
-_ltostr(value, ptr)
-register long value;
-register char *ptr;
-{
- register long t;
-
- do {
- *--ptr = '0' + value - 10 * (t = value / 10);
- } while ((value = t) != 0);
-
- return(ptr);
-}
diff --git a/usr/src/lib/libc/i386/gen/makectxt.c b/usr/src/lib/libc/i386/gen/makectxt.c
index 6432bbf1d0..d72a67a481 100644
--- a/usr/src/lib/libc/i386/gen/makectxt.c
+++ b/usr/src/lib/libc/i386/gen/makectxt.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,20 +18,20 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
-#pragma weak makecontext = _makecontext
+#pragma weak _makecontext = makecontext
-#include "synonyms.h"
+#include "lint.h"
#include <stdarg.h>
#include <ucontext.h>
#include <sys/stack.h>
diff --git a/usr/src/lib/libc/i386/gen/siglongjmp.c b/usr/src/lib/libc/i386/gen/siglongjmp.c
index 1b3296d93d..ea23fcf749 100644
--- a/usr/src/lib/libc/i386/gen/siglongjmp.c
+++ b/usr/src/lib/libc/i386/gen/siglongjmp.c
@@ -20,7 +20,7 @@
*/
/*
- * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
@@ -30,18 +30,16 @@
#pragma ident "%Z%%M% %I% %E% SMI"
-#pragma weak siglongjmp = _siglongjmp
+#pragma weak _siglongjmp = siglongjmp
-#include "synonyms.h"
+#include "lint.h"
#include <sys/types.h>
#include <sys/ucontext.h>
#include <setjmp.h>
#include <ucontext.h>
-extern int _setcontext(const ucontext_t *);
-
void
-_siglongjmp(sigjmp_buf env, int val)
+siglongjmp(sigjmp_buf env, int val)
{
ucontext_t *ucp = (ucontext_t *)env;
@@ -50,5 +48,5 @@ _siglongjmp(sigjmp_buf env, int val)
else
ucp->uc_mcontext.gregs[EAX] = 1;
- (void) _setcontext(ucp);
+ (void) setcontext(ucp);
}
diff --git a/usr/src/lib/libc/i386/gen/wschr.s b/usr/src/lib/libc/i386/gen/wschr.s
index bf0a217b9d..2cf1809cf2 100644
--- a/usr/src/lib/libc/i386/gen/wschr.s
+++ b/usr/src/lib/libc/i386/gen/wschr.s
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,12 +18,13 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
- .ident "%Z%%M% %I% %E% SMI"
+#pragma ident "%Z%%M% %I% %E% SMI"
.file "%M%"
@@ -33,19 +33,15 @@
/
/ Algorithm based on Solaris 2.6 gen/strchr.s implementation
/
-/ .ident "@(#)strchr.s 1.1 92/04/17 SMI"
-/
-#include <sys/asm_linkage.h>
+#include "SYS.h"
ANSI_PRAGMA_WEAK(wcschr,function)
ANSI_PRAGMA_WEAK(wschr,function)
-#include "SYS.h"
-
.align 8 / accounts for .loop alignment and prolog
- ENTRY(_wcschr)
+ ENTRY(wcschr)
movl 4(%esp),%eax / %eax = string address
movl 8(%esp),%ecx / %ecx = wchar sought
.loop:
@@ -88,16 +84,16 @@
addl $4,%eax
.found:
ret
- SET_SIZE(_wcschr)
+ SET_SIZE(wcschr)
- ENTRY(_wschr)
+ ENTRY(wschr)
_prologue_
movl _esp_(8),%eax
movl _esp_(4),%edx
pushl %eax
pushl %edx
- call _fref_(_wcschr)
+ call _fref_(wcschr)
addl $8,%esp
_epilogue_
ret
- SET_SIZE(_wschr)
+ SET_SIZE(wschr)
diff --git a/usr/src/lib/libc/i386/gen/wslen.s b/usr/src/lib/libc/i386/gen/wslen.s
index 5d428e84cc..3431210229 100644
--- a/usr/src/lib/libc/i386/gen/wslen.s
+++ b/usr/src/lib/libc/i386/gen/wslen.s
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,12 +18,13 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
- .ident "%Z%%M% %I% %E% SMI"
+#pragma ident "%Z%%M% %I% %E% SMI"
.file "%M%"
@@ -32,7 +32,7 @@
* Wide character wcslen() implementation
*
* size_t
- * _wcslen(const wchar_t *s)
+ * wcslen(const wchar_t *s)
*{
* const wchar_t *s0 = s + 1;
* while (*s++)
@@ -41,14 +41,12 @@
*}
*/
-#include <sys/asm_linkage.h>
+#include "SYS.h"
ANSI_PRAGMA_WEAK(wcslen,function)
ANSI_PRAGMA_WEAK(wslen,function)
-#include "SYS.h"
-
- ENTRY(_wcslen)
+ ENTRY(wcslen)
movl 4(%esp),%edx
xorl %eax,%eax
@@ -81,16 +79,16 @@
.out3:
add $3, %eax
ret
- SET_SIZE(_wcslen)
+ SET_SIZE(wcslen)
- ENTRY(_wslen)
+ ENTRY(wslen)
_prologue_
movl _esp_(8),%eax
movl _esp_(4),%edx
pushl %eax
pushl %edx
- call _fref_(_wcslen)
+ call _fref_(wcslen)
addl $8,%esp
_epilogue_
ret
- SET_SIZE(_wslen)
+ SET_SIZE(wslen)
diff --git a/usr/src/lib/libc/i386/gen/wsncmp.s b/usr/src/lib/libc/i386/gen/wsncmp.s
index 54b05f8342..995187a827 100644
--- a/usr/src/lib/libc/i386/gen/wsncmp.s
+++ b/usr/src/lib/libc/i386/gen/wsncmp.s
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,12 +18,13 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
- .ident "%Z%%M% %I% %E% SMI"
+#pragma ident "%Z%%M% %I% %E% SMI"
.file "%M%"
@@ -33,17 +33,13 @@
/
/ Algorithm based on Solaris 2.6 gen/strncpy.s implementation
/
-/ .ident "@(#)strncpy.s 1.1 92/04/17 SMI"
-/
-#include <sys/asm_linkage.h>
+#include "SYS.h"
ANSI_PRAGMA_WEAK(wcsncmp,function)
ANSI_PRAGMA_WEAK(wsncmp,function)
-#include "SYS.h"
-
- ENTRY(_wcsncmp)
+ ENTRY(wcsncmp)
pushl %esi / save register variables
movl 8(%esp),%esi / %esi = first string
movl %edi,%edx
@@ -105,9 +101,9 @@
subl (%edi),%eax / return value is (*s1 - *--s2)
movl %edx,%edi
ret
- SET_SIZE(_wcsncmp)
+ SET_SIZE(wcsncmp)
- ENTRY(_wsncmp)
+ ENTRY(wsncmp)
_prologue_
movl _esp_(12),%ecx
movl _esp_(8),%eax
@@ -115,8 +111,8 @@
pushl %ecx
pushl %eax
pushl %edx
- call _fref_(_wcsncmp)
+ call _fref_(wcsncmp)
addl $12,%esp
_epilogue_
ret
- SET_SIZE(_wsncmp)
+ SET_SIZE(wsncmp)
diff --git a/usr/src/lib/libc/i386/inc/SYS.h b/usr/src/lib/libc/i386/inc/SYS.h
index eaba7aee91..b5f7d7c938 100644
--- a/usr/src/lib/libc/i386/inc/SYS.h
+++ b/usr/src/lib/libc/i386/inc/SYS.h
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,8 +18,9 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2005 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
@@ -34,9 +34,7 @@
*/
#include <sys/asm_linkage.h>
#include <sys/syscall.h>
-#include <sys/trap.h>
#include <sys/errno.h>
-#include "synonyms.h"
#define _prologue_ \
pushl %ebx; \
diff --git a/usr/src/lib/libc/i386/mapfile-vers b/usr/src/lib/libc/i386/mapfile-vers
index 2229e9d71b..a58c2f858e 100644
--- a/usr/src/lib/libc/i386/mapfile-vers
+++ b/usr/src/lib/libc/i386/mapfile-vers
@@ -40,7 +40,6 @@ SUNW_1.23 {
enable_extended_FILE_stdio;
lio_listio64;
mkstemps64;
- _mkstemps64;
posix_fallocate64;
};
@@ -924,6 +923,7 @@ SUNWprivate_1.1 {
__xtoull;
local:
+ _syscall6 = NODYNSORT;
__systemcall6 = NODYNSORT;
_seekdir64 = NODYNSORT;
_telldir64 = NODYNSORT;
diff --git a/usr/src/lib/libc/i386/sys/_lwp_mutex_unlock.s b/usr/src/lib/libc/i386/sys/_lwp_mutex_unlock.s
index 1154c72140..3133ba1fe8 100644
--- a/usr/src/lib/libc/i386/sys/_lwp_mutex_unlock.s
+++ b/usr/src/lib/libc/i386/sys/_lwp_mutex_unlock.s
@@ -28,12 +28,8 @@
.file "%M%"
-#include <sys/asm_linkage.h>
-
- ANSI_PRAGMA_WEAK(_lwp_mutex_unlock,function)
-
#include "SYS.h"
-#include <assym.h>
+#include <../assym.h>
ENTRY(_lwp_mutex_unlock)
movl 4(%esp), %eax
diff --git a/usr/src/lib/libc/i386/sys/door.s b/usr/src/lib/libc/i386/sys/door.s
index 799d9e17fd..92ef56eff8 100644
--- a/usr/src/lib/libc/i386/sys/door.s
+++ b/usr/src/lib/libc/i386/sys/door.s
@@ -28,27 +28,18 @@
.file "%M%"
-#include <sys/asm_linkage.h>
+#include "SYS.h"
+#include <sys/door.h>
/*
* weak aliases for public interfaces
*/
- ANSI_PRAGMA_WEAK(_door_bind,function)
- ANSI_PRAGMA_WEAK(_door_getparam,function)
- ANSI_PRAGMA_WEAK(_door_info,function)
- ANSI_PRAGMA_WEAK(_door_revoke,function)
- ANSI_PRAGMA_WEAK(_door_setparam,function)
- ANSI_PRAGMA_WEAK(_door_unbind,function)
-
- ANSI_PRAGMA_WEAK(door_bind,function)
- ANSI_PRAGMA_WEAK(door_getparam,function)
- ANSI_PRAGMA_WEAK(door_info,function)
- ANSI_PRAGMA_WEAK(door_revoke,function)
- ANSI_PRAGMA_WEAK(door_setparam,function)
- ANSI_PRAGMA_WEAK(door_unbind,function)
-
-#include <sys/door.h>
-#include "SYS.h"
+ ANSI_PRAGMA_WEAK2(door_bind,__door_bind,function)
+ ANSI_PRAGMA_WEAK2(door_getparam,__door_getparam,function)
+ ANSI_PRAGMA_WEAK2(door_info,__door_info,function)
+ ANSI_PRAGMA_WEAK2(door_revoke,__door_revoke,function)
+ ANSI_PRAGMA_WEAK2(door_setparam,__door_setparam,function)
+ ANSI_PRAGMA_WEAK2(door_unbind,__door_unbind,function)
/*
* Offsets within struct door_results
@@ -177,7 +168,7 @@ door_restart:
call *%eax
/* Exit the thread if we return here */
pushl $0
- call _thr_terminate
+ call _thrp_terminate
/* NOTREACHED */
2:
/*
diff --git a/usr/src/lib/libc/i386/sys/gettimeofday.s b/usr/src/lib/libc/i386/sys/gettimeofday.s
index 07f69d4a8e..e54a71121b 100644
--- a/usr/src/lib/libc/i386/sys/gettimeofday.s
+++ b/usr/src/lib/libc/i386/sys/gettimeofday.s
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,8 +18,9 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
@@ -28,19 +28,17 @@
.file "%M%"
-#include <sys/asm_linkage.h>
+#include "SYS.h"
ANSI_PRAGMA_WEAK(gettimeofday,function)
-#include "SYS.h"
-
/
/ implements int gettimeofday(struct timeval *tp, void *tzp)
/
/ note that tzp is always ignored
/
- ENTRY(_gettimeofday)
+ ENTRY(gettimeofday)
/
/ use long long gethrestime()
/
@@ -59,6 +57,6 @@
movl %edx, 4(%ecx) / store usecs into timeval ptr + 4.
1:
RETC / return 0
- SET_SIZE(_gettimeofday)
+ SET_SIZE(gettimeofday)
diff --git a/usr/src/lib/libc/i386/sys/lwp_private.s b/usr/src/lib/libc/i386/sys/lwp_private.s
index d6f0f0621a..757dd83209 100644
--- a/usr/src/lib/libc/i386/sys/lwp_private.s
+++ b/usr/src/lib/libc/i386/sys/lwp_private.s
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,22 +18,21 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
- .file "lwp_private.s"
-
-#include <sys/asm_linkage.h>
+ .file "%M%"
#include "SYS.h"
/*
* int
- * __lwp_setprivate(int cmd, int which, void *base)
+ * ___lwp_private(int cmd, int which, void *base)
*/
ENTRY(___lwp_private)
SYSTRAP_RVAL1(lwp_private)
diff --git a/usr/src/lib/libc/i386/sys/nuname.s b/usr/src/lib/libc/i386/sys/nuname.s
index d87120f665..1d7ea9ecc9 100644
--- a/usr/src/lib/libc/i386/sys/nuname.s
+++ b/usr/src/lib/libc/i386/sys/nuname.s
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,8 +18,9 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
@@ -28,14 +28,12 @@
.file "%M%"
-#include <sys/asm_linkage.h>
+#include "SYS.h"
ANSI_PRAGMA_WEAK(nuname,function)
-#include "SYS.h"
-
- ENTRY(_nuname)
+ ENTRY(nuname)
SYSTRAP_RVAL1(uname)
SYSCERROR
RET
- SET_SIZE(_nuname)
+ SET_SIZE(nuname)
diff --git a/usr/src/lib/libc/i386/sys/ptrace.c b/usr/src/lib/libc/i386/sys/ptrace.c
index 5cd033bdb0..470f79663a 100644
--- a/usr/src/lib/libc/i386/sys/ptrace.c
+++ b/usr/src/lib/libc/i386/sys/ptrace.c
@@ -30,9 +30,9 @@
#pragma ident "%Z%%M% %I% %E% SMI"
-#pragma weak ptrace = _ptrace
+#pragma weak _ptrace = ptrace
-#include "synonyms.h"
+#include "lint.h"
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
diff --git a/usr/src/lib/libc/i386/sys/syscall.s b/usr/src/lib/libc/i386/sys/syscall.s
index 503c8a0001..886cec9b8a 100644
--- a/usr/src/lib/libc/i386/sys/syscall.s
+++ b/usr/src/lib/libc/i386/sys/syscall.s
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,8 +18,9 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2005 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
@@ -28,22 +28,17 @@
.file "%M%"
-#include <sys/asm_linkage.h>
+#include "SYS.h"
#include <sys/trap.h>
ANSI_PRAGMA_WEAK(syscall,function)
-#include "SYS.h"
-
-#undef _syscall /* override "synonyms.h" */
-#undef __systemcall
-
/*
- * See sparc/sys/syscall.s to understand why __syscall6() exists.
+ * See sparc/sys/syscall.s to understand why _syscall6() exists.
* On x86, the implementation of the two are the same, the only
- * difference being that __syscall6 is not an exported symbol.
+ * difference being that _syscall6 is not an exported symbol.
*/
- ENTRY2(_syscall,_syscall6)
+ ENTRY2(syscall,_syscall6)
popl %edx / return address
popl %eax / system call number
pushl %edx
@@ -63,7 +58,7 @@
pushl %edx / restore the return address
SYSCERROR
ret
- SET_SIZE(_syscall)
+ SET_SIZE(syscall)
SET_SIZE(_syscall6)
/*
diff --git a/usr/src/lib/libc/i386/sys/sysi86.s b/usr/src/lib/libc/i386/sys/sysi86.s
index 14e47db53c..bb1edbfd2a 100644
--- a/usr/src/lib/libc/i386/sys/sysi86.s
+++ b/usr/src/lib/libc/i386/sys/sysi86.s
@@ -28,14 +28,10 @@
.file "%M%"
-#include <sys/asm_linkage.h>
+#include "SYS.h"
ANSI_PRAGMA_WEAK(sysi86,function)
-#include "SYS.h"
-
- ENTRY(_sysi86)
- SYSTRAP_RVAL1(sysi86)
- SYSCERROR
+ SYSCALL_RVAL1(sysi86)
RET
- SET_SIZE(_sysi86)
+ SET_SIZE(sysi86)
diff --git a/usr/src/lib/libc/i386/sys/uadmin.c b/usr/src/lib/libc/i386/sys/uadmin.c
index 8caf6d5bc3..bc15f4a9e3 100644
--- a/usr/src/lib/libc/i386/sys/uadmin.c
+++ b/usr/src/lib/libc/i386/sys/uadmin.c
@@ -26,8 +26,6 @@
#pragma ident "%Z%%M% %I% %E% SMI"
-#pragma weak uadmin = _uadmin
-
/*
* Wrapper function to implement reboot w/ arguments on x86
* platforms. Extract reboot arguments and place them in
@@ -35,7 +33,7 @@
* All other commands are passed through.
*/
-#include "synonyms.h"
+#include "lint.h"
#include <fcntl.h>
#include <ctype.h>
#include <stdio.h>
diff --git a/usr/src/lib/libc/i386/sys/vforkx.s b/usr/src/lib/libc/i386/sys/vforkx.s
index 4659498dc5..be14d9757a 100644
--- a/usr/src/lib/libc/i386/sys/vforkx.s
+++ b/usr/src/lib/libc/i386/sys/vforkx.s
@@ -20,7 +20,7 @@
*/
/*
- * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
@@ -28,11 +28,6 @@
.file "%M%"
-#include <sys/asm_linkage.h>
-
- ANSI_PRAGMA_WEAK(vforkx,function)
- ANSI_PRAGMA_WEAK(vfork,function)
-
#include "SYS.h"
#include <assym.h>
diff --git a/usr/src/lib/libc/i386/threads/asm_subr.s b/usr/src/lib/libc/i386/threads/asm_subr.s
index 232cb09893..622ea3f250 100644
--- a/usr/src/lib/libc/i386/threads/asm_subr.s
+++ b/usr/src/lib/libc/i386/threads/asm_subr.s
@@ -32,11 +32,11 @@
/ This is where execution resumes when a thread created with
/ thr_create() or pthread_create() returns (see setup_context()).
- / We pass the (void *) return value to _thr_terminate().
+ / We pass the (void *) return value to _thrp_terminate().
ENTRY(_lwp_start)
addl $4, %esp
pushl %eax
- call _thr_terminate
+ call _thrp_terminate
addl $4, %esp / actually, never returns
SET_SIZE(_lwp_start)
diff --git a/usr/src/lib/libc/i386/threads/machdep.c b/usr/src/lib/libc/i386/threads/machdep.c
index c5b8e2d118..d1c8d34437 100644
--- a/usr/src/lib/libc/i386/threads/machdep.c
+++ b/usr/src/lib/libc/i386/threads/machdep.c
@@ -70,7 +70,7 @@ setup_context(ucontext_t *ucp, void *(*func)(ulwp_t *),
* to pass down self pointer and set %gs selector
* value so __lwp_create() can setup %gs atomically.
* Without this we would need to block all signals
- * and directly call __lwp_setprivate() in _thr_setup
+ * and directly call ___lwp_private() in _thrp_setup
* on the other side of __lwp_create().
*/
ucp->uc_mcontext.gregs[ESP] = (greg_t)ulwp;
@@ -98,7 +98,7 @@ setup_context(ucontext_t *ucp, void *(*func)(ulwp_t *),
* Machine-dependent startup code for a newly-created thread.
*/
void *
-_thr_setup(ulwp_t *self)
+_thrp_setup(ulwp_t *self)
{
self->ul_ustack.ss_sp = (void *)(self->ul_stktop - self->ul_stksiz);
self->ul_ustack.ss_size = self->ul_stksiz;
diff --git a/usr/src/lib/libc/i386_hwcap1/gen/memcpy.s b/usr/src/lib/libc/i386_hwcap1/gen/memcpy.s
index 745a1ce5d7..ebecf1e1a8 100644
--- a/usr/src/lib/libc/i386_hwcap1/gen/memcpy.s
+++ b/usr/src/lib/libc/i386_hwcap1/gen/memcpy.s
@@ -24,7 +24,7 @@
* Use is subject to license terms.
*/
- .ident "%Z%%M% %I% %E% SMI"
+#pragma ident "%Z%%M% %I% %E% SMI"
.file "%M%"
@@ -33,8 +33,6 @@
ANSI_PRAGMA_WEAK(memmove,function)
ANSI_PRAGMA_WEAK(memcpy,function)
-#include "SYS.h"
-
ENTRY(memmove)
movl 0+12(%esp),%ecx / get number of bytes to move
pushl %esi / save off %edi, %esi and move destination
diff --git a/usr/src/lib/libc/i386_hwcap1/gen/memset.s b/usr/src/lib/libc/i386_hwcap1/gen/memset.s
index 740173118e..bbdb71c870 100644
--- a/usr/src/lib/libc/i386_hwcap1/gen/memset.s
+++ b/usr/src/lib/libc/i386_hwcap1/gen/memset.s
@@ -24,7 +24,7 @@
* Use is subject to license terms.
*/
- .ident "%Z%%M% %I% %E% SMI"
+#pragma ident "%Z%%M% %I% %E% SMI"
.file "%M%"
@@ -32,8 +32,6 @@
ANSI_PRAGMA_WEAK(memset,function)
-#include "SYS.h"
-
ENTRY(memset)
pushl %edi / save register variable
movl 8(%esp),%edi / %edi = string address
diff --git a/usr/src/lib/libc/inc/base_conversion.h b/usr/src/lib/libc/inc/base_conversion.h
index f3b8d5d1e8..c118110c84 100644
--- a/usr/src/lib/libc/inc/base_conversion.h
+++ b/usr/src/lib/libc/inc/base_conversion.h
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -21,7 +20,7 @@
*/
/*
- * Copyright 2005 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
@@ -230,20 +229,18 @@ typedef struct {
/* PRIVATE GLOBAL VARIABLES */
/*
- * Flags to indicate whether any NaNs or infinities have been read
- * or written. These are exported solely for the use of the old
- * Sun Fortran runtime library. Once that becomes obsolete, these
- * can be removed.
+ * Thread-specific flags to indicate whether any NaNs or infinities
+ * have been read or written.
*/
-extern int *_thr_get_inf_read(void);
-extern int *_thr_get_inf_written(void);
-extern int *_thr_get_nan_read(void);
-extern int *_thr_get_nan_written(void);
-
-#define __inf_read (*(int *)_thr_get_inf_read())
-#define __inf_written (*(int *)_thr_get_inf_written())
-#define __nan_read (*(int *)_thr_get_nan_read())
-#define __nan_written (*(int *)_thr_get_nan_written())
+extern int *_thrp_get_inf_read(void);
+extern int *_thrp_get_inf_written(void);
+extern int *_thrp_get_nan_read(void);
+extern int *_thrp_get_nan_written(void);
+
+#define __inf_read (*(int *)_thrp_get_inf_read())
+#define __inf_written (*(int *)_thrp_get_inf_written())
+#define __nan_read (*(int *)_thrp_get_nan_read())
+#define __nan_written (*(int *)_thrp_get_nan_written())
/*
* Powers of 5 in base 2**16 and powers of 2 in base 10**4.
diff --git a/usr/src/lib/libc/inc/libc.h b/usr/src/lib/libc/inc/libc.h
index 1136e09665..4059d08d8e 100644
--- a/usr/src/lib/libc/inc/libc.h
+++ b/usr/src/lib/libc/inc/libc.h
@@ -59,7 +59,6 @@ extern "C" {
extern void __set_panicstr(const char *);
extern void _rewind_unlocked(FILE *);
-extern int _rename(const char *, const char *);
extern long _sysconfig(int);
extern int kill(pid_t pid, int sig);
@@ -79,12 +78,6 @@ extern void *libc_malloc(size_t);
extern void *libc_realloc(void *, size_t);
extern void libc_free(void *);
extern char *libc_strdup(const char *);
-extern int _sigwait(sigset_t *);
-extern int _thr_getspecific(thread_key_t key, void **valuep);
-extern int _thr_setspecific(unsigned int key, void *value);
-extern int _thr_keycreate(thread_key_t *pkey, void (*destructor)(void *));
-extern int _thr_keycreate_once(thread_key_t *pkey, void (*destructor)(void *));
-extern void *_pthread_getspecific(thread_key_t);
extern int _pollsys(struct pollfd *, nfds_t, const timespec_t *,
const sigset_t *);
@@ -246,17 +239,6 @@ extern uint_t __xpg6; /* global */
extern uint_t libc__xpg6; /* copy of __xpg6, private to libc */
/*
- * i18n prototypes - strong symbols (weak symbols are in libintl.h)
- */
-extern char *_textdomain(const char *);
-extern char *_bindtextdomain(const char *, const char *);
-extern char *_dcgettext(const char *, const char *, const int);
-extern char *_dgettext(const char *, const char *);
-extern char *_gettext(const char *);
-extern int _fnmatch(const char *, const char *, int);
-
-
-/*
* defined in port/stdio/doscan.c
*/
extern int _doscan(FILE *, const char *, va_list);
@@ -324,30 +306,6 @@ extern wint_t _putwc(wint_t, FILE *);
*/
extern wint_t __ungetwc_xpg5(wint_t, FILE *);
-/*
- * defined in wscmp.c
- */
-extern int _wcscmp(const wchar_t *, const wchar_t *);
-
-/*
- * defined in wslen.c
- */
-extern size_t _wcslen(const wchar_t *);
-
-/*
- * defined in wscpy.c
- */
-extern wchar_t *_wcscpy(wchar_t *, const wchar_t *);
-
-/*
- * misc synonyms
- */
-extern int _wctomb(char *, wchar_t);
-extern wint_t _towlower(wint_t);
-extern int _doscan(FILE *, const char *, va_list);
-extern int _wcscoll(const wchar_t *, const wchar_t *);
-extern size_t _wcsxfrm(wchar_t *, const wchar_t *, size_t);
-extern wint_t _fputwc(wint_t, FILE *);
#ifdef __cplusplus
}
#endif
diff --git a/usr/src/lib/libc/inc/lint.h b/usr/src/lib/libc/inc/lint.h
index 48098ab61a..d031a250c5 100644
--- a/usr/src/lib/libc/inc/lint.h
+++ b/usr/src/lib/libc/inc/lint.h
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,8 +18,9 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2003 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
@@ -37,12 +37,22 @@ extern "C" {
* We must include "lint.h" as the first #include in all libc source files
* for the purpose of running lint over libc, else lint errors occur due to
* lint not knowing the details of the implementation of locales and stdio.
- * "synonyms.h" includes "lint.h" so only the files that do not include
- * "synonyms.h" need to explicitly include "lint.h".
*/
#if defined(__lint)
+
#include "mbstatet.h"
#include "file64.h"
+
+#else
+
+/*
+ * Small optimization for callers of syscall() and __systemcall().
+ * This could/should be defined elsewhere, but here is a particularly
+ * attractive place since all source files in libc include "lint.h".
+ */
+#define syscall _syscall6
+#define __systemcall __systemcall6
+
#endif
#ifdef __cplusplus
diff --git a/usr/src/lib/libc/inc/mtlib.h b/usr/src/lib/libc/inc/mtlib.h
index af4264c775..aa5e9e0992 100644
--- a/usr/src/lib/libc/inc/mtlib.h
+++ b/usr/src/lib/libc/inc/mtlib.h
@@ -39,13 +39,6 @@ extern "C" {
extern int primary_link_map;
extern void lmutex_lock(mutex_t *);
extern void lmutex_unlock(mutex_t *);
-extern int __rwlock_init(rwlock_t *, int, void *);
-extern int __rwlock_destroy(rwlock_t *);
-extern int __rw_rdlock(rwlock_t *);
-extern int __rw_wrlock(rwlock_t *);
-extern int __rw_tryrdlock(rwlock_t *);
-extern int __rw_trywrlock(rwlock_t *);
-extern int __rw_unlock(rwlock_t *);
extern void lrw_rdlock(rwlock_t *);
extern void lrw_wrlock(rwlock_t *);
extern void lrw_unlock(rwlock_t *);
@@ -58,53 +51,12 @@ extern void cancel_safe_mutex_lock(mutex_t *);
extern void cancel_safe_mutex_unlock(mutex_t *);
extern int cancel_safe_mutex_trylock(mutex_t *);
extern int cancel_active(void);
+extern int _thrp_cancelled(void);
/* the private libc thread-safe allocator */
extern void *lmalloc(size_t);
extern void lfree(void *, size_t);
-/* the rest are public functions */
-extern int _mutex_init(mutex_t *, int, void *);
-extern int _mutex_destroy(mutex_t *);
-extern int _mutex_lock(mutex_t *);
-extern int _mutex_trylock(mutex_t *);
-extern int _mutex_unlock(mutex_t *);
-extern int __mutex_init(mutex_t *, int, void *);
-extern int __mutex_destroy(mutex_t *);
-extern int __mutex_lock(mutex_t *);
-extern int __mutex_trylock(mutex_t *);
-extern int __mutex_unlock(mutex_t *);
-
-extern int _cond_init(cond_t *, int, void *);
-extern int _cond_destroy(cond_t *);
-extern int __cond_wait(cond_t *, mutex_t *);
-extern int __cond_timedwait(cond_t *, mutex_t *, const timespec_t *);
-extern int __cond_reltimedwait(cond_t *, mutex_t *, const timespec_t *);
-extern int _cond_signal(cond_t *);
-extern int _cond_broadcast(cond_t *);
-
-extern int _rwlock_init(rwlock_t *, int, void *);
-extern int _rwlock_destroy(rwlock_t *);
-extern int _rw_rdlock(rwlock_t *);
-extern int _rw_wrlock(rwlock_t *);
-extern int _rw_tryrdlock(rwlock_t *);
-extern int _rw_trywrlock(rwlock_t *);
-extern int _rw_unlock(rwlock_t *);
-
-extern int _thr_main(void);
-extern thread_t _thr_self(void);
-extern int _thrp_cancelled(void);
-extern void _thr_exit(void *);
-extern size_t _thr_min_stack(void);
-extern int _thr_kill(thread_t, int);
-extern int _thr_create(void *, size_t, void *(*)(void *), void *, long,
- thread_t *);
-extern int _thr_keycreate(thread_key_t *, void (*)(void *));
-extern int _thr_keycreate_once(thread_key_t *, void (*)(void *));
-extern int _thr_setspecific(thread_key_t, void *);
-extern int _thr_getspecific(thread_key_t, void **);
-extern void *_pthread_getspecific(thread_key_t);
-
#if defined(THREAD_DEBUG)
extern void assert_no_libc_locks_held(void);
#else
diff --git a/usr/src/lib/libc/inc/synonyms.h b/usr/src/lib/libc/inc/synonyms.h
deleted file mode 100644
index ca8e25a41a..0000000000
--- a/usr/src/lib/libc/inc/synonyms.h
+++ /dev/null
@@ -1,1232 +0,0 @@
-/*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License (the "License").
- * You may not use this file except in compliance with the License.
- *
- * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information: Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- */
-
-/*
- * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
- * Use is subject to license terms.
- */
-
-/* Copyright (c) 1988 AT&T */
-/* All Rights Reserved */
-
-#ifndef _LIBC_SYNONYMS_H
-#define _LIBC_SYNONYMS_H
-
-#pragma ident "%Z%%M% %I% %E% SMI"
-
-#include <sys/feature_tests.h>
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-#if !defined(__lint)
-
-#if !defined(_LP64)
-/* transitional large file interfaces */
-#define alphasort64 _alphasort64
-#define attropen64 _attropen64
-#define creat64 _creat64
-#define ftello64 _ftello64
-#define fseeko64 _fseeko64
-#define fstat64 _fstat64
-#define fstatvfs64 _fstatvfs64
-#define ftruncate64 _ftruncate64
-#define getdents64 _getdents64
-#define getrlimit64 _getrlimit64
-#define lockf64 _lockf64
-#define lseek64 _lseek64
-#define lstat64 _lstat64
-#define mkstemp64 _mkstemp64
-#define mkstemps64 _mkstemps64
-#define mmap64 _mmap64
-#define openat64 _openat64
-#define open64 _open64
-#define pread64 _pread64
-#define pwrite64 _pwrite64
-#define readdir64 _readdir64
-#define readdir64_r _readdir64_r
-#define scandir64 _scandir64
-#define seekdir64 _seekdir64
-#define tell64 _tell64
-#define telldir64 _telldir64
-#define setrlimit64 _setrlimit64
-#define stat64 _stat64
-#define fstatat64 _fstatat64
-#define statvfs64 _statvfs64
-#define truncate64 _truncate64
-#endif /* !_LP64 */
-
-/* external data */
-#define altzone _altzone
-#define daylight _daylight
-#define lone _lone
-#define lten _lten
-#define lzero _lzero
-#define timezone _timezone
-#define tzname _tzname
-
-/* functions */
-#define a64l _a64l
-#define access _access
-#define acct _acct
-#define acctctl _acctctl
-#define acl _acl
-#define addsev _addsev
-#define addseverity _addseverity
-#define adjtime _adjtime
-#define alarm _alarm
-#define alphasort _alphasort
-#define ascftime _ascftime
-#define asctime_r _asctime_r
-#define _assert __assert
-#define _assert_c99 __assert_c99
-#define atexit _atexit
-#define atoll _atoll
-#define atomic_add_16 _atomic_add_16
-#define atomic_add_16_nv _atomic_add_16_nv
-#define atomic_add_32 _atomic_add_32
-#define atomic_add_32_nv _atomic_add_32_nv
-#define atomic_add_64 _atomic_add_64
-#define atomic_add_64_nv _atomic_add_64_nv
-#define atomic_add_8 _atomic_add_8
-#define atomic_add_8_nv _atomic_add_8_nv
-#define atomic_add_char _atomic_add_char
-#define atomic_add_char_nv _atomic_add_char_nv
-#define atomic_add_int _atomic_add_int
-#define atomic_add_int_nv _atomic_add_int_nv
-#define atomic_add_long _atomic_add_long
-#define atomic_add_long_nv _atomic_add_long_nv
-#define atomic_add_ptr _atomic_add_ptr
-#define atomic_add_ptr_nv _atomic_add_ptr_nv
-#define atomic_add_short _atomic_add_short
-#define atomic_add_short_nv _atomic_add_short_nv
-#define atomic_and_16 _atomic_and_16
-#define atomic_and_16_nv _atomic_and_16_nv
-#define atomic_and_32 _atomic_and_32
-#define atomic_and_32_nv _atomic_and_32_nv
-#define atomic_and_64 _atomic_and_64
-#define atomic_and_64_nv _atomic_and_64_nv
-#define atomic_and_8 _atomic_and_8
-#define atomic_and_8_nv _atomic_and_8_nv
-#define atomic_and_uchar _atomic_and_uchar
-#define atomic_and_uchar_nv _atomic_and_uchar_nv
-#define atomic_and_uint _atomic_and_uint
-#define atomic_and_uint_nv _atomic_and_uint_nv
-#define atomic_and_ulong _atomic_and_ulong
-#define atomic_and_ulong_nv _atomic_and_ulong_nv
-#define atomic_and_ushort _atomic_and_ushort
-#define atomic_and_ushort_nv _atomic_and_ushort_nv
-#define atomic_cas_16 _atomic_cas_16
-#define atomic_cas_32 _atomic_cas_32
-#define atomic_cas_64 _atomic_cas_64
-#define atomic_cas_8 _atomic_cas_8
-#define atomic_cas_ptr _atomic_cas_ptr
-#define atomic_cas_uchar _atomic_cas_uchar
-#define atomic_cas_uint _atomic_cas_uint
-#define atomic_cas_ulong _atomic_cas_ulong
-#define atomic_cas_ushort _atomic_cas_ushort
-#define atomic_clear_long_excl _atomic_clear_long_excl
-#define atomic_dec_16 _atomic_dec_16
-#define atomic_dec_16_nv _atomic_dec_16_nv
-#define atomic_dec_32 _atomic_dec_32
-#define atomic_dec_32_nv _atomic_dec_32_nv
-#define atomic_dec_64 _atomic_dec_64
-#define atomic_dec_64_nv _atomic_dec_64_nv
-#define atomic_dec_8 _atomic_dec_8
-#define atomic_dec_8_nv _atomic_dec_8_nv
-#define atomic_dec_uchar _atomic_dec_uchar
-#define atomic_dec_uchar_nv _atomic_dec_uchar_nv
-#define atomic_dec_uint _atomic_dec_uint
-#define atomic_dec_uint_nv _atomic_dec_uint_nv
-#define atomic_dec_ulong _atomic_dec_ulong
-#define atomic_dec_ulong_nv _atomic_dec_ulong_nv
-#define atomic_dec_ushort _atomic_dec_ushort
-#define atomic_dec_ushort_nv _atomic_dec_ushort_nv
-#define atomic_inc_16 _atomic_inc_16
-#define atomic_inc_16_nv _atomic_inc_16_nv
-#define atomic_inc_32 _atomic_inc_32
-#define atomic_inc_32_nv _atomic_inc_32_nv
-#define atomic_inc_64 _atomic_inc_64
-#define atomic_inc_64_nv _atomic_inc_64_nv
-#define atomic_inc_8 _atomic_inc_8
-#define atomic_inc_8_nv _atomic_inc_8_nv
-#define atomic_inc_uchar _atomic_inc_uchar
-#define atomic_inc_uchar_nv _atomic_inc_uchar_nv
-#define atomic_inc_uint _atomic_inc_uint
-#define atomic_inc_uint_nv _atomic_inc_uint_nv
-#define atomic_inc_ulong _atomic_inc_ulong
-#define atomic_inc_ulong_nv _atomic_inc_ulong_nv
-#define atomic_inc_ushort _atomic_inc_ushort
-#define atomic_inc_ushort_nv _atomic_inc_ushort_nv
-#define atomic_or_16 _atomic_or_16
-#define atomic_or_16_nv _atomic_or_16_nv
-#define atomic_or_32 _atomic_or_32
-#define atomic_or_32_nv _atomic_or_32_nv
-#define atomic_or_64 _atomic_or_64
-#define atomic_or_64_nv _atomic_or_64_nv
-#define atomic_or_8 _atomic_or_8
-#define atomic_or_8_nv _atomic_or_8_nv
-#define atomic_or_uchar _atomic_or_uchar
-#define atomic_or_uchar_nv _atomic_or_uchar_nv
-#define atomic_or_uint _atomic_or_uint
-#define atomic_or_uint_nv _atomic_or_uint_nv
-#define atomic_or_ulong _atomic_or_ulong
-#define atomic_or_ulong_nv _atomic_or_ulong_nv
-#define atomic_or_ushort _atomic_or_ushort
-#define atomic_or_ushort_nv _atomic_or_ushort_nv
-#define atomic_set_long_excl _atomic_set_long_excl
-#define atomic_swap_16 _atomic_swap_16
-#define atomic_swap_32 _atomic_swap_32
-#define atomic_swap_64 _atomic_swap_64
-#define atomic_swap_8 _atomic_swap_8
-#define atomic_swap_ptr _atomic_swap_ptr
-#define atomic_swap_uchar _atomic_swap_uchar
-#define atomic_swap_uint _atomic_swap_uint
-#define atomic_swap_ulong _atomic_swap_ulong
-#define atomic_swap_ushort _atomic_swap_ushort
-#define attropen _attropen
-#define basename _basename
-#define bindtextdomain _bindtextdomain
-#define bind_textdomain_codeset _bind_textdomain_codeset
-#define brk _brk
-#define bsd_signal _bsd_signal
-#define catclose _catclose
-#define catgets _catgets
-#define catopen _catopen
-#define cfgetispeed _cfgetispeed
-#define cfgetospeed _cfgetospeed
-#define cfsetispeed _cfsetispeed
-#define cfsetospeed _cfsetospeed
-#define cftime _cftime
-#define chdir _chdir
-#define chmod _chmod
-#define chown _chown
-#define chroot _chroot
-#define _cladm __cladm
-#define clock_getres _clock_getres
-#define clock_gettime _clock_gettime
-#define clock_nanosleep _clock_nanosleep
-#define clock_settime _clock_settime
-#define close _close
-#define closedir _closedir
-#define closefrom _closefrom
-#define closelog _closelog
-#define cond_broadcast _cond_broadcast
-#define cond_destroy _cond_destroy
-#define cond_init _cond_init
-#define cond_reltimedwait _cond_reltimedwait
-#define cond_signal _cond_signal
-#define cond_timedwait _cond_timedwait
-#define cond_wait _cond_wait
-#define confstr _confstr
-#define core_get_default_content _core_get_default_content
-#define core_get_default_path _core_get_default_path
-#define core_get_global_content _core_get_global_content
-#define core_get_global_path _core_get_global_path
-#define core_get_options _core_get_options
-#define core_get_process_content _core_get_process_content
-#define core_get_process_path _core_get_process_path
-#define core_set_default_content _core_set_default_content
-#define core_set_default_path _core_set_default_path
-#define core_set_global_content _core_set_global_content
-#define core_set_global_path _core_set_global_path
-#define core_set_options _core_set_options
-#define core_set_process_content _core_set_process_content
-#define core_set_process_path _core_set_process_path
-#define countbase _countbase
-#define creat _creat
-#define crypt _crypt
-#define ctermid _ctermid
-#define ctermid_r _ctermid_r
-#define ctime_r _ctime_r
-#define _ctype __ctype
-#define cuserid _cuserid
-#define dcgettext _dcgettext
-#define dcngettext _dcngettext
-#define decimal_to_double _decimal_to_double
-#define decimal_to_extended _decimal_to_extended
-#define decimal_to_quadruple _decimal_to_quadruple
-#define decimal_to_single _decimal_to_single
-#define defcntl _defcntl
-#define defopen _defopen
-#define defread _defread
-#define dgettext _dgettext
-#define dirfd _dirfd
-#define dirname _dirname
-#define dladdr1 _dladdr1
-#define dladdr _dladdr
-#define dlamd64getunwind _dlamd64getunwind
-#define dlclose _dlclose
-#define dldump _dldump
-#define dlerror _dlerror
-#define dlinfo _dlinfo
-#define dlmopen _dlmopen
-#define dlopen _dlopen
-#define dlsym _dlsym
-#define dngettext _dngettext
-#define door_bind _door_bind
-#define door_call _door_call
-#define door_create _door_create
-#define door_cred _door_cred
-#define door_getparam _door_getparam
-#define door_info _door_info
-#define door_return _door_return
-#define door_revoke _door_revoke
-#define door_server_create _door_server_create
-#define door_setparam _door_setparam
-#define door_ucred _door_ucred
-#define door_unbind _door_unbind
-#define double_to_decimal _double_to_decimal
-#define drand48 _drand48
-#define dup2 _dup2
-#define dup _dup
-#define econvert _econvert
-#define ecvt _ecvt
-#define edata _edata
-#define encrypt _encrypt
-#define end _end
-#define endgrent _endgrent
-#define endpwent _endpwent
-#define endspent _endspent
-#define endutent _endutent
-#define endutxent _endutxent
-#define environ _environ
-#define erand48 _erand48
-#define err _err
-#define errx _errx
-#define etext _etext
-#define execle _execle
-#define execl _execl
-#define execlp _execlp
-#define execve _execve
-#define execv _execv
-#define execvp _execvp
-#define exportfs _exportfs
-#define extended_to_decimal _extended_to_decimal
-#define facl _facl
-#define fattach _fattach
-#define fchdir _fchdir
-#define fchmod _fchmod
-#define fchownat _fchownat
-#define fchown _fchown
-#define fchroot _fchroot
-#define fcntl _fcntl
-#define fconvert _fconvert
-#define fcvt _fcvt
-#define fdatasync _fdatasync
-#define fdetach _fdetach
-#define fdopendir _fdopendir
-#define fdopen _fdopen
-#define fdwalk _fdwalk
-#define ffs _ffs
-#define fgetgrent _fgetgrent
-#define fgetgrent_r _fgetgrent_r
-#define fgetpwent _fgetpwent
-#define fgetpwent_r _fgetpwent_r
-#define fgetspent _fgetspent
-#define fgetspent_r _fgetspent_r
-#define _filbuf __filbuf
-#define fileno _fileno
-#define file_to_decimal _file_to_decimal
-#define finite _finite
-#define flockfile _flockfile
-#define _flsbuf __flsbuf
-#define fmtmsg _fmtmsg
-#define fnmatch _fnmatch
-#define fork1 _fork1
-#define forkall _forkall
-#define forkallx _forkallx
-#define fork _fork
-#define forkx _forkx
-#define fpathconf _fpathconf
-#define fpclass _fpclass
-#define fpgetmask _fpgetmask
-#define fpgetround _fpgetround
-#define fpgetsticky _fpgetsticky
-#define fprintf _fprintf
-#define fpsetmask _fpsetmask
-#define fpsetround _fpsetround
-#define fpsetsticky _fpsetsticky
-#define fseek _fseek
-#define fseeko _fseeko
-#define fstatat _fstatat
-#define fstatfs _fstatfs
-#define fstat _fstat
-#define fstatvfs _fstatvfs
-#define fsync _fsync
-#define ftell _ftell
-#define ftello _ftello
-#define ftok _ftok
-#define ftruncate _ftruncate
-#define ftrylockfile _ftrylockfile
-#define ftw64 _ftw64
-#define ftw _ftw
-#define func_to_decimal _func_to_decimal
-#define funlockfile _funlockfile
-#define futimesat _futimesat
-#define gconvert _gconvert
-#define gcvt _gcvt
-#define getacct _getacct
-#define getcontext _getcontext
-#define getcpuid _getcpuid
-#define getcwd _getcwd
-#define getdate_err _getdate_err
-#define getdate _getdate
-#define getdents _getdents
-#define getegid _getegid
-#define geteuid _geteuid
-#define getexecname _getexecname
-#define getextmntent _getextmntent
-#define getgid _getgid
-#define getgrent _getgrent
-#define getgrent_r _getgrent_r
-#define getgrgid _getgrgid
-#define getgrgid_r _getgrgid_r
-#define getgrnam _getgrnam
-#define getgrnam_r _getgrnam_r
-#define getgroups _getgroups
-#define gethomelgroup _gethomelgroup
-#define gethz _gethz
-#define getisax _getisax
-#define getitimer _getitimer
-#define getloadavg _getloadavg
-#define getlogin _getlogin
-#define getlogin_r _getlogin_r
-#define getmntany _getmntany
-#define getmntent _getmntent
-#define getmsg _getmsg
-#define getopt_clip _getopt_clip
-#define getopt _getopt
-#define getopt_long _getopt_long
-#define getopt_long_only _getopt_long_only
-#define getpagesizes _getpagesizes
-#define getpagesizes2 _getpagesizes2
-#define getpass _getpass
-#define getpassphrase _getpassphrase
-#define getpeerucred _getpeerucred
-#define getpflags _getpflags
-#define getpgid _getpgid
-#define getpgrp _getpgrp
-#define getpid _getpid
-#define getpmsg _getpmsg
-#define getppid _getppid
-#define getppriv _getppriv
-#define getprivimplinfo _getprivimplinfo
-#define getprojid _getprojid
-#define getpwent _getpwent
-#define getpwent_r _getpwent_r
-#define getpw _getpw
-#define getpwnam _getpwnam
-#define getpwnam_r _getpwnam_r
-#define getpwuid _getpwuid
-#define getpwuid_r _getpwuid_r
-#define getrctl _getrctl
-#define getrlimit _getrlimit
-#define getsid _getsid
-#define getspent _getspent
-#define getspent_r _getspent_r
-#define getspnam _getspnam
-#define getspnam_r _getspnam_r
-#define getsubopt _getsubopt
-#define gettaskid _gettaskid
-#define gettext _gettext
-#define gettimeofday _gettimeofday
-#define gettxt _gettxt
-#define getuid _getuid
-#define getustack _getustack
-#define getutent _getutent
-#define getutid _getutid
-#define getutline _getutline
-#define getutmp _getutmp
-#define getutmpx _getutmpx
-#define getutxent _getutxent
-#define getutxid _getutxid
-#define getutxline _getutxline
-#define getvfsany _getvfsany
-#define getvfsent _getvfsent
-#define getvfsfile _getvfsfile
-#define getvfsspec _getvfsspec
-#define getw _getw
-#define getzoneidbyname _getzoneidbyname
-#define getzoneid _getzoneid
-#define getzonenamebyid _getzonenamebyid
-#define glob _glob
-#define globfree _globfree
-#define gmtime_r _gmtime_r
-#define grantpt _grantpt
-#define gsignal _gsignal
-#define gtty _gtty
-#define hasmntopt _hasmntopt
-#define hcreate _hcreate
-#define hdestroy _hdestroy
-#define hsearch _hsearch
-#define iconv_close _iconv_close
-#define iconv _iconv
-#define iconv_open _iconv_open
-#define initgroups _initgroups
-#define insque _insque
-#define install_utrap _install_utrap
-#define inst_sync _inst_sync
-#define _iob __iob
-#define ioctl _ioctl
-#define isaexec _isaexec
-#define isastream _isastream
-#define isatty _isatty
-#define isenglish _isenglish
-#define isideogram _isideogram
-#define isnumber _isnumber
-#define isphonogram _isphonogram
-#define issetugid _issetugid
-#define isspecial _isspecial
-#define is_system_labeled _is_system_labeled
-#define iswalnum _iswalnum
-#define iswalpha _iswalpha
-#define iswcntrl _iswcntrl
-#define iswctype __iswctype
-#define iswdigit _iswdigit
-#define iswgraph _iswgraph
-#define iswlower _iswlower
-#define iswprint _iswprint
-#define iswpunct _iswpunct
-#define iswspace _iswspace
-#define iswupper _iswupper
-#define iswxdigit _iswxdigit
-#define jrand48 _jrand48
-#define kill _kill
-#define l64a _l64a
-#define ladd _ladd
-#define lchown _lchown
-#define lckpwdf _lckpwdf
-#define lcong48 _lcong48
-#define ldivide _ldivide
-#define lexp10 _lexp10
-#define lfind _lfind
-#define lfmt _lfmt
-#define link _link
-#define llabs _llabs
-#define lldiv _lldiv
-#define llog10 _llog10
-#define llseek _llseek
-#define lltostr _lltostr
-#define lmul _lmul
-#define localtime_r _localtime_r
-#define lockf _lockf
-#define longjmp _longjmp
-#define lrand48 _lrand48
-#define lsearch _lsearch
-#define lseek _lseek
-#define lshiftl _lshiftl
-#define lsign _lsign
-#define lstat _lstat
-#define lsub _lsub
-#define _lwp_cond_broadcast __lwp_cond_broadcast
-#define _lwp_cond_reltimedwait __lwp_cond_reltimedwait
-#define _lwp_cond_signal __lwp_cond_signal
-#define _lwp_cond_timedwait __lwp_cond_timedwait
-#define _lwp_cond_wait __lwp_cond_wait
-#define _lwp_continue __lwp_continue
-#define _lwp_info __lwp_info
-#define _lwp_kill __lwp_kill
-#define _lwp_mutex_lock __lwp_mutex_lock
-#define _lwp_mutex_reltimedlock __lwp_mutex_reltimedlock
-#define _lwp_mutex_timedlock __lwp_mutex_timedlock
-#define _lwp_mutex_trylock __lwp_mutex_trylock
-#define _lwp_mutex_unlock __lwp_mutex_unlock
-#define _lwp_private __lwp_private
-#define _lwp_self __lwp_self
-#define _lwp_sema_init __lwp_sema_init
-#define _lwp_sema_post __lwp_sema_post
-#define _lwp_sema_trywait __lwp_sema_trywait
-#define _lwp_sema_wait __lwp_sema_wait
-#define _lwp_suspend __lwp_suspend
-#define madvise _madvise
-#define makecontext _makecontext
-#define __makecontext_v2 ___makecontext_v2
-#define makeut _makeut
-#define makeutx _makeutx
-#define mblen _mblen
-#define mbstowcs _mbstowcs
-#define mbtowc _mbtowc
-#define membar_consumer _membar_consumer
-#define membar_enter _membar_enter
-#define membar_exit _membar_exit
-#define membar_producer _membar_producer
-#define memccpy _memccpy
-#define memcmp _memcmp
-#define memcntl _memcntl
-#define memcpy _memcpy
-#define meminfo _meminfo
-#define memmove _memmove
-#define memset _memset
-#define mincore _mincore
-#define mkdir _mkdir
-#define mkdtemp _mkdtemp
-#define mkfifo _mkfifo
-#define mknod _mknod
-#define mkstemp _mkstemp
-#define mkstemps _mkstemps
-#define mktemp _mktemp
-#define mlockall _mlockall
-#define mlock _mlock
-#define mmap _mmap
-#define modut _modut
-#define modutx _modutx
-#define monitor _monitor
-#define mount _mount
-#define mprotect _mprotect
-#define mrand48 _mrand48
-#define msgctl64 _msgctl64
-#define msgctl _msgctl
-#define msgget _msgget
-#define msgids _msgids
-#define msgrcv _msgrcv
-#define msgsnap _msgsnap
-#define msgsnd _msgsnd
-#define msync _msync
-#define munlockall _munlockall
-#define munlock _munlock
-#define munmap _munmap
-#define _mutex_consistent __mutex_consistent
-#define mutex_consistent __mutex_consistent
-#define _mutex_destroy __mutex_destroy
-#define mutex_destroy __mutex_destroy
-#define _mutex_held __mutex_held
-#define mutex_held __mutex_held
-#define _mutex_init __mutex_init
-#define mutex_init __mutex_init
-#define _mutex_lock __mutex_lock
-#define mutex_lock __mutex_lock
-#define _mutex_trylock __mutex_trylock
-#define mutex_trylock __mutex_trylock
-#define _mutex_unlock __mutex_unlock
-#define mutex_unlock __mutex_unlock
-#define nanosleep _nanosleep
-#define nfs_getfh _nfs_getfh
-#define nfssvc _nfssvc
-#define nftw64 _nftw64
-#define nftw _nftw
-#define ngettext _ngettext
-#define nice _nice
-#define nl_langinfo _nl_langinfo
-#define nrand48 _nrand48
-#define nss_default_finders _nss_default_finders
-#define nss_delete _nss_delete
-#define nss_endent _nss_endent
-#define nss_getent _nss_getent
-#define nss_search _nss_search
-#define nss_setent _nss_setent
-#define ntp_adjtime _ntp_adjtime
-#define ntp_gettime _ntp_gettime
-#define openat _openat
-#define opendir _opendir
-#define openlog _openlog
-#define open _open
-#define pathconf _pathconf
-#define pause _pause
-#define pclose _pclose
-#define pcsample _pcsample
-#define pfmt _pfmt
-#define pipe _pipe
-#define plock _plock
-#define poll _poll
-#define popen _popen
-#define port_alert _port_alert
-#define port_associate _port_associate
-#define port_create _port_create
-#define port_dissociate _port_dissociate
-#define port_getn _port_getn
-#define port_get _port_get
-#define port_sendn _port_sendn
-#define port_send _port_send
-#define posix_openpt _posix_openpt
-#define posix_spawnattr_destroy _posix_spawnattr_destroy
-#define posix_spawnattr_getflags _posix_spawnattr_getflags
-#define posix_spawnattr_getpgroup _posix_spawnattr_getpgroup
-#define posix_spawnattr_getschedparam _posix_spawnattr_getschedparam
-#define posix_spawnattr_getschedpolicy _posix_spawnattr_getschedpolicy
-#define posix_spawnattr_getsigdefault _posix_spawnattr_getsigdefault
-#define posix_spawnattr_getsigmask _posix_spawnattr_getsigmask
-#define posix_spawnattr_init _posix_spawnattr_init
-#define posix_spawnattr_setflags _posix_spawnattr_setflags
-#define posix_spawnattr_setpgroup _posix_spawnattr_setpgroup
-#define posix_spawnattr_setschedparam _posix_spawnattr_setschedparam
-#define posix_spawnattr_setschedpolicy _posix_spawnattr_setschedpolicy
-#define posix_spawnattr_setsigdefault _posix_spawnattr_setsigdefault
-#define posix_spawnattr_setsigmask _posix_spawnattr_setsigmask
-#define posix_spawn_file_actions_addclose _posix_spawn_file_actions_addclose
-#define posix_spawn_file_actions_adddup2 _posix_spawn_file_actions_adddup2
-#define posix_spawn_file_actions_addopen _posix_spawn_file_actions_addopen
-#define posix_spawn_file_actions_destroy _posix_spawn_file_actions_destroy
-#define posix_spawn_file_actions_init _posix_spawn_file_actions_init
-#define posix_spawn _posix_spawn
-#define posix_spawnp _posix_spawnp
-#define pread _pread
-#define printstack _printstack
-#define priv_addset _priv_addset
-#define priv_allocset _priv_allocset
-#define priv_copyset _priv_copyset
-#define priv_delset _priv_delset
-#define priv_emptyset _priv_emptyset
-#define priv_fillset _priv_fillset
-#define priv_freeset _priv_freeset
-#define priv_getbyname _priv_getbyname
-#define priv_getbynum _priv_getbynum
-#define priv_getsetbyname _priv_getsetbyname
-#define priv_getsetbynum _priv_getsetbynum
-#define priv_gettext _priv_gettext
-#define priv_ineffect _priv_ineffect
-#define priv_intersect _priv_intersect
-#define priv_inverse _priv_inverse
-#define priv_isemptyset _priv_isemptyset
-#define priv_isequalset _priv_isequalset
-#define priv_isfullset _priv_isfullset
-#define priv_ismember _priv_ismember
-#define priv_issubset _priv_issubset
-#define priv_set _priv_set
-#define priv_set_to_str _priv_set_to_str
-#define priv_str_to_set _priv_str_to_set
-#define priv_union _priv_union
-#define profil _profil
-#define pselect _pselect
-#define pset_assign _pset_assign
-#define pset_bind _pset_bind
-#define pset_create _pset_create
-#define pset_destroy _pset_destroy
-#define pset_getattr _pset_getattr
-#define pset_getloadavg _pset_getloadavg
-#define pset_info _pset_info
-#define pset_list _pset_list
-#define pset_setattr _pset_setattr
-#define psiginfo _psiginfo
-#define psignal _psignal
-#define pthread_atfork _pthread_atfork
-#define pthread_attr_destroy _pthread_attr_destroy
-#define pthread_attr_getdetachstate _pthread_attr_getdetachstate
-#define pthread_attr_getguardsize _pthread_attr_getguardsize
-#define pthread_attr_getinheritsched _pthread_attr_getinheritsched
-#define pthread_attr_getschedparam _pthread_attr_getschedparam
-#define pthread_attr_getschedpolicy _pthread_attr_getschedpolicy
-#define pthread_attr_getscope _pthread_attr_getscope
-#define pthread_attr_getstackaddr _pthread_attr_getstackaddr
-#define pthread_attr_getstack _pthread_attr_getstack
-#define pthread_attr_getstacksize _pthread_attr_getstacksize
-#define pthread_attr_init _pthread_attr_init
-#define pthread_attr_setdetachstate _pthread_attr_setdetachstate
-#define pthread_attr_setguardsize _pthread_attr_setguardsize
-#define pthread_attr_setinheritsched _pthread_attr_setinheritsched
-#define pthread_attr_setschedparam _pthread_attr_setschedparam
-#define pthread_attr_setschedpolicy _pthread_attr_setschedpolicy
-#define pthread_attr_setscope _pthread_attr_setscope
-#define pthread_attr_setstackaddr _pthread_attr_setstackaddr
-#define pthread_attr_setstack _pthread_attr_setstack
-#define pthread_attr_setstacksize _pthread_attr_setstacksize
-#define pthread_barrierattr_destroy _pthread_barrierattr_destroy
-#define pthread_barrierattr_getpshared _pthread_barrierattr_getpshared
-#define pthread_barrierattr_init _pthread_barrierattr_init
-#define pthread_barrierattr_setpshared _pthread_barrierattr_setpshared
-#define pthread_barrier_destroy _pthread_barrier_destroy
-#define pthread_barrier_init _pthread_barrier_init
-#define pthread_barrier_wait _pthread_barrier_wait
-#define pthread_cancel _pthread_cancel
-#define pthread_condattr_destroy _pthread_condattr_destroy
-#define pthread_condattr_getclock _pthread_condattr_getclock
-#define pthread_condattr_getpshared _pthread_condattr_getpshared
-#define pthread_condattr_init _pthread_condattr_init
-#define pthread_condattr_setclock _pthread_condattr_setclock
-#define pthread_condattr_setpshared _pthread_condattr_setpshared
-#define pthread_cond_broadcast _pthread_cond_broadcast
-#define pthread_cond_destroy _pthread_cond_destroy
-#define pthread_cond_init _pthread_cond_init
-#define pthread_cond_reltimedwait_np _pthread_cond_reltimedwait_np
-#define pthread_cond_signal _pthread_cond_signal
-#define pthread_cond_timedwait _pthread_cond_timedwait
-#define pthread_cond_wait _pthread_cond_wait
-#define pthread_create _pthread_create
-#define pthread_detach _pthread_detach
-#define pthread_equal _pthread_equal
-#define pthread_exit _pthread_exit
-#define pthread_getconcurrency _pthread_getconcurrency
-#define pthread_getschedparam _pthread_getschedparam
-#define pthread_getspecific _pthread_getspecific
-#define pthread_join _pthread_join
-#define pthread_key_create _pthread_key_create
-#define pthread_key_create_once_np _pthread_key_create_once_np
-#define pthread_key_delete _pthread_key_delete
-#define pthread_kill _pthread_kill
-#define pthread_mutexattr_destroy _pthread_mutexattr_destroy
-#define pthread_mutexattr_getprioceiling _pthread_mutexattr_getprioceiling
-#define pthread_mutexattr_getprotocol _pthread_mutexattr_getprotocol
-#define pthread_mutexattr_getpshared _pthread_mutexattr_getpshared
-#define pthread_mutexattr_getrobust_np _pthread_mutexattr_getrobust_np
-#define pthread_mutexattr_gettype _pthread_mutexattr_gettype
-#define pthread_mutexattr_init _pthread_mutexattr_init
-#define pthread_mutexattr_setprioceiling _pthread_mutexattr_setprioceiling
-#define pthread_mutexattr_setprotocol _pthread_mutexattr_setprotocol
-#define pthread_mutexattr_setpshared _pthread_mutexattr_setpshared
-#define pthread_mutexattr_setrobust_np _pthread_mutexattr_setrobust_np
-#define pthread_mutexattr_settype _pthread_mutexattr_settype
-#define pthread_mutex_consistent_np _pthread_mutex_consistent_np
-#define pthread_mutex_destroy _pthread_mutex_destroy
-#define pthread_mutex_getprioceiling _pthread_mutex_getprioceiling
-#define pthread_mutex_init _pthread_mutex_init
-#define pthread_mutex_lock _pthread_mutex_lock
-#define pthread_mutex_reltimedlock_np _pthread_mutex_reltimedlock_np
-#define pthread_mutex_setprioceiling _pthread_mutex_setprioceiling
-#define pthread_mutex_timedlock _pthread_mutex_timedlock
-#define pthread_mutex_trylock _pthread_mutex_trylock
-#define pthread_mutex_unlock _pthread_mutex_unlock
-#define pthread_once _pthread_once
-#define pthread_rwlockattr_destroy _pthread_rwlockattr_destroy
-#define pthread_rwlockattr_getpshared _pthread_rwlockattr_getpshared
-#define pthread_rwlockattr_init _pthread_rwlockattr_init
-#define pthread_rwlockattr_setpshared _pthread_rwlockattr_setpshared
-#define pthread_rwlock_destroy _pthread_rwlock_destroy
-#define pthread_rwlock_init _pthread_rwlock_init
-#define pthread_rwlock_rdlock _pthread_rwlock_rdlock
-#define pthread_rwlock_reltimedrdlock_np _pthread_rwlock_reltimedrdlock_np
-#define pthread_rwlock_reltimedwrlock_np _pthread_rwlock_reltimedwrlock_np
-#define pthread_rwlock_timedrdlock _pthread_rwlock_timedrdlock
-#define pthread_rwlock_timedwrlock _pthread_rwlock_timedwrlock
-#define pthread_rwlock_tryrdlock _pthread_rwlock_tryrdlock
-#define pthread_rwlock_trywrlock _pthread_rwlock_trywrlock
-#define pthread_rwlock_unlock _pthread_rwlock_unlock
-#define pthread_rwlock_wrlock _pthread_rwlock_wrlock
-#define pthread_self _pthread_self
-#define pthread_setcancelstate _pthread_setcancelstate
-#define pthread_setcanceltype _pthread_setcanceltype
-#define pthread_setconcurrency _pthread_setconcurrency
-#define pthread_setschedparam _pthread_setschedparam
-#define pthread_setschedprio _pthread_setschedprio
-#define pthread_setspecific _pthread_setspecific
-#define pthread_sigmask _pthread_sigmask
-#define pthread_spin_destroy _pthread_spin_destroy
-#define pthread_spin_init _pthread_spin_init
-#define pthread_spin_lock _pthread_spin_lock
-#define pthread_spin_trylock _pthread_spin_trylock
-#define pthread_spin_unlock _pthread_spin_unlock
-#define pthread_testcancel _pthread_testcancel
-#define ptrace _ptrace
-#define ptsname _ptsname
-#define putacct _putacct
-#define putenv _putenv
-#define putmsg _putmsg
-#define putpmsg _putpmsg
-#define putpwent _putpwent
-#define putspent _putspent
-#define pututline _pututline
-#define pututxline _pututxline
-#define putw _putw
-#define pwrite _pwrite
-#define qeconvert _qeconvert
-#define qecvt _qecvt
-#define qfconvert _qfconvert
-#define qfcvt _qfcvt
-#define qgconvert _qgconvert
-#define qgcvt _qgcvt
-#define quadruple_to_decimal _quadruple_to_decimal
-#define rand_r _rand_r
-#define rctlctl _rctlctl
-#define rctllist _rctllist
-#define readdir _readdir
-#define readdir_r _readdir_r
-#define readlink _readlink
-#define read _read
-#define readv _readv
-#define realpath _realpath
-#define regcmp _regcmp
-#define regcomp _regcomp
-#define regerror _regerror
-#define regexec _regexec
-#define regex _regex
-#define regfree _regfree
-#define remque _remque
-#define renameat _renameat
-#define rename _rename
-#define resetmnttab _resetmnttab
-#define resolvepath _resolvepath
-#define rmdir _rmdir
-#define rwlock_destroy _rwlock_destroy
-#define rwlock_init _rwlock_init
-#define rw_rdlock _rw_rdlock
-#define rw_read_held _rw_read_held
-#define rw_tryrdlock _rw_tryrdlock
-#define rw_trywrlock _rw_trywrlock
-#define rw_unlock _rw_unlock
-#define rw_write_held _rw_write_held
-#define rw_wrlock _rw_wrlock
-#define sbrk _sbrk
-#define scandir _scandir
-#define schedctl_exit _schedctl_exit
-#define schedctl_init _schedctl_init
-#define schedctl_lookup _schedctl_lookup
-#define scrwidth _scrwidth
-#define seconvert _seconvert
-#define seed48 _seed48
-#define seekdir _seekdir
-#define select _select
-#define sema_destroy _sema_destroy
-#define sema_held _sema_held
-#define sema_init _sema_init
-#define sema_post _sema_post
-#define sema_reltimedwait _sema_reltimedwait
-#define sema_timedwait _sema_timedwait
-#define sema_trywait _sema_trywait
-#define sema_wait _sema_wait
-#define sem_close _sem_close
-#define semctl64 _semctl64
-#define semctl _semctl
-#define sem_destroy _sem_destroy
-#define semget _semget
-#define sem_getvalue _sem_getvalue
-#define semids _semids
-#define sem_init _sem_init
-#define sem_open _sem_open
-#define semop _semop
-#define sem_post _sem_post
-#define sem_reltimedwait_np _sem_reltimedwait_np
-#define semtimedop _semtimedop
-#define sem_timedwait _sem_timedwait
-#define sem_trywait _sem_trywait
-#define sem_unlink _sem_unlink
-#define sem_wait _sem_wait
-#define setcat _setcat
-#define setcontext _setcontext
-#define setegid _setegid
-#define setenv _setenv
-#define seteuid _seteuid
-#define setgid _setgid
-#define setgrent _setgrent
-#define setgroups _setgroups
-#define setitimer _setitimer
-#define setjmp _setjmp
-#define setkey _setkey
-#define setlabel _setlabel
-#define setlocale _setlocale
-#define setlogmask _setlogmask
-#define setpflags _setpflags
-#define setpgid _setpgid
-#define setpgrp _setpgrp
-#define setppriv _setppriv
-#define setprojrctl _setprojrctl
-#define setpwent _setpwent
-#define setrctl _setrctl
-#define setregid _setregid
-#define setreuid _setreuid
-#define setrlimit _setrlimit
-#define setsid _setsid
-#define setspent _setspent
-#define settaskid _settaskid
-#define settimeofday _settimeofday
-#define setuid _setuid
-#define setustack _setustack
-#define setutent _setutent
-#define setutxent _setutxent
-#define s_fcntl _s_fcntl
-#define sfconvert _sfconvert
-#define sgconvert _sgconvert
-#define shmat _shmat
-#define shmctl64 _shmctl64
-#define shmctl _shmctl
-#define shmdt _shmdt
-#define shmget _shmget
-#define shmids _shmids
-#define sig2str _sig2str
-#define sigaction _sigaction
-#define sigaddset _sigaddset
-#define sigaltstack _sigaltstack
-#define sigdelset _sigdelset
-#define sigemptyset _sigemptyset
-#define sigfillset _sigfillset
-#define sigflag _sigflag
-#define sigfpe _sigfpe
-#define sighold _sighold
-#define sigignore _sigignore
-#define siginterrupt _siginterrupt
-#define sigismember _sigismember
-#define siglongjmp _siglongjmp
-#define signal _signal
-#define sigpause _sigpause
-#define sigpending _sigpending
-#define sigprocmask _sigprocmask
-#define sigqueue _sigqueue
-#define sigrelse _sigrelse
-#define sigsendset _sigsendset
-#define sigsend _sigsend
-#define sigsetjmp _sigsetjmp
-#define sigset _sigset
-#define sigstack _sigstack
-#define sigsuspend _sigsuspend
-#define sigtimedwait _sigtimedwait
-#define sigwaitinfo _sigwaitinfo
-#define sigwait _sigwait
-#define single_to_decimal _single_to_decimal
-#define s_ioctl _s_ioctl
-#define sleep _sleep
-#define srand48 _srand48
-#define ssignal _ssignal
-#define stack_getbounds _stack_getbounds
-#define stack_inbounds _stack_inbounds
-#define stack_setbounds _stack_setbounds
-#define stack_violation _stack_violation
-#define statfs _statfs
-#define stat _stat
-#define statvfs _statvfs
-#define stime _stime
-#define str2sig _str2sig
-#define strcoll _strcoll
-#define strdup _strdup
-#define strerror_r _strerror_r
-#define strerror _strerror
-#define strfmon _strfmon
-#define string_to_decimal _string_to_decimal
-#define strnlen _strnlen
-#define strptime _strptime
-#define strtok_r _strtok_r
-#define strtoll _strtoll
-#define strtoull _strtoull
-#define strxfrm _strxfrm
-#define stty _stty
-#define swab _swab
-#define swapcontext _swapcontext
-#define swapctl _swapctl
-#define symlink _symlink
-#define synchutmp _synchutmp
-#define sync _sync
-#define _syscall _syscall6
-#define syscall _syscall6
-#define sysconf _sysconf
-#define sys_errlist _sys_errlist
-#define sysfs _sysfs
-#define sysinfo _sysinfo
-#define syslog _syslog
-#define sys_nerr _sys_nerr
-#define syssun _syssun
-#define __systemcall __systemcall6
-#define tcdrain _tcdrain
-#define tcflow _tcflow
-#define tcflush _tcflush
-#define tcgetattr _tcgetattr
-#define tcgetpgrp _tcgetpgrp
-#define tcgetsid _tcgetsid
-#define tcsendbreak _tcsendbreak
-#define tcsetattr _tcsetattr
-#define tcsetpgrp _tcsetpgrp
-#define tdelete _tdelete
-#define telldir _telldir
-#define tell _tell
-#define tempnam _tempnam
-#define textdomain _textdomain
-#define tfind _tfind
-#define thr_continue_allmutators _thr_continue_allmutators
-#define thr_continue_mutator _thr_continue_mutator
-#define thr_continue _thr_continue
-#define thr_create _thr_create
-#define thr_exit _thr_exit
-#define thr_getconcurrency _thr_getconcurrency
-#define thr_getprio _thr_getprio
-#define thr_getspecific _thr_getspecific
-#define thr_getstate _thr_getstate
-#define thr_join _thr_join
-#define thr_keycreate _thr_keycreate
-#define thr_keycreate_once _thr_keycreate_once
-#define thr_kill _thr_kill
-#define thr_main _thr_main
-#define thr_min_stack _thr_min_stack
-#define thr_mutators_barrier _thr_mutators_barrier
-#define thr_self _thr_self
-#define thr_setconcurrency _thr_setconcurrency
-#define thr_setmutator _thr_setmutator
-#define thr_setprio _thr_setprio
-#define thr_setspecific _thr_setspecific
-#define thr_setstate _thr_setstate
-#define thr_sighndlrinfo _thr_sighndlrinfo
-#define thr_sigsetmask _thr_sigsetmask
-#define thr_stksegment _thr_stksegment
-#define thr_suspend_allmutators _thr_suspend_allmutators
-#define thr_suspend_mutator _thr_suspend_mutator
-#define thr_suspend _thr_suspend
-#define thr_wait_mutator _thr_wait_mutator
-#define thr_yield _thr_yield
-#define timer_create _timer_create
-#define timer_delete _timer_delete
-#define timer_getoverrun _timer_getoverrun
-#define timer_gettime _timer_gettime
-#define timer_settime _timer_settime
-#define times _times
-#define time _time
-#define tmpnam_r _tmpnam_r
-#define tmpnam _tmpnam
-#define towlower _towlower
-#define towupper _towupper
-#define truncate _truncate
-#define tsearch _tsearch
-#define ttyname_r _ttyname_r
-#define ttyname _ttyname
-#define ttyslot _ttyslot
-#define twalk _twalk
-#define tzset _tzset
-#define uadmin _uadmin
-#define ucred_free _ucred_free
-#define ucred_getamask _ucred_getamask
-#define ucred_getasid _ucred_getasid
-#define ucred_getatid _ucred_getatid
-#define ucred_getauid _ucred_getauid
-#define ucred_getegid _ucred_getegid
-#define ucred_geteuid _ucred_geteuid
-#define ucred_getgroups _ucred_getgroups
-#define ucred_getlabel _ucred_getlabel
-#define ucred_getpflags _ucred_getpflags
-#define ucred_getpid _ucred_getpid
-#define ucred_getprivset _ucred_getprivset
-#define ucred_getprojid _ucred_getprojid
-#define ucred_getrgid _ucred_getrgid
-#define ucred_getruid _ucred_getruid
-#define ucred_getsgid _ucred_getsgid
-#define ucred_getsuid _ucred_getsuid
-#define ucred_get _ucred_get
-#define ucred_getzoneid _ucred_getzoneid
-#define ucred_size _ucred_size
-#define ulckpwdf _ulckpwdf
-#define ulimit _ulimit
-#define ulltostr _ulltostr
-#define umask _umask
-#define umount2 _umount2
-#define umount _umount
-#define uname _uname
-#define unlinkat _unlinkat
-#define unlink _unlink
-#define unlockpt _unlockpt
-#define unordered _unordered
-#define unsetenv _unsetenv
-#define updutfile _updutfile
-#define updutmp _updutmp
-#define updutmpx _updutmpx
-#define updutxfile _updutxfile
-#define updwtmp _updwtmp
-#define updwtmpx _updwtmpx
-#define usleep _usleep
-#define ustat _ustat
-#define utimes _utimes
-#define utime _utime
-#define utmpname _utmpname
-#define utmpxname _utmpxname
-#define utssys _utssys
-#define uucopy _uucopy
-#define uucopystr _uucopystr
-#define verr _verr
-#define verrx _verrx
-#define vfork _vfork
-#define vforkx _vforkx
-#define vfscanf _vfscanf
-#define vhangup _vhangup
-#define vlfmt _vlfmt
-#define vpfmt _vpfmt
-#define vscanf _vscanf
-#define vsscanf _vsscanf
-#define vsyslog _vsyslog
-#define vwarn _vwarn
-#define vwarnx _vwarnx
-#define wait3 _wait3
-#define wait4 _wait4
-#define waitid _waitid
-#define waitpid _waitpid
-#define wait _wait
-#define walkcontext _walkcontext
-#define warn _warn
-#define warnx _warnx
-#define wcscat _wcscat
-#define wcschr _wcschr
-#define wcscmp _wcscmp
-#define wcscoll _wcscoll
-#define wcscpy _wcscpy
-#define wcscspn _wcscspn
-#define wcsftime _wcsftime
-#define wcslen _wcslen
-#define wcsncat _wcsncat
-#define wcsncmp _wcsncmp
-#define wcsncpy _wcsncpy
-#define wcspbrk _wcspbrk
-#define wcsrchr _wcsrchr
-#define wcstod _wcstod
-#define wcstol _wcstol
-#define wcstombs _wcstombs
-#define wcstoul _wcstoul
-#define wcswcs _wcswcs
-#define wcswidth _wcswidth
-#define wcsxfrm _wcsxfrm
-#define wctomb _wctomb
-#define wctype __wctype
-#define wcwidth _wcwidth
-#define wordexp _wordexp
-#define wordfree _wordfree
-#define wracct _wracct
-#define writev _writev
-#define write _write
-#define wscasecmp _wscasecmp
-#define wscat _wscat
-#define wschr _wschr
-#define wscmp _wscmp
-#define wscoll _wscoll
-#define wscpy _wscpy
-#define wscspn _wscspn
-#define wslen _wslen
-#define wsncasecmp _wsncasecmp
-#define wsncat _wsncat
-#define wsncmp _wsncmp
-#define wsncpy _wsncpy
-#define wspbrk _wspbrk
-#define wsrchr _wsrchr
-#define wstod _wstod
-#define wstok _wstok
-#define wstoll _wstoll
-#define wstol _wstol
-#define wsxfrm _wsxfrm
-#define yield _yield
-
-/* unwind stuff (amd64 only) */
-#if defined(__amd64)
-#define _Unwind_DeleteException _SUNW_Unwind_DeleteException
-#define _Unwind_ForcedUnwind _SUNW_Unwind_ForcedUnwind
-#define _Unwind_GetCFA _SUNW_Unwind_GetCFA
-#define _Unwind_GetGR _SUNW_Unwind_GetGR
-#define _Unwind_GetIP _SUNW_Unwind_GetIP
-#define _Unwind_GetLanguageSpecificData _SUNW_Unwind_GetLanguageSpecificData
-#define _Unwind_GetRegionStart _SUNW_Unwind_GetRegionStart
-#define _Unwind_RaiseException _SUNW_Unwind_RaiseException
-#define _Unwind_Resume _SUNW_Unwind_Resume
-#define _Unwind_SetGR _SUNW_Unwind_SetGR
-#define _Unwind_SetIP _SUNW_Unwind_SetIP
-#endif /* __amd64 */
-
-#endif /* !defined(__lint) */
-
-/*
- * Almost all libc source files have to include lint.h
- * We do it here for the benefit of files already including synonyms.h
- */
-#include "lint.h"
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif /* _LIBC_SYNONYMS_H */
diff --git a/usr/src/lib/libc/inc/thr_uberdata.h b/usr/src/lib/libc/inc/thr_uberdata.h
index e9c25465e8..a6415ed301 100644
--- a/usr/src/lib/libc/inc/thr_uberdata.h
+++ b/usr/src/lib/libc/inc/thr_uberdata.h
@@ -38,6 +38,7 @@
#include <ucontext.h>
#include <thread.h>
#include <pthread.h>
+#include <atomic.h>
#include <link.h>
#include <sys/resource.h>
#include <sys/lwp.h>
@@ -1288,7 +1289,7 @@ extern void set_cancel_eintr_flag(ulwp_t *);
extern void set_parking_flag(ulwp_t *, int);
extern int cancel_active(void);
-extern void *_thr_setup(ulwp_t *);
+extern void *_thrp_setup(ulwp_t *);
extern void _fpinherit(ulwp_t *);
extern void _lwp_start(void);
extern void _lwp_terminate(void);
@@ -1333,7 +1334,6 @@ extern void _thrp_unwind(void *);
extern pid_t __forkx(int);
extern pid_t __forkallx(int);
-extern int _kill(pid_t, int);
extern int __open(const char *, int, ...);
extern int __close(int);
extern ssize_t __read(int, void *, size_t);
@@ -1341,8 +1341,6 @@ extern ssize_t __write(int, const void *, size_t);
extern int __fcntl(int, int, ...);
extern int __lwp_continue(lwpid_t);
extern int __lwp_create(ucontext_t *, uint_t, lwpid_t *);
-extern int __lwp_kill(lwpid_t, int);
-extern lwpid_t __lwp_self(void);
extern int ___lwp_suspend(lwpid_t);
extern int lwp_wait(lwpid_t, lwpid_t *);
extern int __lwp_wait(lwpid_t, lwpid_t *);
@@ -1361,88 +1359,35 @@ extern int __lwp_sigmask(int, const sigset_t *, sigset_t *);
extern void __sighndlr(int, siginfo_t *, ucontext_t *, void (*)());
extern caddr_t __sighndlrend;
#pragma unknown_control_flow(__sighndlr)
-extern void _siglongjmp(sigjmp_buf, int);
-
-extern int _pthread_setspecific(pthread_key_t, const void *);
-extern void *_pthread_getspecific(pthread_key_t);
-extern void _pthread_exit(void *);
-extern int _pthread_setcancelstate(int, int *);
/* belongs in <pthread.h> */
#define PTHREAD_CREATE_DAEMON_NP 0x100 /* = THR_DAEMON */
#define PTHREAD_CREATE_NONDAEMON_NP 0
-extern int _pthread_attr_setdaemonstate_np(pthread_attr_t *, int);
-extern int _pthread_attr_getdaemonstate_np(const pthread_attr_t *, int *);
-
-extern int _mutex_init(mutex_t *, int, void *);
-extern int _mutex_destroy(mutex_t *);
-extern int _mutex_consistent(mutex_t *);
-extern int _mutex_lock(mutex_t *);
-extern int _mutex_trylock(mutex_t *);
-extern int _mutex_unlock(mutex_t *);
-extern int __mutex_init(mutex_t *, int, void *);
-extern int __mutex_destroy(mutex_t *);
-extern int __mutex_consistent(mutex_t *);
-extern int __mutex_lock(mutex_t *);
-extern int __mutex_trylock(mutex_t *);
-extern int __mutex_unlock(mutex_t *);
-extern int mutex_is_held(mutex_t *);
+extern int pthread_attr_setdaemonstate_np(pthread_attr_t *, int);
+extern int pthread_attr_getdaemonstate_np(const pthread_attr_t *, int *);
+
+extern int mutex_held(mutex_t *);
extern int mutex_lock_internal(mutex_t *, timespec_t *, int);
extern int mutex_unlock_internal(mutex_t *, int);
-extern int _cond_init(cond_t *, int, void *);
-extern int _cond_signal(cond_t *);
-extern int _cond_broadcast(cond_t *);
-extern int _cond_destroy(cond_t *);
-extern int cond_signal_internal(cond_t *);
-extern int cond_broadcast_internal(cond_t *);
-/* cancellation points: */
-extern int _cond_wait(cond_t *, mutex_t *);
-extern int _cond_timedwait(cond_t *, mutex_t *, const timespec_t *);
-extern int _cond_reltimedwait(cond_t *, mutex_t *, const timespec_t *);
/* not cancellation points: */
extern int __cond_wait(cond_t *, mutex_t *);
extern int __cond_timedwait(cond_t *, mutex_t *, const timespec_t *);
extern int __cond_reltimedwait(cond_t *, mutex_t *, const timespec_t *);
-extern int __rwlock_init(rwlock_t *, int, void *);
-extern int rw_read_is_held(rwlock_t *);
-extern int rw_write_is_held(rwlock_t *);
-
-extern void _membar_enter(void);
-extern void _membar_exit(void);
-extern void _membar_producer(void);
-extern void _membar_consumer(void);
+extern int rw_read_held(rwlock_t *);
+extern int rw_write_held(rwlock_t *);
-extern int _thr_continue(thread_t);
-extern int _thr_create(void *, size_t, void *(*)(void *), void *, long,
- thread_t *);
extern int _thrp_create(void *, size_t, void *(*)(void *), void *, long,
thread_t *, size_t);
-extern int _thr_getspecific(thread_key_t, void **);
-extern int _thr_join(thread_t, thread_t *, void **);
-extern int _thr_keycreate(thread_key_t *, PFrV);
-extern int _thr_keycreate_once(thread_key_t *, PFrV);
-extern int _thr_key_delete(thread_key_t);
-extern int _thr_main(void);
-extern thread_t _thr_self(void);
-extern int _thr_getconcurrency(void);
-extern int _thr_setconcurrency(int);
-extern int _thr_setprio(thread_t, int);
-extern int _thr_setspecific(thread_key_t, void *);
-extern int _thr_stksegment(stack_t *);
extern int _thrp_suspend(thread_t, uchar_t);
extern int _thrp_continue(thread_t, uchar_t);
-extern int _thr_sigsetmask(int, const sigset_t *, sigset_t *);
-extern void _thr_terminate(void *);
-extern void _thr_exit(void *);
+extern void _thrp_terminate(void *);
extern void _thrp_exit(void);
extern const pcclass_t *get_info_by_class(id_t);
extern const pcclass_t *get_info_by_policy(int);
-extern void _membar_producer(void);
-extern void _membar_consumer(void);
extern const thrattr_t *def_thrattr(void);
extern id_t setparam(idtype_t, id_t, int, int);
extern id_t setprio(idtype_t, id_t, int, int *);
@@ -1457,11 +1402,7 @@ extern int ___lwp_mutex_timedlock(mutex_t *, timespec_t *);
extern int ___lwp_mutex_unlock(mutex_t *);
extern int ___lwp_mutex_wakeup(mutex_t *, int);
extern int ___lwp_cond_wait(cond_t *, mutex_t *, timespec_t *, int);
-extern int __lwp_cond_signal(lwp_cond_t *);
-extern int __lwp_cond_broadcast(lwp_cond_t *);
extern int ___lwp_sema_timedwait(lwp_sema_t *, timespec_t *, int);
-extern int __lwp_sema_trywait(lwp_sema_t *);
-extern int __lwp_sema_post(lwp_sema_t *);
extern int __lwp_rwlock_rdlock(rwlock_t *, timespec_t *);
extern int __lwp_rwlock_wrlock(rwlock_t *, timespec_t *);
extern int __lwp_rwlock_tryrdlock(rwlock_t *);
diff --git a/usr/src/lib/libc/port/aio/aio.c b/usr/src/lib/libc/port/aio/aio.c
index 3f88231753..35b9786915 100644
--- a/usr/src/lib/libc/port/aio/aio.c
+++ b/usr/src/lib/libc/port/aio/aio.c
@@ -26,7 +26,7 @@
#pragma ident "%Z%%M% %I% %E% SMI"
-#include "synonyms.h"
+#include "lint.h"
#include "thr_uberdata.h"
#include "asyncio.h"
#include <atomic.h>
diff --git a/usr/src/lib/libc/port/aio/aio_alloc.c b/usr/src/lib/libc/port/aio/aio_alloc.c
index db919872e4..cd20f6c2be 100644
--- a/usr/src/lib/libc/port/aio/aio_alloc.c
+++ b/usr/src/lib/libc/port/aio/aio_alloc.c
@@ -20,13 +20,13 @@
*/
/*
- * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
-#include "synonyms.h"
+#include "lint.h"
#include "thr_uberdata.h"
#include "asyncio.h"
diff --git a/usr/src/lib/libc/port/aio/posix_aio.c b/usr/src/lib/libc/port/aio/posix_aio.c
index b21eae8152..47736000d0 100644
--- a/usr/src/lib/libc/port/aio/posix_aio.c
+++ b/usr/src/lib/libc/port/aio/posix_aio.c
@@ -39,7 +39,7 @@
* aio_cancel
*/
-#include "synonyms.h"
+#include "lint.h"
#include "thr_uberdata.h"
#include "asyncio.h"
#include <atomic.h>
diff --git a/usr/src/lib/libc/port/fp/__flt_decim.c b/usr/src/lib/libc/port/fp/__flt_decim.c
index 0efe7bd967..549da276cd 100644
--- a/usr/src/lib/libc/port/fp/__flt_decim.c
+++ b/usr/src/lib/libc/port/fp/__flt_decim.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,8 +18,9 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2005 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
@@ -31,7 +31,7 @@
* floating point
*/
-#include "synonyms.h"
+#include "lint.h"
#include <sys/types.h>
#include <sys/isa_defs.h>
#include "base_conversion.h"
diff --git a/usr/src/lib/libc/port/fp/__flt_rounds.c b/usr/src/lib/libc/port/fp/__flt_rounds.c
index 0c991987a8..3a208858df 100644
--- a/usr/src/lib/libc/port/fp/__flt_rounds.c
+++ b/usr/src/lib/libc/port/fp/__flt_rounds.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,8 +18,9 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
@@ -35,7 +35,7 @@
* -1: indeterminable <<< never returned
*/
-#include "synonyms.h"
+#include "lint.h"
#include <sys/types.h>
#include <floatingpoint.h>
#include "libc.h"
diff --git a/usr/src/lib/libc/port/fp/__tbl_10_b.c b/usr/src/lib/libc/port/fp/__tbl_10_b.c
index f271114b56..5390bb1386 100644
--- a/usr/src/lib/libc/port/fp/__tbl_10_b.c
+++ b/usr/src/lib/libc/port/fp/__tbl_10_b.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,14 +18,15 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
-#include "synonyms.h"
+#include "lint.h"
#include <sys/types.h>
/* table of 16 multiples of 10**64 */
diff --git a/usr/src/lib/libc/port/fp/__tbl_10_h.c b/usr/src/lib/libc/port/fp/__tbl_10_h.c
index cdf79a70db..b59ab9c7e5 100644
--- a/usr/src/lib/libc/port/fp/__tbl_10_h.c
+++ b/usr/src/lib/libc/port/fp/__tbl_10_h.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,14 +18,15 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
-#include "synonyms.h"
+#include "lint.h"
#include <sys/types.h>
/* table of 5 multiples of 10**1024 */
diff --git a/usr/src/lib/libc/port/fp/__tbl_10_s.c b/usr/src/lib/libc/port/fp/__tbl_10_s.c
index 950fdff884..98b2146bc0 100644
--- a/usr/src/lib/libc/port/fp/__tbl_10_s.c
+++ b/usr/src/lib/libc/port/fp/__tbl_10_s.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,14 +18,15 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
-#include "synonyms.h"
+#include "lint.h"
#include <sys/types.h>
/* table of 64 multiples of 10**1 */
diff --git a/usr/src/lib/libc/port/fp/__tbl_2_b.c b/usr/src/lib/libc/port/fp/__tbl_2_b.c
index 6baa920d31..82c855a9ab 100644
--- a/usr/src/lib/libc/port/fp/__tbl_2_b.c
+++ b/usr/src/lib/libc/port/fp/__tbl_2_b.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,14 +18,15 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
-#include "synonyms.h"
+#include "lint.h"
#include <sys/types.h>
/* table of 16 multiples of 2**176 */
diff --git a/usr/src/lib/libc/port/fp/__tbl_2_h.c b/usr/src/lib/libc/port/fp/__tbl_2_h.c
index 834084f17e..6a4ddc973d 100644
--- a/usr/src/lib/libc/port/fp/__tbl_2_h.c
+++ b/usr/src/lib/libc/port/fp/__tbl_2_h.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,14 +18,15 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
-#include "synonyms.h"
+#include "lint.h"
#include <sys/types.h>
/* table of 6 multiples of 2**2816 */
diff --git a/usr/src/lib/libc/port/fp/__tbl_2_s.c b/usr/src/lib/libc/port/fp/__tbl_2_s.c
index b684648531..91cd31693e 100644
--- a/usr/src/lib/libc/port/fp/__tbl_2_s.c
+++ b/usr/src/lib/libc/port/fp/__tbl_2_s.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,14 +18,15 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
-#include "synonyms.h"
+#include "lint.h"
#include <sys/types.h>
/* table of 176 multiples of 2**1 */
diff --git a/usr/src/lib/libc/port/fp/__tbl_fdq.c b/usr/src/lib/libc/port/fp/__tbl_fdq.c
index b0d163e0c7..01a01b1d40 100644
--- a/usr/src/lib/libc/port/fp/__tbl_fdq.c
+++ b/usr/src/lib/libc/port/fp/__tbl_fdq.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,14 +18,15 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2005 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
-#include "synonyms.h"
+#include "lint.h"
#include <sys/types.h>
#include "base_conversion.h"
diff --git a/usr/src/lib/libc/port/fp/__tbl_tens.c b/usr/src/lib/libc/port/fp/__tbl_tens.c
index e5e25011f9..603d72d196 100644
--- a/usr/src/lib/libc/port/fp/__tbl_tens.c
+++ b/usr/src/lib/libc/port/fp/__tbl_tens.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,18 +18,20 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright (c) 1989-1996 by Sun Microsystems, Inc.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
+ * Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
+#pragma ident "%Z%%M% %I% %E% SMI"
/*
* A table of all the powers of ten that fit exactly in an IEEE double, plus
* a few more.
*/
-#include "synonyms.h"
+#include "lint.h"
#include "base_conversion.h"
#include <sys/types.h>
diff --git a/usr/src/lib/libc/port/fp/__x_power.c b/usr/src/lib/libc/port/fp/__x_power.c
index b67feab020..137f2a19e5 100644
--- a/usr/src/lib/libc/port/fp/__x_power.c
+++ b/usr/src/lib/libc/port/fp/__x_power.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,14 +18,15 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2005 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
-#include "synonyms.h"
+#include "lint.h"
#include "base_conversion.h"
#include <sys/types.h>
#include <malloc.h>
@@ -504,7 +504,8 @@ __big_float_times_power(_big_float *pbf, int mult, int n, int precision,
/* look for additional trailing zeros to delete */
for (; pbf->bsignificand[trailing_zeros_to_delete] == 0;
- trailing_zeros_to_delete++);
+ trailing_zeros_to_delete++)
+ continue;
if (trailing_zeros_to_delete > 0) {
for (j = 0; j < (int)pbf->blength -
diff --git a/usr/src/lib/libc/port/fp/_base_sup.c b/usr/src/lib/libc/port/fp/_base_sup.c
index 87367fef88..b07957740c 100644
--- a/usr/src/lib/libc/port/fp/_base_sup.c
+++ b/usr/src/lib/libc/port/fp/_base_sup.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,14 +18,15 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2005 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
-#include "synonyms.h"
+#include "lint.h"
#include <sys/types.h>
#include "base_conversion.h"
#include <sys/isa_defs.h>
@@ -112,7 +112,7 @@ __class_quadruple(quadruple *x)
(kluge.f.significand4 == 0))
return (fp_infinity);
else if ((kluge.f.msw.significand & 0xffff) >=
- (unsigned int)0x8000)
+ (unsigned int)0x8000)
return (fp_quiet);
else
return (fp_signaling);
diff --git a/usr/src/lib/libc/port/fp/aconvert.c b/usr/src/lib/libc/port/fp/aconvert.c
index e4bf84c63d..833615e1cf 100644
--- a/usr/src/lib/libc/port/fp/aconvert.c
+++ b/usr/src/lib/libc/port/fp/aconvert.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,14 +18,15 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
-#include "synonyms.h"
+#include "lint.h"
#include "base_conversion.h"
/* translation table from hex values to hex chars */
diff --git a/usr/src/lib/libc/port/fp/decimal_bin.c b/usr/src/lib/libc/port/fp/decimal_bin.c
index 4d5703da08..993da63db6 100644
--- a/usr/src/lib/libc/port/fp/decimal_bin.c
+++ b/usr/src/lib/libc/port/fp/decimal_bin.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,8 +18,9 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2005 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
@@ -30,12 +30,7 @@
* Conversion from decimal to binary floating point
*/
-#pragma weak decimal_to_single = _decimal_to_single
-#pragma weak decimal_to_double = _decimal_to_double
-#pragma weak decimal_to_extended = _decimal_to_extended
-#pragma weak decimal_to_quadruple = _decimal_to_quadruple
-
-#include "synonyms.h"
+#include "lint.h"
#include <stdlib.h>
#include "base_conversion.h"
diff --git a/usr/src/lib/libc/port/fp/double_decim.c b/usr/src/lib/libc/port/fp/double_decim.c
index d13cb41fa3..4ce29a4981 100644
--- a/usr/src/lib/libc/port/fp/double_decim.c
+++ b/usr/src/lib/libc/port/fp/double_decim.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,8 +18,9 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2005 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
@@ -30,12 +30,7 @@
* Conversion from binary to decimal floating point
*/
-#pragma weak single_to_decimal = _single_to_decimal
-#pragma weak double_to_decimal = _double_to_decimal
-#pragma weak extended_to_decimal = _extended_to_decimal
-#pragma weak quadruple_to_decimal = _quadruple_to_decimal
-
-#include "synonyms.h"
+#include "lint.h"
#include <stdlib.h>
#include "base_conversion.h"
diff --git a/usr/src/lib/libc/port/fp/econvert.c b/usr/src/lib/libc/port/fp/econvert.c
index 2a7aa08894..7ef875a0f8 100644
--- a/usr/src/lib/libc/port/fp/econvert.c
+++ b/usr/src/lib/libc/port/fp/econvert.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,18 +18,15 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2005 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
-#pragma weak econvert = _econvert
-#pragma weak seconvert = _seconvert
-#pragma weak qeconvert = _qeconvert
-
-#include "synonyms.h"
+#include "lint.h"
#include "base_conversion.h"
#include <string.h>
#include <sys/types.h>
diff --git a/usr/src/lib/libc/port/fp/fconvert.c b/usr/src/lib/libc/port/fp/fconvert.c
index 043fc587ef..f63e35e8a5 100644
--- a/usr/src/lib/libc/port/fp/fconvert.c
+++ b/usr/src/lib/libc/port/fp/fconvert.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,18 +18,15 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2005 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
-#pragma weak fconvert = _fconvert
-#pragma weak sfconvert = _sfconvert
-#pragma weak qfconvert = _qfconvert
-
-#include "synonyms.h"
+#include "lint.h"
#include "base_conversion.h"
#include <sys/types.h>
#include "libc.h"
diff --git a/usr/src/lib/libc/port/fp/file_decim.c b/usr/src/lib/libc/port/fp/file_decim.c
index 1280fc9465..2c64147409 100644
--- a/usr/src/lib/libc/port/fp/file_decim.c
+++ b/usr/src/lib/libc/port/fp/file_decim.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,16 +18,15 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
-#pragma weak file_to_decimal = _file_to_decimal
-
-#include "synonyms.h"
+#include "lint.h"
#include "file64.h"
#include "mtlib.h"
#include <sys/types.h>
diff --git a/usr/src/lib/libc/port/fp/finite.c b/usr/src/lib/libc/port/fp/finite.c
index 574983b8c7..bd40ef1a49 100644
--- a/usr/src/lib/libc/port/fp/finite.c
+++ b/usr/src/lib/libc/port/fp/finite.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,24 +18,24 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
/* IEEE recommended functions */
-#pragma weak finite = _finite
-#pragma weak fpclass = _fpclass
-#pragma weak unordered = _unordered
+#pragma weak _finite = finite
+#pragma weak _fpclass = fpclass
+#pragma weak _unordered = unordered
-#include "synonyms.h"
+#include "lint.h"
#include <values.h>
#include "fpparts.h"
diff --git a/usr/src/lib/libc/port/fp/func_decim.c b/usr/src/lib/libc/port/fp/func_decim.c
index bbcfe1ff25..ded6547a09 100644
--- a/usr/src/lib/libc/port/fp/func_decim.c
+++ b/usr/src/lib/libc/port/fp/func_decim.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,16 +18,15 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
-#pragma weak func_to_decimal = _func_to_decimal
-
-#include "synonyms.h"
+#include "lint.h"
#include <sys/types.h>
#include <ctype.h>
#include <stdio.h>
diff --git a/usr/src/lib/libc/port/fp/gconvert.c b/usr/src/lib/libc/port/fp/gconvert.c
index 830aed755c..9baa9ecce3 100644
--- a/usr/src/lib/libc/port/fp/gconvert.c
+++ b/usr/src/lib/libc/port/fp/gconvert.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,18 +18,15 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2005 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
-#pragma weak gconvert = _gconvert
-#pragma weak sgconvert = _sgconvert
-#pragma weak qgconvert = _qgconvert
-
-#include "synonyms.h"
+#include "lint.h"
#include "base_conversion.h"
#include <sys/types.h>
#include "libc.h"
diff --git a/usr/src/lib/libc/port/fp/hex_bin.c b/usr/src/lib/libc/port/fp/hex_bin.c
index 8672e0bad0..752d385b7e 100644
--- a/usr/src/lib/libc/port/fp/hex_bin.c
+++ b/usr/src/lib/libc/port/fp/hex_bin.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,14 +18,15 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
-#include "synonyms.h"
+#include "lint.h"
#include "base_conversion.h"
/* conversion from hex chars to hex values */
diff --git a/usr/src/lib/libc/port/fp/ieee_globals.c b/usr/src/lib/libc/port/fp/ieee_globals.c
index 871e5e1711..e244608adf 100644
--- a/usr/src/lib/libc/port/fp/ieee_globals.c
+++ b/usr/src/lib/libc/port/fp/ieee_globals.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -18,10 +17,14 @@
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
- *
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ */
+
+/*
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
- *
+ */
+
+/*
* Copyright (c) 1983, 1984, 1985, 1986, 1987, 1988, 1989 AT&T
* All Rights Reserved
*
@@ -37,8 +40,7 @@
* modes; IEEE floating-point arithmetic exception handling;
*/
-
-#include "synonyms.h"
+#include "lint.h"
#include <thread.h>
#include <synch.h>
#include <mtlib.h>
@@ -59,25 +61,25 @@ typedef struct {
#define fpvars ((fpvars_t *)tsdalloc(_T_FP_GET, sizeof (fpvars_t), NULL))
int *
-_thr_get_nan_written()
+_thrp_get_nan_written()
{
- return (_thr_main() ? &__nan_written : &fpvars->__nan_written);
+ return (thr_main() ? &__nan_written : &fpvars->__nan_written);
}
int *
-_thr_get_nan_read()
+_thrp_get_nan_read()
{
- return (_thr_main() ? &__nan_read : &fpvars->__nan_read);
+ return (thr_main() ? &__nan_read : &fpvars->__nan_read);
}
int *
-_thr_get_inf_written()
+_thrp_get_inf_written()
{
- return (_thr_main() ? &__inf_written : &fpvars->__inf_written);
+ return (thr_main() ? &__inf_written : &fpvars->__inf_written);
}
int *
-_thr_get_inf_read()
+_thrp_get_inf_read()
{
- return (_thr_main() ? &__inf_read : &fpvars->__inf_read);
+ return (thr_main() ? &__inf_read : &fpvars->__inf_read);
}
diff --git a/usr/src/lib/libc/port/fp/pack_float.c b/usr/src/lib/libc/port/fp/pack_float.c
index 6e6c8f6e85..cefe6ddd34 100644
--- a/usr/src/lib/libc/port/fp/pack_float.c
+++ b/usr/src/lib/libc/port/fp/pack_float.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,14 +18,15 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2005 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
-#include "synonyms.h"
+#include "lint.h"
#include "base_conversion.h"
static void
@@ -172,7 +172,7 @@ infinity:
case fp_quiet:
kluge.f.msw.exponent = 0xff;
kluge.f.msw.significand = 0x400000 |
- (0x3fffff & (pu->significand[0] >> 8));
+ (0x3fffff & (pu->significand[0] >> 8));
break;
case fp_normal:
__fp_rightshift(pu, 8);
@@ -239,7 +239,7 @@ infinity:
kluge.f.msw.exponent = 0x7ff;
__fp_rightshift(pu, 11);
kluge.f.msw.significand = 0x80000 |
- (0x7ffff & pu->significand[0]);
+ (0x7ffff & pu->significand[0]);
kluge.f.significand2 = pu->significand[1];
break;
case fp_normal:
@@ -384,7 +384,7 @@ infinity:
kluge.f.msw.exponent = 0x7fff;
__fp_rightshift(pu, 15);
kluge.f.msw.significand = 0x8000 |
- (0xffff & pu->significand[0]);
+ (0xffff & pu->significand[0]);
kluge.f.significand2 = pu->significand[1];
kluge.f.significand3 = pu->significand[2];
kluge.f.significand4 = pu->significand[3];
diff --git a/usr/src/lib/libc/port/fp/sigfpe.c b/usr/src/lib/libc/port/fp/sigfpe.c
index 24eb54fc23..9ba6c6ce72 100644
--- a/usr/src/lib/libc/port/fp/sigfpe.c
+++ b/usr/src/lib/libc/port/fp/sigfpe.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -18,10 +17,14 @@
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
- *
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ */
+
+/*
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
- *
+ */
+
+/*
* Copyright (c) 1983, 1984, 1985, 1986, 1987, 1988, 1989 AT&T
* All Rights Reserved
*
@@ -34,9 +37,7 @@
/* Swap handler for SIGFPE codes. */
-#pragma weak sigfpe = _sigfpe
-
-#include "synonyms.h"
+#include "lint.h"
#include <mtlib.h>
#include <errno.h>
#include <signal.h>
@@ -128,7 +129,8 @@ _sigfpe_master(int sig, siginfo_t *siginfo, void *arg)
lmutex_lock(&sigfpe_lock);
code = siginfo->si_code;
- for (i = 0; (i < N_SIGFPE_CODE) && (code != sigfpe_codes[i]); i++);
+ for (i = 0; (i < N_SIGFPE_CODE) && (code != sigfpe_codes[i]); i++)
+ continue;
/* Find index of handler. */
if (i >= N_SIGFPE_CODE)
i = N_SIGFPE_CODE - 1;
@@ -214,7 +216,8 @@ sigfpe(sigfpe_code_type code, sigfpe_handler_type hdl)
lmutex_lock(&sigfpe_lock);
(void) _test_sigfpe_master();
- for (i = 0; (i < N_SIGFPE_CODE) && (code != sigfpe_codes[i]); i++);
+ for (i = 0; (i < N_SIGFPE_CODE) && (code != sigfpe_codes[i]); i++)
+ continue;
/* Find index of handler. */
if (i >= N_SIGFPE_CODE) {
errno = EINVAL;
diff --git a/usr/src/lib/libc/port/fp/string_decim.c b/usr/src/lib/libc/port/fp/string_decim.c
index ddea3bf323..1b09aef644 100644
--- a/usr/src/lib/libc/port/fp/string_decim.c
+++ b/usr/src/lib/libc/port/fp/string_decim.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,16 +18,15 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
-#pragma weak string_to_decimal = _string_to_decimal
-
-#include "synonyms.h"
+#include "lint.h"
#include <sys/types.h>
#include <ctype.h>
#include <stdio.h>
diff --git a/usr/src/lib/libc/port/gen/_ftoll.c b/usr/src/lib/libc/port/gen/_ftoll.c
index 66c6a217f0..857a52b8a1 100644
--- a/usr/src/lib/libc/port/gen/_ftoll.c
+++ b/usr/src/lib/libc/port/gen/_ftoll.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,14 +18,15 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
-#include "synonyms.h"
+#include "lint.h"
#include <sys/isa_defs.h>
#include <floatingpoint.h>
#include <limits.h>
@@ -104,7 +104,7 @@ __dtoll(double dval)
default:
if (exp > 30) {
m1 = (m0 << (exp - 30)) |
- (m1 >> (62 - exp)) & ~(-1 << (exp - 30));
+ (m1 >> (62 - exp)) & ~(-1 << (exp - 30));
m0 >>= 62 - exp;
} else {
m1 = m0 >> (30 - exp);
@@ -275,7 +275,7 @@ _Q_qtoll(long double longdbl)
default:
if (exp > 30) {
m1 = (m0 << (exp - 30)) |
- (m1 >> (62 - exp)) & ~(-1 << (exp - 30));
+ (m1 >> (62 - exp)) & ~(-1 << (exp - 30));
m0 >>= 62 - exp;
} else {
m1 = m0 >> (30 - exp);
diff --git a/usr/src/lib/libc/port/gen/_ftoull.c b/usr/src/lib/libc/port/gen/_ftoull.c
index a4ba2d15ec..6388c2a8da 100644
--- a/usr/src/lib/libc/port/gen/_ftoull.c
+++ b/usr/src/lib/libc/port/gen/_ftoull.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,14 +18,15 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
-#include "synonyms.h"
+#include "lint.h"
#include <sys/isa_defs.h>
#include <floatingpoint.h>
#include <limits.h>
diff --git a/usr/src/lib/libc/port/gen/_libc_gettext.h b/usr/src/lib/libc/port/gen/_libc_gettext.h
index b64d29b24a..b73bc6e95c 100644
--- a/usr/src/lib/libc/port/gen/_libc_gettext.h
+++ b/usr/src/lib/libc/port/gen/_libc_gettext.h
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,17 +18,24 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright (c) 1990 by Sun Microsystems, Inc.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
+ * Use is subject to license terms.
*/
-#ident "%Z%%M% %I% %E% SMI"
+#ifndef _LIBC_GETTEXT_H
+#define _LIBC_GETTEXT_H
+
+#pragma ident "%Z%%M% %I% %E% SMI"
+
+#include <libintl.h>
/* Header file for _libc_gettext() macro. */
#if !defined(TEXT_DOMAIN) /* Should be defined thru -D flag. */
-# define TEXT_DOMAIN "SYS_TEST"
+#define TEXT_DOMAIN "SYS_TEST"
#endif
-char * _dgettext(const char *, const char *);
-#define _libc_gettext(msg_id) _dgettext(TEXT_DOMAIN, msg_id)
+#define _libc_gettext(msg_id) dgettext(TEXT_DOMAIN, msg_id)
+#endif /* _LIBC_GETTEXT_H */
diff --git a/usr/src/lib/libc/port/gen/_xftw.c b/usr/src/lib/libc/port/gen/_xftw.c
index 09e4d0017b..c30d19fac0 100644
--- a/usr/src/lib/libc/port/gen/_xftw.c
+++ b/usr/src/lib/libc/port/gen/_xftw.c
@@ -18,16 +18,16 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2007 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
/*
* _xftw - file tree walk the uses expanded stat structure
@@ -93,31 +93,6 @@
#undef _STYPES
#endif
-#include <sys/feature_tests.h>
-
-#if !defined(_LP64) && _FILE_OFFSET_BITS == 64
-#define fstatat64 _fstatat64
-#define lstat64 _lstat64
-#define openat64 _openat64
-#define readdir64 _readdir64
-#define stat64 _stat64
-#else
-#define fstatat _fstatat
-#define lstat _lstat
-#define openat _openat
-#define readdir _readdir
-#define stat _stat
-#endif /* !_LP64 && _FILE_OFFSET_BITS == 64 */
-
-#define close _close
-#define closedir _closedir
-#define fdopendir _fdopendir
-#define opendir _opendir
-#define seekdir _seekdir
-#define strdup _strdup
-#define strtok_r _strtok_r
-#define telldir _telldir
-
#include "lint.h"
#include <sys/types.h>
#include <sys/stat.h>
diff --git a/usr/src/lib/libc/port/gen/a64l.c b/usr/src/lib/libc/port/gen/a64l.c
index d645089ecb..40c4a9eb46 100644
--- a/usr/src/lib/libc/port/gen/a64l.c
+++ b/usr/src/lib/libc/port/gen/a64l.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,24 +18,23 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
/*
* convert base 64 ascii to long int
* char set is [./0-9A-Za-z]
*
*/
-#pragma weak a64l = _a64l
-#include "synonyms.h"
+#include "lint.h"
#include <sys/types.h>
#include <stdlib.h>
diff --git a/usr/src/lib/libc/port/gen/abort.c b/usr/src/lib/libc/port/gen/abort.c
index 0d0ef4a8e3..9d1518a458 100644
--- a/usr/src/lib/libc/port/gen/abort.c
+++ b/usr/src/lib/libc/port/gen/abort.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,18 +18,18 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
-#include "synonyms.h"
+#include "lint.h"
#include "file64.h"
#include <signal.h>
#include <stdlib.h>
diff --git a/usr/src/lib/libc/port/gen/addsev.c b/usr/src/lib/libc/port/gen/addsev.c
index 0c3be15d20..2e47ff7a66 100644
--- a/usr/src/lib/libc/port/gen/addsev.c
+++ b/usr/src/lib/libc/port/gen/addsev.c
@@ -18,19 +18,20 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
-#pragma weak addsev = _addsev
+#pragma ident "%Z%%M% %I% %E% SMI"
+
+#pragma weak _addsev = addsev
-#include "synonyms.h"
+#include "lint.h"
#include "mtlib.h"
#include "libc.h"
#include <stdlib.h>
diff --git a/usr/src/lib/libc/port/gen/assert.c b/usr/src/lib/libc/port/gen/assert.c
index 0e915cdd98..968a4e6b6f 100644
--- a/usr/src/lib/libc/port/gen/assert.c
+++ b/usr/src/lib/libc/port/gen/assert.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,21 +18,21 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
-#pragma weak _assert = __assert
-#pragma weak _assert_c99 = __assert_c99
+#pragma weak __assert = _assert
+#pragma weak __assert_c99 = _assert_c99
-#include "synonyms.h"
+#include "lint.h"
#include "_libc_gettext.h"
#include <string.h>
#include <stdlib.h>
@@ -50,7 +49,6 @@ _assert(const char *assertion, const char *filename, int line_num)
{
char buf[512];
- /* LINTED variable format specifier */
(void) snprintf(buf, sizeof (buf),
_libc_gettext("Assertion failed: %s, file %s, line %d\n"),
assertion, filename, line_num);
@@ -70,7 +68,6 @@ _assert_c99(const char *assertion, const char *filename, int line_num,
{
char buf[512];
- /* LINTED variable format specifier */
(void) snprintf(buf, sizeof (buf),
_libc_gettext("Assertion failed: %s, file %s, line %d, \
function %s\n"),
diff --git a/usr/src/lib/libc/port/gen/atexit.c b/usr/src/lib/libc/port/gen/atexit.c
index 560e5852e7..a355553303 100644
--- a/usr/src/lib/libc/port/gen/atexit.c
+++ b/usr/src/lib/libc/port/gen/atexit.c
@@ -24,14 +24,14 @@
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
-#pragma weak atexit = _atexit
+#pragma ident "%Z%%M% %I% %E% SMI"
+
+#pragma weak _atexit = atexit
-#include "synonyms.h"
+#include "lint.h"
#include "thr_uberdata.h"
#include "libc_int.h"
#include "atexit.h"
@@ -95,7 +95,7 @@ atexit_unlocks()
* Be careful about dereferencing self->ul_uberdata->atexit_root.
*/
int
-_atexit(void (*func)(void))
+atexit(void (*func)(void))
{
ulwp_t *self;
atexit_root_t *arp;
diff --git a/usr/src/lib/libc/port/gen/atfork.c b/usr/src/lib/libc/port/gen/atfork.c
index 62ed20dce3..dd2c763df9 100644
--- a/usr/src/lib/libc/port/gen/atfork.c
+++ b/usr/src/lib/libc/port/gen/atfork.c
@@ -45,9 +45,8 @@
* handlers installed by a library are deleted when that library
* is unloaded (see _preexec_atfork_unload() in atexit.c).
*/
-#pragma weak pthread_atfork = _pthread_atfork
int
-_pthread_atfork(void (*prepare)(void),
+pthread_atfork(void (*prepare)(void),
void (*parent)(void), void (*child)(void))
{
ulwp_t *self = curthread;
diff --git a/usr/src/lib/libc/port/gen/atoi.c b/usr/src/lib/libc/port/gen/atoi.c
index b51a0abf5e..16ffa1256d 100644
--- a/usr/src/lib/libc/port/gen/atoi.c
+++ b/usr/src/lib/libc/port/gen/atoi.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,18 +18,18 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
-#include "synonyms.h"
+#include "lint.h"
#include <ctype.h>
#include <sys/types.h>
#include <stdlib.h>
diff --git a/usr/src/lib/libc/port/gen/atol.c b/usr/src/lib/libc/port/gen/atol.c
index 3c1ca0a99c..e9f6aae49c 100644
--- a/usr/src/lib/libc/port/gen/atol.c
+++ b/usr/src/lib/libc/port/gen/atol.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,18 +18,18 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
-#include "synonyms.h"
+#include "lint.h"
#include <ctype.h>
#include <sys/types.h>
#include <stdlib.h>
diff --git a/usr/src/lib/libc/port/gen/atoll.c b/usr/src/lib/libc/port/gen/atoll.c
index fb73cd40a0..7d2539d745 100644
--- a/usr/src/lib/libc/port/gen/atoll.c
+++ b/usr/src/lib/libc/port/gen/atoll.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,20 +18,18 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
-#pragma weak atoll = _atoll
-
-#include "synonyms.h"
+#include "lint.h"
#include <ctype.h>
#include <sys/types.h>
#include <stdlib.h>
diff --git a/usr/src/lib/libc/port/gen/attrat.c b/usr/src/lib/libc/port/gen/attrat.c
index 547faa5e84..eab90989ef 100644
--- a/usr/src/lib/libc/port/gen/attrat.c
+++ b/usr/src/lib/libc/port/gen/attrat.c
@@ -25,7 +25,7 @@
#pragma ident "%Z%%M% %I% %E% SMI"
-#include "synonyms.h"
+#include "lint.h"
#include <string.h>
#include <stdlib.h>
#include <errno.h>
diff --git a/usr/src/lib/libc/port/gen/attropen.c b/usr/src/lib/libc/port/gen/attropen.c
index 93ad3d1c46..46a6111dd9 100644
--- a/usr/src/lib/libc/port/gen/attropen.c
+++ b/usr/src/lib/libc/port/gen/attropen.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,8 +18,9 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
@@ -31,20 +31,19 @@
*/
#if !defined(_LP64) && _FILE_OFFSET_BITS == 64
-#pragma weak attropen64 = _attropen64
+#pragma weak _attropen64 = attropen64
#else
-#pragma weak attropen = _attropen
+#pragma weak _attropen = attropen
#endif
-#include "synonyms.h"
-#include <sys/types.h>
-#include <sys/stat.h>
-#include <fcntl.h>
-#include <sys/errno.h>
-#include <stdlib.h>
-#include <errno.h>
-#include <unistd.h>
-#include <stdarg.h>
+#include "lint.h"
+#include <sys/types.h>
+#include <sys/stat.h>
+#include <fcntl.h>
+#include <stdlib.h>
+#include <errno.h>
+#include <unistd.h>
+#include <stdarg.h>
#if !defined(_LP64) && _FILE_OFFSET_BITS == 64
@@ -64,7 +63,7 @@ attropen64(const char *file, const char *attr, int oflag, ...)
}
if ((attrfd = openat64(fd, attr, oflag | O_XATTR,
- va_arg(ap, mode_t))) == -1) {
+ va_arg(ap, mode_t))) == -1) {
saverrno = errno;
(void) close(fd);
errno = saverrno;
@@ -95,7 +94,7 @@ attropen(const char *file, const char *attr, int oflag, ...)
}
if ((attrfd = openat(fd, attr, oflag | O_XATTR,
- va_arg(ap, mode_t))) == -1) {
+ va_arg(ap, mode_t))) == -1) {
saverrno = errno;
(void) close(fd);
errno = saverrno;
diff --git a/usr/src/lib/libc/port/gen/basename.c b/usr/src/lib/libc/port/gen/basename.c
index 00b2442253..80257d2e19 100644
--- a/usr/src/lib/libc/port/gen/basename.c
+++ b/usr/src/lib/libc/port/gen/basename.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,28 +18,28 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
/*
* Return pointer to the last element of a pathname.
*/
-#pragma weak basename = _basename
-#include "synonyms.h"
+#pragma weak _basename = basename
+
+#include "lint.h"
#include <libgen.h>
#include <string.h>
#include <sys/types.h>
-
char *
basename(char *s)
{
diff --git a/usr/src/lib/libc/port/gen/calloc.c b/usr/src/lib/libc/port/gen/calloc.c
index b642623d01..e9e4ad8244 100644
--- a/usr/src/lib/libc/port/gen/calloc.c
+++ b/usr/src/lib/libc/port/gen/calloc.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,18 +18,18 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
-#include "synonyms.h"
+#include "lint.h"
#include <stdlib.h>
#include <string.h>
#include <errno.h>
@@ -51,8 +50,8 @@ calloc(size_t num, size_t size)
/* check for overflow */
if (total / num != size) {
- errno = ENOMEM;
- return (0);
+ errno = ENOMEM;
+ return (0);
}
}
return ((mp = malloc(total)) ? memset(mp, 0, total) : mp);
diff --git a/usr/src/lib/libc/port/gen/catgets.c b/usr/src/lib/libc/port/gen/catgets.c
index a0bdf7b9fb..d9f5a970e5 100644
--- a/usr/src/lib/libc/port/gen/catgets.c
+++ b/usr/src/lib/libc/port/gen/catgets.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,8 +18,9 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
@@ -30,16 +30,16 @@
* catgets.c
*/
-#pragma weak catgets = _catgets
+#pragma weak _catgets = catgets
-#include "synonyms.h"
+#include "lint.h"
#include <sys/types.h>
#include <nl_types.h>
#include <errno.h>
#include "nlspath_checks.h"
char *
-_catgets(nl_catd catd_st, int set_id, int msg_id, const char *def_str)
+catgets(nl_catd catd_st, int set_id, int msg_id, const char *def_str)
{
int hi, lo, mid;
struct _cat_hdr *p;
@@ -54,7 +54,7 @@ _catgets(nl_catd catd_st, int set_id, int msg_id, const char *def_str)
}
if ((catd_st->__content == NULL) &&
- (catd_st->__size == 0) && (catd_st->__trust == 1)) {
+ (catd_st->__size == 0) && (catd_st->__trust == 1)) {
/* special message catalog descriptor for C locale */
return ((char *)def_str);
} else if ((catd_st->__content == NULL) || (catd_st->__size == 0)) {
@@ -75,33 +75,33 @@ _catgets(nl_catd catd_st, int set_id, int msg_id, const char *def_str)
while (hi >= lo) {
mid = (hi + lo) / 2;
q = (struct _cat_set_hdr *)
- ((uintptr_t)catd
- + _CAT_HDR_SIZE
- + _CAT_SET_HDR_SIZE * mid);
+ ((uintptr_t)catd
+ + _CAT_HDR_SIZE
+ + _CAT_SET_HDR_SIZE * mid);
if (q->__set_no == set_id) {
lo = q->__first_msg_hdr;
hi = lo + q->__nmsgs - 1;
while (hi >= lo) {
mid = (hi + lo) / 2;
r = (struct _cat_msg_hdr *)
- ((uintptr_t)catd
- + _CAT_HDR_SIZE
- + p->__msg_hdr_offset
- + _CAT_MSG_HDR_SIZE * mid);
+ ((uintptr_t)catd
+ + _CAT_HDR_SIZE
+ + p->__msg_hdr_offset
+ + _CAT_MSG_HDR_SIZE * mid);
if (r->__msg_no == msg_id) {
char *msg = (char *)catd
- + _CAT_HDR_SIZE
- + p->__msg_text_offset
- + r->__msg_offset;
+ + _CAT_HDR_SIZE
+ + p->__msg_text_offset
+ + r->__msg_offset;
if (!catd_st->__trust) {
- int errno_save = errno;
- char *cmsg = check_format(
- def_str, msg, 0);
+ int errno_save = errno;
+ char *cmsg = check_format(
+ def_str, msg, 0);
if (cmsg == def_str) {
/* security */
return ((char *)
- def_str);
+ def_str);
} else {
errno = errno_save;
return (msg);
diff --git a/usr/src/lib/libc/port/gen/catopen.c b/usr/src/lib/libc/port/gen/catopen.c
index 1cf6a6abcb..0da2a749fa 100644
--- a/usr/src/lib/libc/port/gen/catopen.c
+++ b/usr/src/lib/libc/port/gen/catopen.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,8 +18,9 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
@@ -31,10 +31,10 @@
*
*/
-#pragma weak catopen = _catopen
-#pragma weak catclose = _catclose
+#pragma weak _catopen = catopen
+#pragma weak _catclose = catclose
-#include "synonyms.h"
+#include "lint.h"
#include "libc.h"
#include <sys/types.h>
#include <unistd.h>
@@ -58,7 +58,7 @@ static nl_catd file_open(const char *, int);
static nl_catd process_nls_path(char *, int);
nl_catd
-_catopen(const char *name, int oflag)
+catopen(const char *name, int oflag)
{
nl_catd p;
@@ -156,7 +156,7 @@ process_nls_path(char *name, int oflag)
/* replace Substitution field */
s = replace_nls_option(s, name, pathname, locale,
- lang, territory, codeset);
+ lang, territory, codeset);
p = file_open(pathname, UNSAFE_F);
if (p != NULL) {
@@ -246,14 +246,14 @@ replace_nls_option(char *s, char *name, char *pathname, char *locale,
if (lang) {
u = lang;
while (*u && *u != '_' &&
- t < pathname + PATH_MAX)
+ t < pathname + PATH_MAX)
*t++ = *u++;
}
} else if (*s == 't') {
if (territory) {
u = territory;
while (*u && *u != '.' &&
- t < pathname + PATH_MAX)
+ t < pathname + PATH_MAX)
*t++ = *u++;
}
} else if (*s == 'c') {
@@ -320,7 +320,7 @@ file_open(const char *name, int safe)
}
int
-_catclose(nl_catd catd)
+catclose(nl_catd catd)
{
if (catd &&
catd != (nl_catd)-1) {
diff --git a/usr/src/lib/libc/port/gen/cfgetispeed.c b/usr/src/lib/libc/port/gen/cfgetispeed.c
index ec07ea0b36..f75e514dff 100644
--- a/usr/src/lib/libc/port/gen/cfgetispeed.c
+++ b/usr/src/lib/libc/port/gen/cfgetispeed.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,19 +18,20 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
+
+#pragma weak _cfgetispeed = cfgetispeed
-#pragma weak cfgetispeed = _cfgetispeed
-#include "synonyms.h"
+#include "lint.h"
#include <sys/types.h>
#include <sys/termios.h>
diff --git a/usr/src/lib/libc/port/gen/cfgetospeed.c b/usr/src/lib/libc/port/gen/cfgetospeed.c
index 26b714a4d8..46577a1525 100644
--- a/usr/src/lib/libc/port/gen/cfgetospeed.c
+++ b/usr/src/lib/libc/port/gen/cfgetospeed.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,19 +18,20 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
+
+#pragma weak _cfgetospeed = cfgetospeed
-#pragma weak cfgetospeed = _cfgetospeed
-#include "synonyms.h"
+#include "lint.h"
#include <sys/types.h>
#include <sys/termios.h>
@@ -43,6 +43,6 @@ speed_t
cfgetospeed(const struct termios *termios_p)
{
return (termios_p->c_cflag & CBAUDEXT ?
- (termios_p->c_cflag & CBAUD) + CBAUD + 1 :
- termios_p->c_cflag & CBAUD);
+ (termios_p->c_cflag & CBAUD) + CBAUD + 1 :
+ termios_p->c_cflag & CBAUD);
}
diff --git a/usr/src/lib/libc/port/gen/cfree.c b/usr/src/lib/libc/port/gen/cfree.c
index a68e2b4b63..d113695cfb 100644
--- a/usr/src/lib/libc/port/gen/cfree.c
+++ b/usr/src/lib/libc/port/gen/cfree.c
@@ -20,21 +20,20 @@
*/
/*
- * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
/*
* cfree - clear memory block
*/
-#include "synonyms.h"
+#include "lint.h"
#include <sys/types.h>
#include <stdlib.h>
diff --git a/usr/src/lib/libc/port/gen/cfsetispeed.c b/usr/src/lib/libc/port/gen/cfsetispeed.c
index 947d83d7b8..3bd1c53d0d 100644
--- a/usr/src/lib/libc/port/gen/cfsetispeed.c
+++ b/usr/src/lib/libc/port/gen/cfsetispeed.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,19 +18,20 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
+
+#pragma weak _cfsetispeed = cfsetispeed
-#pragma weak cfsetispeed = _cfsetispeed
-#include "synonyms.h"
+#include "lint.h"
#include <sys/types.h>
#include <sys/termios.h>
diff --git a/usr/src/lib/libc/port/gen/cfsetospeed.c b/usr/src/lib/libc/port/gen/cfsetospeed.c
index 5b6905cc78..578bb1f5a3 100644
--- a/usr/src/lib/libc/port/gen/cfsetospeed.c
+++ b/usr/src/lib/libc/port/gen/cfsetospeed.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,19 +18,20 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
+
+#pragma weak _cfsetospeed = cfsetospeed
-#pragma weak cfsetospeed = _cfsetospeed
-#include "synonyms.h"
+#include "lint.h"
#include <sys/types.h>
#include <sys/termios.h>
diff --git a/usr/src/lib/libc/port/gen/cftime.c b/usr/src/lib/libc/port/gen/cftime.c
index 4e93b560da..f4fa872da8 100644
--- a/usr/src/lib/libc/port/gen/cftime.c
+++ b/usr/src/lib/libc/port/gen/cftime.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,16 +18,16 @@
*
* CDDL HEADER END
*/
-/* Copyright (c) 1988 AT&T */
-/* All Rights Reserved */
-
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI" /* SVr4.0 1.15 */
+/* Copyright (c) 1988 AT&T */
+/* All Rights Reserved */
+
+#pragma ident "%Z%%M% %I% %E% SMI"
/*
* This routine converts time as follows. The epoch is 0000 Jan 1
@@ -62,10 +61,7 @@
*
*/
-#pragma weak ascftime = _ascftime
-#pragma weak cftime = _cftime
-
-#include "synonyms.h"
+#include "lint.h"
#include <mtlib.h>
#include <stddef.h>
#include <time.h>
diff --git a/usr/src/lib/libc/port/gen/clock.c b/usr/src/lib/libc/port/gen/clock.c
index 06dd1ca289..9ae651e6f9 100644
--- a/usr/src/lib/libc/port/gen/clock.c
+++ b/usr/src/lib/libc/port/gen/clock.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,18 +18,18 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
-#include "synonyms.h"
+#include "lint.h"
#include <sys/types.h>
#include <sys/times.h>
#include <time.h>
diff --git a/usr/src/lib/libc/port/gen/closedir.c b/usr/src/lib/libc/port/gen/closedir.c
index 780c1f3a84..ef5dbaad65 100644
--- a/usr/src/lib/libc/port/gen/closedir.c
+++ b/usr/src/lib/libc/port/gen/closedir.c
@@ -20,15 +20,15 @@
*/
/*
- * Copyright 2007 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
+
/*
* closedir -- C library extension routine
*
@@ -37,9 +37,9 @@
* while holding internal libc locks.
*/
-#pragma weak closedir = _closedir
+#pragma weak _closedir = closedir
-#include "synonyms.h"
+#include "lint.h"
#include <dirent.h>
#include <stdlib.h>
#include <unistd.h>
@@ -51,7 +51,7 @@ closedir(DIR *dirp)
private_DIR *pdirp = (private_DIR *)(uintptr_t)dirp;
int fd = dirp->dd_fd;
- mutex_destroy(&pdirp->dd_lock);
+ (void) mutex_destroy(&pdirp->dd_lock);
lfree(dirp->dd_buf, DIRBUF);
lfree(pdirp, sizeof (*pdirp));
return (close(fd));
diff --git a/usr/src/lib/libc/port/gen/closefrom.c b/usr/src/lib/libc/port/gen/closefrom.c
index 334a03de5b..315c9599cd 100644
--- a/usr/src/lib/libc/port/gen/closefrom.c
+++ b/usr/src/lib/libc/port/gen/closefrom.c
@@ -20,16 +20,16 @@
*/
/*
- * Copyright 2007 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
-#pragma weak closefrom = _closefrom
-#pragma weak fdwalk = _fdwalk
+#pragma weak _closefrom = closefrom
+#pragma weak _fdwalk = fdwalk
-#include "synonyms.h"
+#include "lint.h"
#include <ctype.h>
#include <stdlib.h>
#include <unistd.h>
@@ -91,7 +91,7 @@ fdwalk(int (*func)(void *, int), void *cd)
*/
if (getrlimit(RLIMIT_NOFILE, &rl) == 0)
max_fds = (rl.rlim_max == RLIM_INFINITY)?
- INT_MAX : rl.rlim_max;
+ INT_MAX : rl.rlim_max;
for (i = 0; i < max_fds; i++) {
if (fcntl(i, F_GETFD) < 0)
continue;
diff --git a/usr/src/lib/libc/port/gen/confstr.c b/usr/src/lib/libc/port/gen/confstr.c
index d2837ed2da..5cc2afb7f8 100644
--- a/usr/src/lib/libc/port/gen/confstr.c
+++ b/usr/src/lib/libc/port/gen/confstr.c
@@ -18,16 +18,17 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
-#pragma weak confstr = _confstr
+#pragma weak _confstr = confstr
-#include "synonyms.h"
+#include "lint.h"
#include "xpg6.h"
#include <sys/types.h>
#include <unistd.h>
@@ -101,11 +102,11 @@ confstr(int name, char *buf, size_t length)
if (name == _CS_PATH) {
if (__xpg6 & _C99SUSv3_XPG6_sysconf_version)
- path = "/usr/xpg6/bin:/usr/xpg4/bin:/usr/ccs/bin:"\
- "/usr/bin:/opt/SUNWspro/bin";
+ path = "/usr/xpg6/bin:/usr/xpg4/bin:/usr/ccs/bin:"
+ "/usr/bin:/opt/SUNWspro/bin";
else
- path = "/usr/xpg4/bin:/usr/ccs/bin:/usr/bin:"\
- "/opt/SUNWspro/bin";
+ path = "/usr/xpg4/bin:/usr/ccs/bin:/usr/bin:"
+ "/opt/SUNWspro/bin";
conf_length = strlen(path) + 1;
if (length != 0) {
diff --git a/usr/src/lib/libc/port/gen/crypt.c b/usr/src/lib/libc/port/gen/crypt.c
index ee77dea287..bfb859867e 100644
--- a/usr/src/lib/libc/port/gen/crypt.c
+++ b/usr/src/lib/libc/port/gen/crypt.c
@@ -20,17 +20,17 @@
*/
/*
- * Copyright 2007 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
-#pragma weak crypt = _crypt
-#pragma weak encrypt = _encrypt
-#pragma weak setkey = _setkey
+#pragma weak _crypt = crypt
+#pragma weak _encrypt = encrypt
+#pragma weak _setkey = setkey
-#include "synonyms.h"
+#include "lint.h"
#include "mtlib.h"
#include <synch.h>
#include <thread.h>
@@ -504,7 +504,7 @@ getalgbyname(const char *algname, boolean_t *found)
if ((configfd = open(CRYPT_CONFFILE, O_RDONLY)) == -1) {
syslog(LOG_ALERT, "crypt: open(%s) failed: %s",
- CRYPT_CONFFILE, strerror(errno));
+ CRYPT_CONFFILE, strerror(errno));
return (NULL);
}
@@ -513,7 +513,7 @@ getalgbyname(const char *algname, boolean_t *found)
*/
if (fstat(configfd, &stb) < 0) {
syslog(LOG_ALERT, "crypt: stat(%s) failed: %s",
- CRYPT_CONFFILE, strerror(errno));
+ CRYPT_CONFFILE, strerror(errno));
goto cleanup;
}
@@ -536,13 +536,13 @@ getalgbyname(const char *algname, boolean_t *found)
}
if (stb.st_mode & S_IWOTH) {
syslog(LOG_ALERT,
- "crypt: %s writable by world", CRYPT_CONFFILE);
+ "crypt: %s writable by world", CRYPT_CONFFILE);
goto cleanup;
}
if ((fconf = fdopen(configfd, "rF")) == NULL) {
syslog(LOG_ALERT, "crypt: fdopen(%d) failed: %s",
- configfd, strerror(errno));
+ configfd, strerror(errno));
goto cleanup;
}
@@ -1037,12 +1037,12 @@ unlocked_encrypt(char *block, int fake)
preS[j] = R[E[j]-1] ^ *(KS+index+j);
for (j = 0; j < 8; j++) {
t = 6 * j;
- k = S[j][(preS[t+0]<<5)+
- (preS[t+1]<<3)+
- (preS[t+2]<<2)+
- (preS[t+3]<<1)+
- (preS[t+4]<<0)+
- (preS[t+5]<<4)];
+ k = S[j][(preS[t+0]<<5) +
+ (preS[t+1]<<3) +
+ (preS[t+2]<<2) +
+ (preS[t+3]<<1) +
+ (preS[t+4]<<0) +
+ (preS[t+5]<<4)];
t = 4*j;
f[t+0] = (k>>3)&01;
f[t+1] = (k>>2)&01;
diff --git a/usr/src/lib/libc/port/gen/csetlen.c b/usr/src/lib/libc/port/gen/csetlen.c
index 98633f1f16..6f306728b9 100644
--- a/usr/src/lib/libc/port/gen/csetlen.c
+++ b/usr/src/lib/libc/port/gen/csetlen.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,14 +18,15 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
-#include "synonyms.h"
+#include "lint.h"
#include <sys/types.h>
#include <ctype.h>
#include <euc.h>
diff --git a/usr/src/lib/libc/port/gen/ctime.c b/usr/src/lib/libc/port/gen/ctime.c
index 89f7e18f06..097ef8ee0f 100644
--- a/usr/src/lib/libc/port/gen/ctime.c
+++ b/usr/src/lib/libc/port/gen/ctime.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,16 +18,16 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
/*
* This routine converts time as follows.
@@ -77,9 +76,7 @@
* may also be called explicitly by the user.
*/
-#pragma weak asctime_r = _asctime_r
-
-#include "synonyms.h"
+#include "lint.h"
#include <mtlib.h>
#include <sys/types.h>
#include <time.h>
@@ -119,7 +116,8 @@ __posix_asctime_r(const struct tm *t, char *cbuf)
const char *Month = "JanFebMarAprMayJunJulAugSepOctNovDec";
cp = cbuf;
- for (ncp = Date; *cp++ = *ncp++; /* */);
+ for (ncp = Date; *cp++ = *ncp++; /* */)
+ ;
ncp = Day + (3 * t->tm_wday);
cp = cbuf;
*cp++ = *ncp++;
diff --git a/usr/src/lib/libc/port/gen/ctime_r.c b/usr/src/lib/libc/port/gen/ctime_r.c
index 4abcfe29d3..a57558169a 100644
--- a/usr/src/lib/libc/port/gen/ctime_r.c
+++ b/usr/src/lib/libc/port/gen/ctime_r.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,16 +18,16 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
/*
* This routine converts time as follows.
@@ -77,9 +76,7 @@
* may also be called explicitly by the user.
*/
-#pragma weak ctime_r = _ctime_r
-
-#include "synonyms.h"
+#include "lint.h"
#include <time.h>
#include <sys/types.h>
#include <errno.h>
diff --git a/usr/src/lib/libc/port/gen/deflt.c b/usr/src/lib/libc/port/gen/deflt.c
index 24cfd281fc..716b3dd79e 100644
--- a/usr/src/lib/libc/port/gen/deflt.c
+++ b/usr/src/lib/libc/port/gen/deflt.c
@@ -20,7 +20,7 @@
*/
/*
- * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
@@ -32,11 +32,7 @@
#pragma ident "%Z%%M% %I% %E% SMI"
-#pragma weak defopen = _defopen
-#pragma weak defread = _defread
-#pragma weak defcntl = _defcntl
-
-#include "synonyms.h"
+#include "lint.h"
#include "libc.h"
#include <stdio.h>
#include <stdlib.h>
diff --git a/usr/src/lib/libc/port/gen/directio.c b/usr/src/lib/libc/port/gen/directio.c
index 3a76c7bb9d..f6ff4f24a6 100644
--- a/usr/src/lib/libc/port/gen/directio.c
+++ b/usr/src/lib/libc/port/gen/directio.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -21,13 +20,13 @@
*/
/*
- * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
-#include "synonyms.h"
+#include "lint.h"
#include <sys/types.h>
#include <unistd.h>
#include <sys/filio.h>
diff --git a/usr/src/lib/libc/port/gen/dirname.c b/usr/src/lib/libc/port/gen/dirname.c
index dbfbe11b17..46d695da72 100644
--- a/usr/src/lib/libc/port/gen/dirname.c
+++ b/usr/src/lib/libc/port/gen/dirname.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,16 +18,16 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
/*
* Return pointer to the directory name, stripping off the last
@@ -36,8 +35,9 @@
* Works similar to /bin/dirname
*/
-#pragma weak dirname = _dirname
-#include "synonyms.h"
+#pragma weak _dirname = dirname
+
+#include "lint.h"
#include <sys/types.h>
#include <string.h>
diff --git a/usr/src/lib/libc/port/gen/div.c b/usr/src/lib/libc/port/gen/div.c
index e45512760d..b2fc79f7ed 100644
--- a/usr/src/lib/libc/port/gen/div.c
+++ b/usr/src/lib/libc/port/gen/div.c
@@ -1,10 +1,8 @@
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/*
* Copyright (c) 1990, 1993
* The Regents of the University of California. All rights reserved.
@@ -41,7 +39,9 @@
* SUCH DAMAGE.
*/
-#include "synonyms.h"
+#pragma ident "%Z%%M% %I% %E% SMI"
+
+#include "lint.h"
#include <sys/types.h>
#include <stdlib.h>
diff --git a/usr/src/lib/libc/port/gen/drand48.c b/usr/src/lib/libc/port/gen/drand48.c
index 7460dec5f7..897a3b65bd 100644
--- a/usr/src/lib/libc/port/gen/drand48.c
+++ b/usr/src/lib/libc/port/gen/drand48.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,16 +18,16 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
/*
* drand48, etc. pseudo-random number generator
@@ -47,17 +46,8 @@
* previously used (32 bit precision) are now using the int32_t
* type (32 bit precision in both ILP32 and LP64 worlds).
*/
-#pragma weak drand48 = _drand48
-#pragma weak erand48 = _erand48
-#pragma weak lrand48 = _lrand48
-#pragma weak mrand48 = _mrand48
-#pragma weak srand48 = _srand48
-#pragma weak seed48 = _seed48
-#pragma weak lcong48 = _lcong48
-#pragma weak nrand48 = _nrand48
-#pragma weak jrand48 = _jrand48
-
-#include "synonyms.h"
+
+#include "lint.h"
#include <mtlib.h>
#include <synch.h>
#include <thread.h>
@@ -148,13 +138,13 @@ next(void)
ADDEQU(p[1], q[0], carry0);
MUL(a[1], x[0], r);
x[2] = LOW(carry0 + carry1 + CARRY(p[1], r[0]) + q[1] + r[1] +
- a[0] * x[2] + a[1] * x[1] + a[2] * x[0]);
+ a[0] * x[2] + a[1] * x[1] + a[2] * x[0]);
x[1] = LOW(p[1] + r[0]);
x[0] = LOW(p[0]);
}
void
-_srand48(long seedval)
+srand48(long seedval)
{
int32_t fixseed = (int32_t)seedval; /* limit to 32 bits */
@@ -187,14 +177,14 @@ NEST(long, _nrand48_u, _lrand48_u)
NEST(long, _jrand48_u, _mrand48_u)
-EXPORT0(double, _drand48, _drand48_u)
-EXPORT1(double, _erand48, _erand48_u)
+EXPORT0(double, drand48, _drand48_u)
+EXPORT1(double, erand48, _erand48_u)
-EXPORT0(long, _lrand48, _lrand48_u)
-EXPORT1(long, _nrand48, _nrand48_u)
+EXPORT0(long, lrand48, _lrand48_u)
+EXPORT1(long, nrand48, _nrand48_u)
-EXPORT0(long, _mrand48, _mrand48_u)
-EXPORT1(long, _jrand48, _jrand48_u)
+EXPORT0(long, mrand48, _mrand48_u)
+EXPORT1(long, jrand48, _jrand48_u)
#ifdef DRIVER
/*
diff --git a/usr/src/lib/libc/port/gen/dup2.c b/usr/src/lib/libc/port/gen/dup2.c
index eee3a10faa..9708d3afb3 100644
--- a/usr/src/lib/libc/port/gen/dup2.c
+++ b/usr/src/lib/libc/port/gen/dup2.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,19 +18,20 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
+
+#pragma weak _dup2 = dup2
-#pragma weak dup2 = _dup2
-#include "synonyms.h"
+#include "lint.h"
#include <sys/types.h>
#include <fcntl.h>
diff --git a/usr/src/lib/libc/port/gen/ecvt.c b/usr/src/lib/libc/port/gen/ecvt.c
index 00e422bf3d..f6f8f37058 100644
--- a/usr/src/lib/libc/port/gen/ecvt.c
+++ b/usr/src/lib/libc/port/gen/ecvt.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,16 +18,16 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
/*
* ecvt converts to decimal
@@ -37,10 +36,11 @@
* sign is set to 0 for positive, 1 for negative
*
*/
-#pragma weak ecvt = _ecvt
-#pragma weak fcvt = _fcvt
-#include "synonyms.h"
+#pragma weak _ecvt = ecvt
+#pragma weak _fcvt = fcvt
+
+#include "lint.h"
#include <sys/types.h>
#include <values.h>
#include <nan.h>
diff --git a/usr/src/lib/libc/port/gen/err.c b/usr/src/lib/libc/port/gen/err.c
index 3819d4881f..016d5e0b89 100644
--- a/usr/src/lib/libc/port/gen/err.c
+++ b/usr/src/lib/libc/port/gen/err.c
@@ -26,16 +26,7 @@
#pragma ident "%Z%%M% %I% %E% SMI"
-#pragma weak err = _err
-#pragma weak errx = _errx
-#pragma weak verr = _verr
-#pragma weak verrx = _verrx
-#pragma weak warn = _warn
-#pragma weak warnx = _warnx
-#pragma weak vwarn = _vwarn
-#pragma weak vwarnx = _vwarnx
-
-#include "synonyms.h"
+#include "lint.h"
#include "file64.h"
#include "mtlib.h"
#include <sys/types.h>
diff --git a/usr/src/lib/libc/port/gen/errlist.awk b/usr/src/lib/libc/port/gen/errlist.awk
index 5acb2148d7..13c1c8ee21 100644
--- a/usr/src/lib/libc/port/gen/errlist.awk
+++ b/usr/src/lib/libc/port/gen/errlist.awk
@@ -1,13 +1,9 @@
#
-# Copyright 2005 Sun Microsystems, Inc. All rights reserved.
-# Use is subject to license terms.
-#
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
-# Common Development and Distribution License, Version 1.0 only
-# (the "License"). You may not use this file except in compliance
-# with the License.
+# Common Development and Distribution License (the "License").
+# You may not use this file except in compliance with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# or http://www.opensolaris.org/os/licensing.
@@ -22,6 +18,9 @@
#
# CDDL HEADER END
#
+# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
# ident "%Z%%M% %I% %E% SMI"
#
# Create two files from a list of input strings;
@@ -58,8 +57,8 @@ BEGIN {
oldfile = "errlst.c"
print "#pragma ident\t\"%Z%%M%\t%I%\t%E% SMI\"\n" >oldfile
- print "#pragma weak sys_errlist = _sys_errlist\n" >oldfile
- print "#include \"synonyms.h\"\n" >oldfile
+ print "#pragma weak _sys_errlist = sys_errlist\n" >oldfile
+ print "#include \"lint.h\"\n" >oldfile
# We need to include the errors strings proper in the
# C source for gettext; the macro C allows us to embed
# them as comment.
@@ -68,7 +67,7 @@ BEGIN {
print "const char *sys_errlist[] = {" >oldfile
print "#pragma ident\t\"%Z%%M%\t%I%\t%E% SMI\"\n" >newfile
- print "#include \"synonyms.h\"" >newfile
+ print "#include \"lint.h\"" >newfile
print "#include <sys/isa_defs.h>\n" >newfile
print "#pragma weak __sys_errs = _sys_errs\n" >newfile
}
diff --git a/usr/src/lib/libc/port/gen/euclen.c b/usr/src/lib/libc/port/gen/euclen.c
index 0328c5cffd..57aa49dd7e 100644
--- a/usr/src/lib/libc/port/gen/euclen.c
+++ b/usr/src/lib/libc/port/gen/euclen.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,16 +18,17 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 1996 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI" /* Nihon Sun Micro JLE */
+#pragma ident "%Z%%M% %I% %E% SMI"
-#include "synonyms.h"
-#include <euc.h>
-#include <ctype.h>
+#include "lint.h"
+#include <euc.h>
+#include <ctype.h>
/*
* euccol(s) returns the screen column width of the EUC char.
diff --git a/usr/src/lib/libc/port/gen/event_port.c b/usr/src/lib/libc/port/gen/event_port.c
index f4eb057dec..ee8317f21e 100644
--- a/usr/src/lib/libc/port/gen/event_port.c
+++ b/usr/src/lib/libc/port/gen/event_port.c
@@ -20,21 +20,12 @@
*/
/*
- * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
-#pragma weak port_create = _port_create
-#pragma weak port_associate = _port_associate
-#pragma weak port_dissociate = _port_dissociate
-#pragma weak port_send = _port_send
-#pragma weak port_sendn = _port_sendn
-#pragma weak port_get = _port_get
-#pragma weak port_getn = _port_getn
-#pragma weak port_alert = _port_alert
-
#include "lint.h"
#include <sys/types.h>
#include <sys/stat.h>
@@ -57,7 +48,7 @@
* set to 0 and no check will be done in the kernel interface.
*/
int
-_port_create()
+port_create()
{
rval_t r;
r.r_vals = _portfs(PORT_CREATE | PORT_SYS_NOPORT, 0, 0, 0, 0, 0);
@@ -65,7 +56,7 @@ _port_create()
}
int
-_port_associate(int port, int source, uintptr_t object, int events, void *user)
+port_associate(int port, int source, uintptr_t object, int events, void *user)
{
rval_t r;
r.r_vals = _portfs(PORT_ASSOCIATE, port, source, object, events,
@@ -75,7 +66,7 @@ _port_associate(int port, int source, uintptr_t object, int events, void *user)
int
-_port_get(int port, port_event_t *pe, struct timespec *to)
+port_get(int port, port_event_t *pe, struct timespec *to)
{
rval_t r;
if (to)
@@ -87,7 +78,7 @@ _port_get(int port, port_event_t *pe, struct timespec *to)
}
int
-_port_getn(int port, port_event_t list[], uint_t max, uint_t *nget,
+port_getn(int port, port_event_t list[], uint_t max, uint_t *nget,
struct timespec *timeout)
{
rval_t r;
@@ -110,7 +101,7 @@ _port_getn(int port, port_event_t list[], uint_t max, uint_t *nget,
}
int
-_port_dissociate(int port, int source, uintptr_t object)
+port_dissociate(int port, int source, uintptr_t object)
{
rval_t r;
r.r_vals = _portfs(PORT_DISSOCIATE, port, source, object, 0, 0);
@@ -118,7 +109,7 @@ _port_dissociate(int port, int source, uintptr_t object)
}
int
-_port_send(int port, int events, void *user)
+port_send(int port, int events, void *user)
{
rval_t r;
r.r_vals = _portfs(PORT_SEND, port, events, (uintptr_t)user, NULL,
@@ -146,7 +137,7 @@ _port_dispatch(int port, int flags, int source, int events, uintptr_t object,
}
int
-_port_sendn(int ports[], int errors[], uint_t nent, int events, void *user)
+port_sendn(int ports[], int errors[], uint_t nent, int events, void *user)
{
rval_t r;
uint_t offset;
@@ -184,7 +175,7 @@ _port_sendn(int ports[], int errors[], uint_t nent, int events, void *user)
}
int
-_port_alert(int port, int flags, int events, void *user)
+port_alert(int port, int flags, int events, void *user)
{
rval_t r;
r.r_vals = _portfs(PORT_ALERT, port, flags, events, (uintptr_t)user,
diff --git a/usr/src/lib/libc/port/gen/execvp.c b/usr/src/lib/libc/port/gen/execvp.c
index 51e198048a..e46308bc1d 100644
--- a/usr/src/lib/libc/port/gen/execvp.c
+++ b/usr/src/lib/libc/port/gen/execvp.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,24 +18,26 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
/*
* execlp(name, arg,...,0) (like execl, but does path search)
* execvp(name, argv) (like execv, but does path search)
*/
-#pragma weak execlp = _execlp
-#pragma weak execvp = _execvp
-#include "synonyms.h"
+
+#pragma weak _execlp = execlp
+#pragma weak _execvp = execvp
+
+#include "lint.h"
#include <sys/types.h>
#include <unistd.h>
#include <string.h>
@@ -137,7 +138,7 @@ execvp(const char *name, char *const *argv)
pathstr = "/usr/sbin:/usr/ccs/bin:/usr/bin";
} else { /* XPG4 (CSPATH + /usr/sbin) */
pathstr = "/usr/xpg4/bin:/usr/ccs/bin:/usr/bin:"
- "/opt/SUNWspro/bin:/usr/sbin";
+ "/opt/SUNWspro/bin:/usr/sbin";
}
} else {
if (__xpg4 == 0) { /* not XPG4 */
diff --git a/usr/src/lib/libc/port/gen/fattach.c b/usr/src/lib/libc/port/gen/fattach.c
index 4c1b497325..a56df22291 100644
--- a/usr/src/lib/libc/port/gen/fattach.c
+++ b/usr/src/lib/libc/port/gen/fattach.c
@@ -18,23 +18,25 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2007 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
/*
* Attach a STREAMS or door based file descriptor to an object in the file
* system name space.
*/
-#pragma weak fattach = _fattach
-#include "synonyms.h"
+
+#pragma weak _fattach = fattach
+
+#include "lint.h"
#include <sys/types.h>
#include <errno.h>
#include <stdio.h>
diff --git a/usr/src/lib/libc/port/gen/fdetach.c b/usr/src/lib/libc/port/gen/fdetach.c
index b1dba8f528..726803ea83 100644
--- a/usr/src/lib/libc/port/gen/fdetach.c
+++ b/usr/src/lib/libc/port/gen/fdetach.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,25 +18,25 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
/*
* Detach a STREAMS-based file descriptor from an object in the
* file system name space.
*/
+#pragma weak _fdetach = fdetach
-#pragma weak fdetach = _fdetach
-#include "synonyms.h"
+#include "lint.h"
#include <sys/mount.h>
int
diff --git a/usr/src/lib/libc/port/gen/fdopendir.c b/usr/src/lib/libc/port/gen/fdopendir.c
index 344c3af2be..0569b372c6 100644
--- a/usr/src/lib/libc/port/gen/fdopendir.c
+++ b/usr/src/lib/libc/port/gen/fdopendir.c
@@ -34,10 +34,9 @@
* while holding internal libc locks.
*/
-#pragma weak fdopendir = _fdopendir
-#pragma weak dirfd = _dirfd
+#pragma weak _fdopendir = fdopendir
-#include "synonyms.h"
+#include "lint.h"
#include <mtlib.h>
#include <dirent.h>
#include <sys/stat.h>
diff --git a/usr/src/lib/libc/port/gen/fmtmsg.c b/usr/src/lib/libc/port/gen/fmtmsg.c
index 50a0fdbabb..08ada435ce 100644
--- a/usr/src/lib/libc/port/gen/fmtmsg.c
+++ b/usr/src/lib/libc/port/gen/fmtmsg.c
@@ -18,16 +18,16 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
/*
* fmtmsg.c
@@ -51,9 +51,10 @@
* <stdlib.h> miscellaneous function declarations
*/
-#pragma weak fmtmsg = _fmtmsg
-#pragma weak addseverity = _addseverity
-#include "synonyms.h"
+#pragma weak _fmtmsg = fmtmsg
+#pragma weak _addseverity = addseverity
+
+#include "lint.h"
#include "mtlib.h"
#include "libc.h"
#include <sys/types.h>
@@ -456,7 +457,7 @@ getauxsevs(char *ptr)
*/
if (*(tokend =
- exttok(current, ":")) == ':') {
+ exttok(current, ":")) == ':') {
*tokend = '\0';
leftoff = tokend +
(ptrdiff_t)1;
diff --git a/usr/src/lib/libc/port/gen/ftime.c b/usr/src/lib/libc/port/gen/ftime.c
index fd124995f1..71012abe25 100644
--- a/usr/src/lib/libc/port/gen/ftime.c
+++ b/usr/src/lib/libc/port/gen/ftime.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,8 +18,9 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
@@ -39,7 +39,7 @@
#pragma ident "%Z%%M% %I% %E% SMI"
-#include "synonyms.h"
+#include "lint.h"
#include <sys/types.h>
#include <sys/timeb.h>
diff --git a/usr/src/lib/libc/port/gen/ftok.c b/usr/src/lib/libc/port/gen/ftok.c
index fd73a717b9..8eaeadf53f 100644
--- a/usr/src/lib/libc/port/gen/ftok.c
+++ b/usr/src/lib/libc/port/gen/ftok.c
@@ -18,19 +18,20 @@
*
* CDDL HEADER END
*/
+
/*
* Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
+
+#pragma weak _ftok = ftok
-#pragma weak ftok = _ftok
-#include "synonyms.h"
+#include "lint.h"
#include "libc.h"
#include <sys/types.h>
#include <sys/stat.h>
diff --git a/usr/src/lib/libc/port/gen/ftw.c b/usr/src/lib/libc/port/gen/ftw.c
index 34eade9780..6b7aee9261 100644
--- a/usr/src/lib/libc/port/gen/ftw.c
+++ b/usr/src/lib/libc/port/gen/ftw.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,24 +18,18 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
-#include <sys/feature_tests.h>
+#pragma ident "%Z%%M% %I% %E% SMI"
-#if !defined(_LP64) && _FILE_OFFSET_BITS == 64
-#pragma weak ftw64 = _ftw64
-#define _ftw _ftw64
-#else
-#pragma weak ftw = _ftw
-#endif
+#include <sys/feature_tests.h>
#include "lint.h"
#include <mtlib.h>
@@ -50,8 +43,18 @@
#include <thread.h>
#include <synch.h>
+#if !defined(_LP64) && _FILE_OFFSET_BITS == 64
+#undef ftw
+#undef ftw64
+#define ftw ftw64
+#pragma weak _ftw64 = ftw64
+#else
+#undef ftw
+#pragma weak _ftw = ftw
+#endif
+
int
-_ftw(const char *path, int (*fn)(), int depth)
+ftw(const char *path, int (*fn)(), int depth)
{
return (_xftw(_XFTWVER, path, fn, depth));
}
diff --git a/usr/src/lib/libc/port/gen/gcvt.c b/usr/src/lib/libc/port/gen/gcvt.c
index 81eaa235d4..830884db14 100644
--- a/usr/src/lib/libc/port/gen/gcvt.c
+++ b/usr/src/lib/libc/port/gen/gcvt.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,24 +18,24 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
/*
* gcvt - Floating output conversion to a pleasant-looking string.
*/
-#pragma weak gcvt = _gcvt
+#pragma weak _gcvt = gcvt
-#include "synonyms.h"
+#include "lint.h"
#include <floatingpoint.h>
char *
diff --git a/usr/src/lib/libc/port/gen/getauxv.c b/usr/src/lib/libc/port/gen/getauxv.c
index 270c21f955..500675719c 100644
--- a/usr/src/lib/libc/port/gen/getauxv.c
+++ b/usr/src/lib/libc/port/gen/getauxv.c
@@ -20,13 +20,13 @@
*/
/*
- * Copyright 2007 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
-#include "synonyms.h"
+#include "lint.h"
#include <libc.h>
#include <fcntl.h>
#include <stdlib.h>
diff --git a/usr/src/lib/libc/port/gen/getcwd.c b/usr/src/lib/libc/port/gen/getcwd.c
index aa55033301..d832d798d7 100644
--- a/usr/src/lib/libc/port/gen/getcwd.c
+++ b/usr/src/lib/libc/port/gen/getcwd.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,8 +18,9 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
@@ -31,9 +31,9 @@
* On error, a NULL pointer is returned and errno is set.
*/
-#pragma weak getcwd = _getcwd
+#pragma weak _getcwd = getcwd
-#include "synonyms.h"
+#include "lint.h"
#include <sys/syscall.h>
#include <sys/types.h>
#include <errno.h>
diff --git a/usr/src/lib/libc/port/gen/getdate_err.c b/usr/src/lib/libc/port/gen/getdate_err.c
index 2a3b33adff..08df100fc7 100644
--- a/usr/src/lib/libc/port/gen/getdate_err.c
+++ b/usr/src/lib/libc/port/gen/getdate_err.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,28 +18,30 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
-#pragma weak getdate_err = _getdate_err
+#pragma weak _getdate_err = getdate_err
-#include "synonyms.h"
+#include "lint.h"
#include <mtlib.h>
#include <time.h>
#include <thread.h>
#include <libc.h>
#include "tsd.h"
-int _getdate_err = 0;
+#undef getdate_err
+int getdate_err = 0;
int *
_getdate_err_addr(void)
{
- if (_thr_main())
- return (&_getdate_err);
+ if (thr_main())
+ return (&getdate_err);
return ((int *)tsdalloc(_T_GETDATE_ERR_ADDR, sizeof (int), NULL));
}
diff --git a/usr/src/lib/libc/port/gen/getdtblsize.c b/usr/src/lib/libc/port/gen/getdtblsize.c
index 56958579d2..905d779603 100644
--- a/usr/src/lib/libc/port/gen/getdtblsize.c
+++ b/usr/src/lib/libc/port/gen/getdtblsize.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,10 +18,13 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
- *
+ */
+
+/*
* Copyright (c) 1983, 1984, 1985, 1986, 1987, 1988, 1989 AT&T
* All Rights Reserved
*
@@ -33,7 +35,7 @@
#pragma ident "%Z%%M% %I% %E% SMI"
-#include "synonyms.h"
+#include "lint.h"
#include <sys/time.h>
#include <sys/resource.h>
diff --git a/usr/src/lib/libc/port/gen/getenv.c b/usr/src/lib/libc/port/gen/getenv.c
index 6329a048d8..f9fb28ef72 100644
--- a/usr/src/lib/libc/port/gen/getenv.c
+++ b/usr/src/lib/libc/port/gen/getenv.c
@@ -20,23 +20,19 @@
*/
/*
- * Copyright 2007 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
-#pragma weak putenv = _putenv
-#pragma weak setenv = _setenv
-#pragma weak unsetenv = _unsetenv
+#pragma weak _putenv = putenv
-#include "synonyms.h"
+#include "lint.h"
#include <mtlib.h>
-
#include <sys/types.h>
#include <thread.h>
#include <synch.h>
diff --git a/usr/src/lib/libc/port/gen/getexecname.c b/usr/src/lib/libc/port/gen/getexecname.c
index 879db6fbd9..51bb81e49b 100644
--- a/usr/src/lib/libc/port/gen/getexecname.c
+++ b/usr/src/lib/libc/port/gen/getexecname.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,18 +18,17 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
-/*LINTLIBRARY*/
-
-#pragma weak getexecname = _getexecname
-#include "synonyms.h"
+#pragma weak _getexecname = getexecname
+#include "lint.h"
#include <stdlib.h>
#include <unistd.h>
#include <sys/types.h>
diff --git a/usr/src/lib/libc/port/gen/getgrnam.c b/usr/src/lib/libc/port/gen/getgrnam.c
index 5080bd2ac0..1d907976f3 100644
--- a/usr/src/lib/libc/port/gen/getgrnam.c
+++ b/usr/src/lib/libc/port/gen/getgrnam.c
@@ -18,25 +18,21 @@
*
* CDDL HEADER END
*/
+
/*
* Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
-/* 3.0 SID # 1.2 */
-
-#pragma weak getgrnam = _getgrnam
-#pragma weak getgrgid = _getgrgid
-#pragma weak getgrent = _getgrent
-#pragma weak fgetgrent = _fgetgrent
+#pragma weak _getgrnam = getgrnam
+#pragma weak _getgrgid = getgrgid
-#include "synonyms.h"
+#include "lint.h"
#include <sys/types.h>
#include <grp.h>
#include <nss_dbdefs.h>
diff --git a/usr/src/lib/libc/port/gen/getgrnam_r.c b/usr/src/lib/libc/port/gen/getgrnam_r.c
index ab41c50bac..52e1b6d0e7 100644
--- a/usr/src/lib/libc/port/gen/getgrnam_r.c
+++ b/usr/src/lib/libc/port/gen/getgrnam_r.c
@@ -20,21 +20,13 @@
*/
/*
- * Copyright 2007 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
-#pragma weak endgrent = _endgrent
-#pragma weak setgrent = _setgrent
-
-#pragma weak getgrnam_r = _getgrnam_r
-#pragma weak getgrgid_r = _getgrgid_r
-#pragma weak getgrent_r = _getgrent_r
-#pragma weak fgetgrent_r = _fgetgrent_r
-
-#include "synonyms.h"
+#include "lint.h"
#include <mtlib.h>
#include <sys/types.h>
#include <grp.h>
@@ -79,7 +71,7 @@ _uncached_getgrgid_r(gid_t gid, struct group *result, char *buffer, int buflen);
* It was implemented by Solaris 2.3.
*/
struct group *
-_getgrnam_r(const char *name, struct group *result, char *buffer, int buflen)
+getgrnam_r(const char *name, struct group *result, char *buffer, int buflen)
{
nss_XbyY_args_t arg;
@@ -90,7 +82,7 @@ _getgrnam_r(const char *name, struct group *result, char *buffer, int buflen)
NSS_XbyY_INIT(&arg, result, buffer, buflen, str2group);
arg.key.name = name;
(void) nss_search(&db_root, _nss_initf_group,
- NSS_DBOP_GROUP_BYNAME, &arg);
+ NSS_DBOP_GROUP_BYNAME, &arg);
return ((struct group *)NSS_XbyY_FINI(&arg));
}
@@ -99,14 +91,14 @@ _getgrnam_r(const char *name, struct group *result, char *buffer, int buflen)
* It was implemented by Solaris 2.3.
*/
struct group *
-_getgrgid_r(gid_t gid, struct group *result, char *buffer, int buflen)
+getgrgid_r(gid_t gid, struct group *result, char *buffer, int buflen)
{
nss_XbyY_args_t arg;
NSS_XbyY_INIT(&arg, result, buffer, buflen, str2group);
arg.key.gid = gid;
(void) nss_search(&db_root, _nss_initf_group,
- NSS_DBOP_GROUP_BYGID, &arg);
+ NSS_DBOP_GROUP_BYGID, &arg);
return ((struct group *)NSS_XbyY_FINI(&arg));
}
@@ -119,7 +111,7 @@ _uncached_getgrgid_r(gid_t gid, struct group *result, char *buffer,
NSS_XbyY_INIT(&arg, result, buffer, buflen, str2group);
arg.key.gid = gid;
(void) nss_search(&db_root, _nss_initf_group,
- NSS_DBOP_GROUP_BYGID, &arg);
+ NSS_DBOP_GROUP_BYGID, &arg);
return ((struct group *)NSS_XbyY_FINI(&arg));
}
@@ -135,18 +127,14 @@ __posix_getgrgid_r(gid_t gid, struct group *grp, char *buffer,
int oerrno = errno;
errno = 0;
- if ((*result = _getgrgid_r(gid, grp, buffer, (uintptr_t)bufsize))
- == NULL) {
+ if ((*result = getgrgid_r(gid, grp, buffer, (uintptr_t)bufsize))
+ == NULL) {
nerrno = errno;
}
errno = oerrno;
return (nerrno);
}
-extern struct group *
-_getgrnam_r(const char *name, struct group *result, char *buffer,
- int buflen);
-
struct group *
_uncached_getgrnam_r(const char *name, struct group *result, char *buffer,
int buflen)
@@ -156,7 +144,7 @@ _uncached_getgrnam_r(const char *name, struct group *result, char *buffer,
NSS_XbyY_INIT(&arg, result, buffer, buflen, str2group);
arg.key.name = name;
(void) nss_search(&db_root, _nss_initf_group,
- NSS_DBOP_GROUP_BYNAME, &arg);
+ NSS_DBOP_GROUP_BYNAME, &arg);
return ((struct group *)NSS_XbyY_FINI(&arg));
}
@@ -171,8 +159,8 @@ __posix_getgrnam_r(const char *name, struct group *grp, char *buffer,
int nerrno = 0;
int oerrno = errno;
- if ((*result = _getgrnam_r(name, grp, buffer, (uintptr_t)bufsize))
- == NULL) {
+ if ((*result = getgrnam_r(name, grp, buffer, (uintptr_t)bufsize))
+ == NULL) {
nerrno = errno;
}
errno = oerrno;
@@ -205,8 +193,8 @@ getgrent_r(struct group *result, char *buffer, int buflen)
/* No key to fill in */
(void) nss_getent(&db_root, _nss_initf_group, &context, &arg);
} while (arg.returnval != 0 &&
- (nam = ((struct group *)arg.returnval)->gr_name) != 0 &&
- (*nam == '+' || *nam == '-'));
+ (nam = ((struct group *)arg.returnval)->gr_name) != 0 &&
+ (*nam == '+' || *nam == '-'));
return ((struct group *)NSS_XbyY_FINI(&arg));
}
@@ -289,7 +277,7 @@ _getgroupsbymember(const char *username, gid_t gid_array[],
}
(void) nss_search(&db_root, _nss_initf_group,
- NSS_DBOP_GROUP_BYMEMBER, &arg);
+ NSS_DBOP_GROUP_BYMEMBER, &arg);
return (arg.numgids);
}
@@ -445,7 +433,7 @@ process_cstr(const char *instr, int instr_len, struct nss_groupsbymem *gbm)
grp = (struct group *)buf->result;
parsestat = (*gbm->str2ent)(instr, instr_len,
- grp, buf->buffer, buf->buflen);
+ grp, buf->buffer, buf->buflen);
if (parsestat != NSS_STR_PARSE_SUCCESS) {
_nss_XbyY_buf_free(buf);
@@ -454,7 +442,7 @@ process_cstr(const char *instr, int instr_len, struct nss_groupsbymem *gbm)
if (grp->gr_mem) {
for (memp = grp->gr_mem; (memp) && ((mem = *memp) != 0);
- memp++) {
+ memp++) {
if (strcmp(mem, username) == 0) {
gid_t gid = grp->gr_gid;
gid_t *gidp = gbm->gid_array;
@@ -464,7 +452,7 @@ process_cstr(const char *instr, int instr_len, struct nss_groupsbymem *gbm)
_nss_XbyY_buf_free(buf);
for (i = 0; i < numgids && *gidp != gid; i++,
- gidp++) {
+ gidp++) {
;
}
if (i >= numgids) {
diff --git a/usr/src/lib/libc/port/gen/gethostid.c b/usr/src/lib/libc/port/gen/gethostid.c
index 7f22539f94..3cf2a3eeab 100644
--- a/usr/src/lib/libc/port/gen/gethostid.c
+++ b/usr/src/lib/libc/port/gen/gethostid.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,8 +18,9 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
@@ -34,7 +34,7 @@
#pragma ident "%Z%%M% %I% %E% SMI"
-#include "synonyms.h"
+#include "lint.h"
#include <sys/types.h>
#include <sys/systeminfo.h>
#include <stdlib.h>
diff --git a/usr/src/lib/libc/port/gen/gethostname.c b/usr/src/lib/libc/port/gen/gethostname.c
index d16b21431c..6484d79afc 100644
--- a/usr/src/lib/libc/port/gen/gethostname.c
+++ b/usr/src/lib/libc/port/gen/gethostname.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,8 +18,9 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
@@ -34,7 +34,7 @@
#pragma ident "%Z%%M% %I% %E% SMI"
-#include "synonyms.h"
+#include "lint.h"
#include <sys/types.h>
#include <sys/systeminfo.h>
diff --git a/usr/src/lib/libc/port/gen/gethz.c b/usr/src/lib/libc/port/gen/gethz.c
index b44d282a4d..9579d5bcd3 100644
--- a/usr/src/lib/libc/port/gen/gethz.c
+++ b/usr/src/lib/libc/port/gen/gethz.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,20 +18,20 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
-#pragma weak gethz = _gethz
+#pragma weak _gethz = gethz
-#include "synonyms.h"
+#include "lint.h"
#include <stdio.h>
#include <ctype.h>
#include <stdlib.h>
diff --git a/usr/src/lib/libc/port/gen/getisax.c b/usr/src/lib/libc/port/gen/getisax.c
index 17d426d80e..db0d171412 100644
--- a/usr/src/lib/libc/port/gen/getisax.c
+++ b/usr/src/lib/libc/port/gen/getisax.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,18 +18,17 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
-/*LINTLIBRARY*/
-
-#pragma weak getisax = _getisax
-#include "synonyms.h"
+#pragma weak _getisax = getisax
+#include "lint.h"
#include <sys/types.h>
#include <sys/auxv.h>
diff --git a/usr/src/lib/libc/port/gen/getloadavg.c b/usr/src/lib/libc/port/gen/getloadavg.c
index cdba031256..a230e34c1e 100644
--- a/usr/src/lib/libc/port/gen/getloadavg.c
+++ b/usr/src/lib/libc/port/gen/getloadavg.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,22 +18,20 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
-#pragma weak getloadavg = _getloadavg
+#pragma weak _getloadavg = getloadavg
-#include "synonyms.h"
+#include "lint.h"
#include <sys/types.h>
#include <sys/param.h>
-#include <sys/syscall.h>
#include <sys/loadavg.h>
-#include <stdio.h>
-#include <stdlib.h>
/*
* getloadavg -- get the time averaged run queues from the system
@@ -42,6 +39,8 @@
int
getloadavg(double loadavg[], int nelem)
{
+ extern int __getloadavg(int *buf, int nelem);
+
int i, buf[LOADAVG_NSTATS];
if (nelem > LOADAVG_NSTATS)
diff --git a/usr/src/lib/libc/port/gen/getlogin.c b/usr/src/lib/libc/port/gen/getlogin.c
index 58c5b1f483..a3d7b4cf3b 100644
--- a/usr/src/lib/libc/port/gen/getlogin.c
+++ b/usr/src/lib/libc/port/gen/getlogin.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,21 +18,21 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
-#pragma weak getlogin = _getlogin
-#pragma weak getlogin_r = _getlogin_r
+#pragma weak _getlogin = getlogin
+#pragma weak _getlogin_r = getlogin_r
-#include "synonyms.h"
+#include "lint.h"
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
@@ -59,7 +58,7 @@
* It was implemented by Solaris 2.3.
*/
char *
-_getlogin_r(char *answer, int namelen)
+getlogin_r(char *answer, int namelen)
{
int uf;
off64_t me;
@@ -99,7 +98,7 @@ __posix_getlogin_r(char *name, int namelen)
int oerrno = errno;
errno = 0;
- if (_getlogin_r(name, namelen) == NULL) {
+ if (getlogin_r(name, namelen) == NULL) {
if (errno == 0)
nerrno = EINVAL;
else
@@ -116,5 +115,5 @@ getlogin(void)
if (answer == NULL)
return (NULL);
- return (_getlogin_r(answer, _POSIX_LOGIN_NAME_MAX));
+ return (getlogin_r(answer, _POSIX_LOGIN_NAME_MAX));
}
diff --git a/usr/src/lib/libc/port/gen/getmntent.c b/usr/src/lib/libc/port/gen/getmntent.c
index eba9c4de10..94e2d0cc84 100644
--- a/usr/src/lib/libc/port/gen/getmntent.c
+++ b/usr/src/lib/libc/port/gen/getmntent.c
@@ -20,23 +20,16 @@
*/
/*
- * Copyright 2007 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
-#pragma weak getmntany = _getmntany
-#pragma weak getmntent = _getmntent
-#pragma weak getextmntent = _getextmntent
-#pragma weak resetmnttab = _resetmnttab
-#pragma weak hasmntopt = _hasmntopt
-
-#include "synonyms.h"
+#include "lint.h"
#include <mtlib.h>
#include <stdio.h>
#include <sys/types.h>
diff --git a/usr/src/lib/libc/port/gen/getnetgrent.c b/usr/src/lib/libc/port/gen/getnetgrent.c
index 8a8e7373c2..f201250de6 100644
--- a/usr/src/lib/libc/port/gen/getnetgrent.c
+++ b/usr/src/lib/libc/port/gen/getnetgrent.c
@@ -20,7 +20,7 @@
*/
/*
- * Copyright 2007 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
@@ -47,7 +47,7 @@
* count of zero.
*/
-#include "synonyms.h"
+#include "lint.h"
#include <string.h>
#include <synch.h>
#include <nss_dbdefs.h>
diff --git a/usr/src/lib/libc/port/gen/getopt.c b/usr/src/lib/libc/port/gen/getopt.c
index e2cb47c5d2..5e3e3e23eb 100644
--- a/usr/src/lib/libc/port/gen/getopt.c
+++ b/usr/src/lib/libc/port/gen/getopt.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,15 +18,16 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
/*
* See getopt(3C) and SUS/XPG getopt() for function definition and
@@ -39,9 +39,9 @@
* alnum characters ([a-z][A-Z][0-9]).
*/
-#pragma weak getopt = _getopt
+#pragma weak _getopt = getopt
-#include "synonyms.h"
+#include "lint.h"
#include "_libc_gettext.h"
#include <unistd.h>
@@ -149,10 +149,10 @@ parselong(const char *optstring, const char *opt, char **longoptarg)
if (match && *ip == ')' &&
(*op == '\0' || *op == '=')) {
if ((*op) == '=') {
- /* may be an empty string - OK */
- (*longoptarg) = op + 1;
+ /* may be an empty string - OK */
+ (*longoptarg) = op + 1;
} else {
- (*longoptarg) = NULL;
+ (*longoptarg) = NULL;
}
return (cp);
}
@@ -166,7 +166,7 @@ parselong(const char *optstring, const char *opt, char **longoptarg)
* required argument.
*/
while ((cp > optstring) && ((*cp) == ':')) {
- --cp;
+ --cp;
}
} while (*cp != '\0');
return (NULL);
@@ -230,7 +230,6 @@ getopt(int argc, char *const *argv, const char *optstring)
if (!(longopt ?
((cp = parselong(optstring, argv[optind]+2, &longoptarg)) != NULL) :
((cp = parseshort(optstring, c)) != NULL))) {
- /* LINTED: variable format specifier */
ERR(_libc_gettext("%s: illegal option -- %s\n"),
c, (longopt ? optind : 0));
/*
@@ -281,7 +280,6 @@ getopt(int argc, char *const *argv, const char *optstring)
optind++;
optarg = longoptarg;
} else if (++optind >= argc) {
- /* LINTED: variable format specifier */
ERR(_libc_gettext("%s: option requires an argument" \
" -- %s\n"), c, (longopt ? optind - 1 : 0));
_sp = 1;
@@ -293,13 +291,12 @@ getopt(int argc, char *const *argv, const char *optstring)
} else {
/* The option does NOT take an argument */
if (longopt && (longoptarg != NULL)) {
- /* User supplied an arg to an option that takes none */
- /* LINTED: variable format specifier */
- ERR(_libc_gettext(
- "%s: option doesn't take an argument -- %s\n"),
- 0, (longopt ? optind : 0));
- optarg = longoptarg = NULL;
- c = '?';
+ /* User supplied an arg to an option that takes none */
+ ERR(_libc_gettext(
+ "%s: option doesn't take an argument -- %s\n"),
+ 0, (longopt ? optind : 0));
+ optarg = longoptarg = NULL;
+ c = '?';
}
if (longopt || argv[optind][++_sp] == '\0') {
diff --git a/usr/src/lib/libc/port/gen/getopt_long.c b/usr/src/lib/libc/port/gen/getopt_long.c
index 1db2f1f150..ca55a7870b 100644
--- a/usr/src/lib/libc/port/gen/getopt_long.c
+++ b/usr/src/lib/libc/port/gen/getopt_long.c
@@ -1,10 +1,8 @@
/*
- * Copyright 2007 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/*
* Copyright (c) 2002 Todd C. Miller <Todd.Miller@courtesan.com>
* All rights reserved.
@@ -67,18 +65,19 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
-#pragma weak getopt_clip = _getopt_clip
-#pragma weak getopt_long = _getopt_long
-#pragma weak getopt_long_only = _getopt_long_only
+#pragma ident "%Z%%M% %I% %E% SMI"
-#include "synonyms.h"
+#pragma weak _getopt_clip = getopt_clip
+#pragma weak _getopt_long = getopt_long
+#pragma weak _getopt_long_only = getopt_long_only
+
+#include "lint.h"
#include <getopt.h>
#include <stdio.h>
#include <errno.h>
#include <unistd.h>
#include <stdlib.h>
#include <string.h>
-
#include "_libc_gettext.h"
static int optreset = 0; /* keep track of first entry to getopt() */
diff --git a/usr/src/lib/libc/port/gen/getpagesize.c b/usr/src/lib/libc/port/gen/getpagesize.c
index ffc9c01f2f..c63ffc663b 100644
--- a/usr/src/lib/libc/port/gen/getpagesize.c
+++ b/usr/src/lib/libc/port/gen/getpagesize.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,10 +18,13 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
- *
+ */
+
+/*
* Copyright (c) 1983, 1984, 1985, 1986, 1987, 1988, 1989 AT&T
* All Rights Reserved
*
@@ -33,7 +35,7 @@
#pragma ident "%Z%%M% %I% %E% SMI"
-#include "synonyms.h"
+#include "lint.h"
#include <unistd.h>
/*
diff --git a/usr/src/lib/libc/port/gen/getpw.c b/usr/src/lib/libc/port/gen/getpw.c
index 9155894497..629312f91e 100644
--- a/usr/src/lib/libc/port/gen/getpw.c
+++ b/usr/src/lib/libc/port/gen/getpw.c
@@ -18,21 +18,18 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
-/* 3.0 SID # 1.2 */
-#pragma weak getpw = _getpw
-
-#include "synonyms.h"
+#include "lint.h"
#include "file64.h"
#include <sys/types.h>
#include <mtlib.h>
diff --git a/usr/src/lib/libc/port/gen/getpwnam.c b/usr/src/lib/libc/port/gen/getpwnam.c
index 7a3b8c4b37..d04d63190a 100644
--- a/usr/src/lib/libc/port/gen/getpwnam.c
+++ b/usr/src/lib/libc/port/gen/getpwnam.c
@@ -18,23 +18,21 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
-#pragma weak getpwnam = _getpwnam
-#pragma weak getpwuid = _getpwuid
-#pragma weak getpwent = _getpwent
-#pragma weak fgetpwent = _fgetpwent
+#pragma weak _getpwnam = getpwnam
+#pragma weak _getpwuid = getpwuid
-#include "synonyms.h"
+#include "lint.h"
#include <sys/types.h>
#include <pwd.h>
#include <nss_dbdefs.h>
diff --git a/usr/src/lib/libc/port/gen/getpwnam_r.c b/usr/src/lib/libc/port/gen/getpwnam_r.c
index 21d1c3c7e5..7ff4d21f0d 100644
--- a/usr/src/lib/libc/port/gen/getpwnam_r.c
+++ b/usr/src/lib/libc/port/gen/getpwnam_r.c
@@ -18,21 +18,15 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2007 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
-#pragma weak endpwent = _endpwent
-#pragma weak setpwent = _setpwent
-#pragma weak getpwnam_r = _getpwnam_r
-#pragma weak getpwuid_r = _getpwuid_r
-#pragma weak getpwent_r = _getpwent_r
-#pragma weak fgetpwent_r = _fgetpwent_r
-
-#include "synonyms.h"
+#include "lint.h"
#include <sys/types.h>
#include <pwd.h>
#include <nss_dbdefs.h>
@@ -71,7 +65,7 @@ _uncached_getpwnam_r(const char *name, struct passwd *result, char *buffer,
* It was implemented by Solaris 2.3.
*/
struct passwd *
-_getpwnam_r(const char *name, struct passwd *result, char *buffer, int buflen)
+getpwnam_r(const char *name, struct passwd *result, char *buffer, int buflen)
{
nss_XbyY_args_t arg;
@@ -82,7 +76,7 @@ _getpwnam_r(const char *name, struct passwd *result, char *buffer, int buflen)
NSS_XbyY_INIT(&arg, result, buffer, buflen, str2passwd);
arg.key.name = name;
(void) nss_search(&db_root, _nss_initf_passwd, NSS_DBOP_PASSWD_BYNAME,
- &arg);
+ &arg);
return ((struct passwd *)NSS_XbyY_FINI(&arg));
}
@@ -91,14 +85,14 @@ _getpwnam_r(const char *name, struct passwd *result, char *buffer, int buflen)
* It was implemented by Solaris 2.3.
*/
struct passwd *
-_getpwuid_r(uid_t uid, struct passwd *result, char *buffer, int buflen)
+getpwuid_r(uid_t uid, struct passwd *result, char *buffer, int buflen)
{
nss_XbyY_args_t arg;
NSS_XbyY_INIT(&arg, result, buffer, buflen, str2passwd);
arg.key.uid = uid;
(void) nss_search(&db_root, _nss_initf_passwd, NSS_DBOP_PASSWD_BYUID,
- &arg);
+ &arg);
return ((struct passwd *)NSS_XbyY_FINI(&arg));
}
@@ -112,7 +106,7 @@ _uncached_getpwuid_r(uid_t uid, struct passwd *result, char *buffer,
NSS_XbyY_INIT(&arg, result, buffer, buflen, str2passwd);
arg.key.uid = uid;
(void) nss_search(&db_root, _nss_initf_passwd, NSS_DBOP_PASSWD_BYUID,
- &arg);
+ &arg);
return ((struct passwd *)NSS_XbyY_FINI(&arg));
}
@@ -129,8 +123,8 @@ __posix_getpwuid_r(uid_t uid, struct passwd *pwd, char *buffer,
int oerrno = errno;
errno = 0;
- if ((*result = _getpwuid_r(uid, pwd, buffer, (uintptr_t)bufsize))
- == NULL) {
+ if ((*result = getpwuid_r(uid, pwd, buffer, (uintptr_t)bufsize))
+ == NULL) {
nerrno = errno;
}
errno = oerrno;
@@ -146,7 +140,7 @@ _uncached_getpwnam_r(const char *name, struct passwd *result, char *buffer,
NSS_XbyY_INIT(&arg, result, buffer, buflen, str2passwd);
arg.key.name = name;
(void) nss_search(&db_root, _nss_initf_passwd, NSS_DBOP_PASSWD_BYNAME,
- &arg);
+ &arg);
return ((struct passwd *)NSS_XbyY_FINI(&arg));
}
@@ -162,8 +156,8 @@ __posix_getpwnam_r(const char *name, struct passwd *pwd, char *buffer,
int oerrno = errno;
errno = 0;
- if ((*result = _getpwnam_r(name, pwd, buffer, (uintptr_t)bufsize))
- == NULL) {
+ if ((*result = getpwnam_r(name, pwd, buffer, (uintptr_t)bufsize))
+ == NULL) {
nerrno = errno;
}
errno = oerrno;
@@ -197,7 +191,7 @@ getpwent_r(struct passwd *result, char *buffer, int buflen)
(void) nss_getent(&db_root, _nss_initf_passwd, &context, &arg);
} while (arg.returnval != 0 &&
(nam = ((struct passwd *)arg.returnval)->pw_name) != 0 &&
- (*nam == '+' || *nam == '-'));
+ (*nam == '+' || *nam == '-'));
return ((struct passwd *)NSS_XbyY_FINI(&arg));
}
diff --git a/usr/src/lib/libc/port/gen/getrusage.c b/usr/src/lib/libc/port/gen/getrusage.c
index efeaf0be24..cb0fb3f695 100644
--- a/usr/src/lib/libc/port/gen/getrusage.c
+++ b/usr/src/lib/libc/port/gen/getrusage.c
@@ -18,8 +18,9 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
@@ -33,14 +34,13 @@
#pragma ident "%Z%%M% %I% %E% SMI"
-#include "synonyms.h"
-
/*
* Compatibility lib for BSD's getrusgae(). Only the
* CPU time usage is supported for RUSAGE_CHILDREN, and hence does not
* fully support BSD's rusage semantics.
*/
+#include "lint.h"
#include <sys/types.h>
#include <sys/time.h>
#include <sys/times.h>
diff --git a/usr/src/lib/libc/port/gen/getspent.c b/usr/src/lib/libc/port/gen/getspent.c
index cb1472dce1..044c19b9c9 100644
--- a/usr/src/lib/libc/port/gen/getspent.c
+++ b/usr/src/lib/libc/port/gen/getspent.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,23 +18,18 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
-#pragma weak getspent = _getspent
-#pragma weak getspnam = _getspnam
-#pragma weak fgetspent = _fgetspent
- /* putspent() has been moved to putspent.c */
-
-#include "synonyms.h"
+#include "lint.h"
#include <sys/types.h>
#include <shadow.h>
#include <nss_dbdefs.h>
diff --git a/usr/src/lib/libc/port/gen/getspent_r.c b/usr/src/lib/libc/port/gen/getspent_r.c
index 78c42b7b62..d1edf7e9be 100644
--- a/usr/src/lib/libc/port/gen/getspent_r.c
+++ b/usr/src/lib/libc/port/gen/getspent_r.c
@@ -18,20 +18,15 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
-#pragma weak setspent = _setspent
-#pragma weak endspent = _endspent
-#pragma weak getspnam_r = _getspnam_r
-#pragma weak getspent_r = _getspent_r
-#pragma weak fgetspent_r = _fgetspent_r
-
-#include "synonyms.h"
+#include "lint.h"
#include <mtlib.h>
#include <sys/types.h>
#include <shadow.h>
@@ -62,8 +57,8 @@ getspnam_r(const char *name, struct spwd *result, char *buffer, int buflen)
NSS_XbyY_INIT(&arg, result, buffer, buflen, str2spwd);
arg.key.name = name;
- (void) nss_search(&db_root, _nss_initf_shadow, \
- NSS_DBOP_SHADOW_BYNAME, &arg);
+ (void) nss_search(&db_root, _nss_initf_shadow,
+ NSS_DBOP_SHADOW_BYNAME, &arg);
return ((struct spwd *)NSS_XbyY_FINI(&arg));
}
@@ -93,8 +88,8 @@ getspent_r(struct spwd *result, char *buffer, int buflen)
/* No key to fill in */
(void) nss_getent(&db_root, _nss_initf_shadow, &context, &arg);
} while (arg.returnval != 0 &&
- (nam = ((struct spwd *)arg.returnval)->sp_namp) != 0 &&
- (*nam == '+' || *nam == '-'));
+ (nam = ((struct spwd *)arg.returnval)->sp_namp) != 0 &&
+ (*nam == '+' || *nam == '-'));
return (struct spwd *)NSS_XbyY_FINI(&arg);
}
@@ -192,8 +187,8 @@ str2spwd(const char *instr, int lenstr, void *ent, char *buffer, int buflen)
limit = p + lenstr;
if ((p = memchr(instr, ':', lenstr)) == 0 ||
- ++p >= limit ||
- (p = memchr(p, ':', limit - p)) == 0) {
+ ++p >= limit ||
+ (p = memchr(p, ':', limit - p)) == 0) {
lencopy = (size_t)lenstr;
p = 0;
} else {
diff --git a/usr/src/lib/libc/port/gen/getsubopt.c b/usr/src/lib/libc/port/gen/getsubopt.c
index e1516b7de0..466319b718 100644
--- a/usr/src/lib/libc/port/gen/getsubopt.c
+++ b/usr/src/lib/libc/port/gen/getsubopt.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,8 +18,9 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
@@ -32,9 +32,9 @@
/*
* getsubopt - parse suboptions from a flag argument.
*/
-#pragma weak getsubopt = _getsubopt
+#pragma weak _getsubopt = getsubopt
-#include "synonyms.h"
+#include "lint.h"
#include <sys/types.h>
#include <string.h>
#include <stdlib.h>
diff --git a/usr/src/lib/libc/port/gen/gettxt.c b/usr/src/lib/libc/port/gen/gettxt.c
index 2399f92f89..88e0b5b72c 100644
--- a/usr/src/lib/libc/port/gen/gettxt.c
+++ b/usr/src/lib/libc/port/gen/gettxt.c
@@ -20,19 +20,18 @@
*/
/*
- * Copyright 2007 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
-#pragma weak gettxt = _gettxt
+#pragma weak _gettxt = gettxt
-#include "synonyms.h"
+#include "lint.h"
#include "libc.h"
#include <mtlib.h>
#include <ctype.h>
diff --git a/usr/src/lib/libc/port/gen/getusershell.c b/usr/src/lib/libc/port/gen/getusershell.c
index a8fb5d97e5..368fa72a61 100644
--- a/usr/src/lib/libc/port/gen/getusershell.c
+++ b/usr/src/lib/libc/port/gen/getusershell.c
@@ -1,21 +1,20 @@
/*
- * Copyright 2007 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
/* All Rights Reserved */
-
/*
* Copyright (c) 1985 Regents of the University of California.
* All rights reserved. The Berkeley software License Agreement
* specifies the terms and conditions for redistribution.
*/
-#include "synonyms.h"
+#pragma ident "%Z%%M% %I% %E% SMI"
+
+#include "lint.h"
#include <sys/types.h>
#include <sys/param.h>
#include <sys/stat.h>
diff --git a/usr/src/lib/libc/port/gen/getut.c b/usr/src/lib/libc/port/gen/getut.c
index e60a041b23..798e6d69d0 100644
--- a/usr/src/lib/libc/port/gen/getut.c
+++ b/usr/src/lib/libc/port/gen/getut.c
@@ -18,16 +18,16 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
/*
* Compatibility routines to read and write alternate
@@ -40,7 +40,7 @@
* equivalent function operating on utmpx-like files.
*/
-#include "synonyms.h"
+#include "lint.h"
#include <stdio.h>
#include <sys/param.h>
#include <sys/types.h>
diff --git a/usr/src/lib/libc/port/gen/getutx.c b/usr/src/lib/libc/port/gen/getutx.c
index fe0da52342..c755b12266 100644
--- a/usr/src/lib/libc/port/gen/getutx.c
+++ b/usr/src/lib/libc/port/gen/getutx.c
@@ -45,30 +45,7 @@
* on systems with MAXPID <= SHRT_MAX.
*/
-#pragma weak getutxent = _getutxent
-#pragma weak getutent = _getutent
-#pragma weak getutxid = _getutxid
-#pragma weak getutid = _getutid
-#pragma weak getutxline = _getutxline
-#pragma weak getutline = _getutline
-#pragma weak getutmpx = _getutmpx
-#pragma weak getutmp = _getutmp
-#pragma weak makeutx = _makeutx
-#pragma weak makeut = _makeut
-#pragma weak modutx = _modutx
-#pragma weak modut = _modut
-#pragma weak pututxline = _pututxline
-#pragma weak pututline = _pututline
-#pragma weak setutxent = _setutxent
-#pragma weak setutent = _setutent
-#pragma weak endutxent = _endutxent
-#pragma weak endutent = _endutent
-#pragma weak utmpxname = _utmpxname
-#pragma weak utmpname = _utmpname
-#pragma weak updwtmpx = _updwtmpx
-#pragma weak updwtmp = _updwtmp
-
-#include "synonyms.h"
+#include "lint.h"
#include <sys/types.h>
#include <stdio.h>
#include <sys/param.h>
diff --git a/usr/src/lib/libc/port/gen/getvfsent.c b/usr/src/lib/libc/port/gen/getvfsent.c
index 4de8f7574d..bf6cf11c1a 100644
--- a/usr/src/lib/libc/port/gen/getvfsent.c
+++ b/usr/src/lib/libc/port/gen/getvfsent.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,23 +18,18 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
-#pragma weak getvfsspec = _getvfsspec
-#pragma weak getvfsfile = _getvfsfile
-#pragma weak getvfsany = _getvfsany
-#pragma weak getvfsent = _getvfsent
-
-#include "synonyms.h"
+#include "lint.h"
#include <mtlib.h>
#include <stdio.h>
#include <stdlib.h>
diff --git a/usr/src/lib/libc/port/gen/getwd.c b/usr/src/lib/libc/port/gen/getwd.c
index 9474e9a82f..6b6baf82c6 100644
--- a/usr/src/lib/libc/port/gen/getwd.c
+++ b/usr/src/lib/libc/port/gen/getwd.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,15 +18,15 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
-#include "synonyms.h"
-
+#include "lint.h"
#include <sys/types.h>
#include <sys/param.h>
#include <errno.h>
@@ -49,7 +48,7 @@ getwd(char *pathname)
if ((c = getcwd(pathname, val)) == NULL) {
if (errno == EACCES)
(void) strcpy(pathname,
- "getwd: a parent directory cannot be read");
+ "getwd: a parent directory cannot be read");
else if (errno == ERANGE)
(void) strcpy(pathname, "getwd: buffer too small");
else
diff --git a/usr/src/lib/libc/port/gen/getwidth.c b/usr/src/lib/libc/port/gen/getwidth.c
index 0e74f74fce..fe91801a5b 100644
--- a/usr/src/lib/libc/port/gen/getwidth.c
+++ b/usr/src/lib/libc/port/gen/getwidth.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,18 +18,18 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
-#include "synonyms.h"
+#include "lint.h"
#include <sys/types.h>
#include <ctype.h>
#include <stdlib.h>
diff --git a/usr/src/lib/libc/port/gen/getxby_door.c b/usr/src/lib/libc/port/gen/getxby_door.c
index c30ad8c231..e98bf317ef 100644
--- a/usr/src/lib/libc/port/gen/getxby_door.c
+++ b/usr/src/lib/libc/port/gen/getxby_door.c
@@ -26,7 +26,7 @@
#pragma ident "%Z%%M% %I% %E% SMI"
-#include "synonyms.h"
+#include "lint.h"
#include <mtlib.h>
#include <sys/types.h>
#include <errno.h>
diff --git a/usr/src/lib/libc/port/gen/gtxt.c b/usr/src/lib/libc/port/gen/gtxt.c
index 145743bdd8..80936415dc 100644
--- a/usr/src/lib/libc/port/gen/gtxt.c
+++ b/usr/src/lib/libc/port/gen/gtxt.c
@@ -18,22 +18,22 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2007 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
/* __gtxt(): Common part to gettxt() and pfmt() */
-#pragma weak setcat = _setcat
+#pragma weak _setcat = setcat
-#include "synonyms.h"
+#include "lint.h"
#include "libc.h"
#include <mtlib.h>
#include <sys/types.h>
diff --git a/usr/src/lib/libc/port/gen/hsearch.c b/usr/src/lib/libc/port/gen/hsearch.c
index 2773b48809..6a04ae0743 100644
--- a/usr/src/lib/libc/port/gen/hsearch.c
+++ b/usr/src/lib/libc/port/gen/hsearch.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,16 +18,16 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
-/* All Rights Reserved */
+/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
/*
* Compile time switches:
@@ -46,11 +45,11 @@
* USCR - user supplied comparison routine.
*/
-#pragma weak hcreate = _hcreate
-#pragma weak hdestroy = _hdestroy
-#pragma weak hsearch = _hsearch
+#pragma weak _hcreate = hcreate
+#pragma weak _hdestroy = hdestroy
+#pragma weak _hsearch = hsearch
-#include "synonyms.h"
+#include "lint.h"
#include <mtlib.h>
#include <limits.h>
#include <stdio.h>
@@ -172,29 +171,29 @@ start:
#endif
new = (ENTRY *) malloc(sizeof (ENTRY));
if (new == NULL) {
- fprintf(stderr, "Out of core \n");
- exit(FAIL);
- } else {
- new->key = malloc((unsigned)strlen(line) + 1);
- if (new->key == NULL) {
fprintf(stderr, "Out of core \n");
exit(FAIL);
- }
- strcpy(new->key, line);
- new->data = malloc(sizeof (int));
- if (new->data == NULL) {
- fprintf(stderr, "Out of core \n");
- exit(FAIL);
- }
- *new->data = i++;
+ } else {
+ new->key = malloc((unsigned)strlen(line) + 1);
+ if (new->key == NULL) {
+ fprintf(stderr, "Out of core \n");
+ exit(FAIL);
+ }
+ strcpy(new->key, line);
+ new->data = malloc(sizeof (int));
+ if (new->data == NULL) {
+ fprintf(stderr, "Out of core \n");
+ exit(FAIL);
+ }
+ *new->data = i++;
}
res = hsearch(*new, ENTER);
printf("The number of probes required was %d\n", prcnt);
if (res == (ENTRY *) 0)
- printf("Table is full\n");
+ printf("Table is full\n");
else {
- printf("Success: ");
- printf("Key = %s, Value = %d\n", res->key, *res->data);
+ printf("Success: ");
+ printf("Key = %s, Value = %d\n", res->key, *res->data);
}
}
printf("Do you wish to start another hash table (yes/no?)");
@@ -556,19 +555,19 @@ hdump() /* Dumps loc, data, probe count, key */
hsearch(table[i], FIND);
sum += prcnt;
printf("%o.\t%d,\t%d,\t%s\n", i,
- *table[i].data, prcnt, table[i].key);
+ *table[i].data, prcnt, table[i].key);
prcnt = oldpr;
}
printf("Total probes = %d\n", sum);
#else
#ifdef CHAINED
if (table[i] == NULL)
- printf("%o.\t-,\t-,\t(NULL)\n", i);
+ printf("%o.\t-,\t-,\t(NULL)\n", i);
else {
- printf("%o.", i);
- for (a = table[i]; a != NULL; a = a->next)
- printf("\t%d,\t%#0.4x,\t%s\n",
- *a->item.data, a, a->item.key);
+ printf("%o.", i);
+ for (a = table[i]; a != NULL; a = a->next)
+ printf("\t%d,\t%#0.4x,\t%s\n",
+ *a->item.data, a, a->item.key);
}
#endif
#endif
diff --git a/usr/src/lib/libc/port/gen/iconv.c b/usr/src/lib/libc/port/gen/iconv.c
index d3fc6e9cfd..b9fc9ce598 100644
--- a/usr/src/lib/libc/port/gen/iconv.c
+++ b/usr/src/lib/libc/port/gen/iconv.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,18 +18,15 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
-#pragma weak iconv_open = _iconv_open
-#pragma weak iconv_close = _iconv_close
-#pragma weak iconv = _iconv
-
-#include "synonyms.h"
+#include "lint.h"
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/mman.h>
@@ -63,7 +59,7 @@ static iconv_p iconv_search_alias(const char *, const char *, char *);
*/
iconv_t
-_iconv_open(const char *tocode, const char *fromcode)
+iconv_open(const char *tocode, const char *fromcode)
{
iconv_t cd;
char *ipath;
@@ -124,13 +120,13 @@ search_alias(char **paddr, size_t size, const char *variant)
}
/* skip leading spaces */
while ((q > p) &&
- ((*p == ' ') || (*p == '\t')))
+ ((*p == ' ') || (*p == '\t')))
p++;
if (q <= p)
break;
sp = p;
while ((q > p) && (*p != ' ') &&
- (*p != '\t') && (*p != '\n'))
+ (*p != '\t') && (*p != '\n'))
p++;
if (q <= p) {
/* invalid entry */
@@ -143,8 +139,8 @@ search_alias(char **paddr, size_t size, const char *variant)
}
if (((p - sp) != var_len) ||
- ((strncmp(sp, variant, var_len) != 0) &&
- (strncasecmp(sp, variant, var_len) != 0))) {
+ ((strncmp(sp, variant, var_len) != 0) &&
+ (strncasecmp(sp, variant, var_len) != 0))) {
/*
* didn't match
*/
@@ -160,13 +156,13 @@ search_alias(char **paddr, size_t size, const char *variant)
/* skip spaces */
while ((q > p) &&
- ((*p == ' ') || (*p == '\t')))
+ ((*p == ' ') || (*p == '\t')))
p++;
if (q <= p)
break;
sp = p;
while ((q > p) && (*p != ' ') &&
- (*p != '\t') && (*p != '\n'))
+ (*p != '\t') && (*p != '\n'))
p++;
can_len = p - sp;
if (can_len == 0) {
@@ -304,7 +300,7 @@ iconv_open_private(const char *lib, const char *tbl)
/* gets address of _icv_open */
if ((fptr = (iconv_t(*)(const char *))dlsym(cdpath->_icv_handle,
- "_icv_open")) == NULL) {
+ "_icv_open")) == NULL) {
(void) dlclose(cdpath->_icv_handle);
free(cdpath);
/* dlsym does not define errno */
@@ -318,8 +314,8 @@ iconv_open_private(const char *lib, const char *tbl)
*/
if ((cdpath->_icv_iconv = (size_t(*)(iconv_t, const char **,
- size_t *, char **, size_t *))dlsym(cdpath->_icv_handle,
- "_icv_iconv")) == NULL) {
+ size_t *, char **, size_t *))dlsym(cdpath->_icv_handle,
+ "_icv_iconv")) == NULL) {
(void) dlclose(cdpath->_icv_handle);
free(cdpath);
/* dlsym does not define errno */
@@ -332,7 +328,7 @@ iconv_open_private(const char *lib, const char *tbl)
* and stores it in cd->_icv_close
*/
if ((cdpath->_icv_close = (void(*)(iconv_t))dlsym(cdpath->_icv_handle,
- "_icv_close")) == NULL) {
+ "_icv_close")) == NULL) {
(void) dlclose(cdpath->_icv_handle);
free(cdpath);
/* dlsym does not define errno */
@@ -343,7 +339,7 @@ iconv_open_private(const char *lib, const char *tbl)
/*
* initialize the state of the actual _icv_iconv conversion routine
* For the normal iconv module, NULL will be passed as an argument
- * although the _iconv_open() of the module won't use that.
+ * although the iconv_open() of the module won't use that.
*/
cdpath->_icv_state = (void *)(*fptr)(tbl);
@@ -359,7 +355,7 @@ iconv_open_private(const char *lib, const char *tbl)
}
int
-_iconv_close(iconv_t cd)
+iconv_close(iconv_t cd)
{
if (cd == NULL) {
errno = EBADF;
@@ -373,7 +369,7 @@ _iconv_close(iconv_t cd)
}
size_t
-_iconv(iconv_t cd, const char **inbuf, size_t *inbytesleft,
+iconv(iconv_t cd, const char **inbuf, size_t *inbytesleft,
char **outbuf, size_t *outbytesleft)
{
/* check if cd is valid */
@@ -384,5 +380,5 @@ _iconv(iconv_t cd, const char **inbuf, size_t *inbytesleft,
/* direct conversion */
return ((*(cd->_conv)->_icv_iconv)(cd->_conv->_icv_state,
- inbuf, inbytesleft, outbuf, outbytesleft));
+ inbuf, inbytesleft, outbuf, outbytesleft));
}
diff --git a/usr/src/lib/libc/port/gen/imaxabs.c b/usr/src/lib/libc/port/gen/imaxabs.c
index 6beaca4796..9652f1aa27 100644
--- a/usr/src/lib/libc/port/gen/imaxabs.c
+++ b/usr/src/lib/libc/port/gen/imaxabs.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -21,13 +20,13 @@
*/
/*
- * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
-#include "synonyms.h"
+#include "lint.h"
#include <sys/types.h>
#include <stdlib.h>
diff --git a/usr/src/lib/libc/port/gen/index.c b/usr/src/lib/libc/port/gen/index.c
index 3a21c1eb7b..d8ab6a79f6 100644
--- a/usr/src/lib/libc/port/gen/index.c
+++ b/usr/src/lib/libc/port/gen/index.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,8 +18,9 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
@@ -39,7 +39,7 @@
#pragma ident "%Z%%M% %I% %E% SMI"
-#include "synonyms.h"
+#include "lint.h"
#include <sys/types.h>
#include <string.h>
diff --git a/usr/src/lib/libc/port/gen/initgroups.c b/usr/src/lib/libc/port/gen/initgroups.c
index 82be7bb739..29e63e6e53 100644
--- a/usr/src/lib/libc/port/gen/initgroups.c
+++ b/usr/src/lib/libc/port/gen/initgroups.c
@@ -18,20 +18,20 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2007 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
-#pragma weak initgroups = _initgroups
+#pragma weak _initgroups = initgroups
-#include "synonyms.h"
+#include "lint.h"
#include <stdlib.h>
#include <errno.h>
#include <grp.h>
@@ -68,7 +68,7 @@ initgroups(const char *uname, gid_t agroup)
groups[0] = agroup;
ngroups = _getgroupsbymember(uname, groups, (int)ngroups_max,
- (agroup <= MAXUID) ? 1 : 0);
+ (agroup <= MAXUID) ? 1 : 0);
if (ngroups < 0) {
/* XXX -- man page does not define a value for errno in */
/* this case. Should be looked into sometime. */
diff --git a/usr/src/lib/libc/port/gen/insque.c b/usr/src/lib/libc/port/gen/insque.c
index f42c4e0fb9..586faf4274 100644
--- a/usr/src/lib/libc/port/gen/insque.c
+++ b/usr/src/lib/libc/port/gen/insque.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,16 +18,16 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
/*
* insque() and remque() insert or remove an element from a queue.
@@ -38,10 +37,10 @@
* of the structure points to the previous element in the queue.
*/
-#pragma weak insque = _insque
-#pragma weak remque = _remque
+#pragma weak _insque = insque
+#pragma weak _remque = remque
-#include "synonyms.h"
+#include "lint.h"
#include <sys/types.h>
#include <stdlib.h>
#include <search.h>
@@ -81,8 +80,8 @@ remque(void *elem)
((struct qelem *)elem)->q_back->q_forw = NULL;
} else { /* The middle element is removed. */
((struct qelem *)elem)->q_back->q_forw =
- ((struct qelem *)elem)->q_forw;
+ ((struct qelem *)elem)->q_forw;
((struct qelem *)elem)->q_forw->q_back =
- ((struct qelem *)elem)->q_back;
+ ((struct qelem *)elem)->q_back;
}
}
diff --git a/usr/src/lib/libc/port/gen/isaexec.c b/usr/src/lib/libc/port/gen/isaexec.c
index 3f34dadf17..9939b695f6 100644
--- a/usr/src/lib/libc/port/gen/isaexec.c
+++ b/usr/src/lib/libc/port/gen/isaexec.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,16 +18,17 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
-#pragma weak isaexec = _isaexec
-#include "synonyms.h"
+#pragma weak _isaexec = isaexec
+#include "lint.h"
#include <sys/types.h>
#include <sys/systeminfo.h>
#include <unistd.h>
diff --git a/usr/src/lib/libc/port/gen/isastream.c b/usr/src/lib/libc/port/gen/isastream.c
index 3402224896..34c9d390d7 100644
--- a/usr/src/lib/libc/port/gen/isastream.c
+++ b/usr/src/lib/libc/port/gen/isastream.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,16 +18,16 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
/*
* Check to see if a file descriptor is that of a stream.
@@ -38,9 +37,9 @@
*
*/
-#pragma weak isastream = _isastream
+#pragma weak _isastream = isastream
-#include "synonyms.h"
+#include "lint.h"
#include <sys/types.h>
#include <stdio.h>
#include <errno.h>
diff --git a/usr/src/lib/libc/port/gen/isatty.c b/usr/src/lib/libc/port/gen/isatty.c
index fdd4d1ae58..b54bc29077 100644
--- a/usr/src/lib/libc/port/gen/isatty.c
+++ b/usr/src/lib/libc/port/gen/isatty.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,20 +18,20 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
-#pragma weak isatty = _isatty
+#pragma weak _isatty = isatty
-#include "synonyms.h"
+#include "lint.h"
#include <sys/types.h>
#include <sys/termio.h>
#include <errno.h>
diff --git a/usr/src/lib/libc/port/gen/killpg.c b/usr/src/lib/libc/port/gen/killpg.c
index 414c660c0c..493dfe7012 100644
--- a/usr/src/lib/libc/port/gen/killpg.c
+++ b/usr/src/lib/libc/port/gen/killpg.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,8 +18,9 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
@@ -34,7 +34,7 @@
#pragma ident "%Z%%M% %I% %E% SMI"
-#include "synonyms.h"
+#include "lint.h"
#include <sys/types.h>
#include <signal.h>
diff --git a/usr/src/lib/libc/port/gen/klpdlib.c b/usr/src/lib/libc/port/gen/klpdlib.c
index db0403c950..4b1042bcc3 100644
--- a/usr/src/lib/libc/port/gen/klpdlib.c
+++ b/usr/src/lib/libc/port/gen/klpdlib.c
@@ -26,12 +26,10 @@
#pragma ident "%Z%%M% %I% %E% SMI"
-#include "synonyms.h"
-
+#include "lint.h"
#include "priv_private.h"
#include "mtlib.h"
#include "libc.h"
-
#include <door.h>
#include <errno.h>
#include <priv.h>
diff --git a/usr/src/lib/libc/port/gen/l3.c b/usr/src/lib/libc/port/gen/l3.c
index df5219a5d8..05a43717cc 100644
--- a/usr/src/lib/libc/port/gen/l3.c
+++ b/usr/src/lib/libc/port/gen/l3.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,24 +18,24 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
/*
* Convert longs to and from 3-byte disk addresses
*/
-#pragma weak l3tol = _l3tol
-#pragma weak ltol3 = _ltol3
+#pragma weak _l3tol = l3tol
+#pragma weak _ltol3 = ltol3
-#include "synonyms.h"
+#include "lint.h"
void
ltol3(char *cp, const long *lp, int n)
diff --git a/usr/src/lib/libc/port/gen/l64a.c b/usr/src/lib/libc/port/gen/l64a.c
index 2a1da592e7..140cee8ad3 100644
--- a/usr/src/lib/libc/port/gen/l64a.c
+++ b/usr/src/lib/libc/port/gen/l64a.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,16 +18,16 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
/*
* convert long int to base 64 ascii
@@ -38,9 +37,7 @@
*
*/
-#pragma weak l64a = _l64a
-
-#include "synonyms.h"
+#include "lint.h"
#include "mtlib.h"
#include "libc.h"
#include <values.h>
@@ -80,7 +77,7 @@ l64a(long value)
/* fill high-order CHAR if negative */
/* but suppress sign propagation */
lg = ((lg < 0) ? (lg >> BITSPERCHAR) | SIGN :
- lg >> BITSPERCHAR) & WORDMASK;
+ lg >> BITSPERCHAR) & WORDMASK;
}
*s = '\0';
return (buf);
diff --git a/usr/src/lib/libc/port/gen/lckpwdf.c b/usr/src/lib/libc/port/gen/lckpwdf.c
index ae1682c0b8..030660d107 100644
--- a/usr/src/lib/libc/port/gen/lckpwdf.c
+++ b/usr/src/lib/libc/port/gen/lckpwdf.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,21 +18,18 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
-#pragma weak lckpwdf = _lckpwdf
-#pragma weak ulckpwdf = _ulckpwdf
-
-#include "synonyms.h"
+#include "lint.h"
#include <sys/types.h>
#include <stdio.h>
#include <signal.h>
diff --git a/usr/src/lib/libc/port/gen/lconstants.c b/usr/src/lib/libc/port/gen/lconstants.c
index 21fe9f7a39..a08d0c0da8 100644
--- a/usr/src/lib/libc/port/gen/lconstants.c
+++ b/usr/src/lib/libc/port/gen/lconstants.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,24 +18,24 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
-#pragma weak lzero = _lzero
-#pragma weak lone = _lone
-#pragma weak lten = _lten
+#pragma weak _lzero = lzero
+#pragma weak _lone = lone
+#pragma weak _lten = lten
-#include "synonyms.h"
-#include <sys/types.h>
-#include <sys/dl.h>
+#include "lint.h"
+#include <sys/types.h>
+#include <sys/dl.h>
dl_t lzero = {0, 0};
dl_t lone = {0, 1};
diff --git a/usr/src/lib/libc/port/gen/ldivide.c b/usr/src/lib/libc/port/gen/ldivide.c
index e7bbef1d9d..bf6c3d0146 100644
--- a/usr/src/lib/libc/port/gen/ldivide.c
+++ b/usr/src/lib/libc/port/gen/ldivide.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,19 +18,18 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
-#pragma weak ldivide = _ldivide
-#include "synonyms.h"
+#include "lint.h"
#include <sys/types.h>
#include <sys/dl.h>
#include "libc.h"
diff --git a/usr/src/lib/libc/sparc/gen/lexp10.c b/usr/src/lib/libc/port/gen/lexp10.c
index 28152a5b8f..d394c11b66 100644
--- a/usr/src/lib/libc/sparc/gen/lexp10.c
+++ b/usr/src/lib/libc/port/gen/lexp10.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,33 +18,31 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
-#pragma weak lexp10 = _lexp10
-
-#include "synonyms.h"
-#include <sys/types.h>
-#include <sys/dl.h>
+#include "lint.h"
+#include <sys/types.h>
+#include <sys/dl.h>
dl_t
lexp10(dl_t exp)
{
- dl_t result;
+ dl_t result;
result = lone;
while (exp.dl_hop != 0 || exp.dl_lop != 0) {
result = lmul(result, lten);
- exp = lsub(exp, lone);
+ exp = lsub(exp, lone);
}
return (result);
diff --git a/usr/src/lib/libc/port/gen/lfind.c b/usr/src/lib/libc/port/gen/lfind.c
index a449ff6ebc..699f4a3441 100644
--- a/usr/src/lib/libc/port/gen/lfind.c
+++ b/usr/src/lib/libc/port/gen/lfind.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,16 +18,16 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
/*
* Linear search algorithm, generalized from Knuth (6.1) Algorithm Q.
@@ -42,9 +41,9 @@
* Actually, it has now reverted to Algorithm S, which is "simpler."
*/
-#pragma weak lfind = _lfind
+#pragma weak _lfind = lfind
-#include "synonyms.h"
+#include "lint.h"
#include <stdlib.h>
#include <mtlib.h>
#include <sys/types.h>
diff --git a/usr/src/lib/libc/port/gen/lfmt.c b/usr/src/lib/libc/port/gen/lfmt.c
index 51faa67105..87bebe6c6e 100644
--- a/usr/src/lib/libc/port/gen/lfmt.c
+++ b/usr/src/lib/libc/port/gen/lfmt.c
@@ -18,22 +18,22 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
/* lfmt() - format, print and log */
-#pragma weak lfmt = _lfmt
+#pragma weak _lfmt = lfmt
-#include "synonyms.h"
+#include "lint.h"
#include <sys/types.h>
#include "mtlib.h"
#include <pfmt.h>
diff --git a/usr/src/lib/libc/port/gen/lfmt_log.c b/usr/src/lib/libc/port/gen/lfmt_log.c
index 6d73e4366b..e08162ee0d 100644
--- a/usr/src/lib/libc/port/gen/lfmt_log.c
+++ b/usr/src/lib/libc/port/gen/lfmt_log.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,19 +18,20 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
/* lfmt_log() - log info */
-#include "synonyms.h"
+
+#include "lint.h"
#include <mtlib.h>
#include <pfmt.h>
#include <stdio.h>
@@ -91,8 +91,8 @@ __lfmt_log(const char *text, const char *sev, va_list args, long flag, int ret)
msg.buf[msg_offset++] = '\0';
if (fd == -1 &&
- ((fd = open(LOGNAME, O_WRONLY)) == -1 ||
- fcntl(fd, F_SETFD, 1) == -1))
+ ((fd = open(LOGNAME, O_WRONLY)) == -1 ||
+ fcntl(fd, F_SETFD, 1) == -1))
return (-2);
dat.maxlen = MAXMSG;
@@ -124,7 +124,7 @@ __lfmt_log(const char *text, const char *sev, va_list args, long flag, int ret)
*p = ':';
(void) write(fdd, buf, strlen(buf));
(void) write(fdd, msg.buf + sizeof (long),
- msg_offset - sizeof (long));
+ msg_offset - sizeof (long));
(void) write(fdd, "\n", 1);
} else
return (-2);
diff --git a/usr/src/lib/libc/port/gen/llabs.c b/usr/src/lib/libc/port/gen/llabs.c
index 0fb831508f..75dd92c863 100644
--- a/usr/src/lib/libc/port/gen/llabs.c
+++ b/usr/src/lib/libc/port/gen/llabs.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,20 +18,18 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
-#pragma weak llabs = _llabs
-
-#include "synonyms.h"
+#include "lint.h"
#include <stdlib.h>
#include <sys/types.h>
diff --git a/usr/src/lib/libc/port/gen/lldiv.c b/usr/src/lib/libc/port/gen/lldiv.c
index c6f2e1564a..c9dc80eff0 100644
--- a/usr/src/lib/libc/port/gen/lldiv.c
+++ b/usr/src/lib/libc/port/gen/lldiv.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,21 +18,20 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
-#pragma weak lldiv = _lldiv
-#pragma weak __imax_lldiv = _lldiv
+#pragma weak __imax_lldiv = lldiv
-#include "synonyms.h"
+#include "lint.h"
#include <stdlib.h>
#include <sys/types.h>
diff --git a/usr/src/lib/libc/sparcv9/gen/llog10.c b/usr/src/lib/libc/port/gen/llog10.c
index 14f690c61b..f06ad17546 100644
--- a/usr/src/lib/libc/sparcv9/gen/llog10.c
+++ b/usr/src/lib/libc/port/gen/llog10.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,20 +18,18 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
-#pragma weak llog10 = _llog10
-
-#include "synonyms.h"
+#include "lint.h"
#include <sys/types.h>
#include <sys/dl.h>
diff --git a/usr/src/lib/libc/port/gen/lltostr.c b/usr/src/lib/libc/port/gen/lltostr.c
index d522cb6231..ea81d603f0 100644
--- a/usr/src/lib/libc/port/gen/lltostr.c
+++ b/usr/src/lib/libc/port/gen/lltostr.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,16 +18,16 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
/*
* lltostr -- convert long long to decimal string
@@ -49,10 +48,10 @@
* zero digit is produced if "value" is zero.
*/
-#pragma weak lltostr = _lltostr
-#pragma weak ulltostr = _ulltostr
+#pragma weak _lltostr = lltostr
+#pragma weak _ulltostr = ulltostr
-#include "synonyms.h"
+#include "lint.h"
#include <sys/types.h>
#include <stdlib.h>
diff --git a/usr/src/lib/libc/port/gen/lmath.c b/usr/src/lib/libc/port/gen/lmath.c
index cb657ac7a8..64d1313c47 100644
--- a/usr/src/lib/libc/port/gen/lmath.c
+++ b/usr/src/lib/libc/port/gen/lmath.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,16 +18,16 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
/*
* This set of routines used to be implemented mostly in assembler.
@@ -38,13 +37,7 @@
* a C implementation seems quite adequate and much more maintainable.
*/
-#pragma weak ladd = _ladd
-#pragma weak lsub = _lsub
-#pragma weak lshiftl = _lshiftl
-#pragma weak lsign = _lsign
-#pragma weak lmul = _lmul
-
-#include "synonyms.h"
+#include "lint.h"
#include <sys/types.h>
#include <sys/dl.h>
diff --git a/usr/src/lib/libc/port/gen/localtime.c b/usr/src/lib/libc/port/gen/localtime.c
index 6ebeaf6ad5..9d406227cb 100644
--- a/usr/src/lib/libc/port/gen/localtime.c
+++ b/usr/src/lib/libc/port/gen/localtime.c
@@ -20,22 +20,21 @@
*/
/*
- * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
-
/*
* A part of this file comes from public domain source, so
* clarified as of June 5, 1996 by Arthur David Olson
* (arthur_david_olson@nih.gov).
*/
+#pragma ident "%Z%%M% %I% %E% SMI"
+
/*
* localtime.c
*
@@ -87,11 +86,9 @@
* Functions that are common to ctime(3C) and cftime(3C)
*/
-#pragma weak tzset = _tzset
-#pragma weak localtime_r = _localtime_r
-#pragma weak gmtime_r = _gmtime_r
+#pragma weak _tzset = tzset
-#include "synonyms.h"
+#include "lint.h"
#include "libc.h"
#include "tsd.h"
#include <stdarg.h>
@@ -462,7 +459,7 @@ difftime(time_t time1, time_t time0)
* See ctime(3C)
*/
struct tm *
-_gmtime_r(const time_t *timep, struct tm *p_tm)
+gmtime_r(const time_t *timep, struct tm *p_tm)
{
return (offtime_u((time_t)*timep, 0L, p_tm));
}
@@ -486,7 +483,7 @@ gmtime(const time_t *timep)
if (p_tm == NULL) /* memory allocation failure */
p_tm = &tm; /* use static buffer and hope for the best */
- return (_gmtime_r(timep, p_tm));
+ return (gmtime_r(timep, p_tm));
}
/*
@@ -585,7 +582,7 @@ find_zone(const char *zonename, state_t ***link_prev, state_t **link_next)
* See ctime(3C)
*/
struct tm *
-_localtime_r(const time_t *timep, struct tm *p_tm)
+localtime_r(const time_t *timep, struct tm *p_tm)
{
long offset;
struct tm *rt;
@@ -637,7 +634,7 @@ localtime(const time_t *timep)
if (p_tm == NULL) /* memory allocation failure */
p_tm = &tm; /* use static buffer and hope for the best */
- return (_localtime_r(timep, p_tm));
+ return (localtime_r(timep, p_tm));
}
/*
@@ -787,7 +784,7 @@ mktime(struct tm *tmptr)
* are updated. See ctime(3C) manpage.
*/
void
-_tzset(void)
+tzset(void)
{
systemtz_t stz;
systemtz_t *tzp;
diff --git a/usr/src/lib/libc/port/gen/lsearch.c b/usr/src/lib/libc/port/gen/lsearch.c
index c780ae5231..7347f6c008 100644
--- a/usr/src/lib/libc/port/gen/lsearch.c
+++ b/usr/src/lib/libc/port/gen/lsearch.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,16 +18,16 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
/*
* Linear search algorithm, generalized from Knuth (6.1) Algorithm Q.
@@ -42,9 +41,9 @@
* Actually, it has now reverted to Algorithm S, which is "simpler."
*/
-#pragma weak lsearch = _lsearch
+#pragma weak _lsearch = lsearch
-#include "synonyms.h"
+#include "lint.h"
#include <mtlib.h>
#include <sys/types.h>
#include <stddef.h>
diff --git a/usr/src/lib/libc/port/gen/madvise.c b/usr/src/lib/libc/port/gen/madvise.c
index 4e03d21fd9..240c750ab6 100644
--- a/usr/src/lib/libc/port/gen/madvise.c
+++ b/usr/src/lib/libc/port/gen/madvise.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,16 +18,15 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
-#pragma weak madvise = _madvise
-
-#include "synonyms.h"
+#include "lint.h"
#include <sys/types.h>
#include <sys/mman.h>
diff --git a/usr/src/lib/libc/port/gen/malloc.c b/usr/src/lib/libc/port/gen/malloc.c
index 14592dd468..4973aed792 100644
--- a/usr/src/lib/libc/port/gen/malloc.c
+++ b/usr/src/lib/libc/port/gen/malloc.c
@@ -24,11 +24,11 @@
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
+
/*
* Memory management: malloc(), realloc(), free().
*
@@ -60,7 +60,7 @@
* Otherwise, it is always 0.
*/
-#include "synonyms.h"
+#include "lint.h"
#include "mallint.h"
#include "mtlib.h"
diff --git a/usr/src/lib/libc/port/gen/memalign.c b/usr/src/lib/libc/port/gen/memalign.c
index 91519da222..a54a10868f 100644
--- a/usr/src/lib/libc/port/gen/memalign.c
+++ b/usr/src/lib/libc/port/gen/memalign.c
@@ -24,12 +24,12 @@
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
-#include "synonyms.h"
+#pragma ident "%Z%%M% %I% %E% SMI"
+
+#include "lint.h"
#include "mallint.h"
#include "mtlib.h"
diff --git a/usr/src/lib/libc/port/gen/mkdev.c b/usr/src/lib/libc/port/gen/mkdev.c
index 018ab1a3b8..fe804e49f3 100644
--- a/usr/src/lib/libc/port/gen/mkdev.c
+++ b/usr/src/lib/libc/port/gen/mkdev.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,18 +18,18 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
-#include "synonyms.h"
+#include "lint.h"
#include <sys/types.h>
#include <sys/mkdev.h>
#include <errno.h>
diff --git a/usr/src/lib/libc/port/gen/mkdtemp.c b/usr/src/lib/libc/port/gen/mkdtemp.c
index 9f6abff070..37e60c2b96 100644
--- a/usr/src/lib/libc/port/gen/mkdtemp.c
+++ b/usr/src/lib/libc/port/gen/mkdtemp.c
@@ -20,7 +20,7 @@
*/
/*
- * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
@@ -30,10 +30,7 @@
* mkdtemp(3C) - create a directory with a unique name.
*/
-#pragma weak mkdtemp = _mkdtemp
-
-#include "synonyms.h"
-
+#include "lint.h"
#include <alloca.h>
#include <errno.h>
#include <stdlib.h>
@@ -48,7 +45,7 @@ mkdtemp(char *template)
/* Save template */
(void) strcpy(t, template);
- for (; ; ) {
+ for (;;) {
r = mktemp(template);
if (*r == '\0')
diff --git a/usr/src/lib/libc/port/gen/mkfifo.c b/usr/src/lib/libc/port/gen/mkfifo.c
index a11e085968..eb73e03184 100644
--- a/usr/src/lib/libc/port/gen/mkfifo.c
+++ b/usr/src/lib/libc/port/gen/mkfifo.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,16 +18,16 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
/*
* mkfifo(3c) - create a named pipe (FIFO). This code provides
@@ -36,9 +35,9 @@
*
*/
-#pragma weak mkfifo = _mkfifo
+#pragma weak _mkfifo = mkfifo
-#include "synonyms.h"
+#include "lint.h"
#include <sys/types.h>
#include <sys/stat.h>
diff --git a/usr/src/lib/libc/port/gen/mkstemp.c b/usr/src/lib/libc/port/gen/mkstemp.c
index 368319201b..72c79ac47f 100644
--- a/usr/src/lib/libc/port/gen/mkstemp.c
+++ b/usr/src/lib/libc/port/gen/mkstemp.c
@@ -18,10 +18,13 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
- *
+ */
+
+/*
* Copyright (c) 1983, 1984, 1985, 1986, 1987, 1988, 1989 AT&T
* All Rights Reserved
*
@@ -35,17 +38,15 @@
#include <sys/feature_tests.h>
#if !defined(_LP64) && _FILE_OFFSET_BITS == 64
-#pragma weak mkstemp64 = _mkstemp64
-#pragma weak mkstemps64 = _mkstemps64
-#define _mkstemp _mkstemp64
-#define _mkstemps _mkstemps64
+#define mkstemp mkstemp64
+#define mkstemps mkstemps64
#define libc_mkstemps libc_mkstemps64 /* prefer unique statics */
+#pragma weak _mkstemp64 = mkstemp64
#else
-#pragma weak mkstemp = _mkstemp
-#pragma weak mkstemps = _mkstemps
+#pragma weak _mkstemp = mkstemp
#endif
-#include "synonyms.h"
+#include "lint.h"
#include <sys/fcntl.h>
#include <stdlib.h>
#include <string.h>
@@ -82,7 +83,7 @@ libc_mkstemps(char *as, int slen)
* name is used then keep trying until you find a free filename.
*/
- for (; ; ) {
+ for (;;) {
if (*str == 'X') { /* If no trailing X's don't call mktemp. */
mkret = libc_mktemps(as, slen);
if (*mkret == '\0') {
@@ -113,13 +114,13 @@ libc_mkstemps(char *as, int slen)
}
int
-_mkstemp(char *as)
+mkstemp(char *as)
{
return (libc_mkstemps(as, 0));
}
int
-_mkstemps(char *as, int slen)
+mkstemps(char *as, int slen)
{
return (libc_mkstemps(as, slen));
}
diff --git a/usr/src/lib/libc/port/gen/mktemp.c b/usr/src/lib/libc/port/gen/mktemp.c
index ff6c5b6be8..e8e7105d39 100644
--- a/usr/src/lib/libc/port/gen/mktemp.c
+++ b/usr/src/lib/libc/port/gen/mktemp.c
@@ -18,16 +18,16 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
/*
* mktemp() expects a string with up to six trailing 'X's.
@@ -67,10 +67,11 @@
* sequence number is randomized using the current time.
*/
+#pragma weak _mktemp = mktemp
+
#define XCNT 6
-#pragma weak mktemp = _mktemp
-#include "synonyms.h"
+#include "lint.h"
#include "mtlib.h"
#include <sys/types.h>
#include <string.h>
diff --git a/usr/src/lib/libc/port/gen/mlock.c b/usr/src/lib/libc/port/gen/mlock.c
index 6c7d2272e5..10f641dd9d 100644
--- a/usr/src/lib/libc/port/gen/mlock.c
+++ b/usr/src/lib/libc/port/gen/mlock.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,20 +18,20 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
-#pragma weak mlock = _mlock
+#pragma weak _mlock = mlock
-#include "synonyms.h"
+#include "lint.h"
#include <sys/types.h>
#include <sys/mman.h>
diff --git a/usr/src/lib/libc/port/gen/mlockall.c b/usr/src/lib/libc/port/gen/mlockall.c
index ea4ba6db4e..56a4f8ba54 100644
--- a/usr/src/lib/libc/port/gen/mlockall.c
+++ b/usr/src/lib/libc/port/gen/mlockall.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,20 +18,18 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
-#pragma weak mlockall = _mlockall
-
-#include "synonyms.h"
+#include "lint.h"
#include <sys/types.h>
#include <sys/mman.h>
@@ -43,6 +40,5 @@
int
mlockall(int flags)
{
-
return (memcntl(0, 0, MC_LOCKAS, (caddr_t)(uintptr_t)flags, 0, 0));
}
diff --git a/usr/src/lib/libc/port/gen/mon.c b/usr/src/lib/libc/port/gen/mon.c
index 04046133c5..010fc3f1e0 100644
--- a/usr/src/lib/libc/port/gen/mon.c
+++ b/usr/src/lib/libc/port/gen/mon.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,8 +18,9 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
@@ -48,7 +48,7 @@
*
*
* Routines:
- * (global) _monitor init, cleanup for prof(1)iling
+ * (global) monitor init, cleanup for prof(1)iling
* (global) _mcount function call counter
* (global) _mcount_newent call count entry manager
* (static) _mnewblock call count block allocator
@@ -123,9 +123,9 @@
*
*/
-#pragma weak monitor = _monitor
+#pragma weak _monitor = monitor
-#include "synonyms.h"
+#include "lint.h"
#include "mtlib.h"
#include "libc.h"
#include <sys/types.h>
@@ -158,7 +158,7 @@ char **___Argv = NULL; /* initialized to argv array by mcrt0 (if loaded) */
* countbase/countlimit are now STATIC!
*/
static char *countbase; /* addr of next pc,count cell to use in block */
-static char *_countlimit; /* addr lim for cells (addr after last cell) */
+static char *countlimit; /* addr lim for cells (addr after last cell) */
typedef struct anchor ANCHOR;
@@ -275,7 +275,7 @@ monitor(int (*alowpc)(void), int (*ahighpc)(void), WORD *buffer,
for (; ; n /= 10) {
*name++ = pid/n + '0';
if (n == 1)
- break;
+ break;
pid %= n;
}
*name++ = '.';
@@ -316,11 +316,11 @@ monitor(int (*alowpc)(void), int (*ahighpc)(void), WORD *buffer,
/* got it - enable use by mcount() */
countbase = (char *)buffer + sizeof (struct hdr);
- _countlimit = countbase + (nfunc * sizeof (struct cnt));
+ countlimit = countbase + (nfunc * sizeof (struct cnt));
/* (set size of region 3) */
newanchp->histSize = (int)
- (bufsize * sizeof (WORD) - (_countlimit - (char *)buffer));
+ (bufsize * sizeof (WORD) - (countlimit - (char *)buffer));
/* done w/regions 1 + 2: setup 3 to activate profil processing. */
@@ -474,7 +474,7 @@ _mnewblock(void)
/* got it - enable use by mcount() */
countbase = (char *)hdrp + sizeof (struct hdr);
- _countlimit = countbase + (THISMANYFCNS * sizeof (struct cnt));
+ countlimit = countbase + (THISMANYFCNS * sizeof (struct cnt));
newanchp->histSize = 0; /* (set size of region 3.. to 0) */
@@ -486,7 +486,7 @@ _mnewblock(void)
* mcount_newent() -- call to get a new mcount call count entry.
*
* this function is called by _mcount to get a new call count entry
- * (struct cnt, in the region allocated by _monitor()), or to return
+ * (struct cnt, in the region allocated by monitor()), or to return
* zero if profiling is off.
*
* This function acts as a funnel, an access function to make sure
@@ -543,7 +543,7 @@ _mcount_newent(void)
if (countbase == 0)
return (NULL);
- if (countbase >= _countlimit)
+ if (countbase >= countlimit)
_mnewblock(); /* get a new block; set countbase */
if (countbase != 0) {
diff --git a/usr/src/lib/libc/port/gen/msync.c b/usr/src/lib/libc/port/gen/msync.c
index cf1e29031c..7a174b951c 100644
--- a/usr/src/lib/libc/port/gen/msync.c
+++ b/usr/src/lib/libc/port/gen/msync.c
@@ -24,12 +24,12 @@
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
-#include "synonyms.h"
+#pragma ident "%Z%%M% %I% %E% SMI"
+
+#include "lint.h"
#include <sys/types.h>
#include <sys/mman.h>
diff --git a/usr/src/lib/libc/port/gen/munlock.c b/usr/src/lib/libc/port/gen/munlock.c
index 440f0b8ae8..9757df0e41 100644
--- a/usr/src/lib/libc/port/gen/munlock.c
+++ b/usr/src/lib/libc/port/gen/munlock.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,20 +18,20 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
-#pragma weak munlock = _munlock
+#pragma weak _munlock = munlock
-#include "synonyms.h"
+#include "lint.h"
#include <sys/types.h>
#include <sys/mman.h>
diff --git a/usr/src/lib/libc/port/gen/munlockall.c b/usr/src/lib/libc/port/gen/munlockall.c
index 00e484e9d2..55f6a61a77 100644
--- a/usr/src/lib/libc/port/gen/munlockall.c
+++ b/usr/src/lib/libc/port/gen/munlockall.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,20 +18,18 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
-#pragma weak munlockall = _munlockall
-
-#include "synonyms.h"
+#include "lint.h"
#include <sys/types.h>
#include <sys/mman.h>
diff --git a/usr/src/lib/libc/port/gen/ndbm.c b/usr/src/lib/libc/port/gen/ndbm.c
index 70a8e5e275..f16af50dee 100644
--- a/usr/src/lib/libc/port/gen/ndbm.c
+++ b/usr/src/lib/libc/port/gen/ndbm.c
@@ -39,7 +39,7 @@
#pragma ident "%Z%%M% %I% %E% SMI"
-#include "synonyms.h"
+#include "lint.h"
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
diff --git a/usr/src/lib/libc/port/gen/nftw.c b/usr/src/lib/libc/port/gen/nftw.c
index f4247c2ed2..2deff1dbd4 100644
--- a/usr/src/lib/libc/port/gen/nftw.c
+++ b/usr/src/lib/libc/port/gen/nftw.c
@@ -20,15 +20,14 @@
*/
/*
- * Copyright 2007 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
/*
* nftw - new file tree walk
@@ -96,41 +95,6 @@
*
*/
-#include <sys/feature_tests.h>
-
-#if !defined(_LP64) && _FILE_OFFSET_BITS == 64
-#pragma weak nftw64 = _nftw64
-#define _nftw _nftw64
-#define fstat64 _fstat64
-#define fstatat64 _fstatat64
-#define lstat64 _lstat64
-#define openat64 _openat64
-#define readdir64 _readdir64
-#define stat64 _stat64
-#else
-#pragma weak nftw = _nftw
-#define fstat _fstat
-#define fstatat _fstatat
-#define lstat _lstat
-#define openat _openat
-#define readdir _readdir
-#define stat _stat
-#endif /* !_LP64 && _FILE_OFFSET_BITS == 64 */
-
-#define chdir _chdir
-#define close _close
-#define closedir _closedir
-#define fchdir _fchdir
-#define fdopendir _fdopendir
-#define fprintf _fprintf
-#define getcwd _getcwd
-#define opendir _opendir
-#define seekdir _seekdir
-#define strdup _strdup
-#define strerror _strerror
-#define strtok_r _strtok_r
-#define telldir _telldir
-
#include "lint.h"
#include <mtlib.h>
#include <sys/types.h>
@@ -148,6 +112,16 @@
#include <strings.h>
#include <fcntl.h>
+#if !defined(_LP64) && _FILE_OFFSET_BITS == 64
+#define nftw nftw64
+#define stat stat64
+#define fstat fstat64
+#define fstatat fstatat64
+#pragma weak _nftw64 = nftw64
+#else
+#pragma weak _nftw = nftw
+#endif /* !_LP64 && _FILE_OFFSET_BITS == 64 */
+
#ifndef PATH_MAX
#define PATH_MAX 1023
#endif
@@ -518,7 +492,7 @@ quit:
}
int
-_nftw(const char *path,
+nftw(const char *path,
int (*fn)(const char *, const struct stat *, int, struct FTW *),
int depth, int flags)
{
diff --git a/usr/src/lib/libc/port/gen/nlspath_checks.c b/usr/src/lib/libc/port/gen/nlspath_checks.c
index 5261031af0..94d998693c 100644
--- a/usr/src/lib/libc/port/gen/nlspath_checks.c
+++ b/usr/src/lib/libc/port/gen/nlspath_checks.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,14 +18,15 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
-#include "synonyms.h"
+#include "lint.h"
#include "mtlib.h"
#include <string.h>
#include <syslog.h>
@@ -149,7 +149,7 @@ nls_safe_open(const char *path, struct stat64 *statbuf, int *trust, int safe)
*/
if ((statbuf->st_mode & (S_IWOTH)) == 0 &&
((statbuf->st_mode & (S_IWGRP)) == 0 ||
- (statbuf->st_gid < 4 && statbuf->st_gid != 1))) {
+ (statbuf->st_gid < 4 && statbuf->st_gid != 1))) {
trust_group = 1;
}
@@ -464,7 +464,7 @@ done:
}
#ifdef DEBUG
for (t = 0; t < maxarg * FORMAT_SIZE; t += FORMAT_SIZE) {
- printf("%c(%d)", norm[t], norm[t+1]);
+ printf("%c(%d)", norm[t], norm[t+1]);
}
putchar('\n');
#endif
@@ -610,6 +610,11 @@ clean_env(void)
{
const char **p;
+ if (environ == NULL) { /* can't happen? */
+ nlspath_safe = 1;
+ return;
+ }
+
/* Find the first NLSPATH occurrence */
for (p = environ; *p; p++)
if (**p == 'N' && nvmatch("NLSPATH", *p) != NULL)
diff --git a/usr/src/lib/libc/port/gen/nsparse.c b/usr/src/lib/libc/port/gen/nsparse.c
index 6af1f25278..57c07a7841 100644
--- a/usr/src/lib/libc/port/gen/nsparse.c
+++ b/usr/src/lib/libc/port/gen/nsparse.c
@@ -18,14 +18,15 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
-#include "synonyms.h"
+#include "lint.h"
#include "file64.h"
#include "mtlib.h"
#include "libc.h"
@@ -121,8 +122,7 @@ static void
set_dns_default_lkp(struct __nsw_lookup_v1 *lkp)
{
if (strcasecmp(lkp->service_name, "dns") == 0) {
- lkp->actions[__NSW_TRYAGAIN] =
- __NSW_TRYAGAIN_NTIMES;
+ lkp->actions[__NSW_TRYAGAIN] = __NSW_TRYAGAIN_NTIMES;
lkp->max_retries = dns_tryagain_retry;
}
}
diff --git a/usr/src/lib/libc/port/gen/nss_common.c b/usr/src/lib/libc/port/gen/nss_common.c
index 6f24fac496..c4d033a141 100644
--- a/usr/src/lib/libc/port/gen/nss_common.c
+++ b/usr/src/lib/libc/port/gen/nss_common.c
@@ -30,13 +30,7 @@
* Shared code used by the name-service-switch frontends (e.g. getpwnam_r())
*/
-#pragma weak nss_delete = _nss_delete
-#pragma weak nss_endent = _nss_endent
-#pragma weak nss_getent = _nss_getent
-#pragma weak nss_search = _nss_search
-#pragma weak nss_setent = _nss_setent
-
-#include "synonyms.h"
+#include "lint.h"
#include <mtlib.h>
#include <dlfcn.h>
#include <atomic.h>
diff --git a/usr/src/lib/libc/port/gen/nss_dbdefs.c b/usr/src/lib/libc/port/gen/nss_dbdefs.c
index b77b507fe0..9dd9193fc9 100644
--- a/usr/src/lib/libc/port/gen/nss_dbdefs.c
+++ b/usr/src/lib/libc/port/gen/nss_dbdefs.c
@@ -26,7 +26,7 @@
#pragma ident "%Z%%M% %I% %E% SMI"
-#include "synonyms.h"
+#include "lint.h"
#include <mtlib.h>
#include <ctype.h>
#include <stdio.h>
diff --git a/usr/src/lib/libc/port/gen/nss_deffinder.c b/usr/src/lib/libc/port/gen/nss_deffinder.c
index 7620512646..8ba91e9592 100644
--- a/usr/src/lib/libc/port/gen/nss_deffinder.c
+++ b/usr/src/lib/libc/port/gen/nss_deffinder.c
@@ -18,8 +18,9 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
@@ -35,9 +36,9 @@
/* Allow our finder(s) to be overridden by user-supplied ones */
-#pragma weak nss_default_finders = _nss_default_finders
+#pragma weak _nss_default_finders = nss_default_finders
-#include "synonyms.h"
+#include "lint.h"
#include "mtlib.h"
#include <nss_common.h>
#include <dlfcn.h>
@@ -98,4 +99,4 @@ static nss_backend_finder_t SO_per_src = {
0
};
-nss_backend_finder_t *_nss_default_finders = &SO_per_src;
+nss_backend_finder_t *nss_default_finders = &SO_per_src;
diff --git a/usr/src/lib/libc/port/gen/opendir.c b/usr/src/lib/libc/port/gen/opendir.c
index ca5b93b3ac..402fa76d62 100644
--- a/usr/src/lib/libc/port/gen/opendir.c
+++ b/usr/src/lib/libc/port/gen/opendir.c
@@ -20,15 +20,15 @@
*/
/*
- * Copyright 2007 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
+
/*
* opendir -- C library extension routine
*
@@ -37,9 +37,9 @@
* while holding internal libc locks.
*/
-#pragma weak opendir = _opendir
+#pragma weak _opendir = opendir
-#include "synonyms.h"
+#include "lint.h"
#include <dirent.h>
#include <stdlib.h>
#include <unistd.h>
diff --git a/usr/src/lib/libc/port/gen/opt_data.c b/usr/src/lib/libc/port/gen/opt_data.c
index 54359fd957..09fc5c4a39 100644
--- a/usr/src/lib/libc/port/gen/opt_data.c
+++ b/usr/src/lib/libc/port/gen/opt_data.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,23 +18,23 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
/*
* Global variables
* used in getopt
*/
-#include "synonyms.h"
+#include "lint.h"
int opterr = 1;
int optind = 1;
diff --git a/usr/src/lib/libc/port/gen/perror.c b/usr/src/lib/libc/port/gen/perror.c
index 933bdc18cb..7f120935c8 100644
--- a/usr/src/lib/libc/port/gen/perror.c
+++ b/usr/src/lib/libc/port/gen/perror.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,18 +18,18 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
-#include "synonyms.h"
+#include "lint.h"
#include "_libc_gettext.h"
#include <sys/types.h>
diff --git a/usr/src/lib/libc/port/gen/pfmt.c b/usr/src/lib/libc/port/gen/pfmt.c
index 51866bac20..a89e6739ec 100644
--- a/usr/src/lib/libc/port/gen/pfmt.c
+++ b/usr/src/lib/libc/port/gen/pfmt.c
@@ -18,19 +18,20 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
-#pragma weak pfmt = _pfmt
+#pragma ident "%Z%%M% %I% %E% SMI"
+
+#pragma weak _pfmt = pfmt
-#include "synonyms.h"
+#include "lint.h"
#include "mtlib.h"
#include <pfmt.h>
#include <stdio.h>
diff --git a/usr/src/lib/libc/port/gen/pfmt_print.c b/usr/src/lib/libc/port/gen/pfmt_print.c
index 3b8d3e4280..342346cf3b 100644
--- a/usr/src/lib/libc/port/gen/pfmt_print.c
+++ b/usr/src/lib/libc/port/gen/pfmt_print.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,21 +18,21 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
/*
* pfmt_print() - format and print
*/
-#include "synonyms.h"
+#include "lint.h"
#include "mtlib.h"
#include <pfmt.h>
#include <stdio.h>
@@ -74,7 +73,7 @@ __pfmt_print(FILE *stream, long flag, const char *format,
char c;
ptr = format;
for (i = 0; i < DB_NAME_LEN - 1 && (c = *ptr++) && c != ':';
- i++)
+ i++)
catbuf[i] = c;
/* Extract the message number */
if (i != DB_NAME_LEN - 1 && c) {
diff --git a/usr/src/lib/libc/port/gen/plock.c b/usr/src/lib/libc/port/gen/plock.c
index 92d2144422..1fb0367f1f 100644
--- a/usr/src/lib/libc/port/gen/plock.c
+++ b/usr/src/lib/libc/port/gen/plock.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,8 +18,9 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
@@ -32,9 +32,8 @@
* Supports SVID-compatible plock, taking into account dynamically linked
* objects (such as shared libraries).
*/
-#pragma weak plock = _plock
-#include "synonyms.h"
+#include "lint.h"
#include <mtlib.h>
#include <sys/types.h>
#include <sys/mman.h>
diff --git a/usr/src/lib/libc/port/gen/poll.c b/usr/src/lib/libc/port/gen/poll.c
index 0f18d7fddf..e186a30b12 100644
--- a/usr/src/lib/libc/port/gen/poll.c
+++ b/usr/src/lib/libc/port/gen/poll.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,16 +18,17 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
-#pragma weak poll = _poll
+#pragma weak _poll = poll
-#include "synonyms.h"
+#include "lint.h"
#include <sys/time.h>
#include <sys/poll.h>
#include "libc.h"
diff --git a/usr/src/lib/libc/port/gen/priocntl.c b/usr/src/lib/libc/port/gen/priocntl.c
index 2f76e857f1..71bf943b40 100644
--- a/usr/src/lib/libc/port/gen/priocntl.c
+++ b/usr/src/lib/libc/port/gen/priocntl.c
@@ -24,12 +24,12 @@
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
-#include "synonyms.h"
+#pragma ident "%Z%%M% %I% %E% SMI"
+
+#include "lint.h"
#include <sys/types.h>
#include <sys/procset.h>
#include <sys/priocntl.h>
diff --git a/usr/src/lib/libc/port/gen/priv_str_xlate.c b/usr/src/lib/libc/port/gen/priv_str_xlate.c
index 36f7a7d7e5..763665c492 100644
--- a/usr/src/lib/libc/port/gen/priv_str_xlate.c
+++ b/usr/src/lib/libc/port/gen/priv_str_xlate.c
@@ -18,8 +18,9 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
@@ -29,11 +30,11 @@
* priv_str_xlate.c - Privilege translation routines.
*/
-#pragma weak priv_str_to_set = _priv_str_to_set
-#pragma weak priv_set_to_str = _priv_set_to_str
-#pragma weak priv_gettext = _priv_gettext
+#pragma weak _priv_str_to_set = priv_str_to_set
+#pragma weak _priv_set_to_str = priv_set_to_str
+#pragma weak _priv_gettext = priv_gettext
-#include "synonyms.h"
+#include "lint.h"
#include <stdio.h>
#include <stdlib.h>
#include <ctype.h>
@@ -400,7 +401,7 @@ do_priv_gettext(const char *priv, const char *file)
/* Remove leading white space */
tstart = lp;
while (*tstart != '\0' &&
- isspace((unsigned char)*tstart)) {
+ isspace((unsigned char)*tstart)) {
tstart++;
}
diff --git a/usr/src/lib/libc/port/gen/privlib.c b/usr/src/lib/libc/port/gen/privlib.c
index 57218876bc..911df6e1af 100644
--- a/usr/src/lib/libc/port/gen/privlib.c
+++ b/usr/src/lib/libc/port/gen/privlib.c
@@ -20,36 +20,36 @@
*/
/*
- * Copyright 2007 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI" /* TSOL 8 */
-
-#pragma weak getprivimplinfo = _getprivimplinfo
-#pragma weak priv_addset = _priv_addset
-#pragma weak priv_allocset = _priv_allocset
-#pragma weak priv_copyset = _priv_copyset
-#pragma weak priv_delset = _priv_delset
-#pragma weak priv_emptyset = _priv_emptyset
-#pragma weak priv_fillset = _priv_fillset
-#pragma weak priv_freeset = _priv_freeset
-#pragma weak priv_getbyname = _priv_getbyname
-#pragma weak priv_getbynum = _priv_getbynum
-#pragma weak priv_getsetbyname = _priv_getsetbyname
-#pragma weak priv_getsetbynum = _priv_getsetbynum
-#pragma weak priv_ineffect = _priv_ineffect
-#pragma weak priv_intersect = _priv_intersect
-#pragma weak priv_inverse = _priv_inverse
-#pragma weak priv_isemptyset = _priv_isemptyset
-#pragma weak priv_isequalset = _priv_isequalset
-#pragma weak priv_isfullset = _priv_isfullset
-#pragma weak priv_ismember = _priv_ismember
-#pragma weak priv_issubset = _priv_issubset
-#pragma weak priv_set = _priv_set
-#pragma weak priv_union = _priv_union
-
-#include "synonyms.h"
+#pragma ident "%Z%%M% %I% %E% SMI"
+
+#pragma weak _getprivimplinfo = getprivimplinfo
+#pragma weak _priv_addset = priv_addset
+#pragma weak _priv_allocset = priv_allocset
+#pragma weak _priv_copyset = priv_copyset
+#pragma weak _priv_delset = priv_delset
+#pragma weak _priv_emptyset = priv_emptyset
+#pragma weak _priv_fillset = priv_fillset
+#pragma weak _priv_freeset = priv_freeset
+#pragma weak _priv_getbyname = priv_getbyname
+#pragma weak _priv_getbynum = priv_getbynum
+#pragma weak _priv_getsetbyname = priv_getsetbyname
+#pragma weak _priv_getsetbynum = priv_getsetbynum
+#pragma weak _priv_ineffect = priv_ineffect
+#pragma weak _priv_intersect = priv_intersect
+#pragma weak _priv_inverse = priv_inverse
+#pragma weak _priv_isemptyset = priv_isemptyset
+#pragma weak _priv_isequalset = priv_isequalset
+#pragma weak _priv_isfullset = priv_isfullset
+#pragma weak _priv_ismember = priv_ismember
+#pragma weak _priv_issubset = priv_issubset
+#pragma weak _priv_set = priv_set
+#pragma weak _priv_union = priv_union
+
+#include "lint.h"
#define _STRUCTURED_PROC 1
@@ -193,7 +193,7 @@ __priv_parse_info(priv_impl_info_t *ip)
tmparr[i].name = tmp->pd_privnames[i];
}
qsort(tmparr, tmp->pd_nprivs, sizeof (struct strint),
- strintcmp);
+ strintcmp);
for (i = 0; i < tmp->pd_nprivs; i++)
tmp->pd_setsort[i] = tmparr[i].rank;
libc_free(tmparr);
@@ -272,8 +272,8 @@ refresh_data(void)
/* copy the extra information to the old datastructure */
(void) memcpy((char *)privdata->pd_pinfo + sizeof (priv_impl_info_t),
- (char *)ip + sizeof (priv_impl_info_t),
- PRIV_IMPL_INFO_SIZE(ip) - sizeof (priv_impl_info_t));
+ (char *)ip + sizeof (priv_impl_info_t),
+ PRIV_IMPL_INFO_SIZE(ip) - sizeof (priv_impl_info_t));
/* Copy the first oldn pointers */
(void) memcpy(tmp->pd_privnames, privdata->pd_privnames,
@@ -369,7 +369,7 @@ out:
}
const priv_impl_info_t *
-_getprivimplinfo(void)
+getprivimplinfo(void)
{
priv_data_t *d;
@@ -430,7 +430,7 @@ priv_set(priv_op_t op, priv_ptype_t setname, ...)
for (set = 0; set < d->pd_nsets; set++)
if ((ret = syscall(SYS_privsys, PRIVSYS_SETPPRIV, op,
- set, (void *)pset, d->pd_setsize)) != 0)
+ set, (void *)pset, d->pd_setsize)) != 0)
break;
} else {
ret = setppriv(op, setname, pset);
@@ -932,7 +932,7 @@ boolean_t
__priv_issubset(priv_data_t *d, const priv_set_t *a, const priv_set_t *b)
{
PRIV_TEST_BODY_D(d, (((priv_chunk_t *)a)[i] | ((priv_chunk_t *)b)[i]) ==
- ((priv_chunk_t *)b)[i]);
+ ((priv_chunk_t *)b)[i]);
}
boolean_t
diff --git a/usr/src/lib/libc/port/gen/psiginfo.c b/usr/src/lib/libc/port/gen/psiginfo.c
index 316b5ea7b5..1675db36ee 100644
--- a/usr/src/lib/libc/port/gen/psiginfo.c
+++ b/usr/src/lib/libc/port/gen/psiginfo.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,32 +18,30 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
/*
* Print the name of the siginfo indicated by "sig", along with the
* supplied message
*/
-#pragma weak psiginfo = _psiginfo
-
-#include "synonyms.h"
-#include "_libc_gettext.h"
-#include <sys/types.h>
-#include <stdio.h>
-#include <unistd.h>
-#include <string.h>
-#include <signal.h>
-#include <siginfo.h>
+#include "lint.h"
+#include "_libc_gettext.h"
+#include <sys/types.h>
+#include <stdio.h>
+#include <unistd.h>
+#include <string.h>
+#include <signal.h>
+#include <siginfo.h>
#define strsignal(i) (_libc_gettext(_sys_siglistp[i]))
@@ -60,10 +57,9 @@ psiginfo(siginfo_t *sip, char *s)
if (sip->si_code <= 0) {
- /* LINTED variable format specifier */
(void) snprintf(buf, sizeof (buf),
- _libc_gettext("%s : %s ( from process %d )\n"),
- s, strsignal(sip->si_signo), sip->si_pid);
+ _libc_gettext("%s : %s ( from process %d )\n"),
+ s, strsignal(sip->si_signo), sip->si_pid);
} else if (((listp = &_sys_siginfolist[sip->si_signo-1]) != NULL) &&
sip->si_code <= listp->nsiginfo) {
c = _libc_gettext(listp->vsiginfo[sip->si_code-1]);
@@ -72,24 +68,21 @@ psiginfo(siginfo_t *sip, char *s)
case SIGBUS:
case SIGILL:
case SIGFPE:
- /* LINTED variable format specifier */
(void) snprintf(buf, sizeof (buf),
- _libc_gettext("%s : %s ( [%p] %s)\n"),
- s, strsignal(sip->si_signo),
- sip->si_addr, c);
+ _libc_gettext("%s : %s ( [%p] %s)\n"),
+ s, strsignal(sip->si_signo),
+ sip->si_addr, c);
break;
default:
- /* LINTED variable format specifier */
(void) snprintf(buf, sizeof (buf),
- _libc_gettext("%s : %s (%s)\n"),
- s, strsignal(sip->si_signo), c);
+ _libc_gettext("%s : %s (%s)\n"),
+ s, strsignal(sip->si_signo), c);
break;
}
} else {
- /* LINTED variable format specifier */
(void) snprintf(buf, sizeof (buf),
- _libc_gettext("%s : %s\n"),
- s, strsignal(sip->si_signo));
+ _libc_gettext("%s : %s\n"),
+ s, strsignal(sip->si_signo));
}
(void) write(2, buf, strlen(buf));
}
diff --git a/usr/src/lib/libc/port/gen/psignal.c b/usr/src/lib/libc/port/gen/psignal.c
index 8682b210d2..201beaacd7 100644
--- a/usr/src/lib/libc/port/gen/psignal.c
+++ b/usr/src/lib/libc/port/gen/psignal.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,8 +18,9 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
@@ -44,16 +44,16 @@
* supplied message
*/
-#pragma weak psignal = _psignal
+#pragma weak _psignal = psignal
-#include "synonyms.h"
-#include "_libc_gettext.h"
-#include <sys/types.h>
-#include <stdio.h>
-#include <unistd.h>
-#include <string.h>
-#include <signal.h>
-#include <siginfo.h>
+#include "lint.h"
+#include "_libc_gettext.h"
+#include <sys/types.h>
+#include <stdio.h>
+#include <unistd.h>
+#include <string.h>
+#include <signal.h>
+#include <siginfo.h>
#define strsignal(i) (_libc_gettext(_sys_siglistp[i]))
diff --git a/usr/src/lib/libc/port/gen/pt.c b/usr/src/lib/libc/port/gen/pt.c
index f3ba9ee922..26dd4dd376 100644
--- a/usr/src/lib/libc/port/gen/pt.c
+++ b/usr/src/lib/libc/port/gen/pt.c
@@ -20,21 +20,20 @@
*/
/*
- * Copyright 2007 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
-#pragma weak ptsname = _ptsname
-#pragma weak grantpt = _grantpt
-#pragma weak unlockpt = _unlockpt
-#pragma weak posix_openpt = _posix_openpt
+#pragma ident "%Z%%M% %I% %E% SMI"
+
+#pragma weak _ptsname = ptsname
+#pragma weak _grantpt = grantpt
+#pragma weak _unlockpt = unlockpt
-#include "synonyms.h"
+#include "lint.h"
#include "libc.h"
#include "mtlib.h"
#include <sys/types.h>
diff --git a/usr/src/lib/libc/port/gen/putpwent.c b/usr/src/lib/libc/port/gen/putpwent.c
index 805daefce6..efc482c7f4 100644
--- a/usr/src/lib/libc/port/gen/putpwent.c
+++ b/usr/src/lib/libc/port/gen/putpwent.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,22 +18,22 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
/*
* format a password file entry
*/
-#pragma weak putpwent = _putpwent
-#include "synonyms.h"
+
+#include "lint.h"
#include <sys/types.h>
#include <stdio.h>
#include <pwd.h>
@@ -52,16 +51,16 @@ putpwent(const struct passwd *p, FILE *f)
/* leading "+/-" taken from getpwnam_r.c */
if (black_magic) {
(void) fprintf(f, ":::%s:%s:%s",
- p->pw_gecos ? p->pw_gecos : "",
- p->pw_dir ? p->pw_dir : "",
- p->pw_shell ? p->pw_shell : "");
+ p->pw_gecos ? p->pw_gecos : "",
+ p->pw_dir ? p->pw_dir : "",
+ p->pw_shell ? p->pw_shell : "");
} else { /* "normal case" */
(void) fprintf(f, ":%d:%d:%s:%s:%s",
- p->pw_uid,
- p->pw_gid,
- p->pw_gecos,
- p->pw_dir,
- p->pw_shell);
+ p->pw_uid,
+ p->pw_gid,
+ p->pw_gecos,
+ p->pw_dir,
+ p->pw_shell);
}
(void) putc('\n', f);
(void) fflush(f);
diff --git a/usr/src/lib/libc/port/gen/putspent.c b/usr/src/lib/libc/port/gen/putspent.c
index 9a49c7a773..fded4a495a 100644
--- a/usr/src/lib/libc/port/gen/putspent.c
+++ b/usr/src/lib/libc/port/gen/putspent.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,16 +18,16 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
/*
* format a shadow file entry
@@ -36,9 +35,7 @@
* This code used to live in getspent.c
*/
-#pragma weak putspent = _putspent
-
-#include "synonyms.h"
+#include "lint.h"
#include <stdio.h>
#include <shadow.h>
@@ -46,7 +43,7 @@ int
putspent(const struct spwd *p, FILE *f)
{
(void) fprintf(f, "%s:%s:", p->sp_namp,
- p->sp_pwdp ? p->sp_pwdp : "");
+ p->sp_pwdp ? p->sp_pwdp : "");
/* pwdp could be null for +/- entries */
if (p->sp_lstchg >= 0)
(void) fprintf(f, "%d:", p->sp_lstchg);
diff --git a/usr/src/lib/libc/port/gen/raise.c b/usr/src/lib/libc/port/gen/raise.c
index 2fe8ab6806..524664a555 100644
--- a/usr/src/lib/libc/port/gen/raise.c
+++ b/usr/src/lib/libc/port/gen/raise.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,18 +18,18 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
-#include "synonyms.h"
+#include "lint.h"
#include <sys/types.h>
#include <signal.h>
#include <unistd.h>
@@ -44,7 +43,7 @@ raise(int sig)
{
int error;
- if ((error = _thr_kill(_thr_self(), sig)) != 0) {
+ if ((error = thr_kill(thr_self(), sig)) != 0) {
errno = error;
return (-1);
}
diff --git a/usr/src/lib/libc/port/gen/rand.c b/usr/src/lib/libc/port/gen/rand.c
index 2ffa592b36..041f5d86e4 100644
--- a/usr/src/lib/libc/port/gen/rand.c
+++ b/usr/src/lib/libc/port/gen/rand.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,8 +18,9 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2005 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
@@ -39,9 +39,7 @@
#pragma ident "%Z%%M% %I% %E% SMI"
-#pragma weak rand_r = _rand_r
-
-#include "synonyms.h"
+#include "lint.h"
#include "thr_uberdata.h"
#include <stdlib.h>
#include <atomic.h>
diff --git a/usr/src/lib/libc/port/gen/random.c b/usr/src/lib/libc/port/gen/random.c
index 9dd74e5e38..a0fe8c4fe3 100644
--- a/usr/src/lib/libc/port/gen/random.c
+++ b/usr/src/lib/libc/port/gen/random.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -21,7 +20,7 @@
*/
/*
- * Copyright 2005 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
@@ -40,7 +39,7 @@
#pragma ident "%Z%%M% %I% %E% SMI"
-#include "synonyms.h"
+#include "lint.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
diff --git a/usr/src/lib/libc/port/gen/rctlops.c b/usr/src/lib/libc/port/gen/rctlops.c
index f8d67e2f4b..c61eb8ec41 100644
--- a/usr/src/lib/libc/port/gen/rctlops.c
+++ b/usr/src/lib/libc/port/gen/rctlops.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -21,13 +20,13 @@
*/
/*
- * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
-#include "synonyms.h"
+#include "lint.h"
#include <sys/rctl_impl.h>
#include <stdlib.h>
#include <string.h>
diff --git a/usr/src/lib/libc/port/gen/readdir.c b/usr/src/lib/libc/port/gen/readdir.c
index 9b392e6c89..faa863380e 100644
--- a/usr/src/lib/libc/port/gen/readdir.c
+++ b/usr/src/lib/libc/port/gen/readdir.c
@@ -20,7 +20,7 @@
*/
/*
- * Copyright 2007 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
@@ -46,11 +46,11 @@
#include <sys/feature_tests.h>
#if !defined(_LP64)
-#pragma weak readdir64 = _readdir64
+#pragma weak _readdir64 = readdir64
#endif
-#pragma weak readdir = _readdir
+#pragma weak _readdir = readdir
-#include "synonyms.h"
+#include "lint.h"
#include <dirent.h>
#include <limits.h>
#include <errno.h>
diff --git a/usr/src/lib/libc/port/gen/readdir_r.c b/usr/src/lib/libc/port/gen/readdir_r.c
index 8b4f3758c4..b95bac475c 100644
--- a/usr/src/lib/libc/port/gen/readdir_r.c
+++ b/usr/src/lib/libc/port/gen/readdir_r.c
@@ -20,15 +20,15 @@
*/
/*
- * Copyright 2007 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
+
/*
* readdir_r -- C library extension routine
*/
@@ -36,11 +36,10 @@
#include <sys/feature_tests.h>
#if !defined(_LP64)
-#pragma weak readdir64_r = _readdir64_r
+#pragma weak _readdir64_r = readdir64_r
#endif
-#pragma weak readdir_r = _readdir_r
-#include "synonyms.h"
+#include "lint.h"
#include "libc.h"
#include <mtlib.h>
#include <unistd.h>
diff --git a/usr/src/lib/libc/port/gen/realpath.c b/usr/src/lib/libc/port/gen/realpath.c
index 4da4d7a557..08223f8f5c 100644
--- a/usr/src/lib/libc/port/gen/realpath.c
+++ b/usr/src/lib/libc/port/gen/realpath.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,20 +18,18 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
-#pragma weak realpath = _realpath
-
-#include "synonyms.h"
+#include "lint.h"
#include <sys/types.h>
#include <dirent.h>
#include <sys/param.h>
diff --git a/usr/src/lib/libc/port/gen/reboot.c b/usr/src/lib/libc/port/gen/reboot.c
index 77402fa502..fd63668559 100644
--- a/usr/src/lib/libc/port/gen/reboot.c
+++ b/usr/src/lib/libc/port/gen/reboot.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,21 +18,18 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
-/* Portions Copyright(c) 1988, Sun Microsystems Inc. */
-/* All Rights Reserved */
-
-#include "synonyms.h"
+#include "lint.h"
#include <sys/types.h>
#include <sys/uadmin.h>
#include <sys/reboot.h>
diff --git a/usr/src/lib/libc/port/gen/regexpr.c b/usr/src/lib/libc/port/gen/regexpr.c
index 44afcdc9e0..efa3c2e0f0 100644
--- a/usr/src/lib/libc/port/gen/regexpr.c
+++ b/usr/src/lib/libc/port/gen/regexpr.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,16 +18,16 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
/*
* routines to do regular expression matching
@@ -95,7 +94,7 @@
* regular expression encountered.
*/
-#include "synonyms.h"
+#include "lint.h"
#include <stdlib.h>
#include <re_comp.h>
@@ -303,10 +302,10 @@ re_exec(const char *p1)
/*
* regular algorithm
*/
- do
+ do {
if (rv = advance(p1, p2))
return (rv);
- while (*p1++);
+ } while (*p1++);
return (0);
}
diff --git a/usr/src/lib/libc/port/gen/remove.c b/usr/src/lib/libc/port/gen/remove.c
index bf76e3824b..db18a89e24 100644
--- a/usr/src/lib/libc/port/gen/remove.c
+++ b/usr/src/lib/libc/port/gen/remove.c
@@ -24,12 +24,12 @@
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
-#include "synonyms.h"
+#pragma ident "%Z%%M% %I% %E% SMI"
+
+#include "lint.h"
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
diff --git a/usr/src/lib/libc/port/gen/rewinddir.c b/usr/src/lib/libc/port/gen/rewinddir.c
index e87634f140..e8964049e5 100644
--- a/usr/src/lib/libc/port/gen/rewinddir.c
+++ b/usr/src/lib/libc/port/gen/rewinddir.c
@@ -20,26 +20,27 @@
*/
/*
- * Copyright 2007 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
+
/*
* rewinddir -- C library extension routine
*/
-#pragma weak rewinddir = _rewinddir
+#pragma weak _rewinddir = rewinddir
-#include "synonyms.h"
+#include "lint.h"
#include <dirent.h>
+#undef rewinddir
void
-_rewinddir(DIR *dirp)
+rewinddir(DIR *dirp)
{
(void) seekdir(dirp, 0L);
}
diff --git a/usr/src/lib/libc/port/gen/rindex.c b/usr/src/lib/libc/port/gen/rindex.c
index 2057823dc6..05947571ef 100644
--- a/usr/src/lib/libc/port/gen/rindex.c
+++ b/usr/src/lib/libc/port/gen/rindex.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,8 +18,9 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
@@ -39,7 +39,7 @@
#pragma ident "%Z%%M% %I% %E% SMI"
-#include "synonyms.h"
+#include "lint.h"
#include <sys/types.h>
#include <string.h>
diff --git a/usr/src/lib/libc/port/gen/scandir.c b/usr/src/lib/libc/port/gen/scandir.c
index 87ad989bcd..ec425e0466 100644
--- a/usr/src/lib/libc/port/gen/scandir.c
+++ b/usr/src/lib/libc/port/gen/scandir.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,8 +18,9 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
@@ -52,14 +52,14 @@
#include <sys/feature_tests.h>
-#pragma weak scandir = _scandir
-#pragma weak alphasort = _alphasort
+#pragma weak _scandir = scandir
+#pragma weak _alphasort = alphasort
#if !defined(_LP64)
-#pragma weak scandir64 = _scandir64
-#pragma weak alphasort64 = _alphasort64
+#pragma weak _scandir64 = scandir64
+#pragma weak _alphasort64 = alphasort64
#endif
-#include "synonyms.h"
+#include "lint.h"
#include <dirent.h>
#include <errno.h>
#include <sys/types.h>
@@ -138,7 +138,7 @@ scandir64(const char *dirname, struct dirent64 *(*namelist[]),
(void) closedir(dirp);
if (nitems && dcomp != NULL)
qsort(names, nitems, sizeof (struct dirent64 *),
- (int(*)(const void *, const void *))dcomp);
+ (int(*)(const void *, const void *))dcomp);
*namelist = names;
return ((int)nitems);
@@ -211,7 +211,7 @@ scandir(const char *dirname, struct dirent *(*namelist[]),
}
arraysz += 512; /* no science here */
tmp = realloc(names,
- arraysz * sizeof (struct dirent *));
+ arraysz * sizeof (struct dirent *));
if (tmp == NULL) {
free(p);
goto fail;
@@ -223,7 +223,7 @@ scandir(const char *dirname, struct dirent *(*namelist[]),
(void) closedir(dirp);
if (nitems && dcomp != NULL)
qsort(names, nitems, sizeof (struct dirent *),
- (int(*)(const void *, const void *))dcomp);
+ (int(*)(const void *, const void *))dcomp);
*namelist = names;
return ((int)nitems);
diff --git a/usr/src/lib/libc/port/gen/seekdir.c b/usr/src/lib/libc/port/gen/seekdir.c
index 96f550f86d..c10700d759 100644
--- a/usr/src/lib/libc/port/gen/seekdir.c
+++ b/usr/src/lib/libc/port/gen/seekdir.c
@@ -20,15 +20,15 @@
*/
/*
- * Copyright 2007 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
+
/*
* seekdir -- C library extension routine
*/
@@ -36,11 +36,11 @@
#include <sys/feature_tests.h>
#if !defined(_LP64)
-#pragma weak seekdir64 = _seekdir64
+#pragma weak _seekdir64 = seekdir64
#endif
-#pragma weak seekdir = _seekdir
+#pragma weak _seekdir = seekdir
-#include "synonyms.h"
+#include "lint.h"
#include "libc.h"
#include <mtlib.h>
#include <dirent.h>
diff --git a/usr/src/lib/libc/port/gen/select.c b/usr/src/lib/libc/port/gen/select.c
index d01908d0a0..ed39ba9efb 100644
--- a/usr/src/lib/libc/port/gen/select.c
+++ b/usr/src/lib/libc/port/gen/select.c
@@ -24,11 +24,11 @@
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
+
/*
* Emulation of select() system call using poll() system call.
*
@@ -39,13 +39,11 @@
* Note that is it not feasible to emulate all error conditions,
* in particular conditions that would return EFAULT are far too
* difficult to check for in a library routine.
- *
*/
-#pragma weak pselect = _pselect
-#pragma weak select = _select
+#pragma weak _select = select
-#include "synonyms.h"
+#include "lint.h"
#include <values.h>
#include <pthread.h>
#include <errno.h>
diff --git a/usr/src/lib/libc/port/gen/select_large_fdset.c b/usr/src/lib/libc/port/gen/select_large_fdset.c
index 364b25d365..4411d38d58 100644
--- a/usr/src/lib/libc/port/gen/select_large_fdset.c
+++ b/usr/src/lib/libc/port/gen/select_large_fdset.c
@@ -24,11 +24,11 @@
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
+
/*
* Emulation of select() system call using _pollsys() system call.
*
@@ -52,15 +52,7 @@
#endif
#define FD_SETSIZE 65536
-/*
- * We do not #redefine the name since the only users of this
- * are external to the libraries and commands.
- *
- * #pragma weak pselect_large_fdset = _pselect_large_fdset
- * #pragma weak select_large_fdset = _select_large_fdset
- */
-
-#include "synonyms.h"
+#include "lint.h"
#include <values.h>
#include <stdlib.h>
#include <string.h>
@@ -170,7 +162,7 @@ pselect_large_fdset(int nfds, fd_set *in0, fd_set *out0, fd_set *ex0,
&nfds_on_list, &pfd_list, pfd))
== NULL) {
if (pfd_list != pfd)
- (void) free(pfd_list);
+ free(pfd_list);
pthread_testcancel();
return (-1);
}
@@ -193,7 +185,7 @@ done:
if (rv < 0) { /* no need to set bit masks */
if (pfd_list != pfd)
- (void) free(pfd_list);
+ free(pfd_list);
return (rv);
} else if (rv == 0) {
/*
@@ -217,7 +209,7 @@ done:
*ex++ = 0;
}
if (pfd_list != pfd)
- (void) free(pfd_list);
+ free(pfd_list);
return (0);
}
@@ -237,7 +229,7 @@ done:
if (p->revents & POLLNVAL) {
errno = EBADF;
if (pfd_list != pfd)
- (void) free(pfd_list);
+ free(pfd_list);
return (-1);
}
/*
@@ -336,7 +328,7 @@ done:
}
}
if (pfd_list != pfd)
- (void) free(pfd_list);
+ free(pfd_list);
return (rv);
}
@@ -391,7 +383,7 @@ realloc_fds(int *num, struct pollfd **list_head, struct pollfd *orig)
(void) memset(b, 0, (size_t)nta);
(void) memcpy(b, *list_head, nta / 2);
if (*list_head != orig)
- (void) free(*list_head);
+ free(*list_head);
*list_head = b;
b += *num;
*num = n2;
diff --git a/usr/src/lib/libc/port/gen/setlabel.c b/usr/src/lib/libc/port/gen/setlabel.c
index f1b310bfa8..927f7aa28d 100644
--- a/usr/src/lib/libc/port/gen/setlabel.c
+++ b/usr/src/lib/libc/port/gen/setlabel.c
@@ -18,19 +18,20 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
-#pragma weak setlabel = _setlabel
+#pragma ident "%Z%%M% %I% %E% SMI"
+
+#pragma weak _setlabel = setlabel
-#include "synonyms.h"
+#include "lint.h"
#include "mtlib.h"
#include <pfmt.h>
#include <thread.h>
diff --git a/usr/src/lib/libc/port/gen/setpriority.c b/usr/src/lib/libc/port/gen/setpriority.c
index d737c2ca19..a26d28771f 100644
--- a/usr/src/lib/libc/port/gen/setpriority.c
+++ b/usr/src/lib/libc/port/gen/setpriority.c
@@ -39,8 +39,7 @@
#pragma ident "%Z%%M% %I% %E% SMI"
-#include "synonyms.h"
-
+#include "lint.h"
#include <string.h>
#include <limits.h>
#include <sys/types.h>
diff --git a/usr/src/lib/libc/port/gen/settimeofday.c b/usr/src/lib/libc/port/gen/settimeofday.c
index 9df93a47bd..466933d7cc 100644
--- a/usr/src/lib/libc/port/gen/settimeofday.c
+++ b/usr/src/lib/libc/port/gen/settimeofday.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,20 +18,18 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
-#pragma weak settimeofday = _settimeofday
-
-#include "synonyms.h"
+#include "lint.h"
#include <sys/types.h>
#include <sys/time.h>
#include <stdio.h>
@@ -53,8 +50,7 @@ settimeofday(struct timeval *tp, void *tzp)
if (tp == NULL)
return (0);
- if (tp->tv_sec < 0 || tp->tv_usec < 0 ||
- tp->tv_usec >= MICROSEC) {
+ if (tp->tv_sec < 0 || tp->tv_usec < 0 || tp->tv_usec >= MICROSEC) {
errno = EINVAL;
return (-1);
}
diff --git a/usr/src/lib/libc/port/gen/sh_locks.c b/usr/src/lib/libc/port/gen/sh_locks.c
index b086da6530..6583efbc9c 100644
--- a/usr/src/lib/libc/port/gen/sh_locks.c
+++ b/usr/src/lib/libc/port/gen/sh_locks.c
@@ -26,7 +26,7 @@
#pragma ident "%Z%%M% %I% %E% SMI"
-#include "synonyms.h"
+#include "lint.h"
#include <mtlib.h>
#include <sys/types.h>
#include <synch.h>
diff --git a/usr/src/lib/libc/port/gen/sigflag.c b/usr/src/lib/libc/port/gen/sigflag.c
index b11f055dca..b0f05f477e 100644
--- a/usr/src/lib/libc/port/gen/sigflag.c
+++ b/usr/src/lib/libc/port/gen/sigflag.c
@@ -20,20 +20,18 @@
*/
/*
- * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
-/* change state of signal flag */
+#pragma ident "%Z%%M% %I% %E% SMI"
-#pragma weak sigflag = _sigflag
+/* change state of signal flag */
-#include "synonyms.h"
+#include "lint.h"
#include <sys/types.h>
#include <signal.h>
diff --git a/usr/src/lib/libc/port/gen/siglist.c b/usr/src/lib/libc/port/gen/siglist.c
index f2608da362..b75381a145 100644
--- a/usr/src/lib/libc/port/gen/siglist.c
+++ b/usr/src/lib/libc/port/gen/siglist.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,8 +18,9 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
@@ -39,7 +39,7 @@
#pragma ident "%Z%%M% %I% %E% SMI"
-#include "synonyms.h"
+#include "lint.h"
#include <sys/types.h>
#include <signal.h>
diff --git a/usr/src/lib/libc/port/gen/sigsend.c b/usr/src/lib/libc/port/gen/sigsend.c
index e23ee0c5fe..3a781e91ca 100644
--- a/usr/src/lib/libc/port/gen/sigsend.c
+++ b/usr/src/lib/libc/port/gen/sigsend.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,20 +18,20 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
-#pragma weak sigsend = _sigsend
+#pragma weak _sigsend = sigsend
-#include "synonyms.h"
+#include "lint.h"
#include <sys/types.h>
#include <sys/procset.h>
#include <signal.h>
diff --git a/usr/src/lib/libc/port/gen/sigsetops.c b/usr/src/lib/libc/port/gen/sigsetops.c
index 6b273de06e..b9862220fb 100644
--- a/usr/src/lib/libc/port/gen/sigsetops.c
+++ b/usr/src/lib/libc/port/gen/sigsetops.c
@@ -24,25 +24,24 @@
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
+
/*
* POSIX signal manipulation functions.
*/
-#pragma weak sigfillset = _sigfillset
-#pragma weak sigemptyset = _sigemptyset
-#pragma weak sigaddset = _sigaddset
-#pragma weak sigdelset = _sigdelset
-#pragma weak sigismember = _sigismember
+#pragma weak _sigfillset = sigfillset
+#pragma weak _sigemptyset = sigemptyset
+#pragma weak _sigaddset = sigaddset
+#pragma weak _sigdelset = sigdelset
+#pragma weak _sigismember = sigismember
-#include "synonyms.h"
+#include "lint.h"
#include <sys/types.h>
#include <stdio.h>
#include <sys/param.h>
-#include <sys/errno.h>
#include <sys/signal.h>
#include <errno.h>
#include "libc.h"
diff --git a/usr/src/lib/libc/port/gen/ssignal.c b/usr/src/lib/libc/port/gen/ssignal.c
index e00e556169..6030626b17 100644
--- a/usr/src/lib/libc/port/gen/ssignal.c
+++ b/usr/src/lib/libc/port/gen/ssignal.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,24 +18,22 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
/*
* ssignal, gsignal: software signals
*/
-#pragma weak gsignal = _gsignal
-#pragma weak ssignal = _ssignal
-#include "synonyms.h"
+#include "lint.h"
#include <sys/types.h>
#include <signal.h>
diff --git a/usr/src/lib/libc/port/gen/stack.c b/usr/src/lib/libc/port/gen/stack.c
index 6b1e314e8a..317c926b1e 100644
--- a/usr/src/lib/libc/port/gen/stack.c
+++ b/usr/src/lib/libc/port/gen/stack.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,8 +18,9 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
@@ -31,20 +31,20 @@
/*
* Initialization of the main stack is performed in libc_init().
- * Initialization of thread stacks is performed in _thr_setup().
+ * Initialization of thread stacks is performed in _thrp_setup().
*/
-#pragma weak stack_getbounds = _stack_getbounds
+#pragma weak _stack_getbounds = stack_getbounds
int
-_stack_getbounds(stack_t *sp)
+stack_getbounds(stack_t *sp)
{
*sp = curthread->ul_ustack;
return (0);
}
-#pragma weak stack_setbounds = _stack_setbounds
+#pragma weak _stack_setbounds = stack_setbounds
int
-_stack_setbounds(const stack_t *sp)
+stack_setbounds(const stack_t *sp)
{
ulwp_t *self = curthread;
@@ -69,9 +69,9 @@ _stack_setbounds(const stack_t *sp)
* 0 addr is outside of the bounds of the current stack
* Note that addr is an unbiased value.
*/
-#pragma weak stack_inbounds = _stack_inbounds
+#pragma weak _stack_inbounds = stack_inbounds
int
-_stack_inbounds(void *addr)
+stack_inbounds(void *addr)
{
stack_t *ustackp = &curthread->ul_ustack;
uintptr_t base = (uintptr_t)ustackp->ss_sp;
@@ -80,9 +80,9 @@ _stack_inbounds(void *addr)
return ((uintptr_t)addr >= base && (uintptr_t)addr < base + size);
}
-#pragma weak stack_violation = _stack_violation
+#pragma weak _stack_violation = stack_violation
int
-_stack_violation(int sig, const siginfo_t *sip, const ucontext_t *ucp)
+stack_violation(int sig, const siginfo_t *sip, const ucontext_t *ucp)
{
uintptr_t addr;
uintptr_t base;
diff --git a/usr/src/lib/libc/port/gen/str2sig.c b/usr/src/lib/libc/port/gen/str2sig.c
index f9283ab6e3..f899f1395e 100644
--- a/usr/src/lib/libc/port/gen/str2sig.c
+++ b/usr/src/lib/libc/port/gen/str2sig.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,23 +18,18 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
-
-#pragma weak str2sig = _str2sig
-#pragma weak sig2str = _sig2str
-
-#include "synonyms.h"
-
+#include "lint.h"
#include <string.h>
#include <stdlib.h>
#include <signal.h>
diff --git a/usr/src/lib/libc/port/gen/strcase_charmap.c b/usr/src/lib/libc/port/gen/strcase_charmap.c
index 8921606fd2..5e88e34afa 100644
--- a/usr/src/lib/libc/port/gen/strcase_charmap.c
+++ b/usr/src/lib/libc/port/gen/strcase_charmap.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,8 +18,9 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
@@ -34,7 +34,7 @@
#pragma ident "%Z%%M% %I% %E% SMI"
-#include "synonyms.h"
+#include "lint.h"
#include <sys/types.h>
#include <strings.h>
diff --git a/usr/src/lib/libc/port/gen/strcasecmp.c b/usr/src/lib/libc/port/gen/strcasecmp.c
index b24e3d0f2b..c8e7ba62ac 100644
--- a/usr/src/lib/libc/port/gen/strcasecmp.c
+++ b/usr/src/lib/libc/port/gen/strcasecmp.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,8 +18,9 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
@@ -34,7 +34,7 @@
#pragma ident "%Z%%M% %I% %E% SMI"
-#include "synonyms.h"
+#include "lint.h"
#include <sys/types.h>
#include <strings.h>
diff --git a/usr/src/lib/libc/port/gen/strcat.c b/usr/src/lib/libc/port/gen/strcat.c
index 99f56425fc..b127c96186 100644
--- a/usr/src/lib/libc/port/gen/strcat.c
+++ b/usr/src/lib/libc/port/gen/strcat.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,19 +18,18 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
-#include "synonyms.h"
-
+#include "lint.h"
#include <string.h>
#include <sys/types.h>
diff --git a/usr/src/lib/libc/port/gen/strchr.c b/usr/src/lib/libc/port/gen/strchr.c
index 520e7e8842..acf3d1c07d 100644
--- a/usr/src/lib/libc/port/gen/strchr.c
+++ b/usr/src/lib/libc/port/gen/strchr.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,18 +18,18 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
-#include "synonyms.h"
+#include "lint.h"
#include <string.h>
#include <stddef.h>
#include <sys/types.h>
diff --git a/usr/src/lib/libc/port/gen/strcmp.c b/usr/src/lib/libc/port/gen/strcmp.c
index 7e613be218..675b01f0db 100644
--- a/usr/src/lib/libc/port/gen/strcmp.c
+++ b/usr/src/lib/libc/port/gen/strcmp.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,18 +18,18 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
-#include "synonyms.h"
+#include "lint.h"
#include <string.h>
#include <sys/types.h>
diff --git a/usr/src/lib/libc/port/gen/strcpy.c b/usr/src/lib/libc/port/gen/strcpy.c
index 6dd19f49ea..bcc5829560 100644
--- a/usr/src/lib/libc/port/gen/strcpy.c
+++ b/usr/src/lib/libc/port/gen/strcpy.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,18 +18,18 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
-#include "synonyms.h"
+#include "lint.h"
#include <string.h>
#include <sys/types.h>
diff --git a/usr/src/lib/libc/port/gen/strcspn.c b/usr/src/lib/libc/port/gen/strcspn.c
index 4dc847cb11..03188550d1 100644
--- a/usr/src/lib/libc/port/gen/strcspn.c
+++ b/usr/src/lib/libc/port/gen/strcspn.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,18 +18,18 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
-#include "synonyms.h"
+#include "lint.h"
#include <string.h>
#include <sys/types.h>
diff --git a/usr/src/lib/libc/port/gen/strdup.c b/usr/src/lib/libc/port/gen/strdup.c
index 4fa0ae1450..162c16241c 100644
--- a/usr/src/lib/libc/port/gen/strdup.c
+++ b/usr/src/lib/libc/port/gen/strdup.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,20 +18,20 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
-#pragma weak strdup = _strdup
+#pragma weak _strdup = strdup
-#include "synonyms.h"
+#include "lint.h"
#include <string.h>
#include <stdlib.h>
#include <sys/types.h>
diff --git a/usr/src/lib/libc/port/gen/strerror.c b/usr/src/lib/libc/port/gen/strerror.c
index bc60768d85..213d964cf3 100644
--- a/usr/src/lib/libc/port/gen/strerror.c
+++ b/usr/src/lib/libc/port/gen/strerror.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,21 +18,18 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
-#pragma weak strerror = _strerror
-#pragma weak strerror_r = _strerror_r
-
-#include "synonyms.h"
+#include "lint.h"
#include "_libc_gettext.h"
#include <string.h>
#include <sys/types.h>
@@ -44,7 +40,7 @@ extern const int _sys_index[];
extern int _sys_num_err;
char *
-_strerror(int errnum)
+strerror(int errnum)
{
if (errnum < _sys_num_err && errnum >= 0)
return (_libc_gettext((char *)&_sys_errs[_sys_index[errnum]]));
@@ -57,7 +53,7 @@ _strerror(int errnum)
* Implemented strerror_r in Solaris 10 to comply with SUSv3 2001.
*/
int
-_strerror_r(int errnum, char *strerrbuf, size_t buflen)
+strerror_r(int errnum, char *strerrbuf, size_t buflen)
{
char *buf;
int ret = 0;
diff --git a/usr/src/lib/libc/port/gen/strlcat.c b/usr/src/lib/libc/port/gen/strlcat.c
index 17700ccdb2..07d1403dde 100644
--- a/usr/src/lib/libc/port/gen/strlcat.c
+++ b/usr/src/lib/libc/port/gen/strlcat.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,14 +18,15 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
-#include "synonyms.h"
+#include "lint.h"
#include <string.h>
#include <sys/types.h>
diff --git a/usr/src/lib/libc/port/gen/strlcpy.c b/usr/src/lib/libc/port/gen/strlcpy.c
index 84e11a7120..7a8009b893 100644
--- a/usr/src/lib/libc/port/gen/strlcpy.c
+++ b/usr/src/lib/libc/port/gen/strlcpy.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,14 +18,15 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
-#include "synonyms.h"
+#include "lint.h"
#include <string.h>
#include <sys/types.h>
diff --git a/usr/src/lib/libc/port/gen/strlen.c b/usr/src/lib/libc/port/gen/strlen.c
index 06cd9eb868..5c5fd67d14 100644
--- a/usr/src/lib/libc/port/gen/strlen.c
+++ b/usr/src/lib/libc/port/gen/strlen.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,23 +18,23 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
/*
* Returns the number of
* non-NULL bytes in string argument.
*/
-#include "synonyms.h"
+#include "lint.h"
#include <string.h>
#include <sys/types.h>
diff --git a/usr/src/lib/libc/port/gen/strncasecmp.c b/usr/src/lib/libc/port/gen/strncasecmp.c
index 6868a7d00e..d06b7ac9c4 100644
--- a/usr/src/lib/libc/port/gen/strncasecmp.c
+++ b/usr/src/lib/libc/port/gen/strncasecmp.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,8 +18,9 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
@@ -34,7 +34,7 @@
#pragma ident "%Z%%M% %I% %E% SMI"
-#include "synonyms.h"
+#include "lint.h"
#include <sys/types.h>
#include <strings.h>
diff --git a/usr/src/lib/libc/port/gen/strncat.c b/usr/src/lib/libc/port/gen/strncat.c
index 27d708760e..11e385e5e2 100644
--- a/usr/src/lib/libc/port/gen/strncat.c
+++ b/usr/src/lib/libc/port/gen/strncat.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,18 +18,18 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
-#include "synonyms.h"
+#include "lint.h"
#include <string.h>
#include <sys/types.h>
diff --git a/usr/src/lib/libc/port/gen/strncmp.c b/usr/src/lib/libc/port/gen/strncmp.c
index b54e5078bb..ca734c51d5 100644
--- a/usr/src/lib/libc/port/gen/strncmp.c
+++ b/usr/src/lib/libc/port/gen/strncmp.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,18 +18,18 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
-#include "synonyms.h"
+#include "lint.h"
#include <string.h>
#include <sys/types.h>
diff --git a/usr/src/lib/libc/port/gen/strncpy.c b/usr/src/lib/libc/port/gen/strncpy.c
index 489dd81f5e..7df39ad138 100644
--- a/usr/src/lib/libc/port/gen/strncpy.c
+++ b/usr/src/lib/libc/port/gen/strncpy.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,18 +18,18 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
-#include "synonyms.h"
+#include "lint.h"
#include <string.h>
#include <sys/types.h>
diff --git a/usr/src/lib/libc/port/gen/strnlen.c b/usr/src/lib/libc/port/gen/strnlen.c
index 01b554e17a..605245b6bb 100644
--- a/usr/src/lib/libc/port/gen/strnlen.c
+++ b/usr/src/lib/libc/port/gen/strnlen.c
@@ -20,15 +20,13 @@
*/
/*
- * Copyright 2006 Sun Microsystems, Inc.
+ * Copyright 2008 Sun Microsystems, Inc.
* All rights reserved. Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
-#pragma weak strnlen = _strnlen
-
-#include "synonyms.h"
+#include "lint.h"
#include <string.h>
#include <sys/types.h>
diff --git a/usr/src/lib/libc/port/gen/strpbrk.c b/usr/src/lib/libc/port/gen/strpbrk.c
index 92dc18ffca..3b4af6fa01 100644
--- a/usr/src/lib/libc/port/gen/strpbrk.c
+++ b/usr/src/lib/libc/port/gen/strpbrk.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,18 +18,18 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
-#include "synonyms.h"
+#include "lint.h"
#include <string.h>
#include <stddef.h>
#include <sys/types.h>
diff --git a/usr/src/lib/libc/port/gen/strrchr.c b/usr/src/lib/libc/port/gen/strrchr.c
index 0e948ad560..ae3457c667 100644
--- a/usr/src/lib/libc/port/gen/strrchr.c
+++ b/usr/src/lib/libc/port/gen/strrchr.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,18 +18,18 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
-#include "synonyms.h"
+#include "lint.h"
#include <string.h>
#include <stddef.h>
#include <sys/types.h>
diff --git a/usr/src/lib/libc/port/gen/strsignal.c b/usr/src/lib/libc/port/gen/strsignal.c
index 5295a4197b..db148c881d 100644
--- a/usr/src/lib/libc/port/gen/strsignal.c
+++ b/usr/src/lib/libc/port/gen/strsignal.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,16 +18,15 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
-#pragma weak strsignal = _strsignal
-
-#include "synonyms.h"
+#include "lint.h"
#include "_libc_gettext.h"
#include <string.h>
#include <stddef.h>
@@ -38,7 +36,7 @@ extern const char **_sys_siglistp;
extern const int _sys_siglistn;
char *
-_strsignal(int signum)
+strsignal(int signum)
{
if (signum < _sys_siglistn && signum >= 0)
return (_libc_gettext((char *)_sys_siglistp[signum]));
diff --git a/usr/src/lib/libc/port/gen/strspn.c b/usr/src/lib/libc/port/gen/strspn.c
index f6ca1bad7f..266abb172a 100644
--- a/usr/src/lib/libc/port/gen/strspn.c
+++ b/usr/src/lib/libc/port/gen/strspn.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,18 +18,18 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
-#include "synonyms.h"
+#include "lint.h"
#include <string.h>
#include <sys/types.h>
diff --git a/usr/src/lib/libc/port/gen/strstr.c b/usr/src/lib/libc/port/gen/strstr.c
index 0c600832c1..a8d8d655af 100644
--- a/usr/src/lib/libc/port/gen/strstr.c
+++ b/usr/src/lib/libc/port/gen/strstr.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,18 +18,18 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
-#include "synonyms.h"
+#include "lint.h"
#include <string.h>
#include <stddef.h>
#include <sys/types.h>
diff --git a/usr/src/lib/libc/port/gen/strtod.c b/usr/src/lib/libc/port/gen/strtod.c
index c19cdca8c1..5731fa9ef4 100644
--- a/usr/src/lib/libc/port/gen/strtod.c
+++ b/usr/src/lib/libc/port/gen/strtod.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,18 +18,18 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
-#include "synonyms.h"
+#include "lint.h"
#include <errno.h>
#include <stdio.h>
#include <values.h>
diff --git a/usr/src/lib/libc/port/gen/strtoimax.c b/usr/src/lib/libc/port/gen/strtoimax.c
index 35b9d48155..9466563ec5 100644
--- a/usr/src/lib/libc/port/gen/strtoimax.c
+++ b/usr/src/lib/libc/port/gen/strtoimax.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -21,13 +20,13 @@
*/
/*
- * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
-#include "synonyms.h"
+#include "lint.h"
#include <inttypes.h>
#include <sys/types.h>
#include <stdlib.h>
diff --git a/usr/src/lib/libc/port/gen/strtok.c b/usr/src/lib/libc/port/gen/strtok.c
index 68d712fe8b..c0393ffe15 100644
--- a/usr/src/lib/libc/port/gen/strtok.c
+++ b/usr/src/lib/libc/port/gen/strtok.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,18 +18,18 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
-#include "synonyms.h"
+#include "lint.h"
#include <string.h>
#include <stddef.h>
#include <sys/types.h>
diff --git a/usr/src/lib/libc/port/gen/strtok_r.c b/usr/src/lib/libc/port/gen/strtok_r.c
index 9eb622ae74..31cb290504 100644
--- a/usr/src/lib/libc/port/gen/strtok_r.c
+++ b/usr/src/lib/libc/port/gen/strtok_r.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,20 +18,18 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
-#pragma weak strtok_r = _strtok_r
-
-#include "synonyms.h"
+#include "lint.h"
#include <string.h>
#include <stddef.h>
#include <sys/types.h>
diff --git a/usr/src/lib/libc/port/gen/strtoll.c b/usr/src/lib/libc/port/gen/strtoll.c
index cafc2925c6..d594cd9053 100644
--- a/usr/src/lib/libc/port/gen/strtoll.c
+++ b/usr/src/lib/libc/port/gen/strtoll.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,20 +18,18 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
-#pragma weak strtoll = _strtoll
-
-#include "synonyms.h"
+#include "lint.h"
#include <errno.h>
#include <ctype.h>
#include <limits.h>
@@ -99,7 +96,7 @@ strtoll(const char *str, char **nptr, int base)
if (!lisalnum(c) || (xx = DIGIT(c)) >= base)
return (0); /* no number formed */
if (base == 16 && c == '0' && (ustr[1] == 'x' || ustr[1] == 'X') &&
- isxdigit(ustr[2]))
+ isxdigit(ustr[2]))
c = *(ustr += 2); /* skip over leading "0x" or "0X" */
/* this code assumes that abs(llong_min) >= abs(llong_max) */
diff --git a/usr/src/lib/libc/port/gen/strtoull.c b/usr/src/lib/libc/port/gen/strtoull.c
index 393056a459..6d474eded6 100644
--- a/usr/src/lib/libc/port/gen/strtoull.c
+++ b/usr/src/lib/libc/port/gen/strtoull.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,20 +18,18 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
-#pragma weak strtoull = _strtoull
-
-#include "synonyms.h"
+#include "lint.h"
#include <errno.h>
#include <ctype.h>
#include <limits.h>
@@ -100,7 +97,7 @@ strtoull(const char *str, char **nptr, int base)
if (!lisalnum(c) || (xx = DIGIT(c)) >= base)
return (0); /* no number formed */
if (base == 16 && c == '0' && (ustr[1] == 'x' || ustr[1] == 'X') &&
- isxdigit(ustr[2]))
+ isxdigit(ustr[2]))
c = *(ustr += 2); /* skip over leading "0x" or "0X" */
multmax = ullong_max / (u_longlong_t)base;
diff --git a/usr/src/lib/libc/port/gen/strtoumax.c b/usr/src/lib/libc/port/gen/strtoumax.c
index 2fb3f144e4..ac39c6caf4 100644
--- a/usr/src/lib/libc/port/gen/strtoumax.c
+++ b/usr/src/lib/libc/port/gen/strtoumax.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -21,13 +20,13 @@
*/
/*
- * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
-#include "synonyms.h"
+#include "lint.h"
#include <inttypes.h>
#include <sys/types.h>
#include <stdlib.h>
diff --git a/usr/src/lib/libc/port/gen/swab.c b/usr/src/lib/libc/port/gen/swab.c
index ebbde7fcee..6dafc38507 100644
--- a/usr/src/lib/libc/port/gen/swab.c
+++ b/usr/src/lib/libc/port/gen/swab.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,24 +18,24 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
/*
* Swab bytes
*/
-#pragma weak swab = _swab
+#pragma weak _swab = swab
-#include "synonyms.h"
+#include "lint.h"
#include <sys/types.h>
#include <stdlib.h>
diff --git a/usr/src/lib/libc/port/gen/swapctl.c b/usr/src/lib/libc/port/gen/swapctl.c
index 7b8c6d1db8..e49d743ac6 100644
--- a/usr/src/lib/libc/port/gen/swapctl.c
+++ b/usr/src/lib/libc/port/gen/swapctl.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,20 +18,18 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
-#pragma weak swapctl = _swapctl
-
-#include "synonyms.h"
+#include "lint.h"
#include "sys/uadmin.h"
#include <sys/types.h>
#include <sys/swap.h>
diff --git a/usr/src/lib/libc/port/gen/sysconf.c b/usr/src/lib/libc/port/gen/sysconf.c
index 4b06010170..2599bfa4d0 100644
--- a/usr/src/lib/libc/port/gen/sysconf.c
+++ b/usr/src/lib/libc/port/gen/sysconf.c
@@ -18,27 +18,26 @@
*
* CDDL HEADER END
*/
+
/*
* Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
/* sysconf(3C) - returns system configuration information */
-#pragma weak sysconf = _sysconf
+#pragma weak _sysconf = sysconf
-#include "synonyms.h"
+#include "lint.h"
#include <mtlib.h>
#include <sys/types.h>
#include <unistd.h>
#include <sys/sysconfig.h>
-#include <sys/errno.h>
#include <limits.h>
#include <time.h>
#include <errno.h>
@@ -378,7 +377,7 @@ sysconf(int name)
return (-1L);
case _SC_THREAD_STACK_MIN:
- return ((long)_thr_min_stack());
+ return ((long)thr_min_stack());
case _SC_THREAD_THREADS_MAX:
return (-1L);
diff --git a/usr/src/lib/libc/port/gen/syslog.c b/usr/src/lib/libc/port/gen/syslog.c
index 487da876e0..aa535a1edf 100644
--- a/usr/src/lib/libc/port/gen/syslog.c
+++ b/usr/src/lib/libc/port/gen/syslog.c
@@ -20,7 +20,7 @@
*/
/*
- * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
@@ -53,13 +53,9 @@
* The output of this routine is intended to be read by /etc/syslogd.
*/
-#pragma weak syslog = _syslog
-#pragma weak vsyslog = _vsyslog
-#pragma weak openlog = _openlog
-#pragma weak closelog = _closelog
-#pragma weak setlogmask = _setlogmask
+#pragma weak _syslog = syslog
-#include "synonyms.h"
+#include "lint.h"
#include <sys/types.h>
#include <sys/types32.h>
#include <sys/mman.h>
diff --git a/usr/src/lib/libc/port/gen/tcdrain.c b/usr/src/lib/libc/port/gen/tcdrain.c
index 78190fe231..3f26ede375 100644
--- a/usr/src/lib/libc/port/gen/tcdrain.c
+++ b/usr/src/lib/libc/port/gen/tcdrain.c
@@ -24,12 +24,12 @@
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
-#include "synonyms.h"
+#pragma ident "%Z%%M% %I% %E% SMI"
+
+#include "lint.h"
#include <sys/termios.h>
#include <unistd.h>
#include <sys/types.h>
diff --git a/usr/src/lib/libc/port/gen/tcflow.c b/usr/src/lib/libc/port/gen/tcflow.c
index 842b68eed4..0f25d36920 100644
--- a/usr/src/lib/libc/port/gen/tcflow.c
+++ b/usr/src/lib/libc/port/gen/tcflow.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,20 +18,20 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
-#pragma weak tcflow = _tcflow
+#pragma weak _tcflow = tcflow
-#include "synonyms.h"
+#include "lint.h"
#include <sys/termios.h>
#include <sys/types.h>
#include <unistd.h>
diff --git a/usr/src/lib/libc/port/gen/tcflush.c b/usr/src/lib/libc/port/gen/tcflush.c
index f496d5e1db..6bfe406198 100644
--- a/usr/src/lib/libc/port/gen/tcflush.c
+++ b/usr/src/lib/libc/port/gen/tcflush.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,20 +18,20 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
-#pragma weak tcflush = _tcflush
+#pragma weak _tcflush = tcflush
-#include "synonyms.h"
+#include "lint.h"
#include <sys/termios.h>
#include <sys/types.h>
#include <unistd.h>
diff --git a/usr/src/lib/libc/port/gen/tcgetattr.c b/usr/src/lib/libc/port/gen/tcgetattr.c
index ec1f8955a9..aa469e892c 100644
--- a/usr/src/lib/libc/port/gen/tcgetattr.c
+++ b/usr/src/lib/libc/port/gen/tcgetattr.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,20 +18,20 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
-#pragma weak tcgetattr = _tcgetattr
+#pragma weak _tcgetattr = tcgetattr
-#include "synonyms.h"
+#include "lint.h"
#include <sys/termios.h>
#include <sys/types.h>
#include <unistd.h>
diff --git a/usr/src/lib/libc/port/gen/tcgetpgrp.c b/usr/src/lib/libc/port/gen/tcgetpgrp.c
index ac3bf745ca..ed4e452cb2 100644
--- a/usr/src/lib/libc/port/gen/tcgetpgrp.c
+++ b/usr/src/lib/libc/port/gen/tcgetpgrp.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,20 +18,20 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
-#pragma weak tcgetpgrp = _tcgetpgrp
+#pragma weak _tcgetpgrp = tcgetpgrp
-#include "synonyms.h"
+#include "lint.h"
#include <sys/termios.h>
#include <sys/types.h>
#include <unistd.h>
diff --git a/usr/src/lib/libc/port/gen/tcgetsid.c b/usr/src/lib/libc/port/gen/tcgetsid.c
index 92511edc27..7152f592fb 100644
--- a/usr/src/lib/libc/port/gen/tcgetsid.c
+++ b/usr/src/lib/libc/port/gen/tcgetsid.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,20 +18,20 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
-#pragma weak tcgetsid = _tcgetsid
+#pragma weak _tcgetsid = tcgetsid
-#include "synonyms.h"
+#include "lint.h"
#include <sys/termios.h>
#include <sys/types.h>
#include <errno.h>
diff --git a/usr/src/lib/libc/port/gen/tcsendbreak.c b/usr/src/lib/libc/port/gen/tcsendbreak.c
index 465b17b0ea..16f7e81bf6 100644
--- a/usr/src/lib/libc/port/gen/tcsendbreak.c
+++ b/usr/src/lib/libc/port/gen/tcsendbreak.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,20 +18,20 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
-#pragma weak tcsendbreak = _tcsendbreak
+#pragma weak _tcsendbreak = tcsendbreak
-#include "synonyms.h"
+#include "lint.h"
#include <sys/types.h>
#include <sys/termios.h>
#include <unistd.h>
diff --git a/usr/src/lib/libc/port/gen/tcsetattr.c b/usr/src/lib/libc/port/gen/tcsetattr.c
index 2644d50f43..f36de46e82 100644
--- a/usr/src/lib/libc/port/gen/tcsetattr.c
+++ b/usr/src/lib/libc/port/gen/tcsetattr.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,20 +18,20 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
-#pragma weak tcsetattr = _tcsetattr
+#pragma weak _tcsetattr = tcsetattr
-#include "synonyms.h"
+#include "lint.h"
#include <sys/types.h>
#include <sys/termios.h>
#include <errno.h>
diff --git a/usr/src/lib/libc/port/gen/tcsetpgrp.c b/usr/src/lib/libc/port/gen/tcsetpgrp.c
index b6e6b9db3a..1470d1439b 100644
--- a/usr/src/lib/libc/port/gen/tcsetpgrp.c
+++ b/usr/src/lib/libc/port/gen/tcsetpgrp.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,20 +18,20 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
-#pragma weak tcsetpgrp = _tcsetpgrp
+#pragma weak _tcsetpgrp = tcsetpgrp
-#include "synonyms.h"
+#include "lint.h"
#include <sys/termios.h>
#include <sys/types.h>
#include <unistd.h>
diff --git a/usr/src/lib/libc/port/gen/tell.c b/usr/src/lib/libc/port/gen/tell.c
index 2391cd4da5..4cd1e24fa4 100644
--- a/usr/src/lib/libc/port/gen/tell.c
+++ b/usr/src/lib/libc/port/gen/tell.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,16 +18,16 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
/*
* return offset in file.
@@ -37,12 +36,12 @@
#include <sys/feature_tests.h>
#if !defined(_LP64) && _FILE_OFFSET_BITS == 64
-#pragma weak tell64 = _tell64
+#pragma weak _tell64 = tell64
#else
-#pragma weak tell = _tell
+#pragma weak _tell = tell
#endif
-#include "synonyms.h"
+#include "lint.h"
#include <fcntl.h>
#include <stdio.h>
#include <unistd.h>
diff --git a/usr/src/lib/libc/port/gen/telldir.c b/usr/src/lib/libc/port/gen/telldir.c
index ea8f70f9a8..86721d077a 100644
--- a/usr/src/lib/libc/port/gen/telldir.c
+++ b/usr/src/lib/libc/port/gen/telldir.c
@@ -20,15 +20,15 @@
*/
/*
- * Copyright 2007 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
+
/*
* telldir -- C library extension routine
*/
@@ -36,11 +36,11 @@
#include <sys/isa_defs.h>
#if !defined(_LP64)
-#pragma weak telldir64 = _telldir64
+#pragma weak _telldir64 = telldir64
#endif
-#pragma weak telldir = _telldir
+#pragma weak _telldir = telldir
-#include "synonyms.h"
+#include "lint.h"
#include "libc.h"
#include <mtlib.h>
#include <dirent.h>
diff --git a/usr/src/lib/libc/port/gen/tfind.c b/usr/src/lib/libc/port/gen/tfind.c
index 6fccc089c7..f34d477674 100644
--- a/usr/src/lib/libc/port/gen/tfind.c
+++ b/usr/src/lib/libc/port/gen/tfind.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,16 +18,16 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
/*
* Tree search algorithm, generalized from Knuth (6.2.2) Algorithm T.
@@ -37,9 +36,9 @@
* because the definition of NODE isn't available to the user.
*/
-#pragma weak tfind = _tfind
+#pragma weak _tfind = tfind
-#include "synonyms.h"
+#include "lint.h"
#include <mtlib.h>
#include <sys/types.h>
#include <search.h>
diff --git a/usr/src/lib/libc/port/gen/time_data.c b/usr/src/lib/libc/port/gen/time_data.c
index 3226079bb8..7593e5f842 100644
--- a/usr/src/lib/libc/port/gen/time_data.c
+++ b/usr/src/lib/libc/port/gen/time_data.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,18 +18,18 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
-#include "synonyms.h"
+#include "lint.h"
#include <time.h>
#include <tzfile.h>
/*
diff --git a/usr/src/lib/libc/port/gen/time_gdata.c b/usr/src/lib/libc/port/gen/time_gdata.c
index d94bdbae23..d23e096738 100644
--- a/usr/src/lib/libc/port/gen/time_gdata.c
+++ b/usr/src/lib/libc/port/gen/time_gdata.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,26 +18,26 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
-#pragma weak altzone = _altzone
-#pragma weak daylight = _daylight
-#pragma weak timezone = _timezone
-#pragma weak tzname = _tzname
+#pragma weak _altzone = altzone
+#pragma weak _daylight = daylight
+#pragma weak _timezone = timezone
+#pragma weak _tzname = tzname
-#include "synonyms.h"
-#include <mtlib.h>
+#include "lint.h"
+#include <mtlib.h>
#include <sys/types.h>
-#include <time.h>
+#include <time.h>
#include <synch.h>
long int timezone = 0; /* XPG4 version 2 */
diff --git a/usr/src/lib/libc/port/gen/truncate.c b/usr/src/lib/libc/port/gen/truncate.c
index eff577845f..d3db2cb28e 100644
--- a/usr/src/lib/libc/port/gen/truncate.c
+++ b/usr/src/lib/libc/port/gen/truncate.c
@@ -24,11 +24,10 @@
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
/*
* ftruncate() and truncate() set a file to a specified
@@ -41,16 +40,13 @@
#include <sys/feature_tests.h>
#if !defined(_LP64) && _FILE_OFFSET_BITS == 64
-#pragma weak ftruncate64 = _ftruncate64
-#pragma weak truncate64 = _truncate64
-#define _ftruncate _ftruncate64
-#define _truncate _truncate64
-#else /* !_LP64 && _FILE_OFFSET_BITS == 64 */
-#pragma weak ftruncate = _ftruncate
-#pragma weak truncate = _truncate
+#pragma weak _ftruncate64 = ftruncate64
+#pragma weak _truncate64 = truncate64
+#define ftruncate ftruncate64
+#define truncate truncate64
#endif /* !_LP64 && _FILE_OFFSET_BITS == 64 */
-#include "synonyms.h"
+#include "lint.h"
#include <unistd.h>
#include <stdio.h>
#include <fcntl.h>
@@ -58,7 +54,7 @@
#include <sys/types.h>
int
-_ftruncate(int fildes, off_t len)
+ftruncate(int fildes, off_t len)
{
struct flock lck;
@@ -74,7 +70,7 @@ _ftruncate(int fildes, off_t len)
}
int
-_truncate(const char *path, off_t len)
+truncate(const char *path, off_t len)
{
int rval = 0;
diff --git a/usr/src/lib/libc/port/gen/tsdalloc.c b/usr/src/lib/libc/port/gen/tsdalloc.c
index 1da9dc01e2..db04a23c01 100644
--- a/usr/src/lib/libc/port/gen/tsdalloc.c
+++ b/usr/src/lib/libc/port/gen/tsdalloc.c
@@ -20,14 +20,15 @@
*/
/*
- * Copyright 2007 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
-#include "synonyms.h"
+#include "lint.h"
#include <stdlib.h>
+#include <pthread.h>
#include <errno.h>
#include "mtlib.h"
#include "libc.h"
@@ -75,12 +76,12 @@ tsdalloc(__tsd_item_t n, size_t size, pfrv_t destructor)
return (NULL);
}
- if ((error = _thr_keycreate_once(&key, _free_tsdbuf)) != 0) {
+ if ((error = thr_keycreate_once(&key, _free_tsdbuf)) != 0) {
errno = error;
return (NULL);
}
- if ((loc = _pthread_getspecific(key)) != NULL) {
+ if ((loc = pthread_getspecific(key)) != NULL) {
if ((p = loc[n].buf) != NULL)
return (p);
} else {
@@ -88,7 +89,7 @@ tsdalloc(__tsd_item_t n, size_t size, pfrv_t destructor)
loc = lmalloc(_T_NUM_ENTRIES * sizeof (tsdent_t));
if (loc == NULL)
return (NULL);
- if ((error = _thr_setspecific(key, loc)) != 0) {
+ if ((error = thr_setspecific(key, loc)) != 0) {
lfree(loc, _T_NUM_ENTRIES * sizeof (tsdent_t));
errno = error;
return (NULL);
diff --git a/usr/src/lib/libc/port/gen/tsearch.c b/usr/src/lib/libc/port/gen/tsearch.c
index d7d3388398..f6a92acc85 100644
--- a/usr/src/lib/libc/port/gen/tsearch.c
+++ b/usr/src/lib/libc/port/gen/tsearch.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,16 +18,16 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
/*
* Tree search algorithm, generalized from Knuth (6.2.2) Algorithm T.
@@ -38,11 +37,11 @@
* because the definition of NODE isn't available to the user.
*/
-#pragma weak tdelete = _tdelete
-#pragma weak tsearch = _tsearch
-#pragma weak twalk = _twalk
+#pragma weak _tdelete = tdelete
+#pragma weak _tsearch = tsearch
+#pragma weak _twalk = twalk
-#include "synonyms.h"
+#include "lint.h"
#include "mtlib.h"
#include "libc.h"
#include <sys/types.h>
diff --git a/usr/src/lib/libc/port/gen/ttyname.c b/usr/src/lib/libc/port/gen/ttyname.c
index 7de2085691..df2d4aefb0 100644
--- a/usr/src/lib/libc/port/gen/ttyname.c
+++ b/usr/src/lib/libc/port/gen/ttyname.c
@@ -20,15 +20,15 @@
*/
/*
- * Copyright 2007 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
+
/*
* ttyname(f): return "/dev/X" (where X is a relative pathname
* under /dev/), which is the name of the tty character special
@@ -64,10 +64,9 @@
* device numbers.
*/
-#pragma weak ttyname = _ttyname
-#pragma weak ttyname_r = _ttyname_r
+#pragma weak _ttyname = ttyname
-#include "synonyms.h"
+#include "lint.h"
#include "mtlib.h"
#include "libc.h"
#include "_libc_gettext.h"
@@ -173,7 +172,7 @@ _ttyname_dev(dev_t rdev, char *buffer, size_t buflen)
* It was implemented by Solaris 2.3.
*/
char *
-_ttyname_r(int f, char *buffer, int buflen)
+ttyname_r(int f, char *buffer, int buflen)
{
struct stat64 fsb; /* what we are searching for */
/*
@@ -342,7 +341,7 @@ __posix_ttyname_r(int fildes, char *name, size_t namesize)
else
namelen = (int)namesize;
- if (_ttyname_r(fildes, name, namelen) == NULL) {
+ if (ttyname_r(fildes, name, namelen) == NULL) {
if (errno == 0)
nerrno = EINVAL;
else
@@ -734,7 +733,6 @@ get_pri_dirs(void)
int tfd = open("/dev/console", O_WRONLY);
if (tfd >= 0) {
char buf[256];
- /* LINTED variable format specifier */
(void) snprintf(buf, sizeof (buf),
_libc_gettext(
"ERROR: Entry '%s' in /etc/ttysrch ignored.\n"), vec->name);
@@ -772,5 +770,5 @@ ttyname(int f)
if (ans == NULL)
return (NULL);
- return (_ttyname_r(f, ans, MAX_DEV_PATH));
+ return (ttyname_r(f, ans, MAX_DEV_PATH));
}
diff --git a/usr/src/lib/libc/port/gen/ttyslot.c b/usr/src/lib/libc/port/gen/ttyslot.c
index 56ad069576..d9b6b88839 100644
--- a/usr/src/lib/libc/port/gen/ttyslot.c
+++ b/usr/src/lib/libc/port/gen/ttyslot.c
@@ -24,20 +24,18 @@
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
+
/*
* Return the number of the slot in the utmp file
* corresponding to the current user: try for file 0, 1, 2.
* Returns -1 if slot not found.
*/
-#pragma weak ttyslot = _ttyslot
-
-#include "synonyms.h"
+#include "lint.h"
#include <string.h>
#include <stdio.h>
#include <sys/types.h>
diff --git a/usr/src/lib/libc/port/gen/ualarm.c b/usr/src/lib/libc/port/gen/ualarm.c
index 6d65f5c092..b75114a499 100644
--- a/usr/src/lib/libc/port/gen/ualarm.c
+++ b/usr/src/lib/libc/port/gen/ualarm.c
@@ -1,21 +1,20 @@
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
/* All Rights Reserved */
-
/*
* Copyright (c) 1985 Regents of the University of California.
* All rights reserved. The Berkeley software License Agreement
* specifies the terms and conditions for redistribution.
*/
-#include "synonyms.h"
+#pragma ident "%Z%%M% %I% %E% SMI"
+
+#include "lint.h"
#include <sys/types.h>
#include <sys/time.h>
#include <unistd.h>
diff --git a/usr/src/lib/libc/port/gen/ucred.c b/usr/src/lib/libc/port/gen/ucred.c
index 03b6fa325f..f56e7caf63 100644
--- a/usr/src/lib/libc/port/gen/ucred.c
+++ b/usr/src/lib/libc/port/gen/ucred.c
@@ -18,35 +18,36 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2007 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
-#pragma weak ucred_free = _ucred_free
-#pragma weak ucred_get = _ucred_get
-#pragma weak ucred_getegid = _ucred_getegid
-#pragma weak ucred_geteuid = _ucred_geteuid
-#pragma weak ucred_getgroups = _ucred_getgroups
-#pragma weak ucred_getpflags = _ucred_getpflags
-#pragma weak ucred_getpid = _ucred_getpid
-#pragma weak ucred_getzoneid = _ucred_getzoneid
-#pragma weak ucred_getprojid = _ucred_getprojid
-#pragma weak ucred_getprivset = _ucred_getprivset
-#pragma weak ucred_getrgid = _ucred_getrgid
-#pragma weak ucred_getruid = _ucred_getruid
-#pragma weak ucred_getsgid = _ucred_getsgid
-#pragma weak ucred_getsuid = _ucred_getsuid
-#pragma weak ucred_getauid = _ucred_getauid
-#pragma weak ucred_getasid = _ucred_getasid
-#pragma weak ucred_getatid = _ucred_getatid
-#pragma weak ucred_getlabel = _ucred_getlabel
-#pragma weak ucred_getamask = _ucred_getamask
-#pragma weak ucred_size = _ucred_size
-
-#include "synonyms.h"
+#pragma weak _ucred_free = ucred_free
+#pragma weak _ucred_get = ucred_get
+#pragma weak _ucred_getegid = ucred_getegid
+#pragma weak _ucred_geteuid = ucred_geteuid
+#pragma weak _ucred_getgroups = ucred_getgroups
+#pragma weak _ucred_getpflags = ucred_getpflags
+#pragma weak _ucred_getpid = ucred_getpid
+#pragma weak _ucred_getzoneid = ucred_getzoneid
+#pragma weak _ucred_getprojid = ucred_getprojid
+#pragma weak _ucred_getprivset = ucred_getprivset
+#pragma weak _ucred_getrgid = ucred_getrgid
+#pragma weak _ucred_getruid = ucred_getruid
+#pragma weak _ucred_getsgid = ucred_getsgid
+#pragma weak _ucred_getsuid = ucred_getsuid
+#pragma weak _ucred_getauid = ucred_getauid
+#pragma weak _ucred_getasid = ucred_getasid
+#pragma weak _ucred_getatid = ucred_getatid
+#pragma weak _ucred_getlabel = ucred_getlabel
+#pragma weak _ucred_getamask = ucred_getamask
+#pragma weak _ucred_size = ucred_size
+
+#include "lint.h"
#define _STRUCTURED_PROC 1
diff --git a/usr/src/lib/libc/port/gen/valloc.c b/usr/src/lib/libc/port/gen/valloc.c
index a3986f8310..e20ef38fd6 100644
--- a/usr/src/lib/libc/port/gen/valloc.c
+++ b/usr/src/lib/libc/port/gen/valloc.c
@@ -20,17 +20,16 @@
*/
/*
- * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
-#include "synonyms.h"
+#include "lint.h"
#include <stdlib.h>
#include <unistd.h>
diff --git a/usr/src/lib/libc/port/gen/vlfmt.c b/usr/src/lib/libc/port/gen/vlfmt.c
index 6403087f0b..26275de166 100644
--- a/usr/src/lib/libc/port/gen/vlfmt.c
+++ b/usr/src/lib/libc/port/gen/vlfmt.c
@@ -18,22 +18,22 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
/* vlfmt() - format, print and log (variable arguments) */
-#pragma weak vlfmt = _vlfmt
+#pragma weak _vlfmt = vlfmt
-#include "synonyms.h"
+#include "lint.h"
#include "mtlib.h"
#include <sys/types.h>
#include <pfmt.h>
diff --git a/usr/src/lib/libc/port/gen/vpfmt.c b/usr/src/lib/libc/port/gen/vpfmt.c
index dbe5499882..081627256b 100644
--- a/usr/src/lib/libc/port/gen/vpfmt.c
+++ b/usr/src/lib/libc/port/gen/vpfmt.c
@@ -18,24 +18,24 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
/*
* vpfmt() - format and print (variable argument list)
*/
-#pragma weak vpfmt = _vpfmt
+#pragma weak _vpfmt = vpfmt
-#include "synonyms.h"
+#include "lint.h"
#include "mtlib.h"
#include <sys/types.h>
#include <pfmt.h>
diff --git a/usr/src/lib/libc/port/gen/waitpid.c b/usr/src/lib/libc/port/gen/waitpid.c
index 3a7d66330e..8f67f2dd40 100644
--- a/usr/src/lib/libc/port/gen/waitpid.c
+++ b/usr/src/lib/libc/port/gen/waitpid.c
@@ -24,20 +24,18 @@
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
+
/*
- * All of these functions are cancellation points.
+ * All of the wait*() functions are cancellation points.
*/
-#pragma weak waitpid = _waitpid
-#pragma weak wait = _wait
-#pragma weak wait4 = _wait4
-#pragma weak wait3 = _wait3
+#pragma weak _waitpid = waitpid
+#pragma weak _wait = wait
-#include "synonyms.h"
+#include "lint.h"
#include <unistd.h>
#include <string.h>
#include <errno.h>
diff --git a/usr/src/lib/libc/port/gen/walkstack.c b/usr/src/lib/libc/port/gen/walkstack.c
index 9e2d0fcd5f..a4bcef258e 100644
--- a/usr/src/lib/libc/port/gen/walkstack.c
+++ b/usr/src/lib/libc/port/gen/walkstack.c
@@ -18,7 +18,7 @@
*
* CDDL HEADER END
*
- * Copyright 2007 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
@@ -76,7 +76,7 @@
* The bottom-most struct frame is actually constructed by the kernel by
* copying the previous stack frame, allowing naive backtrace code to simply
* skip over the interrupted frame. The copied frame is never really used,
- * since it is presumed the libc or libthread signal handler wrapper function
+ * since it is presumed the signal handler wrapper function
* will explicitly setcontext(2) to the interrupted context if the user
* program's handler returns. If we detect a signal handler frame, we simply
* read the interrupted context structure from the stack, use its embedded
@@ -96,18 +96,11 @@
* Since we want to provide the signal number that generated a signal stack
* frame and on sparc this information isn't written to the stack by the kernel
* the way it's done on i386, we're forced to read the signo from the stack as
- * one of the arguments to the signal handler. What we hope is that no one has
- * used __sigaction directly; if we're not linked with libthread
- * (_thr_sighndlrinfo is NULL) then we attempt to read the signo directly from
- * the register window. Otherwise we use the _thr_sighndlrinfo interface to find
- * the correct frame.
- *
+ * one of the arguments to the signal handler. We use the thr_sighndlrinfo
+ * interface to find the correct frame.
*/
-#pragma weak walkcontext = _walkcontext
-#pragma weak printstack = _printstack
-
-#include "synonyms.h"
+#include "lint.h"
#include <assert.h>
#include <dlfcn.h>
#include <fcntl.h>
@@ -221,11 +214,9 @@ walkcontext(const ucontext_t *uptr, int (*operate_func)(uintptr_t, int, void *),
/*
* Since we don't write signo to the stack on sparc, we need
- * to extract signo from the stack frames. This is problematic
- * in the case of libthread (libc has deterministic behavior)
- * since we're not sure where we can do that safely. An awkward
- * interface was provided for this purpose in libthread:
- * _thr_sighndlrinfo; this is documented in
+ * to extract signo from the stack frames.
+ * An awkward interface is provided for this purpose:
+ * thr_sighndlrinfo; this is documented in
* /shared/sac/PSARC/1999/024. When called, this function
* returns the PC of a special function (and its size) that
* will be present in the stack frame if a signal was
@@ -235,20 +226,15 @@ walkcontext(const ucontext_t *uptr, int (*operate_func)(uintptr_t, int, void *),
* Since this function is written in assembler and doesn't
* perturb its registers, we can then read sig out of arg0
* when the saved pc is inside this function.
- *
*/
#if defined(__sparc)
uintptr_t special_pc = NULL;
int special_size = 0;
- extern void _thr_sighndlrinfo(void (**func)(), int *funcsize);
-
-#pragma weak _thr_sighndlrinfo
+ extern void thr_sighndlrinfo(void (**func)(), int *funcsize);
- if (_thr_sighndlrinfo != NULL) {
- _thr_sighndlrinfo((void (**)())&special_pc, &special_size);
- }
+ thr_sighndlrinfo((void (**)())&special_pc, &special_size);
#endif /* sparc */
@@ -290,24 +276,14 @@ walkcontext(const ucontext_t *uptr, int (*operate_func)(uintptr_t, int, void *),
#if defined(__sparc)
/*
- * with sparc we need to handle
- * single and multi-threaded cases
- * separately
- * If we're single threaded, the trampoline
- * in libc will have the signo as the first
- * argumment; we can snag that directly.
* In the case of threads, since there are multiple
* complex routines between kernel and user handler,
* we need to figure out where we can read signal from
- * using _thr_sighndlrinfo - which we've already done
+ * using thr_sighndlrinfo - which we've already done
* for this signal, since it appeared on the stack
* before the signal frame.... sigh.
*/
-
- if (_thr_sighndlrinfo == NULL) /* single threaded */
- sig = fp->fr_arg[0];
- else
- sig = signo; /* already read - see below */
+ sig = signo; /* already read - see below */
#endif
/*
* this is the special signal frame, so cons up
@@ -328,8 +304,7 @@ walkcontext(const ucontext_t *uptr, int (*operate_func)(uintptr_t, int, void *),
* lookahead code to find right spot to read signo from...
*/
- if (_thr_sighndlrinfo &&
- savepc >= special_pc && savepc <
+ if (savepc >= special_pc && savepc <
(special_pc + special_size))
signo = fp->fr_arg[0];
#endif
@@ -389,7 +364,7 @@ display_stack_info(uintptr_t pc, int signo, void *arg)
(void) sig2str(signo, sigbuf);
async_filenoprintf(filenum, "%s [Signal %d (%s)]\n",
- buffer, (ulong_t)signo, sigbuf);
+ buffer, (ulong_t)signo, sigbuf);
} else
async_filenoprintf(filenum, "%s\n", buffer);
diff --git a/usr/src/lib/libc/port/gen/wdata.c b/usr/src/lib/libc/port/gen/wdata.c
index b0505387f5..d0e65e2ea3 100644
--- a/usr/src/lib/libc/port/gen/wdata.c
+++ b/usr/src/lib/libc/port/gen/wdata.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,20 +18,18 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1986 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
-/* This module is created for NLS on Sep.03.86 */
-
-#include "synonyms.h"
+#include "lint.h"
#include <sys/types.h>
#include <euc.h>
diff --git a/usr/src/lib/libc/port/gen/xgetwidth.c b/usr/src/lib/libc/port/gen/xgetwidth.c
index 01334b33dc..b4aa18649d 100644
--- a/usr/src/lib/libc/port/gen/xgetwidth.c
+++ b/usr/src/lib/libc/port/gen/xgetwidth.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,18 +18,16 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1986 AT&T */
/* All Rights Reserved */
-
-/* This module is created for NLS on Sep.03.86 */
+#pragma ident "%Z%%M% %I% %E% SMI"
/*
* _Xgetwidth calls _getwidth to get the values of environment variables
@@ -39,7 +36,7 @@
*/
/* #include "shlib.h" */
-#include "synonyms.h"
+#include "lint.h"
#include <sys/types.h>
#include <euc.h>
#include <getwidth.h>
diff --git a/usr/src/lib/libc/port/i18n/__fputws_xpg5.c b/usr/src/lib/libc/port/i18n/__fputws_xpg5.c
index 8bea02334b..46f39c0419 100644
--- a/usr/src/lib/libc/port/i18n/__fputws_xpg5.c
+++ b/usr/src/lib/libc/port/i18n/__fputws_xpg5.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -21,17 +20,14 @@
*/
/*
- * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1986 AT&T */
/* All Rights Reserved */
-
-/* This module is created for NLS on Sep.03.86 */
+#pragma ident "%Z%%M% %I% %E% SMI"
/*
* fputws transforms the process code string pointed to by "ptr"
@@ -45,7 +41,7 @@
* the string in a series of smaller buffers.
*/
-#include "synonyms.h"
+#include "lint.h"
#include "file64.h"
#include "mse_int.h"
#include <stdio.h>
diff --git a/usr/src/lib/libc/port/i18n/_ctype.c b/usr/src/lib/libc/port/i18n/_ctype.c
index fb66c5aaed..5d016393a2 100644
--- a/usr/src/lib/libc/port/i18n/_ctype.c
+++ b/usr/src/lib/libc/port/i18n/_ctype.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,26 +18,26 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
#pragma weak _ctype = __ctype
-#include "synonyms.h"
+#include "lint.h"
#include <locale.h>
#include "_locale.h"
#include <ctype.h>
#include <sys/types.h>
-unsigned char _ctype[SZ_TOTAL] =
+unsigned char __ctype[SZ_TOTAL] =
{
0, /* EOF */
_C, _C, _C, _C, _C, _C, _C, _C,
diff --git a/usr/src/lib/libc/port/i18n/gettext.c b/usr/src/lib/libc/port/i18n/gettext.c
index 8d05103cbd..1922edae04 100644
--- a/usr/src/lib/libc/port/i18n/gettext.c
+++ b/usr/src/lib/libc/port/i18n/gettext.c
@@ -20,23 +20,23 @@
*/
/*
- * Copyright 2007 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
-#pragma weak bindtextdomain = _bindtextdomain
-#pragma weak textdomain = _textdomain
-#pragma weak gettext = _gettext
-#pragma weak dgettext = _dgettext
-#pragma weak dcgettext = _dcgettext
-#pragma weak ngettext = _ngettext
-#pragma weak dngettext = _dngettext
-#pragma weak dcngettext = _dcngettext
-#pragma weak bind_textdomain_codeset = _bind_textdomain_codeset
-
-#include "synonyms.h"
+#pragma weak _bindtextdomain = bindtextdomain
+#pragma weak _textdomain = textdomain
+#pragma weak _gettext = gettext
+#pragma weak _dgettext = dgettext
+#pragma weak _dcgettext = dcgettext
+#pragma weak _ngettext = ngettext
+#pragma weak _dngettext = dngettext
+#pragma weak _dcngettext = dcngettext
+#pragma weak _bind_textdomain_codeset = bind_textdomain_codeset
+
+#include "lint.h"
#include "mtlib.h"
#include <errno.h>
#include <ctype.h>
@@ -69,7 +69,7 @@ const char default_domain[] = DEFAULT_DOMAIN;
Gettext_t *global_gt = NULL;
char *
-_bindtextdomain(const char *domain, const char *binding)
+bindtextdomain(const char *domain, const char *binding)
{
char *res;
@@ -81,7 +81,7 @@ _bindtextdomain(const char *domain, const char *binding)
}
char *
-_bind_textdomain_codeset(const char *domain, const char *codeset)
+bind_textdomain_codeset(const char *domain, const char *codeset)
{
char *res;
@@ -97,7 +97,7 @@ _bind_textdomain_codeset(const char *domain, const char *codeset)
* the active LC_MESSAGES locale category.
*/
char *
-_textdomain(const char *domain)
+textdomain(const char *domain)
{
char *res;
char tmp_domain[TEXTDOMAINMAX + 1];
@@ -118,7 +118,7 @@ _textdomain(const char *domain)
* for domain and LC_MESSAGES passed for category.
*/
char *
-_gettext(const char *msg_id)
+gettext(const char *msg_id)
{
char *res;
int errno_save = errno;
@@ -136,7 +136,7 @@ _gettext(const char *msg_id)
* In dcgettext() call, domain is valid only for this call.
*/
char *
-_dgettext(const char *domain, const char *msg_id)
+dgettext(const char *domain, const char *msg_id)
{
char *res;
int errno_save = errno;
@@ -150,7 +150,7 @@ _dgettext(const char *domain, const char *msg_id)
}
char *
-_dcgettext(const char *domain, const char *msg_id, const int category)
+dcgettext(const char *domain, const char *msg_id, const int category)
{
char *res;
int errno_save = errno;
@@ -164,7 +164,7 @@ _dcgettext(const char *domain, const char *msg_id, const int category)
}
char *
-_ngettext(const char *msgid1, const char *msgid2, unsigned long int n)
+ngettext(const char *msgid1, const char *msgid2, unsigned long int n)
{
char *res;
int errno_save = errno;
@@ -178,7 +178,7 @@ _ngettext(const char *msgid1, const char *msgid2, unsigned long int n)
}
char *
-_dngettext(const char *domain, const char *msgid1, const char *msgid2,
+dngettext(const char *domain, const char *msgid1, const char *msgid2,
unsigned long int n)
{
char *res;
@@ -193,7 +193,7 @@ _dngettext(const char *domain, const char *msgid1, const char *msgid2,
}
char *
-_dcngettext(const char *domain, const char *msgid1, const char *msgid2,
+dcngettext(const char *domain, const char *msgid1, const char *msgid2,
unsigned long int n, int category)
{
char *res;
diff --git a/usr/src/lib/libc/port/i18n/gettext_gnu.c b/usr/src/lib/libc/port/i18n/gettext_gnu.c
index 89be4bdd25..38ed4e40eb 100644
--- a/usr/src/lib/libc/port/i18n/gettext_gnu.c
+++ b/usr/src/lib/libc/port/i18n/gettext_gnu.c
@@ -26,7 +26,7 @@
#pragma ident "%Z%%M% %I% %E% SMI"
-#include "synonyms.h"
+#include "lint.h"
#include "mtlib.h"
#include <ctype.h>
#include <stdio.h>
diff --git a/usr/src/lib/libc/port/i18n/gettext_real.c b/usr/src/lib/libc/port/i18n/gettext_real.c
index 516364835f..ff94e7fd70 100644
--- a/usr/src/lib/libc/port/i18n/gettext_real.c
+++ b/usr/src/lib/libc/port/i18n/gettext_real.c
@@ -26,7 +26,7 @@
#pragma ident "%Z%%M% %I% %E% SMI"
-#include "synonyms.h"
+#include "lint.h"
#include "mtlib.h"
#include <ctype.h>
#include <locale.h>
diff --git a/usr/src/lib/libc/port/i18n/gettext_util.c b/usr/src/lib/libc/port/i18n/gettext_util.c
index f8982665af..d00c0edb4a 100644
--- a/usr/src/lib/libc/port/i18n/gettext_util.c
+++ b/usr/src/lib/libc/port/i18n/gettext_util.c
@@ -26,7 +26,7 @@
#pragma ident "%Z%%M% %I% %E% SMI"
-#include "synonyms.h"
+#include "lint.h"
#include "mtlib.h"
#include <ctype.h>
#include <stdio.h>
diff --git a/usr/src/lib/libc/port/i18n/isascii.c b/usr/src/lib/libc/port/i18n/isascii.c
index 1c652c8434..5d48d642e3 100644
--- a/usr/src/lib/libc/port/i18n/isascii.c
+++ b/usr/src/lib/libc/port/i18n/isascii.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,21 +18,21 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
-#pragma weak isascii = _isascii
+#pragma weak _isascii = isascii
int
-_isascii(int c)
+isascii(int c)
{
return (!(c & ~0177));
}
diff --git a/usr/src/lib/libc/port/i18n/plural_parser.c b/usr/src/lib/libc/port/i18n/plural_parser.c
index 2aef375292..408d1b558d 100644
--- a/usr/src/lib/libc/port/i18n/plural_parser.c
+++ b/usr/src/lib/libc/port/i18n/plural_parser.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,14 +18,15 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
-#include "synonyms.h"
+#include "lint.h"
#include <ctype.h>
#include <stdio.h>
#include <stdlib.h>
diff --git a/usr/src/lib/libc/port/i18n/putws.c b/usr/src/lib/libc/port/i18n/putws.c
index ad521c1124..cff6bc563c 100644
--- a/usr/src/lib/libc/port/i18n/putws.c
+++ b/usr/src/lib/libc/port/i18n/putws.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,18 +18,16 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2005 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1986 AT&T */
/* All Rights Reserved */
-
-/* This module is created for NLS on Sep.03.86 */
+#pragma ident "%Z%%M% %I% %E% SMI"
/*
* Putws transforms process codes in wchar_t array pointed to by
@@ -56,12 +53,12 @@ putws(const wchar_t *ptr)
FLOCKFILE(lk, stdout);
for (; *ptr; ptr++) { /* putwc till NULL */
- if (_fputwc(*ptr, stdout) == EOF) {
+ if (fputwc(*ptr, stdout) == EOF) {
FUNLOCKFILE(lk);
return (EOF);
}
}
- (void) _fputwc('\n', stdout); /* append a new line */
+ (void) fputwc('\n', stdout); /* append a new line */
FUNLOCKFILE(lk);
if (fflush(stdout)) /* flush line */
diff --git a/usr/src/lib/libc/port/i18n/strtows.c b/usr/src/lib/libc/port/i18n/strtows.c
index add9ed0ed7..52ee55cdec 100644
--- a/usr/src/lib/libc/port/i18n/strtows.c
+++ b/usr/src/lib/libc/port/i18n/strtows.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -21,13 +20,13 @@
*/
/*
- * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
-#include "synonyms.h"
+#include "lint.h"
#include <limits.h>
#include <widec.h>
#include <errno.h>
diff --git a/usr/src/lib/libc/port/i18n/toascii.c b/usr/src/lib/libc/port/i18n/toascii.c
index 2e02fd4a59..6f06adfe54 100644
--- a/usr/src/lib/libc/port/i18n/toascii.c
+++ b/usr/src/lib/libc/port/i18n/toascii.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,21 +18,21 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
-#pragma weak toascii = _toascii
+#pragma weak _toascii = toascii
int
-_toascii(int c)
+toascii(int c)
{
return ((c) & 0177);
}
diff --git a/usr/src/lib/libc/port/i18n/wcstoimax.c b/usr/src/lib/libc/port/i18n/wcstoimax.c
index b9ab153303..50cfec4d6f 100644
--- a/usr/src/lib/libc/port/i18n/wcstoimax.c
+++ b/usr/src/lib/libc/port/i18n/wcstoimax.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -21,13 +20,13 @@
*/
/*
- * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
-#include "synonyms.h"
+#include "lint.h"
#include <stddef.h>
#include <inttypes.h>
#include <wchar.h>
diff --git a/usr/src/lib/libc/port/i18n/wcstol.c b/usr/src/lib/libc/port/i18n/wcstol.c
index d370951353..162feeddb2 100644
--- a/usr/src/lib/libc/port/i18n/wcstol.c
+++ b/usr/src/lib/libc/port/i18n/wcstol.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -21,21 +20,20 @@
*/
/*
- * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1986 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
#ifndef _WCS_LONGLONG
-#pragma weak wcstol = _wcstol
+#pragma weak _wcstol = wcstol
#endif
-#include "synonyms.h"
+#include "lint.h"
#include <limits.h>
#include <errno.h>
#include <wchar.h>
@@ -59,7 +57,7 @@ wcstoll(const wchar_t *_RESTRICT_KYWD str, wchar_t **_RESTRICT_KYWD ptr,
int base)
#else /* _WCS_LONGLONG */
long
-_wcstol(const wchar_t *str, wchar_t **ptr, int base)
+wcstol(const wchar_t *str, wchar_t **ptr, int base)
#endif /* _WCS_LONGLONG */
{
_WLONG_T val;
diff --git a/usr/src/lib/libc/port/i18n/wcstoul.c b/usr/src/lib/libc/port/i18n/wcstoul.c
index b67db3fd9a..58d501e189 100644
--- a/usr/src/lib/libc/port/i18n/wcstoul.c
+++ b/usr/src/lib/libc/port/i18n/wcstoul.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -21,21 +20,20 @@
*/
/*
- * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1986 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
#ifndef _WCS_LONGLONG
-#pragma weak wcstoul = _wcstoul
+#pragma weak _wcstoul = wcstoul
#endif
-#include "synonyms.h"
+#include "lint.h"
#include <limits.h>
#include <errno.h>
#include <wchar.h>
@@ -57,7 +55,7 @@ wcstoull(const wchar_t *_RESTRICT_KYWD str, wchar_t **_RESTRICT_KYWD ptr,
int base)
#else /* _WCS_LONGLONG */
unsigned long
-_wcstoul(const wchar_t *str, wchar_t **ptr, int base)
+wcstoul(const wchar_t *str, wchar_t **ptr, int base)
#endif /* _WCS_LONGLONG */
{
_WULONG_T val;
diff --git a/usr/src/lib/libc/port/i18n/wcswcs.c b/usr/src/lib/libc/port/i18n/wcswcs.c
index 53bca5f6c6..e64ab9e25b 100644
--- a/usr/src/lib/libc/port/i18n/wcswcs.c
+++ b/usr/src/lib/libc/port/i18n/wcswcs.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,30 +18,28 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1986 AT&T */
/* All Rights Reserved */
-
-/* This module is created for NLS on Sep.03.86 */
+#pragma ident "%Z%%M% %I% %E% SMI"
/*
* Returns a pointer to the first occurrnce of ws1 in ws2.
*/
-#pragma weak wcswcs = _wcswcs
+#pragma weak _wcswcs = wcswcs
#include "lint.h"
#include <stdlib.h>
wchar_t *
-_wcswcs(const wchar_t *ws1, const wchar_t *ws2)
+wcswcs(const wchar_t *ws1, const wchar_t *ws2)
{
const wchar_t *s1, *s2;
const wchar_t *tptr;
diff --git a/usr/src/lib/libc/port/i18n/wdresolve.c b/usr/src/lib/libc/port/i18n/wdresolve.c
index bb8d61c6c5..f5d137008d 100644
--- a/usr/src/lib/libc/port/i18n/wdresolve.c
+++ b/usr/src/lib/libc/port/i18n/wdresolve.c
@@ -20,13 +20,13 @@
*/
/*
- * Copyright 2007 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
-#include "synonyms.h"
+#include "lint.h"
#include "mtlib.h"
#include <sys/types.h>
#include <ctype.h>
diff --git a/usr/src/lib/libc/port/i18n/wmemcpy.c b/usr/src/lib/libc/port/i18n/wmemcpy.c
index 1473b8cb8e..f12daea9d9 100644
--- a/usr/src/lib/libc/port/i18n/wmemcpy.c
+++ b/usr/src/lib/libc/port/i18n/wmemcpy.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -21,13 +20,13 @@
*/
/*
- * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
-#include "synonyms.h"
+#include "lint.h"
#include <sys/types.h>
#include <wchar.h>
#include <limits.h>
@@ -43,7 +42,7 @@ wmemcpy(wchar_t *ws1, const wchar_t *ws2, size_t n)
if (n <= max) {
return ((wchar_t *)memcpy((void *)ws1,
- (const void *)ws2, n * sizeof (wchar_t)));
+ (const void *)ws2, n * sizeof (wchar_t)));
}
p1 = ws1;
@@ -55,7 +54,7 @@ wmemcpy(wchar_t *ws1, const wchar_t *ws2, size_t n)
len = n;
}
(void) memcpy((void *)p1,
- (const void *)p2, len * sizeof (wchar_t));
+ (const void *)p2, len * sizeof (wchar_t));
n = n - len;
p1 += len;
p2 += len;
diff --git a/usr/src/lib/libc/port/i18n/wmemmove.c b/usr/src/lib/libc/port/i18n/wmemmove.c
index 86d016ceeb..6966be6f2d 100644
--- a/usr/src/lib/libc/port/i18n/wmemmove.c
+++ b/usr/src/lib/libc/port/i18n/wmemmove.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -21,13 +20,13 @@
*/
/*
- * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
-#include "synonyms.h"
+#include "lint.h"
#include <sys/types.h>
#include <wchar.h>
#include <limits.h>
@@ -42,7 +41,7 @@ wmemmove(wchar_t *ws1, const wchar_t *ws2, size_t n)
if (n <= max) {
return ((wchar_t *)memmove((void *)ws1,
- (const void *)ws2, n * sizeof (wchar_t)));
+ (const void *)ws2, n * sizeof (wchar_t)));
}
ows1 = ws1;
diff --git a/usr/src/lib/libc/port/i18n/wscasecmp.c b/usr/src/lib/libc/port/i18n/wscasecmp.c
index b3a04097d1..d3926bcc07 100644
--- a/usr/src/lib/libc/port/i18n/wscasecmp.c
+++ b/usr/src/lib/libc/port/i18n/wscasecmp.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,8 +18,9 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
@@ -32,7 +32,7 @@
* All letters are converted to the lowercase and compared.
*/
-#pragma weak wscasecmp = _wscasecmp
+#pragma weak _wscasecmp = wscasecmp
#include "lint.h"
#include <stdlib.h>
@@ -40,13 +40,13 @@
#include "libc.h"
int
-_wscasecmp(const wchar_t *s1, const wchar_t *s2)
+wscasecmp(const wchar_t *s1, const wchar_t *s2)
{
if (s1 == s2)
return (0);
- while (_towlower(*s1) == _towlower(*s2++))
+ while (towlower(*s1) == towlower(*s2++))
if (*s1++ == 0)
return (0);
- return (_towlower(*s1) - _towlower(*(s2 - 1)));
+ return (towlower(*s1) - towlower(*(s2 - 1)));
}
diff --git a/usr/src/lib/libc/port/i18n/wscat.c b/usr/src/lib/libc/port/i18n/wscat.c
index 228e818b5a..eff4beb8a7 100644
--- a/usr/src/lib/libc/port/i18n/wscat.c
+++ b/usr/src/lib/libc/port/i18n/wscat.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,33 +18,31 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1986 AT&T */
/* All Rights Reserved */
-
-/* This module is created for NLS on Sep.03.86 */
+#pragma ident "%Z%%M% %I% %E% SMI"
/*
* Concatenate s2 on the end of s1. S1's space must be large enough.
* return s1.
*/
-#pragma weak wcscat = _wcscat
-#pragma weak wscat = _wscat
+#pragma weak _wcscat = wcscat
+#pragma weak _wscat = wscat
#include "lint.h"
#include <stdlib.h>
#include <wchar.h>
wchar_t *
-_wcscat(wchar_t *s1, const wchar_t *s2)
+wcscat(wchar_t *s1, const wchar_t *s2)
{
wchar_t *os1 = s1;
@@ -58,7 +55,7 @@ _wcscat(wchar_t *s1, const wchar_t *s2)
}
wchar_t *
-_wscat(wchar_t *s1, const wchar_t *s2)
+wscat(wchar_t *s1, const wchar_t *s2)
{
- return (_wcscat(s1, s2));
+ return (wcscat(s1, s2));
}
diff --git a/usr/src/lib/libc/port/i18n/wschr.c b/usr/src/lib/libc/port/i18n/wschr.c
index 89308e6058..f57eafff85 100644
--- a/usr/src/lib/libc/port/i18n/wschr.c
+++ b/usr/src/lib/libc/port/i18n/wschr.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,33 +18,31 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1986 AT&T */
/* All Rights Reserved */
-
-/* This module is created for NLS on Sep.03.86 */
+#pragma ident "%Z%%M% %I% %E% SMI"
/*
* Return the ptr in sp at which the character c appears;
* Null if not found.
*/
-#pragma weak wcschr = _wcschr
-#pragma weak wschr = _wschr
+#pragma weak _wcschr = wcschr
+#pragma weak _wschr = wschr
#include "lint.h"
#include <stdlib.h>
#include <wchar.h>
wchar_t *
-_wcschr(const wchar_t *sp, wchar_t c)
+wcschr(const wchar_t *sp, wchar_t c)
{
do {
if (*sp == c)
@@ -55,7 +52,7 @@ _wcschr(const wchar_t *sp, wchar_t c)
}
wchar_t *
-_wschr(const wchar_t *sp, wchar_t c)
+wschr(const wchar_t *sp, wchar_t c)
{
- return (_wcschr(sp, c));
+ return (wcschr(sp, c));
}
diff --git a/usr/src/lib/libc/port/i18n/wscmp.c b/usr/src/lib/libc/port/i18n/wscmp.c
index 3f65e53843..a3c73a2114 100644
--- a/usr/src/lib/libc/port/i18n/wscmp.c
+++ b/usr/src/lib/libc/port/i18n/wscmp.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,32 +18,30 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1986 AT&T */
/* All Rights Reserved */
-
-/* This module is created for NLS on Sep.03.86 */
+#pragma ident "%Z%%M% %I% %E% SMI"
/*
* Compare strings: s1>s2: >0 s1==s2: 0 s1<s2: <0
*/
-#pragma weak wcscmp = _wcscmp
-#pragma weak wscmp = _wscmp
+#pragma weak _wcscmp = wcscmp
+#pragma weak _wscmp = wscmp
#include "lint.h"
#include <stdlib.h>
#include <wchar.h>
int
-_wcscmp(const wchar_t *s1, const wchar_t *s2)
+wcscmp(const wchar_t *s1, const wchar_t *s2)
{
if (s1 == s2)
return (0);
@@ -56,7 +53,7 @@ _wcscmp(const wchar_t *s1, const wchar_t *s2)
}
int
-_wscmp(const wchar_t *s1, const wchar_t *s2)
+wscmp(const wchar_t *s1, const wchar_t *s2)
{
- return (_wcscmp(s1, s2));
+ return (wcscmp(s1, s2));
}
diff --git a/usr/src/lib/libc/port/i18n/wscpy.c b/usr/src/lib/libc/port/i18n/wscpy.c
index 134d561d21..cab7faa736 100644
--- a/usr/src/lib/libc/port/i18n/wscpy.c
+++ b/usr/src/lib/libc/port/i18n/wscpy.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,31 +18,31 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1986 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
/*
* Copy string s2 to s1. S1 must be large enough.
* Return s1.
*/
-#pragma weak wcscpy = _wcscpy
-#pragma weak wscpy = _wscpy
+#pragma weak _wcscpy = wcscpy
+#pragma weak _wscpy = wscpy
#include "lint.h"
#include <stdlib.h>
#include <wchar.h>
wchar_t *
-_wcscpy(wchar_t *s1, const wchar_t *s2)
+wcscpy(wchar_t *s1, const wchar_t *s2)
{
wchar_t *os1 = s1;
@@ -53,7 +52,7 @@ _wcscpy(wchar_t *s1, const wchar_t *s2)
}
wchar_t *
-_wscpy(wchar_t *s1, const wchar_t *s2)
+wscpy(wchar_t *s1, const wchar_t *s2)
{
- return (_wcscpy(s1, s2));
+ return (wcscpy(s1, s2));
}
diff --git a/usr/src/lib/libc/port/i18n/wscspn.c b/usr/src/lib/libc/port/i18n/wscspn.c
index 6276cc09ce..e3476595e3 100644
--- a/usr/src/lib/libc/port/i18n/wscspn.c
+++ b/usr/src/lib/libc/port/i18n/wscspn.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,33 +18,31 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1986 AT&T */
/* All Rights Reserved */
-
-/* This module is created for NLS on Sep.03.86 */
+#pragma ident "%Z%%M% %I% %E% SMI"
/*
* Return the number of characters in the maximum leading segment
* of string which consists solely of characters NOT from charset.
*/
-#pragma weak wcscspn = _wcscspn
-#pragma weak wscspn = _wscspn
+#pragma weak _wcscspn = wcscspn
+#pragma weak _wscspn = wscspn
#include "lint.h"
#include <stdlib.h>
#include <wchar.h>
size_t
-_wcscspn(const wchar_t *string, const wchar_t *charset)
+wcscspn(const wchar_t *string, const wchar_t *charset)
{
const wchar_t *p, *q;
@@ -59,7 +56,7 @@ _wcscspn(const wchar_t *string, const wchar_t *charset)
}
size_t
-_wscspn(const wchar_t *string, const wchar_t *charset)
+wscspn(const wchar_t *string, const wchar_t *charset)
{
- return (_wcscspn(string, charset));
+ return (wcscspn(string, charset));
}
diff --git a/usr/src/lib/libc/port/i18n/wsdup.c b/usr/src/lib/libc/port/i18n/wsdup.c
index fd18793995..98d8a43d85 100644
--- a/usr/src/lib/libc/port/i18n/wsdup.c
+++ b/usr/src/lib/libc/port/i18n/wsdup.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,16 +18,16 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1986 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
/*
* string duplication
@@ -47,6 +46,6 @@ wsdup(const wchar_t *s1)
{
wchar_t *s2;
- s2 = malloc((_wcslen(s1) + 1) * sizeof (wchar_t));
- return (s2 == NULL ? NULL : _wcscpy(s2, s1));
+ s2 = malloc((wcslen(s1) + 1) * sizeof (wchar_t));
+ return (s2 == NULL ? NULL : wcscpy(s2, s1));
}
diff --git a/usr/src/lib/libc/port/i18n/wslen.c b/usr/src/lib/libc/port/i18n/wslen.c
index 6e6ad031de..1dc867b0a8 100644
--- a/usr/src/lib/libc/port/i18n/wslen.c
+++ b/usr/src/lib/libc/port/i18n/wslen.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,32 +18,30 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1986 AT&T */
/* All Rights Reserved */
-
-/* This module is created for NLS on Sep.03.86 */
+#pragma ident "%Z%%M% %I% %E% SMI"
/*
* Returns the number of non-NULL characters in s.
*/
-#pragma weak wcslen = _wcslen
-#pragma weak wslen = _wslen
+#pragma weak _wcslen = wcslen
+#pragma weak _wslen = wslen
#include "lint.h"
#include <stdlib.h>
#include <wchar.h>
size_t
-_wcslen(const wchar_t *s)
+wcslen(const wchar_t *s)
{
const wchar_t *s0 = s + 1;
@@ -54,7 +51,7 @@ _wcslen(const wchar_t *s)
}
size_t
-_wslen(const wchar_t *s)
+wslen(const wchar_t *s)
{
- return (_wcslen(s));
+ return (wcslen(s));
}
diff --git a/usr/src/lib/libc/port/i18n/wsncasecmp.c b/usr/src/lib/libc/port/i18n/wsncasecmp.c
index 2a68a4d316..f7603146fc 100644
--- a/usr/src/lib/libc/port/i18n/wsncasecmp.c
+++ b/usr/src/lib/libc/port/i18n/wsncasecmp.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,8 +18,9 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
@@ -32,7 +32,7 @@
* All letters are converted to the lowercase and compared.
*/
-#pragma weak wsncasecmp = _wsncasecmp
+#pragma weak _wsncasecmp = wsncasecmp
#include "lint.h"
#include <stdlib.h>
@@ -40,14 +40,14 @@
#include "libc.h"
int
-_wsncasecmp(const wchar_t *s1, const wchar_t *s2, size_t n)
+wsncasecmp(const wchar_t *s1, const wchar_t *s2, size_t n)
{
if (s1 == s2)
return (0);
n++;
- while (--n > 0 && _towlower(*s1) == _towlower(*s2++))
+ while (--n > 0 && towlower(*s1) == towlower(*s2++))
if (*s1++ == 0)
return (0);
- return ((n == 0) ? 0 : (_towlower(*s1) - _towlower(*(s2 - 1))));
+ return ((n == 0) ? 0 : (towlower(*s1) - towlower(*(s2 - 1))));
}
diff --git a/usr/src/lib/libc/port/i18n/wsncat.c b/usr/src/lib/libc/port/i18n/wsncat.c
index ab95a591c0..6cb78abb07 100644
--- a/usr/src/lib/libc/port/i18n/wsncat.c
+++ b/usr/src/lib/libc/port/i18n/wsncat.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,18 +18,16 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1986 AT&T */
/* All Rights Reserved */
-
-/* This module is created for NLS on Sep.03.86 */
+#pragma ident "%Z%%M% %I% %E% SMI"
/*
* Concatenate s2 on the end of s1. S1's space must be large enough.
@@ -38,15 +35,15 @@
* return s1.
*/
-#pragma weak wcsncat = _wcsncat
-#pragma weak wsncat = _wsncat
+#pragma weak _wcsncat = wcsncat
+#pragma weak _wsncat = wsncat
#include "lint.h"
#include <stdlib.h>
#include <wchar.h>
wchar_t *
-_wcsncat(wchar_t *s1, const wchar_t *s2, size_t n)
+wcsncat(wchar_t *s1, const wchar_t *s2, size_t n)
{
wchar_t *os1 = s1;
@@ -63,7 +60,7 @@ _wcsncat(wchar_t *s1, const wchar_t *s2, size_t n)
}
wchar_t *
-_wsncat(wchar_t *s1, const wchar_t *s2, size_t n)
+wsncat(wchar_t *s1, const wchar_t *s2, size_t n)
{
- return (_wcsncat(s1, s2, n));
+ return (wcsncat(s1, s2, n));
}
diff --git a/usr/src/lib/libc/port/i18n/wsncmp.c b/usr/src/lib/libc/port/i18n/wsncmp.c
index 590480f264..2f882a1fad 100644
--- a/usr/src/lib/libc/port/i18n/wsncmp.c
+++ b/usr/src/lib/libc/port/i18n/wsncmp.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,33 +18,31 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1986 AT&T */
/* All Rights Reserved */
-
-/* This module is created for NLS on Sep.03.86 */
+#pragma ident "%Z%%M% %I% %E% SMI"
/*
* Compare strings (at most n characters)
* returns: s1>s2: >0 s1==s2: 0 s1<s2: <0
*/
-#pragma weak wcsncmp = _wcsncmp
-#pragma weak wsncmp = _wsncmp
+#pragma weak _wcsncmp = wcsncmp
+#pragma weak _wsncmp = wsncmp
#include "lint.h"
#include <stdlib.h>
#include <wchar.h>
int
-_wcsncmp(const wchar_t *s1, const wchar_t *s2, size_t n)
+wcsncmp(const wchar_t *s1, const wchar_t *s2, size_t n)
{
if (s1 == s2)
return (0);
@@ -58,7 +55,7 @@ _wcsncmp(const wchar_t *s1, const wchar_t *s2, size_t n)
}
int
-_wsncmp(const wchar_t *s1, const wchar_t *s2, size_t n)
+wsncmp(const wchar_t *s1, const wchar_t *s2, size_t n)
{
- return (_wcsncmp(s1, s2, n));
+ return (wcsncmp(s1, s2, n));
}
diff --git a/usr/src/lib/libc/port/i18n/wsncpy.c b/usr/src/lib/libc/port/i18n/wsncpy.c
index 67f1701316..8161863b74 100644
--- a/usr/src/lib/libc/port/i18n/wsncpy.c
+++ b/usr/src/lib/libc/port/i18n/wsncpy.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,33 +18,31 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1986 AT&T */
/* All Rights Reserved */
-
-/* This module is created for NLS on Sep.03.86 */
+#pragma ident "%Z%%M% %I% %E% SMI"
/*
* Copy s2 to s1, truncating or null-padding to always copy n characters.
* Return s1.
*/
-#pragma weak wcsncpy = _wcsncpy
-#pragma weak wsncpy = _wsncpy
+#pragma weak _wcsncpy = wcsncpy
+#pragma weak _wsncpy = wsncpy
#include "lint.h"
#include <stdlib.h>
#include <wchar.h>
wchar_t *
-_wcsncpy(wchar_t *s1, const wchar_t *s2, size_t n)
+wcsncpy(wchar_t *s1, const wchar_t *s2, size_t n)
{
wchar_t *os1 = s1;
@@ -59,7 +56,7 @@ _wcsncpy(wchar_t *s1, const wchar_t *s2, size_t n)
}
wchar_t *
-_wsncpy(wchar_t *s1, const wchar_t *s2, size_t n)
+wsncpy(wchar_t *s1, const wchar_t *s2, size_t n)
{
- return (_wcsncpy(s1, s2, n));
+ return (wcsncpy(s1, s2, n));
}
diff --git a/usr/src/lib/libc/port/i18n/wspbrk.c b/usr/src/lib/libc/port/i18n/wspbrk.c
index fd7f106c3a..283fd13c81 100644
--- a/usr/src/lib/libc/port/i18n/wspbrk.c
+++ b/usr/src/lib/libc/port/i18n/wspbrk.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,33 +18,31 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1986 AT&T */
/* All Rights Reserved */
-
-/* This module is created for NLS on Sep.03.86 */
+#pragma ident "%Z%%M% %I% %E% SMI"
/*
* Return ptr to first occurance of any character from 'brkset'
* in the wchar_t array 'string'; NULL if none exists.
*/
-#pragma weak wcspbrk = _wcspbrk
-#pragma weak wspbrk = _wspbrk
+#pragma weak _wcspbrk = wcspbrk
+#pragma weak _wspbrk = wspbrk
#include "lint.h"
#include <stdlib.h>
#include <wchar.h>
wchar_t *
-_wcspbrk(const wchar_t *string, const wchar_t *brkset)
+wcspbrk(const wchar_t *string, const wchar_t *brkset)
{
const wchar_t *p;
@@ -59,7 +56,7 @@ _wcspbrk(const wchar_t *string, const wchar_t *brkset)
}
wchar_t *
-_wspbrk(const wchar_t *string, const wchar_t *brkset)
+wspbrk(const wchar_t *string, const wchar_t *brkset)
{
- return (_wcspbrk(string, brkset));
+ return (wcspbrk(string, brkset));
}
diff --git a/usr/src/lib/libc/port/i18n/wsprintf.c b/usr/src/lib/libc/port/i18n/wsprintf.c
index dd82d9a475..40f30088e9 100644
--- a/usr/src/lib/libc/port/i18n/wsprintf.c
+++ b/usr/src/lib/libc/port/i18n/wsprintf.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -21,17 +20,16 @@
*/
/*
- * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1986 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
-#include "synonyms.h"
+#include "lint.h"
#include <stdio.h>
#include <stdarg.h>
#include <stdlib.h>
diff --git a/usr/src/lib/libc/port/i18n/wsrchr.c b/usr/src/lib/libc/port/i18n/wsrchr.c
index 886dd19866..56bd96290f 100644
--- a/usr/src/lib/libc/port/i18n/wsrchr.c
+++ b/usr/src/lib/libc/port/i18n/wsrchr.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,33 +18,31 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1986 AT&T */
/* All Rights Reserved */
-
-/* This module is created for NLS on Sep.03.86 */
+#pragma ident "%Z%%M% %I% %E% SMI"
/*
* Return the ptr in sp at which the character c last appears;
* Null if not found.
*/
-#pragma weak wcsrchr = _wcsrchr
-#pragma weak wsrchr = _wsrchr
+#pragma weak _wcsrchr = wcsrchr
+#pragma weak _wsrchr = wsrchr
#include "lint.h"
#include <stdlib.h>
#include <wchar.h>
wchar_t *
-_wcsrchr(const wchar_t *sp, wchar_t c)
+wcsrchr(const wchar_t *sp, wchar_t c)
{
const wchar_t *r = NULL;
@@ -57,7 +54,7 @@ _wcsrchr(const wchar_t *sp, wchar_t c)
}
wchar_t *
-_wsrchr(const wchar_t *sp, wchar_t c)
+wsrchr(const wchar_t *sp, wchar_t c)
{
- return (_wcsrchr(sp, c));
+ return (wcsrchr(sp, c));
}
diff --git a/usr/src/lib/libc/port/i18n/wsscanf.c b/usr/src/lib/libc/port/i18n/wsscanf.c
index 1d04631b8c..c0f8351326 100644
--- a/usr/src/lib/libc/port/i18n/wsscanf.c
+++ b/usr/src/lib/libc/port/i18n/wsscanf.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,18 +18,18 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1986 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
-#include "synonyms.h"
+#include "lint.h"
#include "file64.h"
#include <stdio.h>
#include <stdarg.h>
diff --git a/usr/src/lib/libc/port/i18n/wstod.c b/usr/src/lib/libc/port/i18n/wstod.c
index df7a872f9e..0be95caf13 100644
--- a/usr/src/lib/libc/port/i18n/wstod.c
+++ b/usr/src/lib/libc/port/i18n/wstod.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,26 +18,26 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
/*
* This file is based on /usr/src/lib/libc/port/gen/strtod.c and
* /usr/src/lib/libc/sparc/fp/string_decim.c
*/
-#pragma weak wcstod = _wcstod
-#pragma weak wstod = _wstod
+#pragma weak _wcstod = wcstod
+#pragma weak _wstod = wstod
-#include "synonyms.h"
+#include "lint.h"
#include <errno.h>
#include <stdio.h>
#include <values.h>
@@ -53,7 +52,7 @@
static void wstring_to_decimal(const wchar_t **, int, decimal_record *, int *);
double
-_wcstod(const wchar_t *cp, wchar_t **ptr)
+wcstod(const wchar_t *cp, wchar_t **ptr)
{
double x;
decimal_mode mr;
@@ -147,9 +146,9 @@ wcstold(const wchar_t *cp, wchar_t **ptr)
}
double
-_wstod(const wchar_t *cp, wchar_t **ptr)
+wstod(const wchar_t *cp, wchar_t **ptr)
{
- return (_wcstod(cp, ptr));
+ return (wcstod(cp, ptr));
}
static const char *infstring = "INFINITY";
diff --git a/usr/src/lib/libc/port/i18n/wstok.c b/usr/src/lib/libc/port/i18n/wstok.c
index d0f109aa7c..140d500ff2 100644
--- a/usr/src/lib/libc/port/i18n/wstok.c
+++ b/usr/src/lib/libc/port/i18n/wstok.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -21,17 +20,14 @@
*/
/*
- * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1986 AT&T */
/* All Rights Reserved */
-
-/* This module is created for NLS on Sep.03.86 */
+#pragma ident "%Z%%M% %I% %E% SMI"
/*
* uses wcspbrk and wcsspn to break string into tokens on
@@ -40,9 +36,9 @@
* 'subsequent' calls are calls with first argument WNULL.
*/
-#pragma weak wstok = _wstok
+#pragma weak _wstok = wstok
-#include "synonyms.h"
+#include "lint.h"
#include "mtlib.h"
#include "mse_int.h"
#include <stdlib.h>
@@ -87,7 +83,7 @@ wcstok(wchar_t *string, const wchar_t *sepset)
}
wchar_t *
-_wstok(wchar_t *string, const wchar_t *sepset)
+wstok(wchar_t *string, const wchar_t *sepset)
{
return (wcstok(string, sepset));
}
diff --git a/usr/src/lib/libc/port/i18n/wstol.c b/usr/src/lib/libc/port/i18n/wstol.c
index 78af1651c4..2dd8f80df8 100644
--- a/usr/src/lib/libc/port/i18n/wstol.c
+++ b/usr/src/lib/libc/port/i18n/wstol.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -21,24 +20,23 @@
*/
/*
- * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1986 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
-#pragma weak wstol = _wstol
+#pragma weak _wstol = wstol
-#include "synonyms.h"
+#include "lint.h"
#include <widec.h>
#include <wchar.h>
long
-_wstol(const wchar_t *str, wchar_t **ptr, int base)
+wstol(const wchar_t *str, wchar_t **ptr, int base)
{
return (wcstol(str, ptr, base));
}
diff --git a/usr/src/lib/libc/port/i18n/wstoll.c b/usr/src/lib/libc/port/i18n/wstoll.c
index d528d319cd..e732c2bbc6 100644
--- a/usr/src/lib/libc/port/i18n/wstoll.c
+++ b/usr/src/lib/libc/port/i18n/wstoll.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,19 +18,19 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1986 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
-#pragma weak wstoll = _wstoll
-#pragma weak watoll = _watoll
+#pragma weak _wstoll = wstoll
+#pragma weak _watoll = watoll
#include "lint.h"
#include <wchar.h>
@@ -48,13 +47,13 @@
* PSARC opinion: PSARC/1993/121, approved on 3/11/93
*/
long long
-_watoll(const wchar_t *p)
+watoll(const wchar_t *p)
{
return (wcstoll(p, NULL, 10));
}
long long
-_wstoll(const wchar_t *str, wchar_t **ptr, int base)
+wstoll(const wchar_t *str, wchar_t **ptr, int base)
{
return (wcstoll(str, ptr, base));
}
diff --git a/usr/src/lib/libc/port/i18n/wsxfrm.c b/usr/src/lib/libc/port/i18n/wsxfrm.c
index 12f8dcb7e8..fd1b25073e 100644
--- a/usr/src/lib/libc/port/i18n/wsxfrm.c
+++ b/usr/src/lib/libc/port/i18n/wsxfrm.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,8 +18,9 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
@@ -29,21 +29,21 @@
/* This is Sun's propriatry implementation of wsxfrm() and wscoll() */
/* using dynamic linking. It is probably free from AT&T copyright. */
-#pragma weak wscoll = _wscoll
-#pragma weak wsxfrm = _wsxfrm
+#pragma weak _wscoll = wscoll
+#pragma weak _wsxfrm = wsxfrm
#include "lint.h"
#include <wchar.h>
#include "libc.h"
size_t
-_wsxfrm(wchar_t *s1, const wchar_t *s2, size_t n)
+wsxfrm(wchar_t *s1, const wchar_t *s2, size_t n)
{
- return (_wcsxfrm(s1, s2, n));
+ return (wcsxfrm(s1, s2, n));
}
int
-_wscoll(const wchar_t *s1, const wchar_t *s2)
+wscoll(const wchar_t *s1, const wchar_t *s2)
{
- return (_wcscoll(s1, s2));
+ return (wcscoll(s1, s2));
}
diff --git a/usr/src/lib/libc/port/llib-lc b/usr/src/lib/libc/port/llib-lc
index d312d2cd39..c8c62dfa7e 100644
--- a/usr/src/lib/libc/port/llib-lc
+++ b/usr/src/lib/libc/port/llib-lc
@@ -799,7 +799,8 @@ int remove(const char *filename);
int rename(const char *old, const char *new);
/* rewinddir.c */
-void _rewinddir(DIR *dirp);
+#undef rewinddir
+void rewinddir(DIR *dirp);
/* scandir.c */
int alphasort(const struct dirent **, const struct dirent **);
diff --git a/usr/src/lib/libc/port/mapfile-vers b/usr/src/lib/libc/port/mapfile-vers
index 54c8ad230a..bb34032d24 100644
--- a/usr/src/lib/libc/port/mapfile-vers
+++ b/usr/src/lib/libc/port/mapfile-vers
@@ -79,16 +79,12 @@ SUNW_1.23 { # SunOS 5.11 (Solaris 11)
forkx;
fsetattr;
getattrat;
- _getpagesizes;
getpagesizes2;
- _getpagesizes2;
htonl;
htons;
lio_listio;
mkdtemp;
- _mkdtemp;
mkstemps;
- _mkstemps;
mq_close;
mq_getattr;
mq_notify;
@@ -106,7 +102,6 @@ SUNW_1.23 { # SunOS 5.11 (Solaris 11)
ntohs;
posix_fallocate;
pthread_key_create_once_np;
- _renameat;
sched_getparam;
sched_get_priority_max;
sched_get_priority_min;
@@ -134,7 +129,7 @@ SUNW_1.23 { # SunOS 5.11 (Solaris 11)
sigtimedwait;
sigwaitinfo;
strnlen;
- thr_keycreate_once = NODYNSORT;
+ thr_keycreate_once;
timer_create;
timer_delete;
timer_getoverrun;
@@ -410,7 +405,7 @@ SUNW_1.22 { # SunOS 5.10 (Solaris 10)
pthread_condattr_setclock;
pthread_mutexattr_getrobust_np;
pthread_mutexattr_setrobust_np;
- pthread_mutex_consistent_np = NODYNSORT;
+ pthread_mutex_consistent_np;
pthread_mutex_reltimedlock_np;
pthread_mutex_timedlock;
pthread_rwlock_reltimedrdlock_np;
@@ -427,7 +422,7 @@ SUNW_1.22 { # SunOS 5.10 (Solaris 10)
scandir;
_scandir;
schedctl_exit;
- schedctl_init = NODYNSORT;
+ schedctl_init;
schedctl_lookup;
sema_reltimedwait;
sema_timedwait;
@@ -1016,7 +1011,7 @@ SUNW_0.9 { # SunOS 5.5 (Solaris 2.5)
setreuid;
setstate;
srandom;
- thr_min_stack = NODYNSORT;
+ thr_min_stack;
thr_stksegment;
ualarm;
usleep;
@@ -1073,18 +1068,18 @@ SUNW_0.8 { # SunOS 5.4 (Solaris 2.4)
strptime;
thr_continue;
thr_create;
- thr_exit = NODYNSORT;
+ thr_exit;
thr_getconcurrency;
thr_getprio;
thr_getspecific;
thr_join;
- thr_keycreate = NODYNSORT;
- thr_kill = NODYNSORT;
+ thr_keycreate;
+ thr_kill;
thr_self = NODYNSORT;
thr_setconcurrency;
- thr_setprio = NODYNSORT;
- thr_setspecific = NODYNSORT;
- thr_sigsetmask = NODYNSORT;
+ thr_setprio;
+ thr_setspecific;
+ thr_sigsetmask;
thr_suspend;
thr_yield;
vlfmt;
@@ -1336,9 +1331,9 @@ SUNWprivate_1.1 {
__libc_threaded;
_lib_version = NODIRECT;
_logb = FUNCTION FILTER libm.so.2;
- _lone = NODYNSORT;
- _lten;
- _lzero = NODYNSORT;
+ _lone = NODYNSORT;
+ _lten = NODYNSORT;
+ _lzero = NODYNSORT;
__malloc_lock;
_modff = FUNCTION FILTER libm.so.2;
__nan_read;
@@ -1362,179 +1357,39 @@ SUNWprivate_1.1 {
__xpg6 = NODIRECT;
protected:
__accessat;
- _a64l;
acctctl;
- _acctctl;
- _acl;
- _adjtime;
allocids;
- _ascftime;
- _asctime_r;
_assert_c99;
__assert_c99;
_assfail;
- _atoll;
- _atomic_add_16 = NODYNSORT;
- _atomic_add_16_nv = NODYNSORT;
- _atomic_add_32 = NODYNSORT;
- _atomic_add_32_nv = NODYNSORT;
- _atomic_add_64 = NODYNSORT;
- _atomic_add_64_nv = NODYNSORT;
- _atomic_add_8 = NODYNSORT;
- _atomic_add_8_nv = NODYNSORT;
- _atomic_add_char = NODYNSORT;
- _atomic_add_char_nv = NODYNSORT;
- _atomic_add_int = NODYNSORT;
- _atomic_add_int_nv = NODYNSORT;
- _atomic_add_long = NODYNSORT;
- _atomic_add_long_nv = NODYNSORT;
- _atomic_add_ptr = NODYNSORT;
- _atomic_add_ptr_nv = NODYNSORT;
- _atomic_add_short = NODYNSORT;
- _atomic_add_short_nv = NODYNSORT;
- _atomic_and_16 = NODYNSORT;
- _atomic_and_16_nv = NODYNSORT;
- _atomic_and_32 = NODYNSORT;
- _atomic_and_32_nv = NODYNSORT;
- _atomic_and_64 = NODYNSORT;
- _atomic_and_64_nv = NODYNSORT;
- _atomic_and_8 = NODYNSORT;
- _atomic_and_8_nv = NODYNSORT;
- _atomic_and_uchar = NODYNSORT;
- _atomic_and_uchar_nv = NODYNSORT;
- _atomic_and_uint = NODYNSORT;
- _atomic_and_uint_nv = NODYNSORT;
- _atomic_and_ulong = NODYNSORT;
- _atomic_and_ulong_nv = NODYNSORT;
- _atomic_and_ushort = NODYNSORT;
- _atomic_and_ushort_nv = NODYNSORT;
- _atomic_cas_16 = NODYNSORT;
- _atomic_cas_32 = NODYNSORT;
- _atomic_cas_64 = NODYNSORT;
- _atomic_cas_8 = NODYNSORT;
- _atomic_cas_ptr = NODYNSORT;
- _atomic_cas_uchar = NODYNSORT;
- _atomic_cas_uint = NODYNSORT;
- _atomic_cas_ulong = NODYNSORT;
- _atomic_cas_ushort = NODYNSORT;
- _atomic_clear_long_excl = NODYNSORT;
- _atomic_dec_16 = NODYNSORT;
- _atomic_dec_16_nv = NODYNSORT;
- _atomic_dec_32 = NODYNSORT;
- _atomic_dec_32_nv = NODYNSORT;
- _atomic_dec_64 = NODYNSORT;
- _atomic_dec_64_nv = NODYNSORT;
- _atomic_dec_8 = NODYNSORT;
- _atomic_dec_8_nv = NODYNSORT;
- _atomic_dec_uchar = NODYNSORT;
- _atomic_dec_uchar_nv = NODYNSORT;
- _atomic_dec_uint = NODYNSORT;
- _atomic_dec_uint_nv = NODYNSORT;
- _atomic_dec_ulong = NODYNSORT;
- _atomic_dec_ulong_nv = NODYNSORT;
- _atomic_dec_ushort = NODYNSORT;
- _atomic_dec_ushort_nv = NODYNSORT;
- _atomic_inc_16 = NODYNSORT;
- _atomic_inc_16_nv = NODYNSORT;
- _atomic_inc_32 = NODYNSORT;
- _atomic_inc_32_nv = NODYNSORT;
- _atomic_inc_64 = NODYNSORT;
- _atomic_inc_64_nv = NODYNSORT;
- _atomic_inc_8 = NODYNSORT;
- _atomic_inc_8_nv = NODYNSORT;
- _atomic_inc_uchar = NODYNSORT;
- _atomic_inc_uchar_nv = NODYNSORT;
- _atomic_inc_uint = NODYNSORT;
- _atomic_inc_uint_nv = NODYNSORT;
- _atomic_inc_ulong = NODYNSORT;
- _atomic_inc_ulong_nv = NODYNSORT;
- _atomic_inc_ushort = NODYNSORT;
- _atomic_inc_ushort_nv = NODYNSORT;
- _atomic_or_16 = NODYNSORT;
- _atomic_or_16_nv = NODYNSORT;
- _atomic_or_32 = NODYNSORT;
- _atomic_or_32_nv = NODYNSORT;
- _atomic_or_64 = NODYNSORT;
- _atomic_or_64_nv = NODYNSORT;
- _atomic_or_8 = NODYNSORT;
- _atomic_or_8_nv = NODYNSORT;
- _atomic_or_uchar = NODYNSORT;
- _atomic_or_uchar_nv = NODYNSORT;
- _atomic_or_uint = NODYNSORT;
- _atomic_or_uint_nv = NODYNSORT;
- _atomic_or_ulong = NODYNSORT;
- _atomic_or_ulong_nv = NODYNSORT;
- _atomic_or_ushort = NODYNSORT;
- _atomic_or_ushort_nv = NODYNSORT;
- _atomic_set_long_excl = NODYNSORT;
- _atomic_swap_16 = NODYNSORT;
- _atomic_swap_32 = NODYNSORT;
- _atomic_swap_64 = NODYNSORT;
- _atomic_swap_8 = NODYNSORT;
- _atomic_swap_ptr = NODYNSORT;
- _atomic_swap_uchar = NODYNSORT;
- _atomic_swap_uint = NODYNSORT;
- _atomic_swap_ulong = NODYNSORT;
- _atomic_swap_ushort = NODYNSORT;
attr_count;
attr_to_data_type;
attr_to_name;
attr_to_option;
attr_to_xattr_view;
_autofssys;
- _brk;
__btowc_dense;
__btowc_euc;
__btowc_sb;
_bufsync;
- _cftime;
__charmap_init;
_cladm;
- __cladm;
__class_quadruple;
- _clock_getres;
- _clock_gettime;
- _clock_nanosleep;
- _clock_settime;
- _closelog;
__collate_init;
- _cond_broadcast = NODYNSORT;
- _cond_destroy = NODYNSORT;
- _cond_init;
- _cond_reltimedwait;
- _cond_signal = NODYNSORT;
- _cond_timedwait;
- _cond_wait;
core_get_default_content;
- _core_get_default_content;
core_get_default_path;
- _core_get_default_path;
core_get_global_content;
- _core_get_global_content;
core_get_global_path;
- _core_get_global_path;
core_get_options;
- _core_get_options;
core_get_process_content;
- _core_get_process_content;
core_get_process_path;
- _core_get_process_path;
core_set_default_content;
- _core_set_default_content;
core_set_default_path;
- _core_set_default_path;
core_set_global_content;
- _core_set_global_content;
core_set_global_path;
- _core_set_global_path;
core_set_options;
- _core_set_options;
core_set_process_content;
- _core_set_process_content;
core_set_process_path;
- _core_set_process_path;
- _ctermid_r;
- _ctime_r;
__ctype_init;
dbm_close_status;
dbm_do_nextkey;
@@ -1543,85 +1398,33 @@ SUNWprivate_1.1 {
_D_cplx_div_ix;
_D_cplx_div_rx;
_D_cplx_mul;
- _decimal_to_double;
- _decimal_to_extended;
- _decimal_to_quadruple;
- _decimal_to_single;
defcntl;
- _defcntl;
defopen;
- _defopen;
defread;
- _defread;
_delete;
_dgettext;
- _dirfd;
- _door_bind = NODYNSORT;
- _door_call = NODYNSORT;
- _door_create;
- _door_cred;
- _door_getparam = NODYNSORT;
- _door_info = NODYNSORT;
- _door_return;
- _door_revoke = NODYNSORT;
- _door_server_create;
- _door_setparam = NODYNSORT;
- _door_ucred;
- _door_unbind = NODYNSORT;
_doprnt;
_doscan;
- _double_to_decimal;
- _drand48;
- _econvert;
- _ecvt;
- _endgrent;
- _endpwent;
- _endspent;
- _endutent;
- _endutxent;
- _erand48;
- _err;
_errfp;
- _errx;
_errxfp;
__eucpctowc_gen;
exportfs;
- _exportfs;
- _extended_to_decimal;
- _facl;
- _fchroot;
- _fconvert;
_F_cplx_div;
_F_cplx_div_ix;
_F_cplx_div_rx;
_F_cplx_mul;
- _fcvt;
- _fdatasync;
- _ffs;
- _fgetgrent;
- _fgetgrent_r;
- _fgetpwent;
- _fgetpwent_r;
- _fgetspent;
- _fgetspent_r;
__fgetwc_dense;
__fgetwc_euc;
__fgetwc_sb;
__fgetwc_xpg5;
__fgetws_xpg5;
- _file_to_decimal;
_findbuf;
_findiop;
__fini_daemon_priv;
_finite;
- _flockfile;
__fnmatch_C;
__fnmatch_sb;
__fnmatch_std;
- _fork1 = NODYNSORT;
- _forkall;
- _forkallx = NODYNSORT;
- _forkx = NODYNSORT;
_fpclass;
_fpgetmask;
_fpgetround;
@@ -1632,83 +1435,34 @@ SUNWprivate_1.1 {
_fpsetsticky;
__fputwc_xpg5;
__fputws_xpg5;
- _fstatfs;
- _ftruncate;
- _ftrylockfile;
_ftw;
- _func_to_decimal;
- _funlockfile;
- _gconvert;
_gcvt;
_getarg;
- _getchar_unlocked;
__getcontext;
- _getc_unlocked;
__getdate_std;
_getdents;
_get_exit_frame_monitor;
_getfp;
- _getgrent;
- _getgrent_r;
- _getgrgid_r;
- _getgrnam_r;
_getgroupsbymember;
- __getloadavg;
_getlogin_r;
- _getmntany;
- _getmntent;
- _getpw;
- _getpwent;
- _getpwent_r;
- _getpwnam_r;
- _getpwuid_r;
_getsp;
- _getspent;
- _getspent_r;
- _getspnam;
- _getspnam_r;
__gettsp;
- _getutent;
- _getutid;
- _getutline;
- _getutmp;
- _getutmpx;
- _getutxent;
- _getutxid;
- _getutxline;
- _getvfsany;
- _getvfsent;
- _getvfsfile;
- _getvfsspec;
getvmusage;
__getwchar_xpg5;
__getwc_xpg5;
- _getzoneid;
- _getzoneidbyname;
- _getzonenamebyid;
- _gmtime_r;
- _gsignal;
gtty;
- _gtty;
- _hasmntopt;
- _iconv;
- _iconv_close;
- _iconv_open;
idmap_reg;
idmap_unreg;
__init_daemon_priv;
__init_suid_priv;
_insert;
inst_sync;
- _inst_sync;
_is_euc_fc;
_is_euc_pc;
- _is_system_labeled;
_iswctype;
__iswctype_bc;
__iswctype_sb;
__iswctype_std;
- _jrand48;
klpd_create;
klpd_getpath;
klpd_getport;
@@ -1717,52 +1471,17 @@ SUNWprivate_1.1 {
klpd_register_id;
klpd_unregister;
klpd_unregister_id;
- _l64a;
- _ladd;
- _lckpwdf;
- _lcong48;
- _ldivide;
- _lexp10;
_lgrp_home_fast = NODYNSORT;
_lgrpsys;
- _llabs;
- _lldiv;
- _llog10;
- _llseek;
_lltostr;
- _lmul;
__localeconv_std;
__locale_init;
- _localtime_r;
_lock_clear;
_lock_try;
- _lrand48;
- _lshiftl;
- _lsub;
_ltzset;
- __lwp_cond_broadcast;
- __lwp_cond_reltimedwait;
- __lwp_cond_signal;
- __lwp_cond_timedwait;
- __lwp_cond_wait;
- __lwp_continue;
- __lwp_info;
- __lwp_kill;
- __lwp_mutex_lock;
- __lwp_mutex_trylock;
- __lwp_mutex_unlock;
lwp_self;
- __lwp_self;
- __lwp_sema_init;
- __lwp_sema_post;
- __lwp_sema_trywait;
- __lwp_sema_wait;
- __lwp_suspend;
- _madvise;
makeut;
- _makeut;
makeutx;
- _makeutx;
_mbftowc;
__mbftowc_dense;
__mbftowc_euc;
@@ -1791,55 +1510,29 @@ SUNWprivate_1.1 {
__mbtowc_euc;
__mbtowc_sb;
mcfiller;
- _membar_consumer;
- _membar_enter = NODYNSORT;
- _membar_exit = NODYNSORT;
- _membar_producer = NODYNSORT;
__messages_init;
- _mincore;
_mkarglst;
- _mlockall;
mntopt;
modctl;
modutx;
- _modutx;
__monetary_init;
- _mrand48;
msgctl64;
- _msgctl64;
__multi_innetgr;
- _munlockall;
- _mutex_consistent = NODYNSORT;
- __mutex_consistent = NODYNSORT;
_mutex_destroy = NODYNSORT;
- __mutex_destroy;
mutex_held;
- __mutex_held = NODYNSORT;
_mutex_init = NODYNSORT;
- __mutex_init;
- __mutex_lock;
- _mutex_trylock = NODYNSORT;
- __mutex_trylock;
_mutex_unlock = NODYNSORT;
- __mutex_unlock;
name_to_attr;
- _nanosleep;
nfs_getfh;
- _nfs_getfh;
nfssvc;
- _nfssvc;
_nfssys;
__nis_get_environment;
__nl_langinfo_std;
- _nrand48;
_nss_db_state_destr;
nss_default_key2str;
nss_delete;
- _nss_delete;
nss_endent;
- _nss_endent;
nss_getent;
- _nss_getent;
_nss_initf_group;
_nss_initf_netgroup;
_nss_initf_passwd;
@@ -1849,9 +1542,7 @@ SUNWprivate_1.1 {
nss_packed_getkey;
nss_packed_set_status;
nss_search;
- _nss_search;
nss_setent;
- _nss_setent;
_nss_XbyY_fgets;
__nsw_extended_action_v1;
__nsw_freeconfig_v1;
@@ -1860,178 +1551,16 @@ SUNWprivate_1.1 {
__numeric_init;
__openattrdirat;
option_to_attr;
- _openlog;
- _plock;
- _port_alert;
- _port_associate;
- _port_create;
- _port_dissociate;
- _port_get;
- _port_getn;
- _port_send;
- _port_sendn;
- _posix_openpt;
- _posix_spawn;
- _posix_spawnattr_destroy;
- _posix_spawnattr_getflags;
- _posix_spawnattr_getpgroup;
- _posix_spawnattr_getschedparam;
- _posix_spawnattr_getschedpolicy;
- _posix_spawnattr_getsigdefault;
- _posix_spawnattr_getsigmask;
- _posix_spawnattr_init;
- _posix_spawnattr_setflags;
- _posix_spawnattr_setpgroup;
- _posix_spawnattr_setschedparam;
- _posix_spawnattr_setschedpolicy;
- _posix_spawnattr_setsigdefault;
- _posix_spawnattr_setsigmask;
- _posix_spawn_file_actions_addclose;
- _posix_spawn_file_actions_adddup2;
- _posix_spawn_file_actions_addopen;
- _posix_spawn_file_actions_destroy;
- _posix_spawn_file_actions_init;
- _posix_spawnp;
- _pread;
- _printstack;
__priv_bracket;
__priv_relinquish;
- _pselect;
pset_assign_forced;
- _psiginfo;
_psignal;
- _pthread_atfork = NODYNSORT;
- _pthread_attr_destroy;
- _pthread_attr_getdetachstate;
- _pthread_attr_getguardsize;
- _pthread_attr_getinheritsched;
- _pthread_attr_getschedparam;
- _pthread_attr_getschedpolicy;
- _pthread_attr_getscope;
- _pthread_attr_getstack;
- _pthread_attr_getstackaddr;
- _pthread_attr_getstacksize;
- _pthread_attr_init;
- _pthread_attr_setdetachstate;
- _pthread_attr_setguardsize;
- _pthread_attr_setinheritsched;
- _pthread_attr_setschedparam;
- _pthread_attr_setschedpolicy;
- _pthread_attr_setscope;
- _pthread_attr_setstack;
- _pthread_attr_setstackaddr;
- _pthread_attr_setstacksize;
- _pthread_barrierattr_destroy;
- _pthread_barrierattr_getpshared;
- _pthread_barrierattr_init;
- _pthread_barrierattr_setpshared;
- _pthread_barrier_destroy;
- _pthread_barrier_init;
- _pthread_barrier_wait;
- _pthread_cancel;
- _pthread_condattr_destroy;
- _pthread_condattr_getclock;
- _pthread_condattr_getpshared;
- _pthread_condattr_init;
- _pthread_condattr_setclock;
- _pthread_condattr_setpshared;
- _pthread_cond_broadcast = NODYNSORT;
- _pthread_cond_destroy = NODYNSORT;
- _pthread_cond_init;
- _pthread_cond_reltimedwait_np;
- _pthread_cond_signal = NODYNSORT;
- _pthread_cond_timedwait;
- _pthread_cond_wait;
- _pthread_create;
- _pthread_detach = NODYNSORT;
- _pthread_equal;
- _pthread_exit = NODYNSORT;
- _pthread_getconcurrency;
- _pthread_getschedparam;
- _pthread_getspecific;
- _pthread_join;
- _pthread_key_create = NODYNSORT;
- _pthread_key_create_once_np = NODYNSORT;
- _pthread_key_delete = NODYNSORT;
- _pthread_kill = NODYNSORT;
- __pthread_min_stack;
- _pthread_mutexattr_destroy;
- _pthread_mutexattr_getprioceiling;
- _pthread_mutexattr_getprotocol;
- _pthread_mutexattr_getpshared;
- _pthread_mutexattr_getrobust_np;
- _pthread_mutexattr_gettype;
- _pthread_mutexattr_init;
- _pthread_mutexattr_setprioceiling;
- _pthread_mutexattr_setprotocol;
- _pthread_mutexattr_setpshared;
- _pthread_mutexattr_setrobust_np;
- _pthread_mutexattr_settype;
- _pthread_mutex_consistent_np = NODYNSORT;
- _pthread_mutex_destroy = NODYNSORT;
- _pthread_mutex_getprioceiling;
- _pthread_mutex_init;
- _pthread_mutex_lock = NODYNSORT;
- _pthread_mutex_reltimedlock_np;
- _pthread_mutex_setprioceiling;
- _pthread_mutex_timedlock;
- _pthread_mutex_trylock = NODYNSORT;
- _pthread_mutex_unlock = NODYNSORT;
- _pthread_once;
- _pthread_rwlockattr_destroy;
- _pthread_rwlockattr_getpshared;
- _pthread_rwlockattr_init;
- _pthread_rwlockattr_setpshared;
- _pthread_rwlock_destroy = NODYNSORT;
- _pthread_rwlock_init = NODYNSORT;
- _pthread_rwlock_rdlock = NODYNSORT;
- _pthread_rwlock_reltimedrdlock_np;
- _pthread_rwlock_reltimedwrlock_np;
- _pthread_rwlock_timedrdlock;
- _pthread_rwlock_timedwrlock;
- _pthread_rwlock_tryrdlock = NODYNSORT;
- _pthread_rwlock_trywrlock = NODYNSORT;
- _pthread_rwlock_unlock = NODYNSORT;
- _pthread_rwlock_wrlock = NODYNSORT;
- _pthread_self = NODYNSORT;
- _pthread_setcancelstate;
- _pthread_setcanceltype;
_pthread_setcleanupinit;
- _pthread_setconcurrency;
- _pthread_setschedparam;
- _pthread_setschedprio = NODYNSORT;
- _pthread_setspecific = NODYNSORT;
- _pthread_sigmask = NODYNSORT;
- _pthread_spin_destroy;
- _pthread_spin_init;
- _pthread_spin_lock;
- _pthread_spin_trylock;
- _pthread_spin_unlock;
- _pthread_testcancel;
- _putchar_unlocked;
- _putc_unlocked;
- _putpwent;
- _putspent;
- _pututline;
- _pututxline;
__putwchar_xpg5;
__putwc_xpg5;
- _pwrite;
- _qeconvert;
- _qecvt;
- _qfconvert;
- _qfcvt;
- _qgconvert;
- _qgcvt;
- _quadruple_to_decimal;
- _rand_r;
rctlctl;
- _rctlctl;
rctllist;
- _rctllist;
- _readdir_r;
_realbufend;
- _realpath;
__regcomp_C;
__regcomp_std;
__regerror_std;
@@ -2041,76 +1570,24 @@ SUNWprivate_1.1 {
_resume;
_resume_ret;
_rpcsys;
- _rwlock_init = NODYNSORT;
- _rw_rdlock = NODYNSORT;
- _rw_tryrdlock = NODYNSORT;
- _rw_trywrlock = NODYNSORT;
- _rw_unlock = NODYNSORT;
- _rw_wrlock = NODYNSORT;
_sbrk_grow_aligned;
- _schedctl_exit;
- _schedctl_init;
- _schedctl_lookup = NODYNSORT;
scrwidth;
- _seconvert;
- _seed48;
- _select;
- _sema_init;
- _sema_post;
- _sema_reltimedwait;
- _sema_timedwait;
- _sema_trywait;
- _sema_wait;
- _sem_close;
semctl64;
_semctl64;
- _sem_destroy;
- _sem_getvalue;
- _sem_init;
- _sem_open;
- _sem_post;
- _sem_reltimedwait_np;
- _sem_timedwait;
- _sem_trywait;
- _sem_unlink;
- _sem_wait;
set_setcontext_enforcement;
set_l10n_alternate_root;
_setbufend;
- _setegid;
- _setenv;
__set_errno;
- _seteuid;
- _setgrent;
- _setlogmask;
- _setpwent;
setprojrctl;
- _setprojrctl;
_setregid;
_setreuid;
setsigacthandler;
- _setspent;
- _settimeofday;
- _setutent;
- _setutxent;
- _sfconvert;
- _sgconvert;
shmctl64;
_shmctl64;
- _sig2str;
sigflag;
- _sigflag;
- _sigfpe;
- _siginterrupt;
_signal;
_sigoff;
_sigon;
- _sigqueue;
- _sigstack;
- _sigtimedwait;
- _sigwait;
- _sigwaitinfo;
- _single_to_decimal;
_so_accept;
_so_bind;
_sockconfig;
@@ -2129,106 +1606,57 @@ SUNWprivate_1.1 {
_so_shutdown;
_so_socket;
_so_socketpair;
- _srand48;
- _ssignal;
- _statfs;
str2group;
str2passwd;
- _str2sig;
str2spwd;
__strcoll_C;
__strcoll_sb;
__strcoll_std;
- _strerror;
- _strerror_r;
__strfmon_std;
__strftime_std;
- _string_to_decimal;
__strptime_dontzero;
__strptime_std;
- _strsignal;
- _strtok_r;
- _strtoll;
- _strtoull;
__strxfrm_C;
__strxfrm_sb;
__strxfrm_std;
stty;
- _stty;
- _swapctl;
syscall;
_sysconfig;
- _sysfs;
__systemcall;
- _thr_continue;
thr_continue_allmutators;
_thr_continue_allmutators;
thr_continue_mutator;
_thr_continue_mutator;
- _thr_create;
- _thr_detach;
- _thr_exit = NODYNSORT;
- _thr_getconcurrency;
- _thr_get_inf_read;
- _thr_get_nan_read;
- _thr_getprio;
- _thr_getspecific;
thr_getstate;
_thr_getstate;
- _thr_join;
- _thr_keycreate = NODYNSORT;
- _thr_keycreate_once = NODYNSORT;
- _thr_key_delete;
- _thr_kill = NODYNSORT;
- _thr_main;
- _thr_min_stack = NODYNSORT;
thr_mutators_barrier;
_thr_mutators_barrier;
thr_probe_setup;
_thr_schedctl;
- _thr_self = NODYNSORT;
- _thr_setconcurrency;
thr_setmutator;
_thr_setmutator;
- _thr_setprio = NODYNSORT;
- _thr_setspecific = NODYNSORT;
thr_setstate;
_thr_setstate;
thr_sighndlrinfo;
_thr_sighndlrinfo;
- _thr_sigsetmask;
_thr_slot_offset;
- _thr_stksegment;
- _thr_suspend;
thr_suspend_allmutators;
_thr_suspend_allmutators;
thr_suspend_mutator;
_thr_suspend_mutator;
thr_wait_mutator;
_thr_wait_mutator;
- _thr_yield;
__time_init;
- _timer_create;
- _timer_delete;
- _timer_getoverrun;
- _timer_gettime;
- _timer_settime;
__tls_get_addr;
- _tmpnam;
- _tmpnam_r;
__towctrans_bc;
__towctrans_std;
__towlower_bc;
__towlower_std;
__towupper_bc;
__towupper_std;
- _truncate;
_trwctype;
__trwctype_std;
_ttyname_dev;
- _ttyname_r;
- _ttyslot;
- _uadmin;
_ucred_alloc;
ucred_getamask;
_ucred_getamask;
@@ -2238,43 +1666,19 @@ SUNWprivate_1.1 {
_ucred_getatid;
ucred_getauid;
_ucred_getauid;
- _ulckpwdf;
_ulltostr;
_uncached_getgrgid_r;
_uncached_getgrnam_r;
_uncached_getpwnam_r;
_uncached_getpwuid_r;
- _ungetc_unlocked;
__ungetwc_xpg5;
_unordered;
- _unsetenv;
- _updwtmp;
- _updwtmpx;
- _usleep;
- _ustat;
- _utimes;
- _utmpname;
- _utmpxname;
utssys;
- _utssys;
- _verr;
_verrfp;
- _verrx;
_verrxfp;
- _vfork;
- _vforkx;
- _vhangup;
- _vsyslog;
- _vwarn;
_vwarnfp;
- _vwarnx;
_vwarnxfp;
- _wait3;
- _wait4;
- _walkcontext;
- _warn;
_warnfp;
- _warnx;
_warnxfp;
__wcrtomb_dense;
__wcrtomb_euc;
@@ -2303,7 +1707,6 @@ SUNWprivate_1.1 {
__wctob_euc;
__wctob_sb;
__wctoeucpc_gen;
- _wctomb;
__wctomb_dense;
__wctomb_euc;
__wctomb_sb;
@@ -2320,7 +1723,6 @@ SUNWprivate_1.1 {
_wrtchk;
_xflsbuf;
_xgetwidth;
- _yield;
zone_add_datalink;
zone_boot;
zone_check_datalink;
@@ -2336,10 +1738,69 @@ SUNWprivate_1.1 {
zone_setattr;
zone_shutdown;
zone_version;
+# The following functions should not be exported from libc,
+# but /lib/libm.so.2, some older versions of the Studio
+# compiler/debugger components, and some ancient programs
+# found in /usr/dist reference them. When we no longer
+# care about these old and broken binary objects, these
+# symbols should be deleted.
+ _brk = NODYNSORT;
+ _cond_broadcast = NODYNSORT;
+ _cond_init = NODYNSORT;
+ _cond_signal = NODYNSORT;
+ _cond_wait = NODYNSORT;
+ _ecvt = NODYNSORT;
+ _fcvt = NODYNSORT;
+ _getc_unlocked = NODYNSORT;
+ _llseek = NODYNSORT;
+ _pthread_attr_getdetachstate = NODYNSORT;
+ _pthread_attr_getinheritsched = NODYNSORT;
+ _pthread_attr_getschedparam = NODYNSORT;
+ _pthread_attr_getschedpolicy = NODYNSORT;
+ _pthread_attr_getscope = NODYNSORT;
+ _pthread_attr_getstackaddr = NODYNSORT;
+ _pthread_attr_getstacksize = NODYNSORT;
+ _pthread_attr_init = NODYNSORT;
+ _pthread_condattr_getpshared = NODYNSORT;
+ _pthread_condattr_init = NODYNSORT;
+ _pthread_cond_init = NODYNSORT;
+ _pthread_create = NODYNSORT;
+ _pthread_getschedparam = NODYNSORT;
+ _pthread_join = NODYNSORT;
+ _pthread_key_create = NODYNSORT;
+ _pthread_mutexattr_getprioceiling = NODYNSORT;
+ _pthread_mutexattr_getprotocol = NODYNSORT;
+ _pthread_mutexattr_getpshared = NODYNSORT;
+ _pthread_mutexattr_init = NODYNSORT;
+ _pthread_mutex_getprioceiling = NODYNSORT;
+ _pthread_mutex_init = NODYNSORT;
+ _pthread_sigmask = NODYNSORT;
+ _rwlock_init = NODYNSORT;
+ _rw_rdlock = NODYNSORT;
+ _rw_unlock = NODYNSORT;
+ _rw_wrlock = NODYNSORT;
+ _sbrk_unlocked = NODYNSORT;
+ _select = NODYNSORT;
+ _sema_init = NODYNSORT;
+ _sema_post = NODYNSORT;
+ _sema_trywait = NODYNSORT;
+ _sema_wait = NODYNSORT;
+ _sysfs = NODYNSORT;
+ _thr_create = NODYNSORT;
+ _thr_exit = NODYNSORT;
+ _thr_getprio = NODYNSORT;
+ _thr_getspecific = NODYNSORT;
+ _thr_join = NODYNSORT;
+ _thr_keycreate = NODYNSORT;
+ _thr_kill = NODYNSORT;
+ _thr_main = NODYNSORT;
+ _thr_self = NODYNSORT;
+ _thr_setspecific = NODYNSORT;
+ _thr_sigsetmask = NODYNSORT;
+ _thr_stksegment = NODYNSORT;
+ _ungetc_unlocked = NODYNSORT;
local:
__imax_lldiv = NODYNSORT;
_ti_thr_self = NODYNSORT;
- rw_read_is_held = NODYNSORT;
- rw_write_is_held = NODYNSORT;
*;
};
diff --git a/usr/src/lib/libc/port/print/doprnt.c b/usr/src/lib/libc/port/print/doprnt.c
index cf6e05da01..ac16e9445b 100644
--- a/usr/src/lib/libc/port/print/doprnt.c
+++ b/usr/src/lib/libc/port/print/doprnt.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,23 +18,22 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2005 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
-
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
/*
* _doprnt: common code for printf, fprintf, sprintf
*/
-#include "synonyms.h"
+#include "lint.h"
#include "mtlib.h"
#include "print.h" /* parameters & macros for doprnt */
#include <wchar.h>
@@ -315,8 +313,7 @@ put_wide(FILE *iop, unsigned char **bufptr,
return (EOF);
} else {
(void) wmemcpy((wchar_t *)*bufptr, p, n);
- *bufptr = (unsigned char *)
- ((wchar_t *)*bufptr + n);
+ *bufptr = (unsigned char *)((wchar_t *)*bufptr + n);
return (0);
}
} else {
@@ -377,8 +374,7 @@ pad_wide(FILE *iop, unsigned char **bufptr,
return (EOF);
} else {
(void) wmemset((wchar_t *)*bufptr, ps, n);
- *bufptr = (unsigned char *)
- ((wchar_t *)*bufptr + n);
+ *bufptr = (unsigned char *)((wchar_t *)*bufptr + n);
return (0);
}
} else {
diff --git a/usr/src/lib/libc/port/print/fprintf.c b/usr/src/lib/libc/port/print/fprintf.c
index 4cd86b66b4..ce489a274c 100644
--- a/usr/src/lib/libc/port/print/fprintf.c
+++ b/usr/src/lib/libc/port/print/fprintf.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,22 +18,24 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
-/* This function should not be defined weak, but there might be */
-/* some program or libraries that may be interposing on this */
-#pragma weak fprintf = _fprintf
+/*
+ * This symbol should not be defined, but there are some
+ * miserable old compiler libraries that depend on it.
+ */
+#pragma weak _fprintf = fprintf
-#include "synonyms.h"
+#include "lint.h"
#include <mtlib.h>
#include <thread.h>
#include <synch.h>
diff --git a/usr/src/lib/libc/port/print/printf.c b/usr/src/lib/libc/port/print/printf.c
index 206a157708..bc3c7b1c1c 100644
--- a/usr/src/lib/libc/port/print/printf.c
+++ b/usr/src/lib/libc/port/print/printf.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,18 +18,18 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
-#include "synonyms.h"
+#include "lint.h"
#include <mtlib.h>
#include <stdarg.h>
#include <errno.h>
diff --git a/usr/src/lib/libc/port/print/snprintf.c b/usr/src/lib/libc/port/print/snprintf.c
index 78348f106e..4eb40028d7 100644
--- a/usr/src/lib/libc/port/print/snprintf.c
+++ b/usr/src/lib/libc/port/print/snprintf.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,8 +18,9 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
@@ -29,7 +29,7 @@
#pragma ident "%Z%%M% %I% %E% SMI"
-#include "synonyms.h"
+#include "lint.h"
#include <mtlib.h>
#include <stdarg.h>
#include <values.h>
diff --git a/usr/src/lib/libc/port/print/sprintf.c b/usr/src/lib/libc/port/print/sprintf.c
index 102079f3c2..b9bf02a6b9 100644
--- a/usr/src/lib/libc/port/print/sprintf.c
+++ b/usr/src/lib/libc/port/print/sprintf.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,18 +18,18 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
-#include "synonyms.h"
+#include "lint.h"
#include <mtlib.h>
#include <stdarg.h>
#include <values.h>
diff --git a/usr/src/lib/libc/port/print/vfprintf.c b/usr/src/lib/libc/port/print/vfprintf.c
index 91dccacd16..ee17738bdb 100644
--- a/usr/src/lib/libc/port/print/vfprintf.c
+++ b/usr/src/lib/libc/port/print/vfprintf.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,18 +18,18 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
-#include "synonyms.h"
+#include "lint.h"
#include <thread.h>
#include <mtlib.h>
#include <synch.h>
diff --git a/usr/src/lib/libc/port/print/vprintf.c b/usr/src/lib/libc/port/print/vprintf.c
index 91289e7e8d..2db4471179 100644
--- a/usr/src/lib/libc/port/print/vprintf.c
+++ b/usr/src/lib/libc/port/print/vprintf.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,18 +18,18 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
-#include "synonyms.h"
+#include "lint.h"
#include <mtlib.h>
#include <stdarg.h>
#include <errno.h>
diff --git a/usr/src/lib/libc/port/print/vsnprintf.c b/usr/src/lib/libc/port/print/vsnprintf.c
index 7d7df9c765..fbca2eedd3 100644
--- a/usr/src/lib/libc/port/print/vsnprintf.c
+++ b/usr/src/lib/libc/port/print/vsnprintf.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,8 +18,9 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
@@ -29,7 +29,7 @@
#pragma ident "%Z%%M% %I% %E% SMI"
-#include "synonyms.h"
+#include "lint.h"
#include <mtlib.h>
#include <stdarg.h>
#include <values.h>
diff --git a/usr/src/lib/libc/port/print/vsprintf.c b/usr/src/lib/libc/port/print/vsprintf.c
index da7f5216a0..d058e5c55f 100644
--- a/usr/src/lib/libc/port/print/vsprintf.c
+++ b/usr/src/lib/libc/port/print/vsprintf.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,18 +18,18 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
-#include "synonyms.h"
+#include "lint.h"
#include <mtlib.h>
#include <stdarg.h>
#include <values.h>
diff --git a/usr/src/lib/libc/port/print/vwprintf.c b/usr/src/lib/libc/port/print/vwprintf.c
index 0e149f628d..ae64a62688 100644
--- a/usr/src/lib/libc/port/print/vwprintf.c
+++ b/usr/src/lib/libc/port/print/vwprintf.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,14 +18,15 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2005 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
-#include "synonyms.h"
+#include "lint.h"
#include "file64.h"
#include <mtlib.h>
#include <stdio.h>
diff --git a/usr/src/lib/libc/port/print/wprintf.c b/usr/src/lib/libc/port/print/wprintf.c
index c23c59c1e4..4cdfe715fa 100644
--- a/usr/src/lib/libc/port/print/wprintf.c
+++ b/usr/src/lib/libc/port/print/wprintf.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,14 +18,15 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2005 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
-#include "synonyms.h"
+#include "lint.h"
#include "file64.h"
#include <mtlib.h>
#include <stdio.h>
diff --git a/usr/src/lib/libc/port/regex/glob.c b/usr/src/lib/libc/port/regex/glob.c
index 24367d797d..c557b6f44d 100644
--- a/usr/src/lib/libc/port/regex/glob.c
+++ b/usr/src/lib/libc/port/regex/glob.c
@@ -20,12 +20,10 @@
*/
/*
- * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/*
* This code is MKS code ported to Solaris originally with minimum
* modifications so that upgrades from MKS would readily integrate.
@@ -45,10 +43,12 @@
* Written by Eric Gisin.
*/
-#pragma weak glob = _glob
-#pragma weak globfree = _globfree
+#pragma ident "%Z%%M% %I% %E% SMI"
+
+#pragma weak _glob = glob
+#pragma weak _globfree = globfree
-#include "synonyms.h"
+#include "lint.h"
#include <stdio.h>
#include <unistd.h>
#include <limits.h>
@@ -136,7 +136,7 @@ glob(const char *pattern, int flags,
i = gp->gl_pathc - ipathc;
if (i >= 1 && !(flags & GLOB_NOSORT)) {
qsort((char *)(gp->gl_pathp+ipathc), i, sizeof (char *),
- pstrcmp);
+ pstrcmp);
}
if (i == 0) {
if (flags & GLOB_NOCHECK)
@@ -232,7 +232,7 @@ globit(size_t dend, const char *sp, glob_t *gp, int flags,
/* expand path to max. expansion */
n = dp - *path;
*path = realloc(*path,
- strlen(*path) + NAME_MAX + strlen(sp) + 1);
+ strlen(*path) + NAME_MAX + strlen(sp) + 1);
if (*path == NULL) {
(void) closedir(dirp);
free(pat);
@@ -290,7 +290,7 @@ append(glob_t *gp, const char *str)
if ((gp->gl_pathc + gp->gl_offs) >= gp->gl_pathn) {
gp->gl_pathn *= 2;
gp->gl_pathv = (char **)realloc((void *)gp->gl_pathv,
- gp->gl_pathn * sizeof (char *));
+ gp->gl_pathn * sizeof (char *));
if (gp->gl_pathv == NULLCPP)
return (GLOB_NOSPACE);
gp->gl_pathp = gp->gl_pathv + gp->gl_offs;
diff --git a/usr/src/lib/libc/port/regex/regcmp.c b/usr/src/lib/libc/port/regex/regcmp.c
index 4533c207df..5463330cd2 100644
--- a/usr/src/lib/libc/port/regex/regcmp.c
+++ b/usr/src/lib/libc/port/regex/regcmp.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,8 +18,9 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
@@ -37,9 +37,9 @@
*
*/
-#pragma weak regcmp = _regcmp
+#pragma weak _regcmp = regcmp
-#include "synonyms.h"
+#include "lint.h"
#include "mtlib.h"
#include <limits.h>
#include <stdarg.h>
@@ -112,7 +112,7 @@ int __i_size;
int *
___i_size(void)
{
- if (_thr_main())
+ if (thr_main())
return (&__i_size);
return ((int *)tsdalloc(_T_REGCMP_ISIZE, sizeof (int), NULL));
}
diff --git a/usr/src/lib/libc/port/regex/regex.c b/usr/src/lib/libc/port/regex/regex.c
index 369e2b813f..769761daef 100644
--- a/usr/src/lib/libc/port/regex/regex.c
+++ b/usr/src/lib/libc/port/regex/regex.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -21,7 +20,7 @@
*/
/*
- * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
@@ -38,12 +37,11 @@
*
*/
-#pragma weak regex = _regex
+#pragma weak _regex = regex
+#include "lint.h"
/* CONSTANTS SHARED WITH regcmp() */
#include "regex.h"
-
-#include "synonyms.h"
#include "mtlib.h"
#include <limits.h>
#include <stdarg.h>
@@ -161,7 +159,7 @@ char *__loc1;
char **
____loc1(void)
{
- if (_thr_main())
+ if (thr_main())
return (&__loc1);
return ((char **)tsdalloc(_T_REGEX_LOC1, sizeof (char *), NULL));
}
@@ -171,8 +169,7 @@ ____loc1(void)
/* DEFINITION OF regex() */
extern char *
-_regex(const char *regexp,
- const char *stringp, ...)
+regex(const char *regexp, const char *stringp, ...)
{
va_list arg_listp;
int char_size;
diff --git a/usr/src/lib/libc/port/regex/wordexp.c b/usr/src/lib/libc/port/regex/wordexp.c
index 10953174a2..d324b9fcb1 100644
--- a/usr/src/lib/libc/port/regex/wordexp.c
+++ b/usr/src/lib/libc/port/regex/wordexp.c
@@ -24,8 +24,6 @@
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/*
* This code is MKS code ported to Solaris originally with minimum
* modifications so that upgrades from MKS would readily integrate.
@@ -45,15 +43,17 @@
*
*/
-#pragma weak wordexp = _wordexp
-#pragma weak wordfree = _wordfree
+#pragma ident "%Z%%M% %I% %E% SMI"
+
+#pragma weak _wordexp = wordexp
+#pragma weak _wordfree = wordfree
/* Safeguard against mistakes in the Makefiles */
#ifndef WORDEXP_KSH93
#error "WORDEXP_KSH93 not set. Please check the Makefile flags."
#endif
-#include "synonyms.h"
+#include "lint.h"
#include <stdio.h>
#include <unistd.h>
#include <limits.h>
diff --git a/usr/src/lib/libc/port/rt/clock_timer.c b/usr/src/lib/libc/port/rt/clock_timer.c
index 8dfb35be91..2fbcc1a831 100644
--- a/usr/src/lib/libc/port/rt/clock_timer.c
+++ b/usr/src/lib/libc/port/rt/clock_timer.c
@@ -20,22 +20,13 @@
*/
/*
- * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
-#pragma weak clock_getres = _clock_getres
-#pragma weak clock_gettime = _clock_gettime
-#pragma weak clock_settime = _clock_settime
-#pragma weak timer_create = _timer_create
-#pragma weak timer_delete = _timer_delete
-#pragma weak timer_getoverrun = _timer_getoverrun
-#pragma weak timer_gettime = _timer_gettime
-#pragma weak timer_settime = _timer_settime
-
-#include "synonyms.h"
+#include "lint.h"
#include <time.h>
#include <sys/types.h>
#include <stdlib.h>
@@ -72,25 +63,25 @@ timer_init(void)
}
int
-_clock_getres(clockid_t clock_id, timespec_t *res)
+clock_getres(clockid_t clock_id, timespec_t *res)
{
return (__clock_getres(clock_id, res));
}
int
-_clock_gettime(clockid_t clock_id, timespec_t *tp)
+clock_gettime(clockid_t clock_id, timespec_t *tp)
{
return (__clock_gettime(clock_id, tp));
}
int
-_clock_settime(clockid_t clock_id, const timespec_t *tp)
+clock_settime(clockid_t clock_id, const timespec_t *tp)
{
return (__clock_settime(clock_id, tp));
}
int
-_timer_create(clockid_t clock_id, struct sigevent *sigevp, timer_t *timerid)
+timer_create(clockid_t clock_id, struct sigevent *sigevp, timer_t *timerid)
{
struct sigevent sigevent;
port_notify_t port_notify;
@@ -132,7 +123,7 @@ _timer_create(clockid_t clock_id, struct sigevent *sigevp, timer_t *timerid)
}
int
-_timer_delete(timer_t timerid)
+timer_delete(timer_t timerid)
{
int rc;
@@ -143,19 +134,19 @@ _timer_delete(timer_t timerid)
}
int
-_timer_getoverrun(timer_t timerid)
+timer_getoverrun(timer_t timerid)
{
return (__timer_getoverrun(timerid) + sigev_timer_getoverrun(timerid));
}
int
-_timer_gettime(timer_t timerid, itimerspec_t *value)
+timer_gettime(timer_t timerid, itimerspec_t *value)
{
return (__timer_gettime(timerid, value));
}
int
-_timer_settime(timer_t timerid, int flags, const itimerspec_t *value,
+timer_settime(timer_t timerid, int flags, const itimerspec_t *value,
itimerspec_t *ovalue)
{
return (__timer_settime(timerid, flags, value, ovalue));
diff --git a/usr/src/lib/libc/port/rt/fallocate.c b/usr/src/lib/libc/port/rt/fallocate.c
index 17b9088052..1f7a627fd9 100644
--- a/usr/src/lib/libc/port/rt/fallocate.c
+++ b/usr/src/lib/libc/port/rt/fallocate.c
@@ -20,13 +20,13 @@
*/
/*
- * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
-#include "synonyms.h"
+#include "lint.h"
#include <errno.h>
#include <fcntl.h>
#include <sys/types.h>
diff --git a/usr/src/lib/libc/port/rt/mqueue.c b/usr/src/lib/libc/port/rt/mqueue.c
index 1b1ea65deb..1f9d6bc770 100644
--- a/usr/src/lib/libc/port/rt/mqueue.c
+++ b/usr/src/lib/libc/port/rt/mqueue.c
@@ -26,20 +26,7 @@
#pragma ident "%Z%%M% %I% %E% SMI"
-#pragma weak mq_open = _mq_open
-#pragma weak mq_close = _mq_close
-#pragma weak mq_unlink = _mq_unlink
-#pragma weak mq_send = _mq_send
-#pragma weak mq_timedsend = _mq_timedsend
-#pragma weak mq_reltimedsend_np = _mq_reltimedsend_np
-#pragma weak mq_receive = _mq_receive
-#pragma weak mq_timedreceive = _mq_timedreceive
-#pragma weak mq_reltimedreceive_np = _mq_reltimedreceive_np
-#pragma weak mq_notify = _mq_notify
-#pragma weak mq_setattr = _mq_setattr
-#pragma weak mq_getattr = _mq_getattr
-
-#include "synonyms.h"
+#include "lint.h"
#include "mtlib.h"
#define _KMEMUSER
#include <sys/param.h> /* _MQ_OPEN_MAX, _MQ_PRIO_MAX, _SEM_VALUE_MAX */
@@ -349,7 +336,7 @@ mq_putmsg(mqhdr_t *mqhp, const char *msgp, ssize_t len, uint_t prio)
}
mqd_t
-_mq_open(const char *path, int oflag, /* mode_t mode, mq_attr *attr */ ...)
+mq_open(const char *path, int oflag, /* mode_t mode, mq_attr *attr */ ...)
{
va_list ap;
mode_t mode;
@@ -568,7 +555,7 @@ mq_close_cleanup(mqdes_t *mqdp)
}
int
-_mq_close(mqd_t mqdes)
+mq_close(mqd_t mqdes)
{
mqdes_t *mqdp = (mqdes_t *)mqdes;
mqhdr_t *mqhp;
@@ -601,7 +588,7 @@ _mq_close(mqd_t mqdes)
}
int
-_mq_unlink(const char *path)
+mq_unlink(const char *path)
{
int err;
@@ -731,14 +718,14 @@ __mq_timedsend(mqd_t mqdes, const char *msg_ptr, size_t msg_len,
}
int
-_mq_send(mqd_t mqdes, const char *msg_ptr, size_t msg_len, uint_t msg_prio)
+mq_send(mqd_t mqdes, const char *msg_ptr, size_t msg_len, uint_t msg_prio)
{
return (__mq_timedsend(mqdes, msg_ptr, msg_len, msg_prio,
NULL, ABS_TIME));
}
int
-_mq_timedsend(mqd_t mqdes, const char *msg_ptr, size_t msg_len,
+mq_timedsend(mqd_t mqdes, const char *msg_ptr, size_t msg_len,
uint_t msg_prio, const timespec_t *abs_timeout)
{
return (__mq_timedsend(mqdes, msg_ptr, msg_len, msg_prio,
@@ -746,7 +733,7 @@ _mq_timedsend(mqd_t mqdes, const char *msg_ptr, size_t msg_len,
}
int
-_mq_reltimedsend_np(mqd_t mqdes, const char *msg_ptr, size_t msg_len,
+mq_reltimedsend_np(mqd_t mqdes, const char *msg_ptr, size_t msg_len,
uint_t msg_prio, const timespec_t *rel_timeout)
{
return (__mq_timedsend(mqdes, msg_ptr, msg_len, msg_prio,
@@ -843,14 +830,14 @@ __mq_timedreceive(mqd_t mqdes, char *msg_ptr, size_t msg_len,
}
ssize_t
-_mq_receive(mqd_t mqdes, char *msg_ptr, size_t msg_len, uint_t *msg_prio)
+mq_receive(mqd_t mqdes, char *msg_ptr, size_t msg_len, uint_t *msg_prio)
{
return (__mq_timedreceive(mqdes, msg_ptr, msg_len, msg_prio,
NULL, ABS_TIME));
}
ssize_t
-_mq_timedreceive(mqd_t mqdes, char *msg_ptr, size_t msg_len,
+mq_timedreceive(mqd_t mqdes, char *msg_ptr, size_t msg_len,
uint_t *msg_prio, const timespec_t *abs_timeout)
{
return (__mq_timedreceive(mqdes, msg_ptr, msg_len, msg_prio,
@@ -858,7 +845,7 @@ _mq_timedreceive(mqd_t mqdes, char *msg_ptr, size_t msg_len,
}
ssize_t
-_mq_reltimedreceive_np(mqd_t mqdes, char *msg_ptr, size_t msg_len,
+mq_reltimedreceive_np(mqd_t mqdes, char *msg_ptr, size_t msg_len,
uint_t *msg_prio, const timespec_t *rel_timeout)
{
return (__mq_timedreceive(mqdes, msg_ptr, msg_len, msg_prio,
@@ -866,7 +853,7 @@ _mq_reltimedreceive_np(mqd_t mqdes, char *msg_ptr, size_t msg_len,
}
/*
- * Only used below, in _mq_notify().
+ * Only used below, in mq_notify().
* We already have a spawner thread.
* Verify that the attributes match; cancel it if necessary.
*/
@@ -874,7 +861,7 @@ static int
cancel_if_necessary(thread_communication_data_t *tcdp,
const struct sigevent *sigevp)
{
- int do_cancel = !_pthread_attr_equal(tcdp->tcd_attrp,
+ int do_cancel = !pthread_attr_equal(tcdp->tcd_attrp,
sigevp->sigev_notify_attributes);
if (do_cancel) {
@@ -898,7 +885,7 @@ cancel_if_necessary(thread_communication_data_t *tcdp,
}
int
-_mq_notify(mqd_t mqdes, const struct sigevent *sigevp)
+mq_notify(mqd_t mqdes, const struct sigevent *sigevp)
{
mqdes_t *mqdp = (mqdes_t *)mqdes;
mqhdr_t *mqhp;
@@ -1030,7 +1017,7 @@ bad:
}
int
-_mq_setattr(mqd_t mqdes, const struct mq_attr *mqstat, struct mq_attr *omqstat)
+mq_setattr(mqd_t mqdes, const struct mq_attr *mqstat, struct mq_attr *omqstat)
{
mqdes_t *mqdp = (mqdes_t *)mqdes;
mqhdr_t *mqhp;
@@ -1062,7 +1049,7 @@ _mq_setattr(mqd_t mqdes, const struct mq_attr *mqstat, struct mq_attr *omqstat)
}
int
-_mq_getattr(mqd_t mqdes, struct mq_attr *mqstat)
+mq_getattr(mqd_t mqdes, struct mq_attr *mqstat)
{
mqdes_t *mqdp = (mqdes_t *)mqdes;
mqhdr_t *mqhp;
diff --git a/usr/src/lib/libc/port/rt/pos4obj.c b/usr/src/lib/libc/port/rt/pos4obj.c
index 3dc20cb761..29b8565eae 100644
--- a/usr/src/lib/libc/port/rt/pos4obj.c
+++ b/usr/src/lib/libc/port/rt/pos4obj.c
@@ -26,7 +26,7 @@
#pragma ident "%Z%%M% %I% %E% SMI"
-#include "synonyms.h"
+#include "lint.h"
#include "mtlib.h"
#include <sys/types.h>
#include <errno.h>
diff --git a/usr/src/lib/libc/port/rt/sched.c b/usr/src/lib/libc/port/rt/sched.c
index df1be0e7ad..31da819017 100644
--- a/usr/src/lib/libc/port/rt/sched.c
+++ b/usr/src/lib/libc/port/rt/sched.c
@@ -26,7 +26,7 @@
#pragma ident "%Z%%M% %I% %E% SMI"
-#include "synonyms.h"
+#include "lint.h"
#include "thr_uberdata.h"
#include <sched.h>
#include <sys/tspriocntl.h>
@@ -128,7 +128,7 @@ get_info_by_policy(int policy)
* dynamic loading of scheduling classes.
*/
if (base) {
- _membar_producer();
+ membar_producer();
pccp->pcc_state = -1;
}
errno = EINVAL;
@@ -138,7 +138,7 @@ get_info_by_policy(int policy)
pccp->pcc_policy = policy;
} else if (policy != SCHED_SYS &&
priocntl(0, 0, PC_GETCID, &pccp->pcc_info) == -1) {
- _membar_producer();
+ membar_producer();
pccp->pcc_state = -1;
errno = EINVAL;
lmutex_unlock(&class_lock);
@@ -170,7 +170,7 @@ get_info_by_policy(int policy)
break;
}
- _membar_producer();
+ membar_producer();
pccp->pcc_state = 1;
lmutex_unlock(&class_lock);
return (pccp);
@@ -577,7 +577,7 @@ update_sched(ulwp_t *self)
if (self->ul_policy < 0) {
self->ul_cid = 0;
self->ul_pri = 0;
- _membar_producer();
+ membar_producer();
self->ul_policy = SCHED_OTHER;
}
exit_critical(self);
@@ -596,7 +596,7 @@ update_sched(ulwp_t *self)
if (pccp == NULL) { /* can't happen? */
self->ul_cid = scp->sc_cid;
self->ul_pri = scp->sc_cpri;
- _membar_producer();
+ membar_producer();
self->ul_policy = SCHED_OTHER;
exit_critical(self);
return;
@@ -629,7 +629,7 @@ update_sched(ulwp_t *self)
self->ul_cid = pcparm.pc_cid;
self->ul_pri = priority;
- _membar_producer();
+ membar_producer();
self->ul_policy = policy;
exit_critical(self);
diff --git a/usr/src/lib/libc/port/rt/sem.c b/usr/src/lib/libc/port/rt/sem.c
index af3bdcc06a..f378c93d27 100644
--- a/usr/src/lib/libc/port/rt/sem.c
+++ b/usr/src/lib/libc/port/rt/sem.c
@@ -20,25 +20,13 @@
*/
/*
- * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
-#pragma weak sem_open = _sem_open
-#pragma weak sem_close = _sem_close
-#pragma weak sem_unlink = _sem_unlink
-#pragma weak sem_init = _sem_init
-#pragma weak sem_destroy = _sem_destroy
-#pragma weak sem_wait = _sem_wait
-#pragma weak sem_timedwait = _sem_timedwait
-#pragma weak sem_reltimedwait_np = _sem_reltimedwait_np
-#pragma weak sem_trywait = _sem_trywait
-#pragma weak sem_post = _sem_post
-#pragma weak sem_getvalue = _sem_getvalue
-
-#include "synonyms.h"
+#include "lint.h"
#include "mtlib.h"
#include <sys/types.h>
#include <semaphore.h>
@@ -66,7 +54,7 @@ static semaddr_t *semheadp = NULL;
static mutex_t semlock = DEFAULTMUTEX;
sem_t *
-_sem_open(const char *path, int oflag, /* mode_t mode, int value */ ...)
+sem_open(const char *path, int oflag, /* mode_t mode, int value */ ...)
{
va_list ap;
mode_t crmode = 0;
@@ -106,7 +94,7 @@ _sem_open(const char *path, int oflag, /* mode_t mode, int value */ ...)
errno = 0;
if ((fd = __pos4obj_open(path, SEM_DATA_TYPE,
- oflag, crmode, &cr_flag)) < 0)
+ oflag, crmode, &cr_flag)) < 0)
goto out;
if (cr_flag)
@@ -150,7 +138,7 @@ _sem_open(const char *path, int oflag, /* mode_t mode, int value */ ...)
/* LINTED */
sem = (sem_t *)mmap64(NULL, sizeof (sem_t), PROT_READ|PROT_WRITE,
- MAP_SHARED, fd, (off64_t)0);
+ MAP_SHARED, fd, (off64_t)0);
(void) __close_nc(fd);
cr_flag &= ~DFILE_OPEN;
if (sem == MAP_FAILED)
@@ -194,7 +182,7 @@ out:
}
int
-_sem_close(sem_t *sem)
+sem_close(sem_t *sem)
{
semaddr_t **next;
semaddr_t *freeit;
@@ -215,7 +203,7 @@ _sem_close(sem_t *sem)
}
int
-_sem_unlink(const char *path)
+sem_unlink(const char *path)
{
int error;
int oerrno;
@@ -255,7 +243,7 @@ sem_invalid(sem_t *sem)
}
int
-_sem_init(sem_t *sem, int pshared, uint_t value)
+sem_init(sem_t *sem, int pshared, uint_t value)
{
int error;
@@ -268,7 +256,7 @@ _sem_init(sem_t *sem, int pshared, uint_t value)
}
int
-_sem_destroy(sem_t *sem)
+sem_destroy(sem_t *sem)
{
int error;
@@ -282,7 +270,7 @@ _sem_destroy(sem_t *sem)
}
int
-_sem_post(sem_t *sem)
+sem_post(sem_t *sem)
{
int error;
@@ -296,7 +284,7 @@ _sem_post(sem_t *sem)
}
int
-_sem_wait(sem_t *sem)
+sem_wait(sem_t *sem)
{
int error;
@@ -310,7 +298,7 @@ _sem_wait(sem_t *sem)
}
int
-_sem_timedwait(sem_t *sem, const timespec_t *abstime)
+sem_timedwait(sem_t *sem, const timespec_t *abstime)
{
int error;
@@ -326,7 +314,7 @@ _sem_timedwait(sem_t *sem, const timespec_t *abstime)
}
int
-_sem_reltimedwait_np(sem_t *sem, const timespec_t *reltime)
+sem_reltimedwait_np(sem_t *sem, const timespec_t *reltime)
{
int error;
@@ -342,7 +330,7 @@ _sem_reltimedwait_np(sem_t *sem, const timespec_t *reltime)
}
int
-_sem_trywait(sem_t *sem)
+sem_trywait(sem_t *sem)
{
int error;
@@ -358,7 +346,7 @@ _sem_trywait(sem_t *sem)
}
int
-_sem_getvalue(sem_t *sem, int *sval)
+sem_getvalue(sem_t *sem, int *sval)
{
if (sem_invalid(sem))
return (-1);
diff --git a/usr/src/lib/libc/port/rt/shm.c b/usr/src/lib/libc/port/rt/shm.c
index 53c59d9424..87f2cfae44 100644
--- a/usr/src/lib/libc/port/rt/shm.c
+++ b/usr/src/lib/libc/port/rt/shm.c
@@ -20,13 +20,13 @@
*/
/*
- * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
-#include "synonyms.h"
+#include "lint.h"
#include <sys/types.h>
#include <sys/mman.h>
#include <fcntl.h>
diff --git a/usr/src/lib/libc/port/rt/sigev_thread.c b/usr/src/lib/libc/port/rt/sigev_thread.c
index e048fc5196..05f3785c25 100644
--- a/usr/src/lib/libc/port/rt/sigev_thread.c
+++ b/usr/src/lib/libc/port/rt/sigev_thread.c
@@ -26,7 +26,7 @@
#pragma ident "%Z%%M% %I% %E% SMI"
-#include "synonyms.h"
+#include "lint.h"
#include "thr_uberdata.h"
#include <sys/types.h>
#include <pthread.h>
@@ -345,7 +345,7 @@ aio_spawner(void *arg)
if (function == NULL)
error = EINVAL;
- else if (_pthread_attr_equal(attrp, tcdp->tcd_attrp))
+ else if (pthread_attr_equal(attrp, tcdp->tcd_attrp))
error = sigev_add_work(tcdp, function, argument);
else {
/*
@@ -358,12 +358,12 @@ aio_spawner(void *arg)
if ((stdp = lmalloc(sizeof (*stdp))) == NULL)
error = ENOMEM;
else
- error = _pthread_attr_clone(&local_attr, attrp);
+ error = pthread_attr_clone(&local_attr, attrp);
if (error == 0) {
(void) pthread_attr_setdetachstate(
&local_attr, PTHREAD_CREATE_DETACHED);
- (void) _pthread_attr_setdaemonstate_np(
+ (void) pthread_attr_setdaemonstate_np(
&local_attr, PTHREAD_CREATE_DAEMON_NP);
stdp->std_func = function;
stdp->std_arg = argument;
@@ -472,7 +472,7 @@ setup_sigev_handler(const struct sigevent *sigevp, subsystem_t caller)
* pthread_attr_t.
*/
tcdp->tcd_attrp = &tcdp->tcd_user_attr;
- error = _pthread_attr_clone(tcdp->tcd_attrp,
+ error = pthread_attr_clone(tcdp->tcd_attrp,
sigevp->sigev_notify_attributes);
if (error) {
tcdp->tcd_attrp = NULL;
diff --git a/usr/src/lib/libc/port/rt/sigev_thread.h b/usr/src/lib/libc/port/rt/sigev_thread.h
index 943cb8ab23..0a0e6b0010 100644
--- a/usr/src/lib/libc/port/rt/sigev_thread.h
+++ b/usr/src/lib/libc/port/rt/sigev_thread.h
@@ -20,7 +20,7 @@
*/
/*
- * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
@@ -101,8 +101,8 @@ extern void del_sigev_mq(thread_communication_data_t *);
extern void *aio_spawner(void *);
/* Private interfaces elsewhere in libc */
-extern int _pthread_attr_clone(pthread_attr_t *, const pthread_attr_t *);
-extern int _pthread_attr_equal(const pthread_attr_t *, const pthread_attr_t *);
+extern int pthread_attr_clone(pthread_attr_t *, const pthread_attr_t *);
+extern int pthread_attr_equal(const pthread_attr_t *, const pthread_attr_t *);
extern int _port_dispatch(int, int, int, int, uintptr_t, void *);
extern thread_communication_data_t *sigev_aio_tcd;
diff --git a/usr/src/lib/libc/port/stdio/__extensions.c b/usr/src/lib/libc/port/stdio/__extensions.c
index bd680ce136..e5620dd446 100644
--- a/usr/src/lib/libc/port/stdio/__extensions.c
+++ b/usr/src/lib/libc/port/stdio/__extensions.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,14 +18,15 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
-#include "synonyms.h"
+#include "lint.h"
#include "file64.h"
#include <sys/types.h>
#include <stdio.h>
diff --git a/usr/src/lib/libc/port/stdio/_endopen.c b/usr/src/lib/libc/port/stdio/_endopen.c
index e58a779cc5..8e9ef792ac 100644
--- a/usr/src/lib/libc/port/stdio/_endopen.c
+++ b/usr/src/lib/libc/port/stdio/_endopen.c
@@ -18,16 +18,16 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
/*
* This routine is a special case, in that it is aware of
@@ -35,16 +35,6 @@
* in the small compilation environment.
*/
-#include <sys/feature_tests.h>
-
-#define close _close
-#define lseek _lseek
-#define open _open
-#if !defined(_LP64)
-#define lseek64 _lseek64
-#define open64 _open64
-#endif
-
#include "lint.h"
#include "file64.h"
#include <mtlib.h>
diff --git a/usr/src/lib/libc/port/stdio/_filbuf.c b/usr/src/lib/libc/port/stdio/_filbuf.c
index 4b271cef2d..73150feb3a 100644
--- a/usr/src/lib/libc/port/stdio/_filbuf.c
+++ b/usr/src/lib/libc/port/stdio/_filbuf.c
@@ -30,9 +30,9 @@
#pragma ident "%Z%%M% %I% %E% SMI"
-#pragma weak _filbuf = __filbuf
+#pragma weak __filbuf = _filbuf
-#include "synonyms.h"
+#include "lint.h"
#include "file64.h"
#include <stdio.h>
#include <errno.h>
diff --git a/usr/src/lib/libc/port/stdio/_findbuf.c b/usr/src/lib/libc/port/stdio/_findbuf.c
index cbb323c3eb..d0c1949e98 100644
--- a/usr/src/lib/libc/port/stdio/_findbuf.c
+++ b/usr/src/lib/libc/port/stdio/_findbuf.c
@@ -20,7 +20,7 @@
*/
/*
- * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
@@ -32,7 +32,7 @@
#define _LARGEFILE64_SOURCE 1
-#include "synonyms.h"
+#include "lint.h"
#include "file64.h"
#include <stdlib.h>
#include <stdio.h>
diff --git a/usr/src/lib/libc/port/stdio/_flsbuf.c b/usr/src/lib/libc/port/stdio/_flsbuf.c
index bcbc7f1a5a..234d9fd2c4 100644
--- a/usr/src/lib/libc/port/stdio/_flsbuf.c
+++ b/usr/src/lib/libc/port/stdio/_flsbuf.c
@@ -29,8 +29,9 @@
#pragma ident "%Z%%M% %I% %E% SMI"
-#pragma weak _flsbuf = __flsbuf
-#include "synonyms.h"
+#pragma weak __flsbuf = _flsbuf
+
+#include "lint.h"
#include "file64.h"
#include <mtlib.h>
#include <stdio.h>
diff --git a/usr/src/lib/libc/port/stdio/_wrtchk.c b/usr/src/lib/libc/port/stdio/_wrtchk.c
index 40bce18a96..767e81ac39 100644
--- a/usr/src/lib/libc/port/stdio/_wrtchk.c
+++ b/usr/src/lib/libc/port/stdio/_wrtchk.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,18 +18,18 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
-#include "synonyms.h"
+#include "lint.h"
#include "file64.h"
#include <stdio.h>
#include <errno.h>
diff --git a/usr/src/lib/libc/port/stdio/clearerr.c b/usr/src/lib/libc/port/stdio/clearerr.c
index 57ded209c0..9e3d95e291 100644
--- a/usr/src/lib/libc/port/stdio/clearerr.c
+++ b/usr/src/lib/libc/port/stdio/clearerr.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,20 +18,18 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
-#pragma weak clearerr_unlocked = _clearerr_unlocked
-
-#include "synonyms.h"
+#include "lint.h"
#include "file64.h"
#include <mtlib.h>
#include <stdio.h>
@@ -52,9 +49,3 @@ clearerr(FILE *iop)
iop->_flag &= ~(_IOERR | _IOEOF);
FUNLOCKFILE(lk);
}
-
-void
-_clearerr_unlocked(FILE *iop)
-{
- iop->_flag &= ~(_IOERR | _IOEOF);
-}
diff --git a/usr/src/lib/libc/port/stdio/ctermid.c b/usr/src/lib/libc/port/stdio/ctermid.c
index ea49f58b8a..0aba1d8d12 100644
--- a/usr/src/lib/libc/port/stdio/ctermid.c
+++ b/usr/src/lib/libc/port/stdio/ctermid.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,20 +18,20 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
-#pragma weak ctermid = _ctermid
+#pragma weak _ctermid = ctermid
-#include "synonyms.h"
+#include "lint.h"
#include "mtlib.h"
#include <stdio.h>
#include <string.h>
diff --git a/usr/src/lib/libc/port/stdio/ctermid_r.c b/usr/src/lib/libc/port/stdio/ctermid_r.c
index 7bf667c0fe..a6fed17995 100644
--- a/usr/src/lib/libc/port/stdio/ctermid_r.c
+++ b/usr/src/lib/libc/port/stdio/ctermid_r.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,20 +18,18 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
-#pragma weak ctermid_r = _ctermid_r
-
-#include "synonyms.h"
+#include "lint.h"
#include "mtlib.h"
#include <stdio.h>
#include <string.h>
@@ -44,7 +41,7 @@
*/
char *
-_ctermid_r(char *s)
+ctermid_r(char *s)
{
return (s ? strcpy(s, "/dev/tty") : NULL);
}
diff --git a/usr/src/lib/libc/port/stdio/cuserid.c b/usr/src/lib/libc/port/stdio/cuserid.c
index ec46291230..9d0c784e48 100644
--- a/usr/src/lib/libc/port/stdio/cuserid.c
+++ b/usr/src/lib/libc/port/stdio/cuserid.c
@@ -24,14 +24,14 @@
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
-#pragma weak cuserid = _cuserid
+#pragma ident "%Z%%M% %I% %E% SMI"
+
+#pragma weak _cuserid = cuserid
-#include "synonyms.h"
+#include "lint.h"
#include <stdio.h>
#include <pwd.h>
#include <string.h>
diff --git a/usr/src/lib/libc/port/stdio/data.c b/usr/src/lib/libc/port/stdio/data.c
index a4da2c23e3..42293e2a75 100644
--- a/usr/src/lib/libc/port/stdio/data.c
+++ b/usr/src/lib/libc/port/stdio/data.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,20 +18,20 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
-#pragma weak _iob = __iob
+#pragma weak __iob = _iob
-#include "synonyms.h"
+#include "lint.h"
#include "mbstatet.h"
#include "mtlib.h"
#include "file64.h"
diff --git a/usr/src/lib/libc/port/stdio/doscan.c b/usr/src/lib/libc/port/stdio/doscan.c
index 961afe65c8..1f473a608d 100644
--- a/usr/src/lib/libc/port/stdio/doscan.c
+++ b/usr/src/lib/libc/port/stdio/doscan.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,18 +18,18 @@
*
* CDDL HEADER END
*/
-/* Copyright (c) 1988 AT&T */
-/* All Rights Reserved */
-
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
+/* Copyright (c) 1988 AT&T */
+/* All Rights Reserved */
+
#pragma ident "%Z%%M% %I% %E% SMI"
-#include "synonyms.h"
+#include "lint.h"
#include <sys/types.h>
#include "mtlib.h"
#include "file64.h"
@@ -738,7 +737,7 @@ number(int *chcount, int *flag_eof, int stow, int type, int len, int size,
if ((type != 'i' && type != 'x') || (len <= 1))
break;
if (((inchar = locgetc((*chcount))) == 'x') ||
- (inchar == 'X')) {
+ (inchar == 'X')) {
lookahead = readchar(iop, chcount);
if (isxdigit(lookahead)) {
base = 16;
@@ -765,12 +764,12 @@ number(int *chcount, int *flag_eof, int stow, int type, int len, int size,
}
for (; --len >= 0; *np++ = (char)c, c = locgetc((*chcount))) {
if (np > numbuf + 62) {
- errno = ERANGE;
- return (0);
+ errno = ERANGE;
+ return (0);
}
if (isdigit(c) || base == 16 && isxdigit(c)) {
int digit = c - (isdigit(c) ? '0' :
- isupper(c) ? 'A' - 10 : 'a' - 10);
+ isupper(c) ? 'A' - 10 : 'a' - 10);
if (digit >= base)
break;
if (stow)
@@ -804,7 +803,7 @@ number(int *chcount, int *flag_eof, int stow, int type, int len, int size,
}
}
if (locungetc((*chcount), c) == EOF)
- *flag_eof = 1;
+ *flag_eof = 1;
return (digitseen); /* successful match if non-zero */
}
@@ -842,11 +841,11 @@ string(int *chcount, int *flag_eof, int stow, int type, int len, char *tab,
len = 1;
#ifdef _WIDE
while ((ch = locgetc((*chcount))) != EOF &&
- !(((type == 's') || (type == 'S')) && isspace(ch))) {
+ !(((type == 's') || (type == 'S')) && isspace(ch))) {
#else /* _WIDE */
while ((ch = locgetc((*chcount))) != EOF &&
- !(((type == 's') || (type == 'S')) &&
- isspace(ch) || type == '[' && tab[ch])) {
+ !(((type == 's') || (type == 'S')) &&
+ isspace(ch) || type == '[' && tab[ch])) {
#endif /* _WIDE */
if (stow)
*ptr = (char)ch;
@@ -973,7 +972,7 @@ wstring(int *chcount, int *flag_eof, int stow, int type,
if ((type == 'c') && len == MAXINT)
len = 1;
while (((wch = _wd_getwc(chcount, iop)) != WEOF) &&
- !(type == 's' && iswspace(wch))) {
+ !(type == 's' && iswspace(wch))) {
if (stow)
*ptr = wch;
ptr++;
@@ -1007,7 +1006,7 @@ wstring(int *chcount, int *flag_eof, int stow, int type, int len, FILE *iop,
if ((type == 'c') && len == MAXINT)
len = 1;
while (((wch = _bi_getwc(iop)) != EOF) &&
- !(type == 's' && (isascii(wch) ? isspace(wch) : 0))) {
+ !(type == 's' && (isascii(wch) ? isspace(wch) : 0))) {
(*chcount) += _scrwidth((wchar_t)wch);
if (stow)
*ptr = wch;
@@ -1047,7 +1046,7 @@ _wd_getwc(int *chcount, FILE *iop)
if (*iop->_ptr == '\0')
return (WEOF);
len = mbtowc((wchar_t *)&wc, (const char *)iop->_ptr,
- MB_CUR_MAX);
+ MB_CUR_MAX);
if (len == -1)
return (WEOF);
iop->_ptr += len;
@@ -1094,7 +1093,7 @@ _watoi(wchar_t *fmt)
if ((ch >= 0) && (ch < 256) && isdigit((int)ch)) {
n = ch - '0';
while (((ch = *++fmt) >= 0) && (ch < 256) &&
- isdigit((int)ch)) {
+ isdigit((int)ch)) {
n *= 10;
n += ch - '0';
}
@@ -1129,7 +1128,7 @@ wbrstring(int *chcount, int *flag_eof, int stow, int type,
}
str[i] = '\0';
if (fnmatch((const char *)brstr, (const char *)str,
- FNM_NOESCAPE)) {
+ FNM_NOESCAPE)) {
break;
} else {
if (len > 0) {
@@ -1188,7 +1187,7 @@ brstring(int *chcount, int *flag_eof, int stow, int type,
}
str[i] = '\0';
if (fnmatch((const char *)brstr, (const char *)str,
- FNM_NOESCAPE)) {
+ FNM_NOESCAPE)) {
break;
} else {
if (len >= i) {
diff --git a/usr/src/lib/libc/port/stdio/fdopen.c b/usr/src/lib/libc/port/stdio/fdopen.c
index 4865ec9a39..f07d8b0a88 100644
--- a/usr/src/lib/libc/port/stdio/fdopen.c
+++ b/usr/src/lib/libc/port/stdio/fdopen.c
@@ -20,7 +20,7 @@
*/
/*
- * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
@@ -37,9 +37,9 @@
#define _LARGEFILE64_SOURCE 1
-#pragma weak fdopen = _fdopen
+#pragma weak _fdopen = fdopen
-#include "synonyms.h"
+#include "lint.h"
#include <mtlib.h>
#include "file64.h"
#include <sys/types.h>
diff --git a/usr/src/lib/libc/port/stdio/feof.c b/usr/src/lib/libc/port/stdio/feof.c
index dab0610326..3d4f3c8e1f 100644
--- a/usr/src/lib/libc/port/stdio/feof.c
+++ b/usr/src/lib/libc/port/stdio/feof.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -21,16 +20,16 @@
*/
/*
- * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
-#include "synonyms.h"
+#pragma ident "%Z%%M% %I% %E% SMI"
+
+#include "lint.h"
#include <mtlib.h>
#include "file64.h"
#include <sys/types.h>
diff --git a/usr/src/lib/libc/port/stdio/ferror.c b/usr/src/lib/libc/port/stdio/ferror.c
index 3ee8b6f865..49312b4ce6 100644
--- a/usr/src/lib/libc/port/stdio/ferror.c
+++ b/usr/src/lib/libc/port/stdio/ferror.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -21,16 +20,16 @@
*/
/*
- * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
-#include "synonyms.h"
+#pragma ident "%Z%%M% %I% %E% SMI"
+
+#include "lint.h"
#include "file64.h"
#include "mtlib.h"
#include <sys/types.h>
diff --git a/usr/src/lib/libc/port/stdio/fgetc.c b/usr/src/lib/libc/port/stdio/fgetc.c
index 36a6851758..4c368459cf 100644
--- a/usr/src/lib/libc/port/stdio/fgetc.c
+++ b/usr/src/lib/libc/port/stdio/fgetc.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,18 +18,18 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
-#include "synonyms.h"
+#include "lint.h"
#include "file64.h"
#include "mtlib.h"
#include <sys/types.h>
diff --git a/usr/src/lib/libc/port/stdio/fgets.c b/usr/src/lib/libc/port/stdio/fgets.c
index 972223d4ff..ea19354d81 100644
--- a/usr/src/lib/libc/port/stdio/fgets.c
+++ b/usr/src/lib/libc/port/stdio/fgets.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,18 +18,18 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
-#include "synonyms.h"
+#include "lint.h"
#include "file64.h"
#include "mtlib.h"
#include <stdio.h>
diff --git a/usr/src/lib/libc/port/stdio/fileno.c b/usr/src/lib/libc/port/stdio/fileno.c
index 643ee4cb01..70f64faa89 100644
--- a/usr/src/lib/libc/port/stdio/fileno.c
+++ b/usr/src/lib/libc/port/stdio/fileno.c
@@ -20,18 +20,18 @@
*/
/*
- * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
-#pragma weak fileno = _fileno
+#pragma ident "%Z%%M% %I% %E% SMI"
+
+#pragma weak _fileno = fileno
-#include "synonyms.h"
+#include "lint.h"
#include "file64.h"
#include "mtlib.h"
#include <sys/types.h>
@@ -41,7 +41,7 @@
#include "stdiom.h"
int
-_fileno(FILE *iop)
+fileno(FILE *iop)
{
return (GET_FD(iop));
}
diff --git a/usr/src/lib/libc/port/stdio/flockf.c b/usr/src/lib/libc/port/stdio/flockf.c
index ac9db7ccae..0d31d5649b 100644
--- a/usr/src/lib/libc/port/stdio/flockf.c
+++ b/usr/src/lib/libc/port/stdio/flockf.c
@@ -29,15 +29,8 @@
#pragma ident "%Z%%M% %I% %E% SMI"
-#pragma weak flockfile = _flockfile
-#pragma weak ftrylockfile = _ftrylockfile
-#pragma weak funlockfile = _funlockfile
-
-#include "synonyms.h"
+#include "lint.h"
#include "mtlib.h"
-
-#define _iob __iob
-
#include "file64.h"
#include <stdio.h>
#include <thread.h>
@@ -47,6 +40,8 @@
#include <stdio_ext.h>
#include "stdiom.h"
+#define _iob __iob
+
/*
* _flockget and _flockrel are only called by the
* FLOCKFILE/FUNLOCKFILE macros in mtlib.h.
@@ -82,7 +77,7 @@ flockfile(FILE *iop)
rmutex_t *rl = IOB_LCK(iop);
if (rl != NULL)
- mutex_lock(rl);
+ (void) mutex_lock(rl);
}
void
@@ -91,7 +86,7 @@ funlockfile(FILE *iop)
rmutex_t *rl = IOB_LCK(iop);
if (rl != NULL)
- mutex_unlock(rl);
+ (void) mutex_unlock(rl);
}
int
diff --git a/usr/src/lib/libc/port/stdio/flush.c b/usr/src/lib/libc/port/stdio/flush.c
index 9d87b8c4fd..fb8d058e4c 100644
--- a/usr/src/lib/libc/port/stdio/flush.c
+++ b/usr/src/lib/libc/port/stdio/flush.c
@@ -24,18 +24,14 @@
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
-#include "synonyms.h"
+#include "lint.h"
#include "mtlib.h"
#include "file64.h"
-
-#define _iob __iob
-
#include <sys/types.h>
#include <stdlib.h>
#include <stdio.h>
@@ -50,6 +46,8 @@
#include <errno.h>
#include <fcntl.h>
+#define _iob __iob
+
#undef end
#define FILE_ARY_SZ 8 /* a nice size for FILE array & end_buffer_ptrs */
@@ -365,14 +363,16 @@ rescan:
#ifdef _LP64
fp = hdr->iobp;
for (i = 0; i < FILE_ARY_SZ; i++)
- mutex_init(&fp[i]._lock, USYNC_THREAD | LOCK_RECURSIVE, NULL);
+ (void) mutex_init(&fp[i]._lock,
+ USYNC_THREAD | LOCK_RECURSIVE, NULL);
#else
xfp = hdr->iobp;
fp = &xfp->_iob;
for (i = 0; i < FILE_ARY_SZ; i++) {
xfp[i].xmagic = XMAGIC(&xfp[i]);
- mutex_init(&xfp[i].xlock, USYNC_THREAD | LOCK_RECURSIVE, NULL);
+ (void) mutex_init(&xfp[i].xlock,
+ USYNC_THREAD | LOCK_RECURSIVE, NULL);
}
#endif /* _LP64 */
diff --git a/usr/src/lib/libc/port/stdio/fopen.c b/usr/src/lib/libc/port/stdio/fopen.c
index 4881cef27d..eea8093aca 100644
--- a/usr/src/lib/libc/port/stdio/fopen.c
+++ b/usr/src/lib/libc/port/stdio/fopen.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -21,7 +20,7 @@
*/
/*
- * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
@@ -40,7 +39,7 @@
#pragma ident "%Z%%M% %I% %E% SMI"
-#include "synonyms.h"
+#include "lint.h"
#include "file64.h"
#include <sys/types.h>
#include <stdio.h>
diff --git a/usr/src/lib/libc/port/stdio/fpos.c b/usr/src/lib/libc/port/stdio/fpos.c
index d2395fc801..8fb2b87e74 100644
--- a/usr/src/lib/libc/port/stdio/fpos.c
+++ b/usr/src/lib/libc/port/stdio/fpos.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -21,17 +20,16 @@
*/
/*
- * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
-#include "synonyms.h"
+#include "lint.h"
#include <sys/types.h>
#include <unistd.h>
#include <stdio.h>
diff --git a/usr/src/lib/libc/port/stdio/fputc.c b/usr/src/lib/libc/port/stdio/fputc.c
index adb4de9306..d85917d11d 100644
--- a/usr/src/lib/libc/port/stdio/fputc.c
+++ b/usr/src/lib/libc/port/stdio/fputc.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,18 +18,18 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
-#include "synonyms.h"
+#include "lint.h"
#include "file64.h"
#include "mtlib.h"
#include <sys/types.h>
diff --git a/usr/src/lib/libc/port/stdio/fputs.c b/usr/src/lib/libc/port/stdio/fputs.c
index e115d4012e..be0f5b4f8f 100644
--- a/usr/src/lib/libc/port/stdio/fputs.c
+++ b/usr/src/lib/libc/port/stdio/fputs.c
@@ -34,7 +34,7 @@
* Ptr args aren't checked for NULL because the program would be a
* catastrophic mess anyway. Better to abort than just to return NULL.
*/
-#include "synonyms.h"
+#include "lint.h"
#include "file64.h"
#include "mtlib.h"
#include <stdio.h>
diff --git a/usr/src/lib/libc/port/stdio/fread.c b/usr/src/lib/libc/port/stdio/fread.c
index 59d0e44bfe..db58e7bde1 100644
--- a/usr/src/lib/libc/port/stdio/fread.c
+++ b/usr/src/lib/libc/port/stdio/fread.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,18 +18,18 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
-#include "synonyms.h"
+#include "lint.h"
#include "file64.h"
#include "mtlib.h"
#include <stdio.h>
diff --git a/usr/src/lib/libc/port/stdio/fseek.c b/usr/src/lib/libc/port/stdio/fseek.c
index b553424de6..55017a6584 100644
--- a/usr/src/lib/libc/port/stdio/fseek.c
+++ b/usr/src/lib/libc/port/stdio/fseek.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,24 +18,24 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
/*
* Seek for standard library. Coordinates with buffering.
*/
-#pragma weak fseek = _fseek
+#pragma weak _fseek = fseek
-#include "synonyms.h"
+#include "lint.h"
#include "file64.h"
#include "mtlib.h"
#include <stdio.h>
diff --git a/usr/src/lib/libc/port/stdio/fseeko.c b/usr/src/lib/libc/port/stdio/fseeko.c
index e0cadc5f3f..b47c7a5313 100644
--- a/usr/src/lib/libc/port/stdio/fseeko.c
+++ b/usr/src/lib/libc/port/stdio/fseeko.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,16 +18,16 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
/*
* Seek for standard library. Coordinates with buffering.
@@ -37,11 +36,11 @@
#include <sys/feature_tests.h>
#if !defined(_LP64)
-#pragma weak fseeko64 = _fseeko64
+#pragma weak _fseeko64 = fseeko64
#endif
-#pragma weak fseeko = _fseeko
+#pragma weak _fseeko = fseeko
-#include "synonyms.h"
+#include "lint.h"
#include "file64.h"
#include "mtlib.h"
#include <sys/types.h>
diff --git a/usr/src/lib/libc/port/stdio/ftell.c b/usr/src/lib/libc/port/stdio/ftell.c
index 831ef96cad..45c0b841d6 100644
--- a/usr/src/lib/libc/port/stdio/ftell.c
+++ b/usr/src/lib/libc/port/stdio/ftell.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,24 +18,24 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
/*
* Return file offset.
* Coordinates with buffering.
*/
-#pragma weak ftell = _ftell
+#pragma weak _ftell = ftell
-#include "synonyms.h"
+#include "lint.h"
#include "file64.h"
#include "mtlib.h"
#include <fcntl.h>
@@ -65,7 +64,7 @@ ftell(FILE *iop)
else if (iop->_flag & (_IOWRT | _IORW)) {
adjust = 0;
if (((iop->_flag & (_IOWRT | _IONBF)) == _IOWRT) &&
- (iop->_base != 0))
+ (iop->_base != 0))
adjust = iop->_ptr - iop->_base;
else if ((iop->_flag & _IORW) && (iop->_base != 0))
adjust = (ptrdiff_t)-iop->_cnt;
diff --git a/usr/src/lib/libc/port/stdio/ftello.c b/usr/src/lib/libc/port/stdio/ftello.c
index a7e1dd7400..2eafdf1fef 100644
--- a/usr/src/lib/libc/port/stdio/ftello.c
+++ b/usr/src/lib/libc/port/stdio/ftello.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,16 +18,16 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
/*
* Return file offset.
@@ -38,11 +37,11 @@
#include <sys/feature_tests.h>
#if !defined(_LP64)
-#pragma weak ftello64 = _ftello64
+#pragma weak _ftello64 = ftello64
#endif
-#pragma weak ftello = _ftello
+#pragma weak _ftello = ftello
-#include "synonyms.h"
+#include "lint.h"
#include "file64.h"
#include "mtlib.h"
#include <sys/types.h>
@@ -73,7 +72,7 @@ ftello64(FILE *iop)
else if (iop->_flag & (_IOWRT | _IORW)) {
adjust = 0;
if (((iop->_flag & (_IOWRT | _IONBF)) == _IOWRT) &&
- (iop->_base != 0))
+ (iop->_base != 0))
adjust = iop->_ptr - iop->_base;
} else {
errno = EBADF; /* file descriptor refers to no open file */
diff --git a/usr/src/lib/libc/port/stdio/fwrite.c b/usr/src/lib/libc/port/stdio/fwrite.c
index 6ab340e26d..db5928f9f4 100644
--- a/usr/src/lib/libc/port/stdio/fwrite.c
+++ b/usr/src/lib/libc/port/stdio/fwrite.c
@@ -24,13 +24,12 @@
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
-#include "synonyms.h"
+#include "lint.h"
#include "file64.h"
#include "mtlib.h"
#include <sys/types.h>
diff --git a/usr/src/lib/libc/port/stdio/getc.c b/usr/src/lib/libc/port/stdio/getc.c
index ea757d6bdc..cfcf53f347 100644
--- a/usr/src/lib/libc/port/stdio/getc.c
+++ b/usr/src/lib/libc/port/stdio/getc.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,20 +18,20 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
-#pragma weak getc_unlocked = _getc_unlocked
+#pragma weak _getc_unlocked = getc_unlocked
-#include "synonyms.h"
+#include "lint.h"
#include "file64.h"
#include "mtlib.h"
#include <sys/types.h>
@@ -43,8 +42,7 @@
#include "mse.h"
#undef getc
-
-#undef _getc_unlocked
+#undef getc_unlocked
int
getc(FILE *iop)
@@ -63,7 +61,7 @@ getc(FILE *iop)
int
-_getc_unlocked(FILE *iop)
+getc_unlocked(FILE *iop)
{
return ((--iop->_cnt < 0) ? __filbuf(iop) : *iop->_ptr++);
}
diff --git a/usr/src/lib/libc/port/stdio/getchar.c b/usr/src/lib/libc/port/stdio/getchar.c
index cef4de7ba0..31a32f3842 100644
--- a/usr/src/lib/libc/port/stdio/getchar.c
+++ b/usr/src/lib/libc/port/stdio/getchar.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,24 +18,22 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
/*
* A subroutine version of the macro getchar.
*/
-#pragma weak getchar_unlocked = _getchar_unlocked
-
-#include "synonyms.h"
+#include "lint.h"
#include "file64.h"
#include "mtlib.h"
#include <sys/types.h>
@@ -46,8 +43,7 @@
#include "stdiom.h"
#undef getchar
-
-#undef _getchar_unlocked
+#undef getchar_unlocked
int
getchar(void)
@@ -61,9 +57,8 @@ getchar(void)
* A subroutine version of the macro getchar_unlocked.
*/
-
int
-_getchar_unlocked(void)
+getchar_unlocked(void)
{
FILE *iop = stdin;
diff --git a/usr/src/lib/libc/port/stdio/getpass.c b/usr/src/lib/libc/port/stdio/getpass.c
index b67975b751..f59d9134c6 100644
--- a/usr/src/lib/libc/port/stdio/getpass.c
+++ b/usr/src/lib/libc/port/stdio/getpass.c
@@ -18,21 +18,21 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2007 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
-#pragma weak getpass = _getpass
-#pragma weak getpassphrase = _getpassphrase
+#pragma weak _getpass = getpass
+#pragma weak _getpassphrase = getpassphrase
-#include "synonyms.h"
+#include "lint.h"
#include "file64.h"
#include "mtlib.h"
#include <stdio.h>
@@ -98,7 +98,7 @@ __getpass(const char *prompt, int size)
(void) fputs(prompt, fi);
p = pbuf;
while (!intrupt &&
- (c = GETC(fi)) != '\n' && c != '\r' && c != EOF) {
+ (c = GETC(fi)) != '\n' && c != '\r' && c != EOF) {
if (p < &pbuf[ size ])
*p++ = (char)c;
}
diff --git a/usr/src/lib/libc/port/stdio/gets.c b/usr/src/lib/libc/port/stdio/gets.c
index 5aacf35465..7e3f1967ec 100644
--- a/usr/src/lib/libc/port/stdio/gets.c
+++ b/usr/src/lib/libc/port/stdio/gets.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,18 +18,18 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
-#include "synonyms.h"
+#include "lint.h"
#include "file64.h"
#include "mtlib.h"
#include <sys/types.h>
diff --git a/usr/src/lib/libc/port/stdio/getw.c b/usr/src/lib/libc/port/stdio/getw.c
index ab3f20574d..cca7732a00 100644
--- a/usr/src/lib/libc/port/stdio/getw.c
+++ b/usr/src/lib/libc/port/stdio/getw.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,16 +18,16 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
/*
* The intent here is to provide a means to make the order of
@@ -36,9 +35,9 @@
* in the memory while doing the io a `word' at a time.
*/
-#pragma weak getw = _getw
+#pragma weak _getw = getw
-#include "synonyms.h"
+#include "lint.h"
#include "file64.h"
#include "mtlib.h"
#include <stdio.h>
diff --git a/usr/src/lib/libc/port/stdio/mse.c b/usr/src/lib/libc/port/stdio/mse.c
index bf3c823640..4d5ee6874a 100644
--- a/usr/src/lib/libc/port/stdio/mse.c
+++ b/usr/src/lib/libc/port/stdio/mse.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,14 +18,15 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2005 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
-#include "synonyms.h"
+#include "lint.h"
#include "mtlib.h"
#include "mbstatet.h"
#include "file64.h"
@@ -137,7 +137,7 @@ _get_internal_mbstate(int item)
lmutex_lock(&__top_mbstates_lock);
if (__top_mbstates == NULL) {
__top_mbstates =
- lmalloc((_MAX_MB_FUNC + 1) * sizeof (mbstate_t *));
+ lmalloc((_MAX_MB_FUNC + 1) * sizeof (mbstate_t *));
if (__top_mbstates == NULL) {
lmutex_unlock(&__top_mbstates_lock);
return (NULL);
@@ -203,8 +203,7 @@ __mbst_get_consumed_array(const mbstate_t *ps, char *str,
/* The max size of __consumed[] is 8 */
return (-1);
}
- (void) memcpy((void *)str, (const void *)&ps->__consumed[index],
- len);
+ (void) memcpy((void *)str, (const void *)&ps->__consumed[index], len);
return (0);
}
@@ -217,8 +216,7 @@ __mbst_set_consumed_array(mbstate_t *ps, const char *str,
/* The max size of __consumed[] is 8 */
return (-1);
}
- (void) memcpy((void *)&ps->__consumed[index], (const void *)str,
- len);
+ (void) memcpy((void *)&ps->__consumed[index], (const void *)str, len);
return (0);
}
diff --git a/usr/src/lib/libc/port/stdio/popen.c b/usr/src/lib/libc/port/stdio/popen.c
index 899e19d05b..9ceb9cc42a 100644
--- a/usr/src/lib/libc/port/stdio/popen.c
+++ b/usr/src/lib/libc/port/stdio/popen.c
@@ -29,10 +29,10 @@
#pragma ident "%Z%%M% %I% %E% SMI"
-#pragma weak pclose = _pclose
-#pragma weak popen = _popen
+#pragma weak _pclose = pclose
+#pragma weak _popen = popen
-#include "synonyms.h"
+#include "lint.h"
#include "mtlib.h"
#include "file64.h"
#include <sys/types.h>
diff --git a/usr/src/lib/libc/port/stdio/putc.c b/usr/src/lib/libc/port/stdio/putc.c
index 2770af552c..05383201a3 100644
--- a/usr/src/lib/libc/port/stdio/putc.c
+++ b/usr/src/lib/libc/port/stdio/putc.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,20 +18,20 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
-#pragma weak putc_unlocked = _putc_unlocked
+#pragma weak _putc_unlocked = putc_unlocked
-#include "synonyms.h"
+#include "lint.h"
#include "file64.h"
#include "mtlib.h"
#include <sys/types.h>
@@ -43,7 +42,6 @@
#include "mse.h"
#undef putc
-
#undef putc_unlocked
int
@@ -68,7 +66,7 @@ putc(int ch, FILE *iop)
int
-_putc_unlocked(int ch, FILE *iop)
+putc_unlocked(int ch, FILE *iop)
{
if (--iop->_cnt < 0)
return (__flsbuf((unsigned char) ch, iop));
diff --git a/usr/src/lib/libc/port/stdio/putchar.c b/usr/src/lib/libc/port/stdio/putchar.c
index 5cef46dc80..fce981d014 100644
--- a/usr/src/lib/libc/port/stdio/putchar.c
+++ b/usr/src/lib/libc/port/stdio/putchar.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,24 +18,22 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
/*
* A subroutine version of the macro putchar
*/
-#pragma weak putchar_unlocked = _putchar_unlocked
-
-#include "synonyms.h"
+#include "lint.h"
#include "file64.h"
#include <stdio.h>
#include <thread.h>
@@ -55,14 +52,14 @@ putchar(ch)
return (putc(ch, iop));
}
-#undef _putchar_unlocked
+#undef putchar_unlocked
/*
* A subroutine version of the macro putchar_unlocked
*/
int
-_putchar_unlocked(ch)
+putchar_unlocked(ch)
int ch;
{
FILE *iop = stdout;
diff --git a/usr/src/lib/libc/port/stdio/puts.c b/usr/src/lib/libc/port/stdio/puts.c
index 213dc93f5f..84279dcb1d 100644
--- a/usr/src/lib/libc/port/stdio/puts.c
+++ b/usr/src/lib/libc/port/stdio/puts.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,18 +18,18 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
-#include "synonyms.h"
+#include "lint.h"
#include "file64.h"
#include "mtlib.h"
#include <sys/types.h>
diff --git a/usr/src/lib/libc/port/stdio/putw.c b/usr/src/lib/libc/port/stdio/putw.c
index 8cad40a887..043125e113 100644
--- a/usr/src/lib/libc/port/stdio/putw.c
+++ b/usr/src/lib/libc/port/stdio/putw.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,16 +18,16 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
/*
* The intent here is to provide a means to make the order of
@@ -36,9 +35,9 @@
* in the memory while doing the io a `word' at a time.
*/
-#pragma weak putw = _putw
+#pragma weak _putw = putw
-#include "synonyms.h"
+#include "lint.h"
#include "file64.h"
#include "mtlib.h"
#include <stdio.h>
diff --git a/usr/src/lib/libc/port/stdio/rewind.c b/usr/src/lib/libc/port/stdio/rewind.c
index 06cc555790..57e4cc2540 100644
--- a/usr/src/lib/libc/port/stdio/rewind.c
+++ b/usr/src/lib/libc/port/stdio/rewind.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,18 +18,18 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
-#include "synonyms.h"
+#include "lint.h"
#include "file64.h"
#include "mtlib.h"
#include <sys/types.h>
diff --git a/usr/src/lib/libc/port/stdio/scanf.c b/usr/src/lib/libc/port/stdio/scanf.c
index d5b769e0e2..31c8d09f5e 100644
--- a/usr/src/lib/libc/port/stdio/scanf.c
+++ b/usr/src/lib/libc/port/stdio/scanf.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,18 +18,18 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
-#include "synonyms.h"
+#include "lint.h"
#include "file64.h"
#include "mtlib.h"
#include <stdio.h>
diff --git a/usr/src/lib/libc/port/stdio/setbuf.c b/usr/src/lib/libc/port/stdio/setbuf.c
index efd2bea743..78c4c8cc76 100644
--- a/usr/src/lib/libc/port/stdio/setbuf.c
+++ b/usr/src/lib/libc/port/stdio/setbuf.c
@@ -20,7 +20,7 @@
*/
/*
- * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
@@ -29,8 +29,7 @@
#pragma ident "%Z%%M% %I% %E% SMI"
-
-#include "synonyms.h"
+#include "lint.h"
#include "file64.h"
#include "mtlib.h"
#include <sys/types.h>
diff --git a/usr/src/lib/libc/port/stdio/setbuffer.c b/usr/src/lib/libc/port/stdio/setbuffer.c
index 97a4dcc69d..4f3ef505cd 100644
--- a/usr/src/lib/libc/port/stdio/setbuffer.c
+++ b/usr/src/lib/libc/port/stdio/setbuffer.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,8 +18,9 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
@@ -30,7 +30,7 @@
* Compatibility wrappers for setbuffer and setlinebuf
*/
-#include "synonyms.h"
+#include "lint.h"
#include <sys/types.h>
#include <stdio.h>
#include <stdlib.h>
diff --git a/usr/src/lib/libc/port/stdio/setvbuf.c b/usr/src/lib/libc/port/stdio/setvbuf.c
index 40a075637f..a6e63e09f7 100644
--- a/usr/src/lib/libc/port/stdio/setvbuf.c
+++ b/usr/src/lib/libc/port/stdio/setvbuf.c
@@ -20,7 +20,7 @@
*/
/*
- * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
@@ -29,8 +29,7 @@
#pragma ident "%Z%%M% %I% %E% SMI"
-
-#include "synonyms.h"
+#include "lint.h"
#include "file64.h"
#include "mtlib.h"
#include <sys/types.h>
diff --git a/usr/src/lib/libc/port/stdio/system.c b/usr/src/lib/libc/port/stdio/system.c
index cef2648ced..d27a194095 100644
--- a/usr/src/lib/libc/port/stdio/system.c
+++ b/usr/src/lib/libc/port/stdio/system.c
@@ -24,12 +24,12 @@
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
-#include "synonyms.h"
+#pragma ident "%Z%%M% %I% %E% SMI"
+
+#include "lint.h"
#include "mtlib.h"
#include <sys/types.h>
#include <sys/wait.h>
diff --git a/usr/src/lib/libc/port/stdio/tempnam.c b/usr/src/lib/libc/port/stdio/tempnam.c
index e3dfdf9cc1..a2d4c42cc9 100644
--- a/usr/src/lib/libc/port/stdio/tempnam.c
+++ b/usr/src/lib/libc/port/stdio/tempnam.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,20 +18,20 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
-#pragma weak tempnam = _tempnam
+#pragma weak _tempnam = tempnam
-#include "synonyms.h"
+#include "lint.h"
#include <mtlib.h>
#include <sys/types.h>
#include <stdio.h>
diff --git a/usr/src/lib/libc/port/stdio/tmpfile.c b/usr/src/lib/libc/port/stdio/tmpfile.c
index 723b15011c..884a7a369a 100644
--- a/usr/src/lib/libc/port/stdio/tmpfile.c
+++ b/usr/src/lib/libc/port/stdio/tmpfile.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,16 +18,16 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
/*
* tmpfile - return a pointer to an update file that can be
@@ -36,7 +35,7 @@
* go away if the program using it terminates.
*/
-#include "synonyms.h"
+#include "lint.h"
#include "mtlib.h"
#include <sys/types.h>
#include <unistd.h>
diff --git a/usr/src/lib/libc/port/stdio/tmpnam_r.c b/usr/src/lib/libc/port/stdio/tmpnam_r.c
index 5c2e6f3ab9..003235c6a7 100644
--- a/usr/src/lib/libc/port/stdio/tmpnam_r.c
+++ b/usr/src/lib/libc/port/stdio/tmpnam_r.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,21 +18,18 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2005 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
-#pragma weak tmpnam = _tmpnam
-#pragma weak tmpnam_r = _tmpnam_r
-
-#include "synonyms.h"
+#include "lint.h"
#include "mtlib.h"
#include <sys/types.h>
#include <stdio.h>
diff --git a/usr/src/lib/libc/port/stdio/ungetc.c b/usr/src/lib/libc/port/stdio/ungetc.c
index dfa831e977..8fb8fa40e9 100644
--- a/usr/src/lib/libc/port/stdio/ungetc.c
+++ b/usr/src/lib/libc/port/stdio/ungetc.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,18 +18,18 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
-#include "synonyms.h"
+#include "lint.h"
#include "file64.h"
#include "mtlib.h"
#include <sys/types.h>
diff --git a/usr/src/lib/libc/port/stdio/vscanf.c b/usr/src/lib/libc/port/stdio/vscanf.c
index 1ca2e8db2d..c41093ee7a 100644
--- a/usr/src/lib/libc/port/stdio/vscanf.c
+++ b/usr/src/lib/libc/port/stdio/vscanf.c
@@ -20,7 +20,7 @@
*/
/*
- * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
@@ -29,14 +29,13 @@
#pragma ident "%Z%%M% %I% %E% SMI"
-
#ifndef _C89_INTMAX32
-#pragma weak vscanf = _vscanf
-#pragma weak vfscanf = _vfscanf
-#pragma weak vsscanf = _vsscanf
+#pragma weak _vscanf = vscanf
+#pragma weak _vfscanf = vfscanf
+#pragma weak _vsscanf = vsscanf
#endif
-#include "synonyms.h"
+#include "lint.h"
#include "file64.h"
#include "mtlib.h"
#include <stdio.h>
diff --git a/usr/src/lib/libc/port/stdio/vwscanf.c b/usr/src/lib/libc/port/stdio/vwscanf.c
index 684163a496..7448e6ffad 100644
--- a/usr/src/lib/libc/port/stdio/vwscanf.c
+++ b/usr/src/lib/libc/port/stdio/vwscanf.c
@@ -20,13 +20,13 @@
*/
/*
- * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
-#include "synonyms.h"
+#include "lint.h"
#include "file64.h"
#include <mtlib.h>
#include <stdio.h>
diff --git a/usr/src/lib/libc/port/stdio/wscanf.c b/usr/src/lib/libc/port/stdio/wscanf.c
index 5b42ec9d51..a1c0873bce 100644
--- a/usr/src/lib/libc/port/stdio/wscanf.c
+++ b/usr/src/lib/libc/port/stdio/wscanf.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,14 +18,15 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2005 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
-#include "synonyms.h"
+#include "lint.h"
#include "file64.h"
#include <mtlib.h>
#include <stdio.h>
diff --git a/usr/src/lib/libc/port/sys/_autofssys.c b/usr/src/lib/libc/port/sys/_autofssys.c
index 0f0ceb7312..7ef381e791 100644
--- a/usr/src/lib/libc/port/sys/_autofssys.c
+++ b/usr/src/lib/libc/port/sys/_autofssys.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,14 +18,15 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
-#include "synonyms.h"
+#include "lint.h"
#include <sys/types.h>
#include <sys/syscall.h>
#include <sys/fs/autofs.h>
diff --git a/usr/src/lib/libc/port/sys/acctctl.c b/usr/src/lib/libc/port/sys/acctctl.c
index 4dfa279e05..b54c5c54be 100644
--- a/usr/src/lib/libc/port/sys/acctctl.c
+++ b/usr/src/lib/libc/port/sys/acctctl.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,16 +18,15 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright (c) 1999-2000 by Sun Microsystems, Inc.
- * All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
+ * Use is subject to license terms.
*/
-#ident "%Z%%M% %I% %E% SMI"
-
-#pragma weak acctctl = _acctctl
+#pragma ident "%Z%%M% %I% %E% SMI"
-#include "synonyms.h"
+#include "lint.h"
#include <sys/types.h>
#include <sys/syscall.h>
diff --git a/usr/src/lib/libc/port/sys/bsd_signal.c b/usr/src/lib/libc/port/sys/bsd_signal.c
index 3e24c28c51..4679935945 100644
--- a/usr/src/lib/libc/port/sys/bsd_signal.c
+++ b/usr/src/lib/libc/port/sys/bsd_signal.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,16 +18,17 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
-#pragma weak bsd_signal = _bsd_signal
+#pragma weak _bsd_signal = bsd_signal
-#include "synonyms.h"
+#include "lint.h"
#include <sys/types.h>
#include <errno.h>
#include <signal.h>
diff --git a/usr/src/lib/libc/port/sys/corectl.c b/usr/src/lib/libc/port/sys/corectl.c
index 67138b54fc..bc4302d39f 100644
--- a/usr/src/lib/libc/port/sys/corectl.c
+++ b/usr/src/lib/libc/port/sys/corectl.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,29 +18,15 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2003 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
-#pragma weak core_set_options = _core_set_options
-#pragma weak core_get_options = _core_get_options
-#pragma weak core_set_global_content = _core_set_global_content
-#pragma weak core_get_global_content = _core_get_global_content
-#pragma weak core_set_global_path = _core_set_global_path
-#pragma weak core_get_global_path = _core_get_global_path
-#pragma weak core_set_default_content = _core_set_default_content
-#pragma weak core_get_default_content = _core_get_default_content
-#pragma weak core_set_default_path = _core_set_default_path
-#pragma weak core_get_default_path = _core_get_default_path
-#pragma weak core_set_process_content = _core_set_process_content
-#pragma weak core_get_process_content = _core_get_process_content
-#pragma weak core_set_process_path = _core_set_process_path
-#pragma weak core_get_process_path = _core_get_process_path
-
-#include "synonyms.h"
+#include "lint.h"
#include <sys/corectl.h>
#include <sys/syscall.h>
diff --git a/usr/src/lib/libc/port/sys/exacctsys.c b/usr/src/lib/libc/port/sys/exacctsys.c
index 017545c262..78780b164a 100644
--- a/usr/src/lib/libc/port/sys/exacctsys.c
+++ b/usr/src/lib/libc/port/sys/exacctsys.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,18 +18,19 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
-#pragma weak getacct = _getacct
-#pragma weak putacct = _putacct
-#pragma weak wracct = _wracct
+#pragma weak _getacct = getacct
+#pragma weak _putacct = putacct
+#pragma weak _wracct = wracct
-#include "synonyms.h"
+#include "lint.h"
#include <sys/types.h>
#include <sys/syscall.h>
#include <sys/procset.h>
@@ -42,7 +42,7 @@ getacct(idtype_t idtype, id_t id, void *buf, size_t bufsize)
int error;
error = __systemcall(&rval, SYS_exacctsys,
- 0, idtype, id, buf, bufsize, 0);
+ 0, idtype, id, buf, bufsize, 0);
if (error)
(void) __set_errno(error);
return ((size_t)rval.sys_rval1);
diff --git a/usr/src/lib/libc/port/sys/execl.c b/usr/src/lib/libc/port/sys/execl.c
index cdfcb1508d..74859317c9 100644
--- a/usr/src/lib/libc/port/sys/execl.c
+++ b/usr/src/lib/libc/port/sys/execl.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,25 +18,25 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
/*
* execl(name, arg0, arg1, ..., argn, 0)
* environment automatically passed.
*/
-#pragma weak execl = _execl
+#pragma weak _execl = execl
-#include "synonyms.h"
+#include "lint.h"
#include <alloca.h>
#include <malloc.h>
#include <stdarg.h>
diff --git a/usr/src/lib/libc/port/sys/execle.c b/usr/src/lib/libc/port/sys/execle.c
index ecaa7965f4..53419b6c80 100644
--- a/usr/src/lib/libc/port/sys/execle.c
+++ b/usr/src/lib/libc/port/sys/execle.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,24 +18,24 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
/*
* execle(file, arg1, arg2, ..., 0, envp)
*/
-#pragma weak execle = _execle
+#pragma weak _execle = execle
-#include "synonyms.h"
+#include "lint.h"
#include <sys/types.h>
#include <alloca.h>
#include <malloc.h>
diff --git a/usr/src/lib/libc/port/sys/execv.c b/usr/src/lib/libc/port/sys/execv.c
index 8b5608f173..1458d3c2b2 100644
--- a/usr/src/lib/libc/port/sys/execv.c
+++ b/usr/src/lib/libc/port/sys/execv.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,16 +18,16 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
/*
* execv(file, argv)
@@ -38,9 +37,9 @@
* environment passed automatically
*/
-#pragma weak execv = _execv
+#pragma weak _execv = execv
-#include "synonyms.h"
+#include "lint.h"
#include <sys/types.h>
#include <unistd.h>
diff --git a/usr/src/lib/libc/port/sys/faccessat.c b/usr/src/lib/libc/port/sys/faccessat.c
index ee328b9e7b..9cfc8994fc 100644
--- a/usr/src/lib/libc/port/sys/faccessat.c
+++ b/usr/src/lib/libc/port/sys/faccessat.c
@@ -18,14 +18,15 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2007 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
-#include "synonyms.h"
+#include "lint.h"
#include <sys/types.h>
#include <sys/syscall.h>
diff --git a/usr/src/lib/libc/port/sys/fsmisc.c b/usr/src/lib/libc/port/sys/fsmisc.c
index 491cc73732..1070cb8f12 100644
--- a/usr/src/lib/libc/port/sys/fsmisc.c
+++ b/usr/src/lib/libc/port/sys/fsmisc.c
@@ -18,19 +18,19 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2007 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
-#pragma weak fchownat = _fchownat
-#pragma weak renameat = _renameat
-#pragma weak futimesat = _futimesat
-#pragma weak unlinkat = _unlinkat
+#pragma weak _fchownat = fchownat
+#pragma weak _futimesat = futimesat
+#pragma weak _unlinkat = unlinkat
-#include "synonyms.h"
+#include "lint.h"
#include <sys/types.h>
#include <sys/syscall.h>
#include <sys/stat.h>
diff --git a/usr/src/lib/libc/port/sys/fstatat.c b/usr/src/lib/libc/port/sys/fstatat.c
index e919879073..15c9d3b0cb 100644
--- a/usr/src/lib/libc/port/sys/fstatat.c
+++ b/usr/src/lib/libc/port/sys/fstatat.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,20 +18,21 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
#if !defined(_LP64) && _FILE_OFFSET_BITS == 64
-#pragma weak fstatat64 = _fstatat64
+#pragma weak _fstatat64 = fstatat64
#else
-#pragma weak fstatat = _fstatat
+#pragma weak _fstatat = fstatat
#endif
-#include "synonyms.h"
+#include "lint.h"
#include <sys/types.h>
#include <sys/syscall.h>
#include <sys/stat.h>
diff --git a/usr/src/lib/libc/port/sys/getpagesizes.c b/usr/src/lib/libc/port/sys/getpagesizes.c
index 86c5944fd9..74f6dadd86 100644
--- a/usr/src/lib/libc/port/sys/getpagesizes.c
+++ b/usr/src/lib/libc/port/sys/getpagesizes.c
@@ -18,17 +18,15 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2007 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
-#pragma weak getpagesizes = _getpagesizes
-#pragma weak getpagesizes2 = _getpagesizes2
-
-#include "synonyms.h"
+#include "lint.h"
#include <sys/types.h>
#include <unistd.h>
#include <sys/syscall.h>
diff --git a/usr/src/lib/libc/port/sys/getpeerucred.c b/usr/src/lib/libc/port/sys/getpeerucred.c
index 5712f12a33..97d62cc0ca 100644
--- a/usr/src/lib/libc/port/sys/getpeerucred.c
+++ b/usr/src/lib/libc/port/sys/getpeerucred.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,16 +18,17 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
-#pragma weak getpeerucred = _getpeerucred
+#pragma weak _getpeerucred = getpeerucred
-#include "synonyms.h"
+#include "lint.h"
#include <sys/types.h>
#include <sys/syscall.h>
diff --git a/usr/src/lib/libc/port/sys/inst_sync.c b/usr/src/lib/libc/port/sys/inst_sync.c
index 2da71160b7..2c0fdbf62c 100644
--- a/usr/src/lib/libc/port/sys/inst_sync.c
+++ b/usr/src/lib/libc/port/sys/inst_sync.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,16 +18,15 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright (c) 2000 by Sun Microsystems, Inc.
- * All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
+ * Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
-#pragma weak inst_sync = _inst_sync
-
-#include "synonyms.h"
+#include "lint.h"
#include <sys/types.h>
#include <sys/syscall.h>
#include <sys/instance.h>
diff --git a/usr/src/lib/libc/port/sys/issetugid.c b/usr/src/lib/libc/port/sys/issetugid.c
index 2185bf9397..eea5ea28b8 100644
--- a/usr/src/lib/libc/port/sys/issetugid.c
+++ b/usr/src/lib/libc/port/sys/issetugid.c
@@ -18,16 +18,17 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2007 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
-#pragma weak issetugid = _issetugid
+#pragma weak _issetugid = issetugid
-#include "synonyms.h"
+#include "lint.h"
#include <sys/syscall.h>
#include <sys/priv.h>
#include <unistd.h>
diff --git a/usr/src/lib/libc/port/sys/label.c b/usr/src/lib/libc/port/sys/label.c
index 15c476ba8d..0eb5b39514 100644
--- a/usr/src/lib/libc/port/sys/label.c
+++ b/usr/src/lib/libc/port/sys/label.c
@@ -18,16 +18,15 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
-#pragma weak is_system_labeled = _is_system_labeled
-
-#include "synonyms.h"
+#include "lint.h"
#include <sys/types.h>
#include <sys/syscall.h>
#include <sys/tsol/tsyscall.h>
diff --git a/usr/src/lib/libc/port/sys/libc_fcntl.c b/usr/src/lib/libc/port/sys/libc_fcntl.c
index 4cb69394ba..beab99f74c 100644
--- a/usr/src/lib/libc/port/sys/libc_fcntl.c
+++ b/usr/src/lib/libc/port/sys/libc_fcntl.c
@@ -29,7 +29,7 @@
#pragma ident "%Z%%M% %I% %E% SMI"
-#include "synonyms.h"
+#include "lint.h"
#include <sys/param.h>
#include <sys/sockio.h>
#include <sys/filio.h>
@@ -58,13 +58,12 @@ extern int __fcntl_syscall(int fd, int cmd, ...);
/*
* XXX these hacks are needed for X.25 which assumes that s_fcntl and
* s_ioctl exist in the socket library.
- * There is no need for _s_ioctl for other purposes.
+ * There is no need for s_ioctl for other purposes.
*/
#pragma weak s_fcntl = __fcntl
#pragma weak _s_fcntl = __fcntl
-#pragma weak s_ioctl = _s_ioctl
int
-_s_ioctl(int fd, int cmd, intptr_t arg)
+s_ioctl(int fd, int cmd, intptr_t arg)
{
return (ioctl(fd, cmd, arg));
}
diff --git a/usr/src/lib/libc/port/sys/libc_link.c b/usr/src/lib/libc/port/sys/libc_link.c
index 2f57a799bf..f0f4356871 100644
--- a/usr/src/lib/libc/port/sys/libc_link.c
+++ b/usr/src/lib/libc/port/sys/libc_link.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,16 +18,17 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2003 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
-#pragma weak link = _link
+#pragma weak _link = link
-#include "synonyms.h"
+#include "lint.h"
#include <stdlib.h>
#include <errno.h>
#include <unistd.h>
diff --git a/usr/src/lib/libc/port/sys/libc_open.c b/usr/src/lib/libc/port/sys/libc_open.c
index 42629f8bbf..ad9d07d7fd 100644
--- a/usr/src/lib/libc/port/sys/libc_open.c
+++ b/usr/src/lib/libc/port/sys/libc_open.c
@@ -29,7 +29,7 @@
#pragma ident "%Z%%M% %I% %E% SMI"
-#include "synonyms.h"
+#include "lint.h"
#include <sys/mkdev.h>
#include <limits.h>
#include <stdarg.h>
diff --git a/usr/src/lib/libc/port/sys/lockf.c b/usr/src/lib/libc/port/sys/lockf.c
index eb6d41bcdf..bc66901ab0 100644
--- a/usr/src/lib/libc/port/sys/lockf.c
+++ b/usr/src/lib/libc/port/sys/lockf.c
@@ -24,18 +24,18 @@
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
+
#include <sys/feature_tests.h>
#if !defined(_LP64) && _FILE_OFFSET_BITS == 64
#define __lockf __lockf64
#endif
-#include "synonyms.h"
+#include "lint.h"
#include <sys/types.h>
#include <unistd.h>
#include <errno.h>
diff --git a/usr/src/lib/libc/port/sys/lwp.c b/usr/src/lib/libc/port/sys/lwp.c
index 69882e116d..cd33da8464 100644
--- a/usr/src/lib/libc/port/sys/lwp.c
+++ b/usr/src/lib/libc/port/sys/lwp.c
@@ -26,16 +26,7 @@
#pragma ident "%Z%%M% %I% %E% SMI"
-#pragma weak _lwp_mutex_lock = __lwp_mutex_lock
-#pragma weak _lwp_mutex_trylock = __lwp_mutex_trylock
-#pragma weak _lwp_sema_init = __lwp_sema_init
-#pragma weak _lwp_sema_wait = __lwp_sema_wait
-#pragma weak _lwp_suspend = __lwp_suspend
-#if defined(__i386) || defined(__amd64)
-#pragma weak _lwp_private = __lwp_private
-#endif /* __i386 || __amd64 */
-
-#include "synonyms.h"
+#include "lint.h"
#include "thr_uberdata.h"
#include <sys/types.h>
#include <sys/time.h>
@@ -78,15 +69,6 @@ _lwp_sema_wait(lwp_sema_t *sp)
return (___lwp_sema_timedwait(sp, NULL, 0));
}
-#if defined(__x86)
-int
-_lwp_private(int cmd, int which, void *sbase)
-{
- extern int ___lwp_private(int, int, void *);
- return (___lwp_private(cmd, which, sbase));
-}
-#endif /* __x86 */
-
int
_lwp_suspend(lwpid_t lwpid)
{
diff --git a/usr/src/lib/libc/port/sys/lwp_cond.c b/usr/src/lib/libc/port/sys/lwp_cond.c
index 82a990f169..9f0c4da3b8 100644
--- a/usr/src/lib/libc/port/sys/lwp_cond.c
+++ b/usr/src/lib/libc/port/sys/lwp_cond.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,18 +18,15 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
-#pragma weak _lwp_cond_wait = __lwp_cond_wait
-#pragma weak _lwp_cond_reltimedwait = __lwp_cond_reltimedwait
-#pragma weak _lwp_cond_timedwait = __lwp_cond_timedwait
-
-#include "synonyms.h"
+#include "lint.h"
#include <sys/types.h>
#include <time.h>
@@ -75,7 +71,7 @@ int
_lwp_cond_timedwait(cond_t *cv, mutex_t *mp, timespec_t *absts)
{
extern void abstime_to_reltime(clockid_t,
- const timespec_t *, timespec_t *);
+ const timespec_t *, timespec_t *);
timespec_t tslocal;
abstime_to_reltime(CLOCK_REALTIME, absts, &tslocal);
diff --git a/usr/src/lib/libc/port/sys/lwp_rwlock.c b/usr/src/lib/libc/port/sys/lwp_rwlock.c
index 6a3766dfcb..009d88b3f3 100644
--- a/usr/src/lib/libc/port/sys/lwp_rwlock.c
+++ b/usr/src/lib/libc/port/sys/lwp_rwlock.c
@@ -26,7 +26,7 @@
#pragma ident "%Z%%M% %I% %E% SMI"
-#include "synonyms.h"
+#include "lint.h"
#include <synch.h>
#include <time.h>
#include <errno.h>
diff --git a/usr/src/lib/libc/port/sys/lwp_sigmask.c b/usr/src/lib/libc/port/sys/lwp_sigmask.c
index c719cb267f..708124cfd0 100644
--- a/usr/src/lib/libc/port/sys/lwp_sigmask.c
+++ b/usr/src/lib/libc/port/sys/lwp_sigmask.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,14 +18,15 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
-#include "synonyms.h"
+#include "lint.h"
#include <signal.h>
#include <sys/syscall.h>
diff --git a/usr/src/lib/libc/port/sys/meminfosys.c b/usr/src/lib/libc/port/sys/meminfosys.c
index a2343aeaa2..d84e4bf4d2 100644
--- a/usr/src/lib/libc/port/sys/meminfosys.c
+++ b/usr/src/lib/libc/port/sys/meminfosys.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,16 +18,17 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
-#pragma weak meminfo = _meminfo
+#pragma weak _meminfo = meminfo
-#include "synonyms.h"
+#include "lint.h"
#include <sys/types.h>
#include <sys/syscall.h>
#include <sys/mman.h>
diff --git a/usr/src/lib/libc/port/sys/msgsys.c b/usr/src/lib/libc/port/sys/msgsys.c
index 966bcc6975..997c14fee6 100644
--- a/usr/src/lib/libc/port/sys/msgsys.c
+++ b/usr/src/lib/libc/port/sys/msgsys.c
@@ -24,18 +24,17 @@
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
-#pragma weak msgctl = _msgctl
-#pragma weak msgctl64 = _msgctl64
-#pragma weak msgget = _msgget
-#pragma weak msgids = _msgids
-#pragma weak msgsnap = _msgsnap
+#pragma ident "%Z%%M% %I% %E% SMI"
+
+#pragma weak _msgctl = msgctl
+#pragma weak _msgget = msgget
+#pragma weak _msgids = msgids
+#pragma weak _msgsnap = msgsnap
-#include "synonyms.h"
+#include "lint.h"
#include <sys/types.h>
#include <sys/ipc.h>
#include <sys/ipc_impl.h>
diff --git a/usr/src/lib/libc/port/sys/nfssys.c b/usr/src/lib/libc/port/sys/nfssys.c
index da66e39e88..b16cf75d8e 100644
--- a/usr/src/lib/libc/port/sys/nfssys.c
+++ b/usr/src/lib/libc/port/sys/nfssys.c
@@ -18,8 +18,9 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
@@ -33,11 +34,7 @@
#pragma ident "%Z%%M% %I% %E% SMI"
-#pragma weak exportfs = _exportfs
-#pragma weak nfs_getfh = _nfs_getfh
-#pragma weak nfssvc = _nfssvc
-
-#include "synonyms.h"
+#include "lint.h"
#include <sys/types.h>
#include <sys/types32.h>
#include <rpc/types.h>
diff --git a/usr/src/lib/libc/port/sys/openat.c b/usr/src/lib/libc/port/sys/openat.c
index 483a88a948..0a15a8746d 100644
--- a/usr/src/lib/libc/port/sys/openat.c
+++ b/usr/src/lib/libc/port/sys/openat.c
@@ -26,7 +26,7 @@
#pragma ident "%Z%%M% %I% %E% SMI"
-#include "synonyms.h"
+#include "lint.h"
#include <stdarg.h>
#include <sys/types.h>
#include <sys/syscall.h>
diff --git a/usr/src/lib/libc/port/sys/pgrpsys.c b/usr/src/lib/libc/port/sys/pgrpsys.c
index f155f0d861..f2cca14d7a 100644
--- a/usr/src/lib/libc/port/sys/pgrpsys.c
+++ b/usr/src/lib/libc/port/sys/pgrpsys.c
@@ -26,14 +26,14 @@
#pragma ident "%Z%%M% %I% %E% SMI"
-#pragma weak getpgrp = _getpgrp
-#pragma weak setpgrp = _setpgrp
-#pragma weak getsid = _getsid
-#pragma weak setsid = _setsid
-#pragma weak getpgid = _getpgid
-#pragma weak setpgid = _setpgid
+#pragma weak _getpgrp = getpgrp
+#pragma weak _setpgrp = setpgrp
+#pragma weak _getsid = getsid
+#pragma weak _setsid = setsid
+#pragma weak _getpgid = getpgid
+#pragma weak _setpgid = setpgid
-#include "synonyms.h"
+#include "lint.h"
#include <sys/types.h>
#include <unistd.h>
#include <sys/syscall.h>
diff --git a/usr/src/lib/libc/port/sys/posix_sigwait.c b/usr/src/lib/libc/port/sys/posix_sigwait.c
index 3f2eb068da..31ee08bbc4 100644
--- a/usr/src/lib/libc/port/sys/posix_sigwait.c
+++ b/usr/src/lib/libc/port/sys/posix_sigwait.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,8 +18,9 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
@@ -43,7 +43,7 @@ __posix_sigwait(const sigset_t *setp, int *signo)
int oerrno = errno;
errno = 0;
- if ((*signo = _sigwait((sigset_t *)setp)) == -1) {
+ if ((*signo = sigwait((sigset_t *)setp)) == -1) {
if (errno == 0)
errno = EINVAL;
else
diff --git a/usr/src/lib/libc/port/sys/ppriv.c b/usr/src/lib/libc/port/sys/ppriv.c
index 6ab4add91e..6a1992c38c 100644
--- a/usr/src/lib/libc/port/sys/ppriv.c
+++ b/usr/src/lib/libc/port/sys/ppriv.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,19 +18,20 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
-#pragma weak setppriv = _setppriv
-#pragma weak getppriv = _getppriv
-#pragma weak setpflags = _setpflags
-#pragma weak getpflags = _getpflags
+#pragma weak _setppriv = setppriv
+#pragma weak _getppriv = getppriv
+#pragma weak _setpflags = setpflags
+#pragma weak _getpflags = getpflags
-#include "synonyms.h"
+#include "lint.h"
#include <sys/types.h>
#include <sys/syscall.h>
#include "priv_private.h"
@@ -76,7 +76,7 @@ int
setpflags(uint_t flag, uint_t val)
{
return (syscall(SYS_privsys, PRIVSYS_SETPFLAGS, (priv_op_t)flag,
- (priv_ptype_t)(uintptr_t)val, 0, 0));
+ (priv_ptype_t)(uintptr_t)val, 0, 0));
}
uint_t
diff --git a/usr/src/lib/libc/port/sys/psetsys.c b/usr/src/lib/libc/port/sys/psetsys.c
index 5de5d62591..05ee9a78e4 100644
--- a/usr/src/lib/libc/port/sys/psetsys.c
+++ b/usr/src/lib/libc/port/sys/psetsys.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,24 +18,25 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
-#pragma weak pset_create = _pset_create
-#pragma weak pset_destroy = _pset_destroy
-#pragma weak pset_assign = _pset_assign
-#pragma weak pset_info = _pset_info
-#pragma weak pset_bind = _pset_bind
-#pragma weak pset_getloadavg = _pset_getloadavg
-#pragma weak pset_list = _pset_list
-#pragma weak pset_setattr = _pset_setattr
-#pragma weak pset_getattr = _pset_getattr
-
-#include "synonyms.h"
+#pragma weak _pset_create = pset_create
+#pragma weak _pset_destroy = pset_destroy
+#pragma weak _pset_assign = pset_assign
+#pragma weak _pset_info = pset_info
+#pragma weak _pset_bind = pset_bind
+#pragma weak _pset_getloadavg = pset_getloadavg
+#pragma weak _pset_list = pset_list
+#pragma weak _pset_setattr = pset_setattr
+#pragma weak _pset_getattr = pset_getattr
+
+#include "lint.h"
#include <sys/types.h>
#include <sys/procset.h>
#include <sys/processor.h>
diff --git a/usr/src/lib/libc/port/sys/rctlsys.c b/usr/src/lib/libc/port/sys/rctlsys.c
index 9e395d3048..d43bdc2842 100644
--- a/usr/src/lib/libc/port/sys/rctlsys.c
+++ b/usr/src/lib/libc/port/sys/rctlsys.c
@@ -18,20 +18,18 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2007 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
-#pragma weak setrctl = _setrctl
-#pragma weak getrctl = _getrctl
-#pragma weak rctllist = _rctllist
-#pragma weak rctlctl = _rctlctl
-#pragma weak setprojrctl = _setprojrctl
+#pragma weak _getrctl = getrctl
+#pragma weak _setrctl = setrctl
-#include "synonyms.h"
+#include "lint.h"
#include <sys/types.h>
#include <sys/syscall.h>
#include <sys/rctl.h>
diff --git a/usr/src/lib/libc/port/sys/sbrk.c b/usr/src/lib/libc/port/sys/sbrk.c
index 2d1ec6eeb8..156f7bd797 100644
--- a/usr/src/lib/libc/port/sys/sbrk.c
+++ b/usr/src/lib/libc/port/sys/sbrk.c
@@ -26,10 +26,10 @@
#pragma ident "%Z%%M% %I% %E% SMI"
-#pragma weak sbrk = _sbrk
-#pragma weak brk = _brk
+#pragma weak _sbrk = sbrk
+#pragma weak _brk = brk
-#include "synonyms.h"
+#include "lint.h"
#include <synch.h>
#include <errno.h>
#include <sys/isa_defs.h>
@@ -45,7 +45,7 @@ void *_nd = &_end;
mutex_t __sbrk_lock = DEFAULTMUTEX;
extern int _brk_unlocked(void *);
-static void *_sbrk_unlocked(intptr_t);
+extern void *_sbrk_unlocked(intptr_t);
/*
* The break must always be at least 8-byte aligned
@@ -84,7 +84,7 @@ sbrk(intptr_t addend)
* - the addend is negative and brk + addend < 0.
* - the addend is positive and brk + addend > ULONG_MAX
*/
-static void *
+void *
_sbrk_unlocked(intptr_t addend)
{
char *old_brk = BRKALIGN(_nd);
diff --git a/usr/src/lib/libc/port/sys/semsys.c b/usr/src/lib/libc/port/sys/semsys.c
index 8e6b35e4b3..81cee7ed47 100644
--- a/usr/src/lib/libc/port/sys/semsys.c
+++ b/usr/src/lib/libc/port/sys/semsys.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,25 +18,25 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
-#pragma weak semctl = _semctl
-#pragma weak semctl64 = _semctl64
-#pragma weak semget = _semget
-#pragma weak semop = _semop
-#pragma weak semids = _semids
-#pragma weak semtimedop = _semtimedop
+#pragma weak _semctl = semctl
+#pragma weak _semctl64 = semctl64
+#pragma weak _semget = semget
+#pragma weak _semop = semop
+#pragma weak _semids = semids
+#pragma weak _semtimedop = semtimedop
-#include "synonyms.h"
+#include "lint.h"
#include <sys/types.h>
#include <sys/ipc.h>
#include <sys/ipc_impl.h>
diff --git a/usr/src/lib/libc/port/sys/sharefs.c b/usr/src/lib/libc/port/sys/sharefs.c
index 42e0db738a..adb76ec2cd 100644
--- a/usr/src/lib/libc/port/sys/sharefs.c
+++ b/usr/src/lib/libc/port/sys/sharefs.c
@@ -26,7 +26,7 @@
#pragma ident "%Z%%M% %I% %E% SMI"
-#include "synonyms.h"
+#include "lint.h"
#include <sys/types.h>
#include <sys/types32.h>
#include <rpc/types.h>
diff --git a/usr/src/lib/libc/port/sys/shmsys.c b/usr/src/lib/libc/port/sys/shmsys.c
index c4b5d8edb1..141dedf1c9 100644
--- a/usr/src/lib/libc/port/sys/shmsys.c
+++ b/usr/src/lib/libc/port/sys/shmsys.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,25 +18,25 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
-#pragma weak shmat = _shmat
-#pragma weak shmctl = _shmctl
-#pragma weak shmctl64 = _shmctl64
-#pragma weak shmdt = _shmdt
-#pragma weak shmget = _shmget
-#pragma weak shmids = _shmids
+#pragma weak _shmat = shmat
+#pragma weak _shmctl = shmctl
+#pragma weak _shmctl64 = shmctl64
+#pragma weak _shmdt = shmdt
+#pragma weak _shmget = shmget
+#pragma weak _shmids = shmids
-#include "synonyms.h"
+#include "lint.h"
#include <sys/types.h>
#include <sys/ipc.h>
#include <sys/ipc_impl.h>
diff --git a/usr/src/lib/libc/port/sys/sidsys.c b/usr/src/lib/libc/port/sys/sidsys.c
index d1ccabd2f4..258052561b 100644
--- a/usr/src/lib/libc/port/sys/sidsys.c
+++ b/usr/src/lib/libc/port/sys/sidsys.c
@@ -20,7 +20,7 @@
*/
/*
- * Copyright 2007 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
@@ -30,7 +30,7 @@
* UID/SID mapping system call entries.
*/
-#include "synonyms.h"
+#include "lint.h"
#include <sys/sid.h>
#include <sys/syscall.h>
diff --git a/usr/src/lib/libc/port/sys/siginterrupt.c b/usr/src/lib/libc/port/sys/siginterrupt.c
index 3f82478de8..ac52538abe 100644
--- a/usr/src/lib/libc/port/sys/siginterrupt.c
+++ b/usr/src/lib/libc/port/sys/siginterrupt.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,16 +18,15 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
-#pragma weak siginterrupt = _siginterrupt
-
-#include "synonyms.h"
+#include "lint.h"
#include <sys/types.h>
#include <errno.h>
#include <signal.h>
diff --git a/usr/src/lib/libc/port/sys/signal.c b/usr/src/lib/libc/port/sys/signal.c
index 757dedd70b..d02613f271 100644
--- a/usr/src/lib/libc/port/sys/signal.c
+++ b/usr/src/lib/libc/port/sys/signal.c
@@ -26,13 +26,13 @@
#pragma ident "%Z%%M% %I% %E% SMI"
-#pragma weak signal = _signal
-#pragma weak sighold = _sighold
-#pragma weak sigrelse = _sigrelse
-#pragma weak sigignore = _sigignore
-#pragma weak sigset = _sigset
+#pragma weak _signal = signal
+#pragma weak _sighold = sighold
+#pragma weak _sigrelse = sigrelse
+#pragma weak _sigignore = sigignore
+#pragma weak _sigset = sigset
-#include "synonyms.h"
+#include "lint.h"
#include <sys/types.h>
#include <unistd.h>
#include <errno.h>
diff --git a/usr/src/lib/libc/port/sys/sigpending.c b/usr/src/lib/libc/port/sys/sigpending.c
index 9084a97506..888ca48eb7 100644
--- a/usr/src/lib/libc/port/sys/sigpending.c
+++ b/usr/src/lib/libc/port/sys/sigpending.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,16 +18,17 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
-#pragma weak sigpending = _sigpending
+#pragma weak _sigpending = sigpending
-#include "synonyms.h"
+#include "lint.h"
#include <signal.h>
#include <sys/syscall.h>
diff --git a/usr/src/lib/libc/port/sys/sigstack.c b/usr/src/lib/libc/port/sys/sigstack.c
index 9f34b2386a..615d3577c7 100644
--- a/usr/src/lib/libc/port/sys/sigstack.c
+++ b/usr/src/lib/libc/port/sys/sigstack.c
@@ -20,7 +20,7 @@
*/
/*
- * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
@@ -29,9 +29,7 @@
#pragma ident "%Z%%M% %I% %E% SMI"
-#pragma weak sigstack = _sigstack
-
-#include "synonyms.h"
+#include "lint.h"
#include <sys/types.h>
#include <sys/ucontext.h>
#include <signal.h>
diff --git a/usr/src/lib/libc/port/sys/tasksys.c b/usr/src/lib/libc/port/sys/tasksys.c
index d93cf01cee..82b169a9a5 100644
--- a/usr/src/lib/libc/port/sys/tasksys.c
+++ b/usr/src/lib/libc/port/sys/tasksys.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,18 +18,19 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright (c) 1999-2001 by Sun Microsystems, Inc.
- * All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
+ * Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
-#pragma weak settaskid = _settaskid
-#pragma weak gettaskid = _gettaskid
-#pragma weak getprojid = _getprojid
+#pragma weak _settaskid = settaskid
+#pragma weak _gettaskid = gettaskid
+#pragma weak _getprojid = getprojid
-#include "synonyms.h"
+#include "lint.h"
#include <sys/types.h>
#include <sys/syscall.h>
#include <sys/task.h>
@@ -43,7 +43,8 @@ settaskid(projid_t project, uint_t flags)
taskid_t newtaskid;
while ((newtaskid = syscall(SYS_tasksys, 0, project, flags, NULL, 0))
- == -1 && errno == EINTR);
+ == -1 && errno == EINTR)
+ continue;
return (newtaskid);
}
diff --git a/usr/src/lib/libc/port/sys/time.c b/usr/src/lib/libc/port/sys/time.c
index ea95dd0fac..7e7b642ad5 100644
--- a/usr/src/lib/libc/port/sys/time.c
+++ b/usr/src/lib/libc/port/sys/time.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,17 +18,18 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
-#pragma weak time = _time
-#pragma weak stime = _stime
+#pragma weak _time = time
+#pragma weak _stime = stime
-#include "synonyms.h"
+#include "lint.h"
#include <unistd.h>
#include <time.h>
diff --git a/usr/src/lib/libc/port/sys/ucontext.c b/usr/src/lib/libc/port/sys/ucontext.c
index f86e8c06c1..8b00de64dc 100644
--- a/usr/src/lib/libc/port/sys/ucontext.c
+++ b/usr/src/lib/libc/port/sys/ucontext.c
@@ -26,10 +26,10 @@
#pragma ident "%Z%%M% %I% %E% SMI"
-#pragma weak getustack = _getustack
-#pragma weak setustack = _setustack
+#pragma weak _getustack = getustack
+#pragma weak _setustack = setustack
-#include "synonyms.h"
+#include "lint.h"
#include <ucontext.h>
#include <sys/syscall.h>
diff --git a/usr/src/lib/libc/port/sys/umount.c b/usr/src/lib/libc/port/sys/umount.c
index c7c52d71dd..1941b647df 100644
--- a/usr/src/lib/libc/port/sys/umount.c
+++ b/usr/src/lib/libc/port/sys/umount.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,8 +18,9 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
@@ -33,9 +33,9 @@
* through umount2() system call.
*/
-#pragma weak umount = _umount
+#pragma weak _umount = umount
-#include "synonyms.h"
+#include "lint.h"
#include "libc.h"
int
diff --git a/usr/src/lib/libc/port/sys/ustat.c b/usr/src/lib/libc/port/sys/ustat.c
index 312763bf11..639cbccebb 100644
--- a/usr/src/lib/libc/port/sys/ustat.c
+++ b/usr/src/lib/libc/port/sys/ustat.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,16 +18,15 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
-#pragma weak ustat = _ustat
-
-#include "synonyms.h"
+#include "lint.h"
#include <sys/types.h>
#include <ustat.h>
#include <sys/utssys.h>
diff --git a/usr/src/lib/libc/port/sys/zone.c b/usr/src/lib/libc/port/sys/zone.c
index 7c747d9c97..5129e5d576 100644
--- a/usr/src/lib/libc/port/sys/zone.c
+++ b/usr/src/lib/libc/port/sys/zone.c
@@ -18,18 +18,15 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2007 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
-#pragma weak getzoneid = _getzoneid
-#pragma weak getzoneidbyname = _getzoneidbyname
-#pragma weak getzonenamebyid = _getzonenamebyid
-
-#include "synonyms.h"
+#include "lint.h"
#include <sys/types.h>
#include <sys/syscall.h>
#include <sys/zone.h>
diff --git a/usr/src/lib/libc/port/threads/assfail.c b/usr/src/lib/libc/port/threads/assfail.c
index 5a911d2875..54fbe959a0 100644
--- a/usr/src/lib/libc/port/threads/assfail.c
+++ b/usr/src/lib/libc/port/threads/assfail.c
@@ -69,7 +69,7 @@ Abort(const char *msg)
panic_thread = self;
lwpid = self->ul_lwpid;
} else {
- lwpid = __lwp_self();
+ lwpid = _lwp_self();
}
/* set SIGABRT signal handler to SIG_DFL w/o grabbing any locks */
@@ -82,8 +82,8 @@ Abort(const char *msg)
(void) sigaddset(&sigmask, SIGABRT);
(void) __lwp_sigmask(SIG_UNBLOCK, &sigmask, NULL);
- (void) __lwp_kill(lwpid, SIGABRT); /* never returns */
- (void) _kill(getpid(), SIGABRT); /* if it does, try harder */
+ (void) _lwp_kill(lwpid, SIGABRT); /* never returns */
+ (void) kill(getpid(), SIGABRT); /* if it does, try harder */
_exit(127);
}
@@ -182,7 +182,7 @@ lock_error(const mutex_t *mp, const char *who, void *cv, const char *msg)
} else {
self = NULL;
(void) _lwp_mutex_lock(&assert_lock);
- lwpid = __lwp_self();
+ lwpid = _lwp_self();
udp = &__uberdata;
pid = getpid();
}
@@ -200,7 +200,7 @@ lock_error(const mutex_t *mp, const char *who, void *cv, const char *msg)
if (msg != NULL) {
(void) strcat(buf, ": ");
(void) strcat(buf, msg);
- } else if (!mutex_is_held(&mcopy)) {
+ } else if (!mutex_held(&mcopy)) {
(void) strcat(buf, ": calling thread does not own the lock");
} else if (mcopy.mutex_rcount) {
(void) strcat(buf, ": mutex rcount = ");
@@ -212,7 +212,7 @@ lock_error(const mutex_t *mp, const char *who, void *cv, const char *msg)
ultos((uint64_t)(uintptr_t)self, 16, buf + strlen(buf));
(void) strcat(buf, " thread-id ");
ultos((uint64_t)lwpid, 10, buf + strlen(buf));
- if (msg != NULL || mutex_is_held(&mcopy))
+ if (msg != NULL || mutex_held(&mcopy))
/* EMPTY */;
else if (mcopy.mutex_lockw == 0)
(void) strcat(buf, "\nthe lock is unowned");
@@ -269,7 +269,7 @@ rwlock_error(const rwlock_t *rp, const char *who, const char *msg)
} else {
self = NULL;
(void) _lwp_mutex_lock(&assert_lock);
- lwpid = __lwp_self();
+ lwpid = _lwp_self();
udp = &__uberdata;
pid = getpid();
}
@@ -347,7 +347,7 @@ thread_error(const char *msg)
} else {
self = NULL;
(void) _lwp_mutex_lock(&assert_lock);
- lwpid = __lwp_self();
+ lwpid = _lwp_self();
udp = &__uberdata;
}
@@ -395,7 +395,7 @@ __assfail(const char *assertion, const char *filename, int line_num)
} else {
self = NULL;
(void) _lwp_mutex_lock(&assert_lock);
- lwpid = __lwp_self();
+ lwpid = _lwp_self();
}
(void) strcpy(buf, "assertion failed for thread ");
diff --git a/usr/src/lib/libc/port/threads/cancel.c b/usr/src/lib/libc/port/threads/cancel.c
index 5236ff5073..8a77f42088 100644
--- a/usr/src/lib/libc/port/threads/cancel.c
+++ b/usr/src/lib/libc/port/threads/cancel.c
@@ -34,9 +34,8 @@
* If the target thread has already exited no action is taken.
* Else send SIGCANCEL to request the other thread to cancel itself.
*/
-#pragma weak pthread_cancel = _pthread_cancel
int
-_pthread_cancel(thread_t tid)
+pthread_cancel(thread_t tid)
{
ulwp_t *self = curthread;
uberdata_t *udp = self->ul_uberdata;
@@ -77,7 +76,7 @@ _pthread_cancel(thread_t tid)
/*
* Request the other thread to cancel itself.
*/
- error = __lwp_kill(tid, SIGCANCEL);
+ error = _lwp_kill(tid, SIGCANCEL);
ulwp_unlock(ulwp, udp);
}
@@ -91,9 +90,8 @@ _pthread_cancel(thread_t tid)
* is pending, then the thread is cancelled right here.
* Otherwise, pthread_setcancelstate() is not a cancellation point.
*/
-#pragma weak pthread_setcancelstate = _pthread_setcancelstate
int
-_pthread_setcancelstate(int state, int *oldstate)
+pthread_setcancelstate(int state, int *oldstate)
{
ulwp_t *self = curthread;
uberdata_t *udp = self->ul_uberdata;
@@ -130,7 +128,7 @@ _pthread_setcancelstate(int state, int *oldstate)
if ((!self->ul_cancel_disabled || !was_disabled) &&
self->ul_cancel_async && self->ul_cancel_pending) {
ulwp_unlock(self, udp);
- _pthread_exit(PTHREAD_CANCELED);
+ pthread_exit(PTHREAD_CANCELED);
}
ulwp_unlock(self, udp);
@@ -149,9 +147,8 @@ _pthread_setcancelstate(int state, int *oldstate)
* If the type is being set as ASYNC, then it becomes
* a cancellation point if there is a cancellation pending.
*/
-#pragma weak pthread_setcanceltype = _pthread_setcanceltype
int
-_pthread_setcanceltype(int type, int *oldtype)
+pthread_setcanceltype(int type, int *oldtype)
{
ulwp_t *self = curthread;
int was_async;
@@ -184,7 +181,7 @@ _pthread_setcanceltype(int type, int *oldtype)
if ((self->ul_cancel_async || was_async) &&
self->ul_cancel_pending && !self->ul_cancel_disabled) {
exit_critical(self);
- _pthread_exit(PTHREAD_CANCELED);
+ pthread_exit(PTHREAD_CANCELED);
}
exit_critical(self);
@@ -204,14 +201,13 @@ _pthread_setcanceltype(int type, int *oldtype)
* it by calling thr_exit. thr_exit takes care of calling
* cleanup handlers.
*/
-#pragma weak pthread_testcancel = _pthread_testcancel
void
-_pthread_testcancel(void)
+pthread_testcancel(void)
{
ulwp_t *self = curthread;
if (self->ul_cancel_pending && !self->ul_cancel_disabled)
- _pthread_exit(PTHREAD_CANCELED);
+ pthread_exit(PTHREAD_CANCELED);
}
/*
@@ -229,7 +225,7 @@ _cancelon()
ASSERT(self->ul_cancelable >= 0);
self->ul_cancelable++;
if (self->ul_cancel_pending)
- _pthread_exit(PTHREAD_CANCELED);
+ pthread_exit(PTHREAD_CANCELED);
}
}
@@ -245,7 +241,7 @@ _canceloff()
ASSERT(!(self->ul_cancelable && self->ul_cancel_disabled));
if (!self->ul_cancel_disabled) {
if (self->ul_cancel_pending)
- _pthread_exit(PTHREAD_CANCELED);
+ pthread_exit(PTHREAD_CANCELED);
self->ul_cancelable--;
ASSERT(self->ul_cancelable >= 0);
}
diff --git a/usr/src/lib/libc/port/threads/door_calls.c b/usr/src/lib/libc/port/threads/door_calls.c
index a298722759..3dae1445d8 100644
--- a/usr/src/lib/libc/port/threads/door_calls.c
+++ b/usr/src/lib/libc/port/threads/door_calls.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,20 +18,15 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2005 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
-#pragma weak door_create = _door_create
-#pragma weak door_ucred = _door_ucred
-#pragma weak door_cred = _door_cred
-#pragma weak door_return = _door_return
-#pragma weak door_server_create = _door_server_create
-
-#include "synonyms.h"
+#include "lint.h"
#include "thr_uberdata.h"
#include "libc.h"
diff --git a/usr/src/lib/libc/port/threads/pthr_attr.c b/usr/src/lib/libc/port/threads/pthr_attr.c
index 8809209083..3bbd1c0f1a 100644
--- a/usr/src/lib/libc/port/threads/pthr_attr.c
+++ b/usr/src/lib/libc/port/threads/pthr_attr.c
@@ -57,9 +57,9 @@ def_thrattr(void)
* pthread_attr_init: allocates the attribute object and initializes it
* with the default values.
*/
-#pragma weak pthread_attr_init = _pthread_attr_init
+#pragma weak _pthread_attr_init = pthread_attr_init
int
-_pthread_attr_init(pthread_attr_t *attr)
+pthread_attr_init(pthread_attr_t *attr)
{
thrattr_t *ap;
@@ -75,9 +75,8 @@ _pthread_attr_init(pthread_attr_t *attr)
* pthread_attr_destroy: frees the attribute object and invalidates it
* with NULL value.
*/
-#pragma weak pthread_attr_destroy = _pthread_attr_destroy
int
-_pthread_attr_destroy(pthread_attr_t *attr)
+pthread_attr_destroy(pthread_attr_t *attr)
{
if (attr == NULL || attr->__pthread_attrp == NULL)
return (EINVAL);
@@ -87,10 +86,10 @@ _pthread_attr_destroy(pthread_attr_t *attr)
}
/*
- * _pthread_attr_clone: make a copy of a pthread_attr_t.
+ * pthread_attr_clone: make a copy of a pthread_attr_t.
*/
int
-_pthread_attr_clone(pthread_attr_t *attr, const pthread_attr_t *old_attr)
+pthread_attr_clone(pthread_attr_t *attr, const pthread_attr_t *old_attr)
{
thrattr_t *ap;
const thrattr_t *old_ap =
@@ -106,12 +105,12 @@ _pthread_attr_clone(pthread_attr_t *attr, const pthread_attr_t *old_attr)
}
/*
- * _pthread_attr_equal: compare two pthread_attr_t's, return 1 if equal.
+ * pthread_attr_equal: compare two pthread_attr_t's, return 1 if equal.
* A NULL pthread_attr_t pointer implies default attributes.
* This is a consolidation-private interface, for librt.
*/
int
-_pthread_attr_equal(const pthread_attr_t *attr1, const pthread_attr_t *attr2)
+pthread_attr_equal(const pthread_attr_t *attr1, const pthread_attr_t *attr2)
{
const thrattr_t *ap1 = attr1? attr1->__pthread_attrp : def_thrattr();
const thrattr_t *ap2 = attr2? attr2->__pthread_attrp : def_thrattr();
@@ -126,9 +125,8 @@ _pthread_attr_equal(const pthread_attr_t *attr1, const pthread_attr_t *attr2)
* be PTHREAD_STACK_MIN (MINSTACK).
* This is equivalent to stksize argument in thr_create().
*/
-#pragma weak pthread_attr_setstacksize = _pthread_attr_setstacksize
int
-_pthread_attr_setstacksize(pthread_attr_t *attr, size_t stacksize)
+pthread_attr_setstacksize(pthread_attr_t *attr, size_t stacksize)
{
thrattr_t *ap;
@@ -143,9 +141,9 @@ _pthread_attr_setstacksize(pthread_attr_t *attr, size_t stacksize)
/*
* pthread_attr_getstacksize: gets the user stack size.
*/
-#pragma weak pthread_attr_getstacksize = _pthread_attr_getstacksize
+#pragma weak _pthread_attr_getstacksize = pthread_attr_getstacksize
int
-_pthread_attr_getstacksize(const pthread_attr_t *attr, size_t *stacksize)
+pthread_attr_getstacksize(const pthread_attr_t *attr, size_t *stacksize)
{
thrattr_t *ap;
@@ -161,9 +159,8 @@ _pthread_attr_getstacksize(const pthread_attr_t *attr, size_t *stacksize)
* pthread_attr_setstackaddr: sets the user stack addr.
* This is equivalent to stkaddr argument in thr_create().
*/
-#pragma weak pthread_attr_setstackaddr = _pthread_attr_setstackaddr
int
-_pthread_attr_setstackaddr(pthread_attr_t *attr, void *stackaddr)
+pthread_attr_setstackaddr(pthread_attr_t *attr, void *stackaddr)
{
thrattr_t *ap;
@@ -177,9 +174,9 @@ _pthread_attr_setstackaddr(pthread_attr_t *attr, void *stackaddr)
/*
* pthread_attr_getstackaddr: gets the user stack addr.
*/
-#pragma weak pthread_attr_getstackaddr = _pthread_attr_getstackaddr
+#pragma weak _pthread_attr_getstackaddr = pthread_attr_getstackaddr
int
-_pthread_attr_getstackaddr(const pthread_attr_t *attr, void **stackaddr)
+pthread_attr_getstackaddr(const pthread_attr_t *attr, void **stackaddr)
{
thrattr_t *ap;
@@ -195,9 +192,8 @@ _pthread_attr_getstackaddr(const pthread_attr_t *attr, void **stackaddr)
* pthread_attr_setdetachstate: sets the detach state to DETACHED or JOINABLE.
* PTHREAD_CREATE_DETACHED is equivalent to thr_create(THR_DETACHED).
*/
-#pragma weak pthread_attr_setdetachstate = _pthread_attr_setdetachstate
int
-_pthread_attr_setdetachstate(pthread_attr_t *attr, int detachstate)
+pthread_attr_setdetachstate(pthread_attr_t *attr, int detachstate)
{
thrattr_t *ap;
@@ -213,9 +209,9 @@ _pthread_attr_setdetachstate(pthread_attr_t *attr, int detachstate)
/*
* pthread_attr_getdetachstate: gets the detach state.
*/
-#pragma weak pthread_attr_getdetachstate = _pthread_attr_getdetachstate
+#pragma weak _pthread_attr_getdetachstate = pthread_attr_getdetachstate
int
-_pthread_attr_getdetachstate(const pthread_attr_t *attr, int *detachstate)
+pthread_attr_getdetachstate(const pthread_attr_t *attr, int *detachstate)
{
thrattr_t *ap;
@@ -233,7 +229,7 @@ _pthread_attr_getdetachstate(const pthread_attr_t *attr, int *detachstate)
* For now, this is a private interface in libc.
*/
int
-_pthread_attr_setdaemonstate_np(pthread_attr_t *attr, int daemonstate)
+pthread_attr_setdaemonstate_np(pthread_attr_t *attr, int daemonstate)
{
thrattr_t *ap;
@@ -251,7 +247,7 @@ _pthread_attr_setdaemonstate_np(pthread_attr_t *attr, int daemonstate)
* For now, this is a private interface in libc.
*/
int
-_pthread_attr_getdaemonstate_np(const pthread_attr_t *attr, int *daemonstate)
+pthread_attr_getdaemonstate_np(const pthread_attr_t *attr, int *daemonstate)
{
thrattr_t *ap;
@@ -267,9 +263,8 @@ _pthread_attr_getdaemonstate_np(const pthread_attr_t *attr, int *daemonstate)
* pthread_attr_setscope: sets the scope to SYSTEM or PROCESS.
* This is equivalent to setting THR_BOUND flag in thr_create().
*/
-#pragma weak pthread_attr_setscope = _pthread_attr_setscope
int
-_pthread_attr_setscope(pthread_attr_t *attr, int scope)
+pthread_attr_setscope(pthread_attr_t *attr, int scope)
{
thrattr_t *ap;
@@ -285,9 +280,9 @@ _pthread_attr_setscope(pthread_attr_t *attr, int scope)
/*
* pthread_attr_getscope: gets the scheduling scope.
*/
-#pragma weak pthread_attr_getscope = _pthread_attr_getscope
+#pragma weak _pthread_attr_getscope = pthread_attr_getscope
int
-_pthread_attr_getscope(const pthread_attr_t *attr, int *scope)
+pthread_attr_getscope(const pthread_attr_t *attr, int *scope)
{
thrattr_t *ap;
@@ -303,9 +298,8 @@ _pthread_attr_getscope(const pthread_attr_t *attr, int *scope)
* pthread_attr_setinheritsched: sets the scheduling parameters to be
* EXPLICIT or INHERITED from parent thread.
*/
-#pragma weak pthread_attr_setinheritsched = _pthread_attr_setinheritsched
int
-_pthread_attr_setinheritsched(pthread_attr_t *attr, int inherit)
+pthread_attr_setinheritsched(pthread_attr_t *attr, int inherit)
{
thrattr_t *ap;
@@ -321,9 +315,9 @@ _pthread_attr_setinheritsched(pthread_attr_t *attr, int inherit)
/*
* pthread_attr_getinheritsched: gets the scheduling inheritance.
*/
-#pragma weak pthread_attr_getinheritsched = _pthread_attr_getinheritsched
+#pragma weak _pthread_attr_getinheritsched = pthread_attr_getinheritsched
int
-_pthread_attr_getinheritsched(const pthread_attr_t *attr, int *inherit)
+pthread_attr_getinheritsched(const pthread_attr_t *attr, int *inherit)
{
thrattr_t *ap;
@@ -338,9 +332,8 @@ _pthread_attr_getinheritsched(const pthread_attr_t *attr, int *inherit)
/*
* pthread_attr_setschedpolicy: sets the scheduling policy.
*/
-#pragma weak pthread_attr_setschedpolicy = _pthread_attr_setschedpolicy
int
-_pthread_attr_setschedpolicy(pthread_attr_t *attr, int policy)
+pthread_attr_setschedpolicy(pthread_attr_t *attr, int policy)
{
thrattr_t *ap;
@@ -355,9 +348,9 @@ _pthread_attr_setschedpolicy(pthread_attr_t *attr, int policy)
/*
* pthread_attr_getpolicy: gets the scheduling policy.
*/
-#pragma weak pthread_attr_getschedpolicy = _pthread_attr_getschedpolicy
+#pragma weak _pthread_attr_getschedpolicy = pthread_attr_getschedpolicy
int
-_pthread_attr_getschedpolicy(const pthread_attr_t *attr, int *policy)
+pthread_attr_getschedpolicy(const pthread_attr_t *attr, int *policy)
{
thrattr_t *ap;
@@ -373,9 +366,8 @@ _pthread_attr_getschedpolicy(const pthread_attr_t *attr, int *policy)
* pthread_attr_setschedparam: sets the scheduling parameters.
* Currently, we support priority only.
*/
-#pragma weak pthread_attr_setschedparam = _pthread_attr_setschedparam
int
-_pthread_attr_setschedparam(pthread_attr_t *attr,
+pthread_attr_setschedparam(pthread_attr_t *attr,
const struct sched_param *param)
{
thrattr_t *ap;
@@ -392,9 +384,9 @@ _pthread_attr_setschedparam(pthread_attr_t *attr,
* pthread_attr_getschedparam: gets the scheduling parameters.
* Currently, only priority is defined as sched parameter.
*/
-#pragma weak pthread_attr_getschedparam = _pthread_attr_getschedparam
+#pragma weak _pthread_attr_getschedparam = pthread_attr_getschedparam
int
-_pthread_attr_getschedparam(const pthread_attr_t *attr,
+pthread_attr_getschedparam(const pthread_attr_t *attr,
struct sched_param *param)
{
thrattr_t *ap;
@@ -411,9 +403,8 @@ _pthread_attr_getschedparam(const pthread_attr_t *attr,
* UNIX98
* pthread_attr_setguardsize: sets the guardsize
*/
-#pragma weak pthread_attr_setguardsize = _pthread_attr_setguardsize
int
-_pthread_attr_setguardsize(pthread_attr_t *attr, size_t guardsize)
+pthread_attr_setguardsize(pthread_attr_t *attr, size_t guardsize)
{
thrattr_t *ap;
@@ -428,9 +419,8 @@ _pthread_attr_setguardsize(pthread_attr_t *attr, size_t guardsize)
* UNIX98
* pthread_attr_getguardsize: gets the guardsize
*/
-#pragma weak pthread_attr_getguardsize = _pthread_attr_getguardsize
int
-_pthread_attr_getguardsize(const pthread_attr_t *attr, size_t *guardsize)
+pthread_attr_getguardsize(const pthread_attr_t *attr, size_t *guardsize)
{
thrattr_t *ap;
@@ -447,9 +437,8 @@ _pthread_attr_getguardsize(const pthread_attr_t *attr, size_t *guardsize)
* This is equivalent to the stack_base and stack_size arguments
* to thr_create().
*/
-#pragma weak pthread_attr_setstack = _pthread_attr_setstack
int
-_pthread_attr_setstack(pthread_attr_t *attr,
+pthread_attr_setstack(pthread_attr_t *attr,
void *stackaddr, size_t stacksize)
{
thrattr_t *ap;
@@ -466,9 +455,8 @@ _pthread_attr_setstack(pthread_attr_t *attr,
/*
* pthread_attr_getstack: gets the user stack addr and stack size.
*/
-#pragma weak pthread_attr_getstack = _pthread_attr_getstack
int
-_pthread_attr_getstack(const pthread_attr_t *attr,
+pthread_attr_getstack(const pthread_attr_t *attr,
void **stackaddr, size_t *stacksize)
{
thrattr_t *ap;
diff --git a/usr/src/lib/libc/port/threads/pthr_barrier.c b/usr/src/lib/libc/port/threads/pthr_barrier.c
index e57bb31ece..dd4cf1e60a 100644
--- a/usr/src/lib/libc/port/threads/pthr_barrier.c
+++ b/usr/src/lib/libc/port/threads/pthr_barrier.c
@@ -37,9 +37,8 @@ typedef struct {
int pshared;
} barrierattr_t;
-#pragma weak pthread_barrierattr_init = _pthread_barrierattr_init
int
-_pthread_barrierattr_init(pthread_barrierattr_t *attr)
+pthread_barrierattr_init(pthread_barrierattr_t *attr)
{
barrierattr_t *ap;
@@ -50,9 +49,8 @@ _pthread_barrierattr_init(pthread_barrierattr_t *attr)
return (0);
}
-#pragma weak pthread_barrierattr_destroy = _pthread_barrierattr_destroy
int
-_pthread_barrierattr_destroy(pthread_barrierattr_t *attr)
+pthread_barrierattr_destroy(pthread_barrierattr_t *attr)
{
if (attr == NULL || attr->__pthread_barrierattrp == NULL)
return (EINVAL);
@@ -61,9 +59,8 @@ _pthread_barrierattr_destroy(pthread_barrierattr_t *attr)
return (0);
}
-#pragma weak pthread_barrierattr_setpshared = _pthread_barrierattr_setpshared
int
-_pthread_barrierattr_setpshared(pthread_barrierattr_t *attr, int pshared)
+pthread_barrierattr_setpshared(pthread_barrierattr_t *attr, int pshared)
{
barrierattr_t *ap;
@@ -75,9 +72,8 @@ _pthread_barrierattr_setpshared(pthread_barrierattr_t *attr, int pshared)
return (0);
}
-#pragma weak pthread_barrierattr_getpshared = _pthread_barrierattr_getpshared
int
-_pthread_barrierattr_getpshared(const pthread_barrierattr_t *attr, int *pshared)
+pthread_barrierattr_getpshared(const pthread_barrierattr_t *attr, int *pshared)
{
barrierattr_t *ap;
@@ -88,9 +84,8 @@ _pthread_barrierattr_getpshared(const pthread_barrierattr_t *attr, int *pshared)
return (0);
}
-#pragma weak pthread_barrier_init = _pthread_barrier_init
int
-_pthread_barrier_init(pthread_barrier_t *barrier,
+pthread_barrier_init(pthread_barrier_t *barrier,
const pthread_barrierattr_t *attr, uint_t count)
{
mutex_t *mp = (mutex_t *)&barrier->__pthread_barrier_lock;
@@ -113,20 +108,19 @@ _pthread_barrier_init(pthread_barrier_t *barrier,
barrier->__pthread_barrier_current = count;
barrier->__pthread_barrier_cycle = 0;
barrier->__pthread_barrier_reserved = 0;
- (void) __mutex_init(mp, type, NULL);
- (void) _cond_init(cvp, type, NULL);
+ (void) mutex_init(mp, type, NULL);
+ (void) cond_init(cvp, type, NULL);
return (0);
}
-#pragma weak pthread_barrier_destroy = _pthread_barrier_destroy
int
-_pthread_barrier_destroy(pthread_barrier_t *barrier)
+pthread_barrier_destroy(pthread_barrier_t *barrier)
{
mutex_t *mp = (mutex_t *)&barrier->__pthread_barrier_lock;
cond_t *cvp = (cond_t *)&barrier->__pthread_barrier_cond;
- (void) __mutex_destroy(mp);
- (void) _cond_destroy(cvp);
+ (void) mutex_destroy(mp);
+ (void) cond_destroy(cvp);
(void) memset(barrier, -1, sizeof (*barrier));
return (0);
}
@@ -134,33 +128,32 @@ _pthread_barrier_destroy(pthread_barrier_t *barrier)
/*
* pthread_barrier_wait() is not a cancellation point;
*/
-#pragma weak pthread_barrier_wait = _pthread_barrier_wait
int
-_pthread_barrier_wait(pthread_barrier_t *barrier)
+pthread_barrier_wait(pthread_barrier_t *barrier)
{
mutex_t *mp = (mutex_t *)&barrier->__pthread_barrier_lock;
cond_t *cvp = (cond_t *)&barrier->__pthread_barrier_cond;
uint64_t cycle;
int cancel_state;
- (void) __mutex_lock(mp);
+ (void) mutex_lock(mp);
if (--barrier->__pthread_barrier_current == 0) {
barrier->__pthread_barrier_cycle++;
barrier->__pthread_barrier_current =
barrier->__pthread_barrier_count;
- (void) __mutex_unlock(mp);
- (void) _cond_broadcast(cvp);
+ (void) mutex_unlock(mp);
+ (void) cond_broadcast(cvp);
return (PTHREAD_BARRIER_SERIAL_THREAD);
}
- (void) _pthread_setcancelstate(PTHREAD_CANCEL_DISABLE, &cancel_state);
+ (void) pthread_setcancelstate(PTHREAD_CANCEL_DISABLE, &cancel_state);
cycle = barrier->__pthread_barrier_cycle;
do {
- (void) _cond_wait(cvp, mp);
+ (void) cond_wait(cvp, mp);
} while (cycle == barrier->__pthread_barrier_cycle);
- (void) _pthread_setcancelstate(cancel_state, NULL);
+ (void) pthread_setcancelstate(cancel_state, NULL);
- (void) __mutex_unlock(mp);
+ (void) mutex_unlock(mp);
return (0);
}
diff --git a/usr/src/lib/libc/port/threads/pthr_cond.c b/usr/src/lib/libc/port/threads/pthr_cond.c
index 90e4e3443a..b22bc27cf2 100644
--- a/usr/src/lib/libc/port/threads/pthr_cond.c
+++ b/usr/src/lib/libc/port/threads/pthr_cond.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,8 +18,9 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2003 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
@@ -33,9 +33,9 @@
* pthread_condattr_init: allocates the cond attribute object and
* initializes it with the default values.
*/
-#pragma weak pthread_condattr_init = _pthread_condattr_init
+#pragma weak _pthread_condattr_init = pthread_condattr_init
int
-_pthread_condattr_init(pthread_condattr_t *attr)
+pthread_condattr_init(pthread_condattr_t *attr)
{
cvattr_t *ap;
@@ -51,9 +51,8 @@ _pthread_condattr_init(pthread_condattr_t *attr)
* pthread_condattr_destroy: frees the cond attribute object and
* invalidates it with NULL value.
*/
-#pragma weak pthread_condattr_destroy = _pthread_condattr_destroy
int
-_pthread_condattr_destroy(pthread_condattr_t *attr)
+pthread_condattr_destroy(pthread_condattr_t *attr)
{
if (attr == NULL || attr->__pthread_condattrp == NULL)
return (EINVAL);
@@ -65,9 +64,8 @@ _pthread_condattr_destroy(pthread_condattr_t *attr)
/*
* pthread_condattr_setclock: sets the clockid attribute.
*/
-#pragma weak pthread_condattr_setclock = _pthread_condattr_setclock
int
-_pthread_condattr_setclock(pthread_condattr_t *attr, clockid_t clock_id)
+pthread_condattr_setclock(pthread_condattr_t *attr, clockid_t clock_id)
{
cvattr_t *ap;
@@ -82,9 +80,8 @@ _pthread_condattr_setclock(pthread_condattr_t *attr, clockid_t clock_id)
/*
* pthread_condattr_getclock: gets the shared attr.
*/
-#pragma weak pthread_condattr_getclock = _pthread_condattr_getclock
int
-_pthread_condattr_getclock(const pthread_condattr_t *attr, clockid_t *clock_id)
+pthread_condattr_getclock(const pthread_condattr_t *attr, clockid_t *clock_id)
{
cvattr_t *ap;
@@ -101,9 +98,8 @@ _pthread_condattr_getclock(const pthread_condattr_t *attr, clockid_t *clock_id)
* pthread_condattr_setpshared: sets the shared attr to PRIVATE or SHARED.
* This is equivalent to setting USYNC_PROCESS/USYNC_THREAD flag in cond_init().
*/
-#pragma weak pthread_condattr_setpshared = _pthread_condattr_setpshared
int
-_pthread_condattr_setpshared(pthread_condattr_t *attr, int pshared)
+pthread_condattr_setpshared(pthread_condattr_t *attr, int pshared)
{
cvattr_t *ap;
@@ -119,9 +115,9 @@ _pthread_condattr_setpshared(pthread_condattr_t *attr, int pshared)
/*
* pthread_condattr_getpshared: gets the shared attr.
*/
-#pragma weak pthread_condattr_getpshared = _pthread_condattr_getpshared
+#pragma weak _pthread_condattr_getpshared = pthread_condattr_getpshared
int
-_pthread_condattr_getpshared(const pthread_condattr_t *attr, int *pshared)
+pthread_condattr_getpshared(const pthread_condattr_t *attr, int *pshared)
{
cvattr_t *ap;
@@ -137,9 +133,9 @@ _pthread_condattr_getpshared(const pthread_condattr_t *attr, int *pshared)
* pthread_cond_init: Initializes the cond object. It copies the
* pshared attr into type argument and calls cond_init().
*/
-#pragma weak pthread_cond_init = _pthread_cond_init
+#pragma weak _pthread_cond_init = pthread_cond_init
int
-_pthread_cond_init(pthread_cond_t *cond, const pthread_condattr_t *attr)
+pthread_cond_init(pthread_cond_t *cond, const pthread_condattr_t *attr)
{
cvattr_t *ap;
int type;
@@ -158,7 +154,7 @@ _pthread_cond_init(pthread_cond_t *cond, const pthread_condattr_t *attr)
if (clock_id != CLOCK_REALTIME && clock_id != CLOCK_HIGHRES)
error = EINVAL;
- else if ((error = _cond_init((cond_t *)cond, type, NULL)) == 0)
+ else if ((error = cond_init((cond_t *)cond, type, NULL)) == 0)
((cond_t *)cond)->cond_clockid = (uint8_t)clock_id;
return (error);
diff --git a/usr/src/lib/libc/port/threads/pthr_mutex.c b/usr/src/lib/libc/port/threads/pthr_mutex.c
index d3f54c2c71..2451e5e0e8 100644
--- a/usr/src/lib/libc/port/threads/pthr_mutex.c
+++ b/usr/src/lib/libc/port/threads/pthr_mutex.c
@@ -34,9 +34,9 @@
* pthread_mutexattr_init: allocates the mutex attribute object and
* initializes it with the default values.
*/
-#pragma weak pthread_mutexattr_init = _pthread_mutexattr_init
+#pragma weak _pthread_mutexattr_init = pthread_mutexattr_init
int
-_pthread_mutexattr_init(pthread_mutexattr_t *attr)
+pthread_mutexattr_init(pthread_mutexattr_t *attr)
{
mattr_t *ap;
@@ -54,9 +54,8 @@ _pthread_mutexattr_init(pthread_mutexattr_t *attr)
* pthread_mutexattr_destroy: frees the mutex attribute object and
* invalidates it with NULL value.
*/
-#pragma weak pthread_mutexattr_destroy = _pthread_mutexattr_destroy
int
-_pthread_mutexattr_destroy(pthread_mutexattr_t *attr)
+pthread_mutexattr_destroy(pthread_mutexattr_t *attr)
{
if (attr == NULL || attr->__pthread_mutexattrp == NULL)
return (EINVAL);
@@ -71,9 +70,8 @@ _pthread_mutexattr_destroy(pthread_mutexattr_t *attr)
* This is equivalent to setting the USYNC_THREAD/USYNC_PROCESS
* flag in mutex_init().
*/
-#pragma weak pthread_mutexattr_setpshared = _pthread_mutexattr_setpshared
int
-_pthread_mutexattr_setpshared(pthread_mutexattr_t *attr, int pshared)
+pthread_mutexattr_setpshared(pthread_mutexattr_t *attr, int pshared)
{
mattr_t *ap;
@@ -88,9 +86,9 @@ _pthread_mutexattr_setpshared(pthread_mutexattr_t *attr, int pshared)
/*
* pthread_mutexattr_getpshared: gets the shared attribute.
*/
-#pragma weak pthread_mutexattr_getpshared = _pthread_mutexattr_getpshared
+#pragma weak _pthread_mutexattr_getpshared = pthread_mutexattr_getpshared
int
-_pthread_mutexattr_getpshared(const pthread_mutexattr_t *attr, int *pshared)
+pthread_mutexattr_getpshared(const pthread_mutexattr_t *attr, int *pshared)
{
mattr_t *ap;
@@ -104,10 +102,8 @@ _pthread_mutexattr_getpshared(const pthread_mutexattr_t *attr, int *pshared)
/*
* pthread_mutexattr_setprioceiling: sets the prioceiling attribute.
*/
-#pragma weak pthread_mutexattr_setprioceiling = \
- _pthread_mutexattr_setprioceiling
int
-_pthread_mutexattr_setprioceiling(pthread_mutexattr_t *attr, int prioceiling)
+pthread_mutexattr_setprioceiling(pthread_mutexattr_t *attr, int prioceiling)
{
const pcclass_t *pccp = get_info_by_policy(SCHED_FIFO);
mattr_t *ap;
@@ -122,10 +118,10 @@ _pthread_mutexattr_setprioceiling(pthread_mutexattr_t *attr, int prioceiling)
/*
* pthread_mutexattr_getprioceiling: gets the prioceiling attribute.
*/
-#pragma weak pthread_mutexattr_getprioceiling = \
- _pthread_mutexattr_getprioceiling
+#pragma weak _pthread_mutexattr_getprioceiling = \
+ pthread_mutexattr_getprioceiling
int
-_pthread_mutexattr_getprioceiling(const pthread_mutexattr_t *attr, int *ceiling)
+pthread_mutexattr_getprioceiling(const pthread_mutexattr_t *attr, int *ceiling)
{
mattr_t *ap;
@@ -139,9 +135,8 @@ _pthread_mutexattr_getprioceiling(const pthread_mutexattr_t *attr, int *ceiling)
/*
* pthread_mutexattr_setprotocol: sets the protocol attribute.
*/
-#pragma weak pthread_mutexattr_setprotocol = _pthread_mutexattr_setprotocol
int
-_pthread_mutexattr_setprotocol(pthread_mutexattr_t *attr, int protocol)
+pthread_mutexattr_setprotocol(pthread_mutexattr_t *attr, int protocol)
{
mattr_t *ap;
@@ -158,9 +153,9 @@ _pthread_mutexattr_setprotocol(pthread_mutexattr_t *attr, int protocol)
/*
* pthread_mutexattr_getprotocol: gets the protocol attribute.
*/
-#pragma weak pthread_mutexattr_getprotocol = _pthread_mutexattr_getprotocol
+#pragma weak _pthread_mutexattr_getprotocol = pthread_mutexattr_getprotocol
int
-_pthread_mutexattr_getprotocol(const pthread_mutexattr_t *attr, int *protocol)
+pthread_mutexattr_getprotocol(const pthread_mutexattr_t *attr, int *protocol)
{
mattr_t *ap;
@@ -175,10 +170,8 @@ _pthread_mutexattr_getprotocol(const pthread_mutexattr_t *attr, int *protocol)
* pthread_mutexattr_setrobust_np: sets the robustness attribute
* to PTHREAD_MUTEX_ROBUST_NP or PTHREAD_MUTEX_STALL_NP.
*/
-#pragma weak pthread_mutexattr_setrobust_np = \
- _pthread_mutexattr_setrobust_np
int
-_pthread_mutexattr_setrobust_np(pthread_mutexattr_t *attr, int robust)
+pthread_mutexattr_setrobust_np(pthread_mutexattr_t *attr, int robust)
{
mattr_t *ap;
@@ -193,10 +186,8 @@ _pthread_mutexattr_setrobust_np(pthread_mutexattr_t *attr, int robust)
/*
* pthread_mutexattr_getrobust_np: gets the robustness attribute.
*/
-#pragma weak pthread_mutexattr_getrobust_np = \
- _pthread_mutexattr_getrobust_np
int
-_pthread_mutexattr_getrobust_np(const pthread_mutexattr_t *attr, int *robust)
+pthread_mutexattr_getrobust_np(const pthread_mutexattr_t *attr, int *robust)
{
mattr_t *ap;
@@ -211,9 +202,10 @@ _pthread_mutexattr_getrobust_np(const pthread_mutexattr_t *attr, int *robust)
* pthread_mutex_init: Initializes the mutex object. It copies the
* various attributes into one type argument and calls mutex_init().
*/
-#pragma weak pthread_mutex_init = _pthread_mutex_init
+#pragma weak _pthread_mutex_init = pthread_mutex_init
int
-_pthread_mutex_init(pthread_mutex_t *mutex, pthread_mutexattr_t *attr)
+pthread_mutex_init(pthread_mutex_t *_RESTRICT_KYWD mutex,
+ const pthread_mutexattr_t *_RESTRICT_KYWD attr)
{
mattr_t *ap;
int type;
@@ -245,9 +237,8 @@ _pthread_mutex_init(pthread_mutex_t *mutex, pthread_mutexattr_t *attr)
* We pass the MUTEX_NOCEIL flag to mutex_lock_internal() so that
* a non-realtime thread can successfully execute this operation.
*/
-#pragma weak pthread_mutex_setprioceiling = _pthread_mutex_setprioceiling
int
-_pthread_mutex_setprioceiling(pthread_mutex_t *mutex, int ceil, int *oceil)
+pthread_mutex_setprioceiling(pthread_mutex_t *mutex, int ceil, int *oceil)
{
mutex_t *mp = (mutex_t *)mutex;
const pcclass_t *pccp = get_info_by_policy(SCHED_FIFO);
@@ -269,9 +260,9 @@ _pthread_mutex_setprioceiling(pthread_mutex_t *mutex, int ceil, int *oceil)
/*
* pthread_mutex_getprioceiling: gets the prioceiling.
*/
-#pragma weak pthread_mutex_getprioceiling = _pthread_mutex_getprioceiling
+#pragma weak _pthread_mutex_getprioceiling = pthread_mutex_getprioceiling
int
-_pthread_mutex_getprioceiling(const pthread_mutex_t *mp, int *ceiling)
+pthread_mutex_getprioceiling(const pthread_mutex_t *mp, int *ceiling)
{
*ceiling = ((mutex_t *)mp)->mutex_ceiling;
return (0);
@@ -281,9 +272,8 @@ _pthread_mutex_getprioceiling(const pthread_mutex_t *mp, int *ceiling)
* UNIX98
* pthread_mutexattr_settype: sets the type attribute
*/
-#pragma weak pthread_mutexattr_settype = _pthread_mutexattr_settype
int
-_pthread_mutexattr_settype(pthread_mutexattr_t *attr, int type)
+pthread_mutexattr_settype(pthread_mutexattr_t *attr, int type)
{
mattr_t *ap;
@@ -310,9 +300,8 @@ _pthread_mutexattr_settype(pthread_mutexattr_t *attr, int type)
* UNIX98
* pthread_mutexattr_gettype: gets the type attribute.
*/
-#pragma weak pthread_mutexattr_gettype = _pthread_mutexattr_gettype
int
-_pthread_mutexattr_gettype(const pthread_mutexattr_t *attr, int *typep)
+pthread_mutexattr_gettype(const pthread_mutexattr_t *attr, int *typep)
{
mattr_t *ap;
int type;
diff --git a/usr/src/lib/libc/port/threads/pthr_rwlock.c b/usr/src/lib/libc/port/threads/pthr_rwlock.c
index 35f4c809de..39883d7934 100644
--- a/usr/src/lib/libc/port/threads/pthr_rwlock.c
+++ b/usr/src/lib/libc/port/threads/pthr_rwlock.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,8 +18,9 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 1999-2003 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
@@ -34,9 +34,8 @@
* pthread_rwlockattr_init: allocates the mutex attribute object and
* initializes it with the default values.
*/
-#pragma weak pthread_rwlockattr_init = _pthread_rwlockattr_init
int
-_pthread_rwlockattr_init(pthread_rwlockattr_t *attr)
+pthread_rwlockattr_init(pthread_rwlockattr_t *attr)
{
rwlattr_t *ap;
@@ -52,9 +51,8 @@ _pthread_rwlockattr_init(pthread_rwlockattr_t *attr)
* pthread_rwlockattr_destroy: frees the rwlock attribute object and
* invalidates it with NULL value.
*/
-#pragma weak pthread_rwlockattr_destroy = _pthread_rwlockattr_destroy
int
-_pthread_rwlockattr_destroy(pthread_rwlockattr_t *attr)
+pthread_rwlockattr_destroy(pthread_rwlockattr_t *attr)
{
if (attr == NULL || attr->__pthread_rwlockattrp == NULL)
return (EINVAL);
@@ -67,9 +65,8 @@ _pthread_rwlockattr_destroy(pthread_rwlockattr_t *attr)
* UNIX98
* pthread_rwlockattr_setpshared: sets the shared attr to PRIVATE or SHARED.
*/
-#pragma weak pthread_rwlockattr_setpshared = _pthread_rwlockattr_setpshared
int
-_pthread_rwlockattr_setpshared(pthread_rwlockattr_t *attr, int pshared)
+pthread_rwlockattr_setpshared(pthread_rwlockattr_t *attr, int pshared)
{
rwlattr_t *ap;
@@ -86,9 +83,8 @@ _pthread_rwlockattr_setpshared(pthread_rwlockattr_t *attr, int pshared)
* UNIX98
* pthread_rwlockattr_getpshared: gets the shared attr.
*/
-#pragma weak pthread_rwlockattr_getpshared = _pthread_rwlockattr_getpshared
int
-_pthread_rwlockattr_getpshared(const pthread_rwlockattr_t *attr, int *pshared)
+pthread_rwlockattr_getpshared(const pthread_rwlockattr_t *attr, int *pshared)
{
rwlattr_t *ap;
@@ -105,9 +101,9 @@ _pthread_rwlockattr_getpshared(const pthread_rwlockattr_t *attr, int *pshared)
* pthread_rwlock_init: Initializes the rwlock object. It copies the
* pshared attr into type argument and calls rwlock_init().
*/
-#pragma weak pthread_rwlock_init = _pthread_rwlock_init
int
-_pthread_rwlock_init(pthread_rwlock_t *rwlock, pthread_rwlockattr_t *attr)
+pthread_rwlock_init(pthread_rwlock_t *_RESTRICT_KYWD rwlock,
+ const pthread_rwlockattr_t *_RESTRICT_KYWD attr)
{
rwlattr_t *ap;
int type;
@@ -119,5 +115,5 @@ _pthread_rwlock_init(pthread_rwlock_t *rwlock, pthread_rwlockattr_t *attr)
else
return (EINVAL);
- return (__rwlock_init((rwlock_t *)rwlock, type, NULL));
+ return (rwlock_init((rwlock_t *)rwlock, type, NULL));
}
diff --git a/usr/src/lib/libc/port/threads/pthread.c b/usr/src/lib/libc/port/threads/pthread.c
index 83cc7ec37a..af3ad4b999 100644
--- a/usr/src/lib/libc/port/threads/pthread.c
+++ b/usr/src/lib/libc/port/threads/pthread.c
@@ -73,7 +73,7 @@ _thr_setparam(pthread_t tid, int policy, int prio)
ulwp->ul_rtclassid = cid;
ulwp->ul_cid = cid;
ulwp->ul_pri = prio;
- _membar_producer();
+ membar_producer();
ulwp->ul_policy = policy;
}
ulwp_unlock(ulwp, curthread->ul_uberdata);
@@ -85,9 +85,9 @@ _thr_setparam(pthread_t tid, int policy, int prio)
* pthread_create: creates a thread in the current process.
* calls common _thrp_create() after copying the attributes.
*/
-#pragma weak pthread_create = _pthread_create
+#pragma weak _pthread_create = pthread_create
int
-_pthread_create(pthread_t *thread, const pthread_attr_t *attr,
+pthread_create(pthread_t *thread, const pthread_attr_t *attr,
void * (*start_routine)(void *), void *arg)
{
ulwp_t *self = curthread;
@@ -141,7 +141,7 @@ _pthread_create(pthread_t *thread, const pthread_attr_t *attr,
} else if (thread) {
*thread = tid;
}
- (void) _thr_continue(tid);
+ (void) thr_continue(tid);
}
/* posix version expects EAGAIN for lack of memory */
@@ -154,9 +154,8 @@ _pthread_create(pthread_t *thread, const pthread_attr_t *attr,
* pthread_once: calls given function only once.
* it synchronizes via mutex in pthread_once_t structure
*/
-#pragma weak pthread_once = _pthread_once
int
-_pthread_once(pthread_once_t *once_control, void (*init_routine)(void))
+pthread_once(pthread_once_t *once_control, void (*init_routine)(void))
{
__once_t *once = (__once_t *)once_control;
@@ -169,12 +168,12 @@ _pthread_once(pthread_once_t *once_control, void (*init_routine)(void))
pthread_cleanup_push(mutex_unlock, &once->mlock);
(*init_routine)();
pthread_cleanup_pop(0);
- _membar_producer();
+ membar_producer();
once->once_flag = PTHREAD_ONCE_DONE;
}
(void) mutex_unlock(&once->mlock);
}
- _membar_consumer();
+ membar_consumer();
return (0);
}
@@ -182,9 +181,8 @@ _pthread_once(pthread_once_t *once_control, void (*init_routine)(void))
/*
* pthread_equal: equates two thread ids.
*/
-#pragma weak pthread_equal = _pthread_equal
int
-_pthread_equal(pthread_t t1, pthread_t t2)
+pthread_equal(pthread_t t1, pthread_t t2)
{
return (t1 == t2);
}
@@ -192,9 +190,9 @@ _pthread_equal(pthread_t t1, pthread_t t2)
/*
* pthread_getschedparam: get the thread's sched parameters.
*/
-#pragma weak pthread_getschedparam = _pthread_getschedparam
+#pragma weak _pthread_getschedparam = pthread_getschedparam
int
-_pthread_getschedparam(pthread_t tid, int *policy, struct sched_param *param)
+pthread_getschedparam(pthread_t tid, int *policy, struct sched_param *param)
{
ulwp_t *ulwp;
id_t cid;
@@ -218,7 +216,7 @@ _pthread_getschedparam(pthread_t tid, int *policy, struct sched_param *param)
ulwp->ul_rtclassid = cid;
ulwp->ul_cid = cid;
ulwp->ul_pri = param->sched_priority;
- _membar_producer();
+ membar_producer();
ulwp->ul_policy = *policy;
}
ulwp_unlock(ulwp, curthread->ul_uberdata);
@@ -227,15 +225,15 @@ _pthread_getschedparam(pthread_t tid, int *policy, struct sched_param *param)
return (error);
}
-#pragma weak thr_getprio = _thr_getprio
+#pragma weak _thr_getprio = thr_getprio
int
-_thr_getprio(thread_t tid, int *priority)
+thr_getprio(thread_t tid, int *priority)
{
struct sched_param param;
int policy;
int error;
- if ((error = _pthread_getschedparam(tid, &policy, &param)) == 0)
+ if ((error = pthread_getschedparam(tid, &policy, &param)) == 0)
*priority = param.sched_priority;
return (error);
}
@@ -243,29 +241,26 @@ _thr_getprio(thread_t tid, int *priority)
/*
* pthread_setschedparam: sets the sched parameters for a thread.
*/
-#pragma weak pthread_setschedparam = _pthread_setschedparam
int
-_pthread_setschedparam(pthread_t tid,
+pthread_setschedparam(pthread_t tid,
int policy, const struct sched_param *param)
{
return (_thr_setparam(tid, policy, param->sched_priority));
}
-#pragma weak thr_setprio = _thr_setprio
-#pragma weak pthread_setschedprio = _thr_setprio
-#pragma weak _pthread_setschedprio = _thr_setprio
+#pragma weak pthread_setschedprio = thr_setprio
int
-_thr_setprio(thread_t tid, int prio)
+thr_setprio(thread_t tid, int prio)
{
struct sched_param param;
int policy;
int error;
/*
- * _pthread_getschedparam() has the side-effect of setting
+ * pthread_getschedparam() has the side-effect of setting
* the target thread's ul_policy, ul_pri and ul_cid correctly.
*/
- if ((error = _pthread_getschedparam(tid, &policy, &param)) != 0)
+ if ((error = pthread_getschedparam(tid, &policy, &param)) != 0)
return (error);
if (param.sched_priority == prio) /* no change */
return (0);
diff --git a/usr/src/lib/libc/port/threads/rwlock.c b/usr/src/lib/libc/port/threads/rwlock.c
index 7a8e70b223..582da6b5c4 100644
--- a/usr/src/lib/libc/port/threads/rwlock.c
+++ b/usr/src/lib/libc/port/threads/rwlock.c
@@ -133,12 +133,10 @@ rwl_free(ulwp_t *ulwp)
/*
* Check if a reader version of the lock is held by the current thread.
- * rw_read_is_held() is private to libc.
*/
-#pragma weak rw_read_is_held = _rw_read_held
-#pragma weak rw_read_held = _rw_read_held
+#pragma weak _rw_read_held = rw_read_held
int
-_rw_read_held(rwlock_t *rwlp)
+rw_read_held(rwlock_t *rwlp)
{
volatile uint32_t *rwstate = (volatile uint32_t *)&rwlp->rwlock_readers;
uint32_t readers;
@@ -178,12 +176,10 @@ _rw_read_held(rwlock_t *rwlp)
/*
* Check if a writer version of the lock is held by the current thread.
- * rw_write_is_held() is private to libc.
*/
-#pragma weak rw_write_is_held = _rw_write_held
-#pragma weak rw_write_held = _rw_write_held
+#pragma weak _rw_write_held = rw_write_held
int
-_rw_write_held(rwlock_t *rwlp)
+rw_write_held(rwlock_t *rwlp)
{
volatile uint32_t *rwstate = (volatile uint32_t *)&rwlp->rwlock_readers;
uint32_t readers;
@@ -203,11 +199,10 @@ _rw_write_held(rwlock_t *rwlp)
return (rval);
}
-#pragma weak rwlock_init = __rwlock_init
-#pragma weak _rwlock_init = __rwlock_init
+#pragma weak _rwlock_init = rwlock_init
/* ARGSUSED2 */
int
-__rwlock_init(rwlock_t *rwlp, int type, void *arg)
+rwlock_init(rwlock_t *rwlp, int type, void *arg)
{
if (type != USYNC_THREAD && type != USYNC_PROCESS)
return (EINVAL);
@@ -227,12 +222,10 @@ __rwlock_init(rwlock_t *rwlp, int type, void *arg)
return (0);
}
-#pragma weak rwlock_destroy = __rwlock_destroy
-#pragma weak _rwlock_destroy = __rwlock_destroy
-#pragma weak pthread_rwlock_destroy = __rwlock_destroy
-#pragma weak _pthread_rwlock_destroy = __rwlock_destroy
+#pragma weak pthread_rwlock_destroy = rwlock_destroy
+#pragma weak _rwlock_destroy = rwlock_destroy
int
-__rwlock_destroy(rwlock_t *rwlp)
+rwlock_destroy(rwlock_t *rwlp)
{
/*
* Once destroyed, we can no longer be holding a read or write lock.
@@ -638,7 +631,7 @@ rw_rdlock_impl(rwlock_t *rwlp, timespec_t *tsp)
/*
* If we hold the writer lock, bail out.
*/
- if (rw_write_is_held(rwlp)) {
+ if (rw_write_held(rwlp)) {
if (self->ul_error_detection)
rwlock_error(rwlp, "rwlock_rdlock",
"calling thread owns the writer lock");
@@ -668,12 +661,10 @@ out:
return (error);
}
-#pragma weak rw_rdlock = __rw_rdlock
-#pragma weak _rw_rdlock = __rw_rdlock
-#pragma weak pthread_rwlock_rdlock = __rw_rdlock
-#pragma weak _pthread_rwlock_rdlock = __rw_rdlock
+#pragma weak pthread_rwlock_rdlock = rw_rdlock
+#pragma weak _rw_rdlock = rw_rdlock
int
-__rw_rdlock(rwlock_t *rwlp)
+rw_rdlock(rwlock_t *rwlp)
{
ASSERT(!curthread->ul_critical || curthread->ul_bindflags);
return (rw_rdlock_impl(rwlp, NULL));
@@ -686,31 +677,30 @@ lrw_rdlock(rwlock_t *rwlp)
(void) rw_rdlock_impl(rwlp, NULL);
}
-#pragma weak pthread_rwlock_reltimedrdlock_np = \
- _pthread_rwlock_reltimedrdlock_np
int
-_pthread_rwlock_reltimedrdlock_np(rwlock_t *rwlp, const timespec_t *reltime)
+pthread_rwlock_reltimedrdlock_np(pthread_rwlock_t *_RESTRICT_KYWD rwlp,
+ const struct timespec *_RESTRICT_KYWD reltime)
{
timespec_t tslocal = *reltime;
int error;
ASSERT(!curthread->ul_critical || curthread->ul_bindflags);
- error = rw_rdlock_impl(rwlp, &tslocal);
+ error = rw_rdlock_impl((rwlock_t *)rwlp, &tslocal);
if (error == ETIME)
error = ETIMEDOUT;
return (error);
}
-#pragma weak pthread_rwlock_timedrdlock = _pthread_rwlock_timedrdlock
int
-_pthread_rwlock_timedrdlock(rwlock_t *rwlp, const timespec_t *abstime)
+pthread_rwlock_timedrdlock(pthread_rwlock_t *_RESTRICT_KYWD rwlp,
+ const struct timespec *_RESTRICT_KYWD abstime)
{
timespec_t tslocal;
int error;
ASSERT(!curthread->ul_critical || curthread->ul_bindflags);
abstime_to_reltime(CLOCK_REALTIME, abstime, &tslocal);
- error = rw_rdlock_impl(rwlp, &tslocal);
+ error = rw_rdlock_impl((rwlock_t *)rwlp, &tslocal);
if (error == ETIME)
error = ETIMEDOUT;
return (error);
@@ -727,7 +717,7 @@ rw_wrlock_impl(rwlock_t *rwlp, timespec_t *tsp)
/*
* If we hold a readers lock on this rwlock, bail out.
*/
- if (rw_read_is_held(rwlp)) {
+ if (rw_read_held(rwlp)) {
if (self->ul_error_detection)
rwlock_error(rwlp, "rwlock_wrlock",
"calling thread owns the readers lock");
@@ -738,7 +728,7 @@ rw_wrlock_impl(rwlock_t *rwlp, timespec_t *tsp)
/*
* If we hold the writer lock, bail out.
*/
- if (rw_write_is_held(rwlp)) {
+ if (rw_write_held(rwlp)) {
if (self->ul_error_detection)
rwlock_error(rwlp, "rwlock_wrlock",
"calling thread owns the writer lock");
@@ -769,12 +759,10 @@ out:
return (error);
}
-#pragma weak rw_wrlock = __rw_wrlock
-#pragma weak _rw_wrlock = __rw_wrlock
-#pragma weak pthread_rwlock_wrlock = __rw_wrlock
-#pragma weak _pthread_rwlock_wrlock = __rw_wrlock
+#pragma weak pthread_rwlock_wrlock = rw_wrlock
+#pragma weak _rw_wrlock = rw_wrlock
int
-__rw_wrlock(rwlock_t *rwlp)
+rw_wrlock(rwlock_t *rwlp)
{
ASSERT(!curthread->ul_critical || curthread->ul_bindflags);
return (rw_wrlock_impl(rwlp, NULL));
@@ -787,42 +775,37 @@ lrw_wrlock(rwlock_t *rwlp)
(void) rw_wrlock_impl(rwlp, NULL);
}
-#pragma weak pthread_rwlock_reltimedwrlock_np = \
- _pthread_rwlock_reltimedwrlock_np
int
-_pthread_rwlock_reltimedwrlock_np(rwlock_t *rwlp, const timespec_t *reltime)
+pthread_rwlock_reltimedwrlock_np(pthread_rwlock_t *_RESTRICT_KYWD rwlp,
+ const struct timespec *_RESTRICT_KYWD reltime)
{
timespec_t tslocal = *reltime;
int error;
ASSERT(!curthread->ul_critical || curthread->ul_bindflags);
- error = rw_wrlock_impl(rwlp, &tslocal);
+ error = rw_wrlock_impl((rwlock_t *)rwlp, &tslocal);
if (error == ETIME)
error = ETIMEDOUT;
return (error);
}
-#pragma weak pthread_rwlock_timedwrlock = _pthread_rwlock_timedwrlock
int
-_pthread_rwlock_timedwrlock(rwlock_t *rwlp, const timespec_t *abstime)
+pthread_rwlock_timedwrlock(pthread_rwlock_t *rwlp, const timespec_t *abstime)
{
timespec_t tslocal;
int error;
ASSERT(!curthread->ul_critical || curthread->ul_bindflags);
abstime_to_reltime(CLOCK_REALTIME, abstime, &tslocal);
- error = rw_wrlock_impl(rwlp, &tslocal);
+ error = rw_wrlock_impl((rwlock_t *)rwlp, &tslocal);
if (error == ETIME)
error = ETIMEDOUT;
return (error);
}
-#pragma weak rw_tryrdlock = __rw_tryrdlock
-#pragma weak _rw_tryrdlock = __rw_tryrdlock
-#pragma weak pthread_rwlock_tryrdlock = __rw_tryrdlock
-#pragma weak _pthread_rwlock_tryrdlock = __rw_tryrdlock
+#pragma weak pthread_rwlock_tryrdlock = rw_tryrdlock
int
-__rw_tryrdlock(rwlock_t *rwlp)
+rw_tryrdlock(rwlock_t *rwlp)
{
ulwp_t *self = curthread;
uberdata_t *udp = self->ul_uberdata;
@@ -878,12 +861,9 @@ out:
return (error);
}
-#pragma weak rw_trywrlock = __rw_trywrlock
-#pragma weak _rw_trywrlock = __rw_trywrlock
-#pragma weak pthread_rwlock_trywrlock = __rw_trywrlock
-#pragma weak _pthread_rwlock_trywrlock = __rw_trywrlock
+#pragma weak pthread_rwlock_trywrlock = rw_trywrlock
int
-__rw_trywrlock(rwlock_t *rwlp)
+rw_trywrlock(rwlock_t *rwlp)
{
ulwp_t *self = curthread;
uberdata_t *udp = self->ul_uberdata;
@@ -920,12 +900,10 @@ __rw_trywrlock(rwlock_t *rwlp)
return (error);
}
-#pragma weak rw_unlock = __rw_unlock
-#pragma weak _rw_unlock = __rw_unlock
-#pragma weak pthread_rwlock_unlock = __rw_unlock
-#pragma weak _pthread_rwlock_unlock = __rw_unlock
+#pragma weak pthread_rwlock_unlock = rw_unlock
+#pragma weak _rw_unlock = rw_unlock
int
-__rw_unlock(rwlock_t *rwlp)
+rw_unlock(rwlock_t *rwlp)
{
volatile uint32_t *rwstate = (volatile uint32_t *)&rwlp->rwlock_readers;
uint32_t readers;
@@ -951,7 +929,7 @@ __rw_unlock(rwlock_t *rwlp)
* Since the writer lock is held, we'd better be
* holding it, else we cannot legitimately be here.
*/
- if (!rw_write_is_held(rwlp)) {
+ if (!rw_write_held(rwlp)) {
if (self->ul_error_detection)
rwlock_error(rwlp, "rwlock_unlock",
"writer lock held, "
@@ -1041,6 +1019,6 @@ out:
void
lrw_unlock(rwlock_t *rwlp)
{
- (void) __rw_unlock(rwlp);
+ (void) rw_unlock(rwlp);
exit_critical(curthread);
}
diff --git a/usr/src/lib/libc/port/threads/scalls.c b/usr/src/lib/libc/port/threads/scalls.c
index ceb227c9d5..c90ab6cbde 100644
--- a/usr/src/lib/libc/port/threads/scalls.c
+++ b/usr/src/lib/libc/port/threads/scalls.c
@@ -39,6 +39,46 @@
#include <sys/door.h>
/*
+ * These leading-underbar symbols exist because mistakes were made
+ * in the past that put them into non-SUNWprivate versions of
+ * the libc mapfiles. They should be eliminated, but oh well...
+ */
+#pragma weak _fork = fork
+#pragma weak _read = read
+#pragma weak _write = write
+#pragma weak _getmsg = getmsg
+#pragma weak _getpmsg = getpmsg
+#pragma weak _putmsg = putmsg
+#pragma weak _putpmsg = putpmsg
+#pragma weak _sleep = sleep
+#pragma weak _close = close
+#pragma weak _creat = creat
+#pragma weak _fcntl = fcntl
+#pragma weak _fsync = fsync
+#pragma weak _lockf = lockf
+#pragma weak _msgrcv = msgrcv
+#pragma weak _msgsnd = msgsnd
+#pragma weak _msync = msync
+#pragma weak _open = open
+#pragma weak _openat = openat
+#pragma weak _pause = pause
+#pragma weak _readv = readv
+#pragma weak _sigpause = sigpause
+#pragma weak _sigsuspend = sigsuspend
+#pragma weak _tcdrain = tcdrain
+#pragma weak _waitid = waitid
+#pragma weak _writev = writev
+
+#if !defined(_LP64)
+#pragma weak _creat64 = creat64
+#pragma weak _lockf64 = lockf64
+#pragma weak _open64 = open64
+#pragma weak _openat64 = openat64
+#pragma weak _pread64 = pread64
+#pragma weak _pwrite64 = pwrite64
+#endif
+
+/*
* atfork_lock protects the pthread_atfork() data structures.
*
* fork_lock does double-duty. Not only does it (and atfork_lock)
@@ -100,9 +140,8 @@ callout_lock_exit(void)
cancel_safe_mutex_unlock(&curthread->ul_uberdata->callout_lock);
}
-#pragma weak forkx = _forkx
pid_t
-_forkx(int flags)
+forkx(int flags)
{
ulwp_t *self = curthread;
uberdata_t *udp = self->ul_uberdata;
@@ -213,22 +252,19 @@ _forkx(int flags)
* The forkall() interface exists for applications that require
* the semantics of replicating all threads.
*/
-#pragma weak fork1 = _fork
-#pragma weak _fork1 = _fork
-#pragma weak fork = _fork
+#pragma weak fork1 = fork
pid_t
-_fork(void)
+fork(void)
{
- return (_forkx(0));
+ return (forkx(0));
}
/*
* Much of the logic here is the same as in forkx().
* See the comments in forkx(), above.
*/
-#pragma weak forkallx = _forkallx
pid_t
-_forkallx(int flags)
+forkallx(int flags)
{
ulwp_t *self = curthread;
uberdata_t *udp = self->ul_uberdata;
@@ -281,11 +317,10 @@ _forkallx(int flags)
return (pid);
}
-#pragma weak forkall = _forkall
pid_t
-_forkall(void)
+forkall(void)
{
- return (_forkallx(0));
+ return (forkallx(0));
}
/*
@@ -303,7 +338,7 @@ _forkall(void)
if (!self->ul_cancel_disabled) { \
self->ul_cancel_async = 1; \
if (self->ul_cancel_pending) \
- _pthread_exit(PTHREAD_CANCELED); \
+ pthread_exit(PTHREAD_CANCELED); \
} \
self->ul_sp = stkptr(); \
} else if (self->ul_cancel_pending && \
@@ -374,7 +409,7 @@ _forkall(void)
self->ul_sigsuspend = 0;\
restore_signals(self); \
} \
- _pthread_exit(PTHREAD_CANCELED);\
+ pthread_exit(PTHREAD_CANCELED); \
} \
} \
self->ul_sp = stkptr(); \
@@ -415,7 +450,7 @@ _cancel_prologue(void)
if (!self->ul_cancel_disabled) {
self->ul_cancel_async = 1;
if (self->ul_cancel_pending)
- _pthread_exit(PTHREAD_CANCELED);
+ pthread_exit(PTHREAD_CANCELED);
}
self->ul_sp = stkptr();
} else if (self->ul_cancel_pending &&
@@ -452,9 +487,8 @@ lwp_wait(thread_t tid, thread_t *found)
return (error);
}
-#pragma weak read = _read
ssize_t
-_read(int fd, void *buf, size_t size)
+read(int fd, void *buf, size_t size)
{
extern ssize_t __read(int, void *, size_t);
ssize_t rv;
@@ -462,9 +496,8 @@ _read(int fd, void *buf, size_t size)
PERFORM(__read(fd, buf, size))
}
-#pragma weak write = _write
ssize_t
-_write(int fd, const void *buf, size_t size)
+write(int fd, const void *buf, size_t size)
{
extern ssize_t __write(int, const void *, size_t);
ssize_t rv;
@@ -472,9 +505,8 @@ _write(int fd, const void *buf, size_t size)
PERFORM(__write(fd, buf, size))
}
-#pragma weak getmsg = _getmsg
int
-_getmsg(int fd, struct strbuf *ctlptr, struct strbuf *dataptr,
+getmsg(int fd, struct strbuf *ctlptr, struct strbuf *dataptr,
int *flagsp)
{
extern int __getmsg(int, struct strbuf *, struct strbuf *, int *);
@@ -483,9 +515,8 @@ _getmsg(int fd, struct strbuf *ctlptr, struct strbuf *dataptr,
PERFORM(__getmsg(fd, ctlptr, dataptr, flagsp))
}
-#pragma weak getpmsg = _getpmsg
int
-_getpmsg(int fd, struct strbuf *ctlptr, struct strbuf *dataptr,
+getpmsg(int fd, struct strbuf *ctlptr, struct strbuf *dataptr,
int *bandp, int *flagsp)
{
extern int __getpmsg(int, struct strbuf *, struct strbuf *,
@@ -495,9 +526,8 @@ _getpmsg(int fd, struct strbuf *ctlptr, struct strbuf *dataptr,
PERFORM(__getpmsg(fd, ctlptr, dataptr, bandp, flagsp))
}
-#pragma weak putmsg = _putmsg
int
-_putmsg(int fd, const struct strbuf *ctlptr,
+putmsg(int fd, const struct strbuf *ctlptr,
const struct strbuf *dataptr, int flags)
{
extern int __putmsg(int, const struct strbuf *,
@@ -518,9 +548,8 @@ __xpg4_putmsg(int fd, const struct strbuf *ctlptr,
PERFORM(__putmsg(fd, ctlptr, dataptr, flags|MSG_XPG4))
}
-#pragma weak putpmsg = _putpmsg
int
-_putpmsg(int fd, const struct strbuf *ctlptr,
+putpmsg(int fd, const struct strbuf *ctlptr,
const struct strbuf *dataptr, int band, int flags)
{
extern int __putpmsg(int, const struct strbuf *,
@@ -541,9 +570,8 @@ __xpg4_putpmsg(int fd, const struct strbuf *ctlptr,
PERFORM(__putpmsg(fd, ctlptr, dataptr, band, flags|MSG_XPG4))
}
-#pragma weak nanosleep = _nanosleep
int
-_nanosleep(const timespec_t *rqtp, timespec_t *rmtp)
+nanosleep(const timespec_t *rqtp, timespec_t *rmtp)
{
int error;
@@ -557,9 +585,8 @@ _nanosleep(const timespec_t *rqtp, timespec_t *rmtp)
return (0);
}
-#pragma weak clock_nanosleep = _clock_nanosleep
int
-_clock_nanosleep(clockid_t clock_id, int flags,
+clock_nanosleep(clockid_t clock_id, int flags,
const timespec_t *rqtp, timespec_t *rmtp)
{
timespec_t reltime;
@@ -634,9 +661,8 @@ restart:
return (error);
}
-#pragma weak sleep = _sleep
unsigned int
-_sleep(unsigned int sec)
+sleep(unsigned int sec)
{
unsigned int rem = 0;
timespec_t ts;
@@ -644,7 +670,7 @@ _sleep(unsigned int sec)
ts.tv_sec = (time_t)sec;
ts.tv_nsec = 0;
- if (_nanosleep(&ts, &tsr) == -1 && errno == EINTR) {
+ if (nanosleep(&ts, &tsr) == -1 && errno == EINTR) {
rem = (unsigned int)tsr.tv_sec;
if (tsr.tv_nsec >= NANOSEC / 2)
rem++;
@@ -652,21 +678,19 @@ _sleep(unsigned int sec)
return (rem);
}
-#pragma weak usleep = _usleep
int
-_usleep(useconds_t usec)
+usleep(useconds_t usec)
{
timespec_t ts;
ts.tv_sec = usec / MICROSEC;
ts.tv_nsec = (long)(usec % MICROSEC) * 1000;
- (void) _nanosleep(&ts, NULL);
+ (void) nanosleep(&ts, NULL);
return (0);
}
-#pragma weak close = _close
int
-_close(int fildes)
+close(int fildes)
{
extern void _aio_close(int);
extern int __close(int);
@@ -684,9 +708,8 @@ _close(int fildes)
PERFORM(__close(fildes))
}
-#pragma weak creat = _creat
int
-_creat(const char *path, mode_t mode)
+creat(const char *path, mode_t mode)
{
extern int __creat(const char *, mode_t);
int rv;
@@ -695,9 +718,8 @@ _creat(const char *path, mode_t mode)
}
#if !defined(_LP64)
-#pragma weak creat64 = _creat64
int
-_creat64(const char *path, mode_t mode)
+creat64(const char *path, mode_t mode)
{
extern int __creat64(const char *, mode_t);
int rv;
@@ -706,9 +728,8 @@ _creat64(const char *path, mode_t mode)
}
#endif /* !_LP64 */
-#pragma weak door_call = _door_call
int
-_door_call(int d, door_arg_t *params)
+door_call(int d, door_arg_t *params)
{
extern int __door_call(int, door_arg_t *);
int rv;
@@ -716,9 +737,8 @@ _door_call(int d, door_arg_t *params)
PERFORM(__door_call(d, params))
}
-#pragma weak fcntl = _fcntl
int
-_fcntl(int fildes, int cmd, ...)
+fcntl(int fildes, int cmd, ...)
{
extern int __fcntl(int, int, ...);
intptr_t arg;
@@ -733,9 +753,8 @@ _fcntl(int fildes, int cmd, ...)
PERFORM(__fcntl(fildes, cmd, arg))
}
-#pragma weak fdatasync = _fdatasync
int
-_fdatasync(int fildes)
+fdatasync(int fildes)
{
extern int __fdsync(int, int);
int rv;
@@ -743,9 +762,8 @@ _fdatasync(int fildes)
PERFORM(__fdsync(fildes, FDSYNC))
}
-#pragma weak fsync = _fsync
int
-_fsync(int fildes)
+fsync(int fildes)
{
extern int __fdsync(int, int);
int rv;
@@ -753,9 +771,8 @@ _fsync(int fildes)
PERFORM(__fdsync(fildes, FSYNC))
}
-#pragma weak lockf = _lockf
int
-_lockf(int fildes, int function, off_t size)
+lockf(int fildes, int function, off_t size)
{
extern int __lockf(int, int, off_t);
int rv;
@@ -764,9 +781,8 @@ _lockf(int fildes, int function, off_t size)
}
#if !defined(_LP64)
-#pragma weak lockf64 = _lockf64
int
-_lockf64(int fildes, int function, off64_t size)
+lockf64(int fildes, int function, off64_t size)
{
extern int __lockf64(int, int, off64_t);
int rv;
@@ -775,9 +791,8 @@ _lockf64(int fildes, int function, off64_t size)
}
#endif /* !_LP64 */
-#pragma weak msgrcv = _msgrcv
ssize_t
-_msgrcv(int msqid, void *msgp, size_t msgsz, long msgtyp, int msgflg)
+msgrcv(int msqid, void *msgp, size_t msgsz, long msgtyp, int msgflg)
{
extern ssize_t __msgrcv(int, void *, size_t, long, int);
ssize_t rv;
@@ -785,9 +800,8 @@ _msgrcv(int msqid, void *msgp, size_t msgsz, long msgtyp, int msgflg)
PERFORM(__msgrcv(msqid, msgp, msgsz, msgtyp, msgflg))
}
-#pragma weak msgsnd = _msgsnd
int
-_msgsnd(int msqid, const void *msgp, size_t msgsz, int msgflg)
+msgsnd(int msqid, const void *msgp, size_t msgsz, int msgflg)
{
extern int __msgsnd(int, const void *, size_t, int);
int rv;
@@ -795,9 +809,8 @@ _msgsnd(int msqid, const void *msgp, size_t msgsz, int msgflg)
PERFORM(__msgsnd(msqid, msgp, msgsz, msgflg))
}
-#pragma weak msync = _msync
int
-_msync(caddr_t addr, size_t len, int flags)
+msync(caddr_t addr, size_t len, int flags)
{
extern int __msync(caddr_t, size_t, int);
int rv;
@@ -805,9 +818,8 @@ _msync(caddr_t addr, size_t len, int flags)
PERFORM(__msync(addr, len, flags))
}
-#pragma weak open = _open
int
-_open(const char *path, int oflag, ...)
+open(const char *path, int oflag, ...)
{
extern int __open(const char *, int, ...);
mode_t mode;
@@ -820,9 +832,8 @@ _open(const char *path, int oflag, ...)
PERFORM(__open(path, oflag, mode))
}
-#pragma weak openat = _openat
int
-_openat(int fd, const char *path, int oflag, ...)
+openat(int fd, const char *path, int oflag, ...)
{
extern int __openat(int, const char *, int, ...);
mode_t mode;
@@ -836,9 +847,8 @@ _openat(int fd, const char *path, int oflag, ...)
}
#if !defined(_LP64)
-#pragma weak open64 = _open64
int
-_open64(const char *path, int oflag, ...)
+open64(const char *path, int oflag, ...)
{
extern int __open64(const char *, int, ...);
mode_t mode;
@@ -851,9 +861,8 @@ _open64(const char *path, int oflag, ...)
PERFORM(__open64(path, oflag, mode))
}
-#pragma weak openat64 = _openat64
int
-_openat64(int fd, const char *path, int oflag, ...)
+openat64(int fd, const char *path, int oflag, ...)
{
extern int __openat64(int, const char *, int, ...);
mode_t mode;
@@ -867,9 +876,8 @@ _openat64(int fd, const char *path, int oflag, ...)
}
#endif /* !_LP64 */
-#pragma weak pause = _pause
int
-_pause(void)
+pause(void)
{
extern int __pause(void);
int rv;
@@ -877,9 +885,8 @@ _pause(void)
PERFORM(__pause())
}
-#pragma weak pread = _pread
ssize_t
-_pread(int fildes, void *buf, size_t nbyte, off_t offset)
+pread(int fildes, void *buf, size_t nbyte, off_t offset)
{
extern ssize_t __pread(int, void *, size_t, off_t);
ssize_t rv;
@@ -888,9 +895,8 @@ _pread(int fildes, void *buf, size_t nbyte, off_t offset)
}
#if !defined(_LP64)
-#pragma weak pread64 = _pread64
ssize_t
-_pread64(int fildes, void *buf, size_t nbyte, off64_t offset)
+pread64(int fildes, void *buf, size_t nbyte, off64_t offset)
{
extern ssize_t __pread64(int, void *, size_t, off64_t);
ssize_t rv;
@@ -899,9 +905,8 @@ _pread64(int fildes, void *buf, size_t nbyte, off64_t offset)
}
#endif /* !_LP64 */
-#pragma weak pwrite = _pwrite
ssize_t
-_pwrite(int fildes, const void *buf, size_t nbyte, off_t offset)
+pwrite(int fildes, const void *buf, size_t nbyte, off_t offset)
{
extern ssize_t __pwrite(int, const void *, size_t, off_t);
ssize_t rv;
@@ -910,9 +915,8 @@ _pwrite(int fildes, const void *buf, size_t nbyte, off_t offset)
}
#if !defined(_LP64)
-#pragma weak pwrite64 = _pwrite64
ssize_t
-_pwrite64(int fildes, const void *buf, size_t nbyte, off64_t offset)
+pwrite64(int fildes, const void *buf, size_t nbyte, off64_t offset)
{
extern ssize_t __pwrite64(int, const void *, size_t, off64_t);
ssize_t rv;
@@ -921,9 +925,8 @@ _pwrite64(int fildes, const void *buf, size_t nbyte, off64_t offset)
}
#endif /* !_LP64 */
-#pragma weak readv = _readv
ssize_t
-_readv(int fildes, const struct iovec *iov, int iovcnt)
+readv(int fildes, const struct iovec *iov, int iovcnt)
{
extern ssize_t __readv(int, const struct iovec *, int);
ssize_t rv;
@@ -931,9 +934,8 @@ _readv(int fildes, const struct iovec *iov, int iovcnt)
PERFORM(__readv(fildes, iov, iovcnt))
}
-#pragma weak sigpause = _sigpause
int
-_sigpause(int sig)
+sigpause(int sig)
{
extern int __sigpause(int);
int rv;
@@ -941,9 +943,8 @@ _sigpause(int sig)
PERFORM(__sigpause(sig))
}
-#pragma weak sigsuspend = _sigsuspend
int
-_sigsuspend(const sigset_t *set)
+sigsuspend(const sigset_t *set)
{
extern int __sigsuspend(const sigset_t *);
int rv;
@@ -968,9 +969,8 @@ _pollsys(struct pollfd *fds, nfds_t nfd, const timespec_t *timeout,
return (rv);
}
-#pragma weak sigtimedwait = _sigtimedwait
int
-_sigtimedwait(const sigset_t *set, siginfo_t *infop, const timespec_t *timeout)
+sigtimedwait(const sigset_t *set, siginfo_t *infop, const timespec_t *timeout)
{
extern int __sigtimedwait(const sigset_t *, siginfo_t *,
const timespec_t *);
@@ -996,23 +996,20 @@ _sigtimedwait(const sigset_t *set, siginfo_t *infop, const timespec_t *timeout)
return (sig);
}
-#pragma weak sigwait = _sigwait
int
-_sigwait(sigset_t *set)
+sigwait(sigset_t *set)
{
- return (_sigtimedwait(set, NULL, NULL));
+ return (sigtimedwait(set, NULL, NULL));
}
-#pragma weak sigwaitinfo = _sigwaitinfo
int
-_sigwaitinfo(const sigset_t *set, siginfo_t *info)
+sigwaitinfo(const sigset_t *set, siginfo_t *info)
{
- return (_sigtimedwait(set, info, NULL));
+ return (sigtimedwait(set, info, NULL));
}
-#pragma weak sigqueue = _sigqueue
int
-_sigqueue(pid_t pid, int signo, const union sigval value)
+sigqueue(pid_t pid, int signo, const union sigval value)
{
extern int __sigqueue(pid_t pid, int signo,
/* const union sigval */ void *value, int si_code, int block);
@@ -1095,9 +1092,8 @@ _so_sendto(int sock, const void *buf, size_t len, int flags,
PERFORM(__so_sendto(sock, buf, len, flags, addr, addrlen))
}
-#pragma weak tcdrain = _tcdrain
int
-_tcdrain(int fildes)
+tcdrain(int fildes)
{
extern int __tcdrain(int);
int rv;
@@ -1105,9 +1101,8 @@ _tcdrain(int fildes)
PERFORM(__tcdrain(fildes))
}
-#pragma weak waitid = _waitid
int
-_waitid(idtype_t idtype, id_t id, siginfo_t *infop, int options)
+waitid(idtype_t idtype, id_t id, siginfo_t *infop, int options)
{
extern int __waitid(idtype_t, id_t, siginfo_t *, int);
int rv;
@@ -1117,9 +1112,8 @@ _waitid(idtype_t idtype, id_t id, siginfo_t *infop, int options)
PERFORM(__waitid(idtype, id, infop, options))
}
-#pragma weak writev = _writev
ssize_t
-_writev(int fildes, const struct iovec *iov, int iovcnt)
+writev(int fildes, const struct iovec *iov, int iovcnt)
{
extern ssize_t __writev(int, const struct iovec *, int);
ssize_t rv;
diff --git a/usr/src/lib/libc/port/threads/sema.c b/usr/src/lib/libc/port/threads/sema.c
index 4e58123bd7..d0882fe75e 100644
--- a/usr/src/lib/libc/port/threads/sema.c
+++ b/usr/src/lib/libc/port/threads/sema.c
@@ -34,17 +34,17 @@ static uint32_t _semvaluemax;
/*
* Check to see if anyone is waiting for this semaphore.
*/
-#pragma weak sema_held = _sema_held
+#pragma weak _sema_held = sema_held
int
-_sema_held(sema_t *sp)
+sema_held(sema_t *sp)
{
return (sp->count == 0);
}
-#pragma weak sema_init = _sema_init
-/* ARGSUSED2 */
+#pragma weak _sema_init = sema_init
+/* ARGSUSED3 */
int
-_sema_init(sema_t *sp, unsigned int count, int type, void *arg)
+sema_init(sema_t *sp, unsigned int count, int type, void *arg)
{
if (_semvaluemax == 0)
_semvaluemax = (uint32_t)_sysconf(_SC_SEM_VALUE_MAX);
@@ -58,9 +58,9 @@ _sema_init(sema_t *sp, unsigned int count, int type, void *arg)
return (0);
}
-#pragma weak sema_destroy = _sema_destroy
+#pragma weak _sema_destroy = sema_destroy
int
-_sema_destroy(sema_t *sp)
+sema_destroy(sema_t *sp)
{
sp->magic = 0;
tdb_sync_obj_deregister(sp);
@@ -186,17 +186,16 @@ sema_wait_impl(sema_t *sp, timespec_t *tsp)
return (error);
}
-#pragma weak sema_wait = _sema_wait
+#pragma weak _sema_wait = sema_wait
int
-_sema_wait(sema_t *sp)
+sema_wait(sema_t *sp)
{
ASSERT(!curthread->ul_critical || curthread->ul_bindflags);
return (sema_wait_impl(sp, NULL));
}
-#pragma weak sema_reltimedwait = _sema_reltimedwait
int
-_sema_reltimedwait(sema_t *sp, timespec_t *reltime)
+sema_reltimedwait(sema_t *sp, const timespec_t *reltime)
{
timespec_t tslocal = *reltime;
@@ -204,9 +203,8 @@ _sema_reltimedwait(sema_t *sp, timespec_t *reltime)
return (sema_wait_impl(sp, &tslocal));
}
-#pragma weak sema_timedwait = _sema_timedwait
int
-_sema_timedwait(sema_t *sp, timespec_t *abstime)
+sema_timedwait(sema_t *sp, const timespec_t *abstime)
{
timespec_t tslocal;
@@ -215,9 +213,9 @@ _sema_timedwait(sema_t *sp, timespec_t *abstime)
return (sema_wait_impl(sp, &tslocal));
}
-#pragma weak sema_trywait = _sema_trywait
+#pragma weak _sema_trywait = sema_trywait
int
-_sema_trywait(sema_t *sp)
+sema_trywait(sema_t *sp)
{
lwp_sema_t *lsp = (lwp_sema_t *)sp;
ulwp_t *self = curthread;
@@ -232,7 +230,7 @@ _sema_trywait(sema_t *sp)
tdb_incr(ssp->sema_trywait);
if (lsp->type == USYNC_PROCESS) { /* kernel-level */
- error = __lwp_sema_trywait(lsp);
+ error = _lwp_sema_trywait(lsp);
} else if (!udp->uberflags.uf_mt) { /* single threaded */
sigoff(self);
if (lsp->count == 0)
@@ -282,9 +280,9 @@ _sema_trywait(sema_t *sp)
return (error);
}
-#pragma weak sema_post = _sema_post
+#pragma weak _sema_post = sema_post
int
-_sema_post(sema_t *sp)
+sema_post(sema_t *sp)
{
lwp_sema_t *lsp = (lwp_sema_t *)sp;
ulwp_t *self = curthread;
@@ -299,7 +297,7 @@ _sema_post(sema_t *sp)
_semvaluemax = (uint32_t)_sysconf(_SC_SEM_VALUE_MAX);
if (lsp->type == USYNC_PROCESS) { /* kernel-level */
- error = __lwp_sema_post(lsp);
+ error = _lwp_sema_post(lsp);
} else if (!udp->uberflags.uf_mt) { /* single threaded */
sigoff(self);
if (lsp->count >= _semvaluemax)
diff --git a/usr/src/lib/libc/port/threads/sigaction.c b/usr/src/lib/libc/port/threads/sigaction.c
index 4eb5ff659d..ccc9203ecd 100644
--- a/usr/src/lib/libc/port/threads/sigaction.c
+++ b/usr/src/lib/libc/port/threads/sigaction.c
@@ -27,14 +27,21 @@
#pragma ident "%Z%%M% %I% %E% SMI"
#include "lint.h"
+#include <sys/feature_tests.h>
+/*
+ * setcontext() really can return, if UC_CPU is not specified.
+ * Make the compiler shut up about it.
+ */
+#if defined(__NORETURN)
+#undef __NORETURN
+#endif
+#define __NORETURN
#include "thr_uberdata.h"
#include "asyncio.h"
#include <signal.h>
#include <siginfo.h>
#include <sys/systm.h>
-extern int _setcontext(const ucontext_t *);
-
const sigset_t maskset = {MASKSET0, MASKSET1, 0, 0}; /* maskable signals */
/*
@@ -171,10 +178,10 @@ call_user_handler(int sig, siginfo_t *sip, ucontext_t *ucp)
* we are an aio worker thread, cancel the aio request.
*/
if (sig == SIGAIOCANCEL) {
- aio_worker_t *aiowp = _pthread_getspecific(_aio_key);
+ aio_worker_t *aiowp = pthread_getspecific(_aio_key);
if (sip != NULL && sip->si_code == SI_LWP && aiowp != NULL)
- _siglongjmp(aiowp->work_jmp_buf, 1);
+ siglongjmp(aiowp->work_jmp_buf, 1);
/* SIGLWP is ignored by default */
if (uact.sa_sigaction == SIG_DFL ||
uact.sa_sigaction == SIG_IGN)
@@ -206,8 +213,8 @@ call_user_handler(int sig, siginfo_t *sip, ucontext_t *ucp)
#endif /* sparc */
out:
- (void) _setcontext(ucp);
- thr_panic("call_user_handler(): _setcontext() returned");
+ (void) setcontext(ucp);
+ thr_panic("call_user_handler(): setcontext() returned");
}
/*
@@ -327,7 +334,7 @@ sigacthandler(int sig, siginfo_t *sip, void *uvp)
* Return to the previous context with all signals blocked.
* We will restore the signal mask in take_deferred_signal().
* Note that we are calling the system call trap here, not
- * the _setcontext() wrapper. We don't want to change the
+ * the setcontext() wrapper. We don't want to change the
* thread's ul_sigmask by this operation.
*/
ucp->uc_sigmask = maskset;
@@ -335,9 +342,9 @@ sigacthandler(int sig, siginfo_t *sip, void *uvp)
thr_panic("sigacthandler(): __setcontext() returned");
}
-#pragma weak sigaction = _sigaction
+#pragma weak _sigaction = sigaction
int
-_sigaction(int sig, const struct sigaction *nact, struct sigaction *oact)
+sigaction(int sig, const struct sigaction *nact, struct sigaction *oact)
{
ulwp_t *self = curthread;
uberdata_t *udp = self->ul_uberdata;
@@ -494,9 +501,9 @@ set_setcontext_enforcement(int on)
setcontext_enforcement = on;
}
-#pragma weak setcontext = _setcontext
+#pragma weak _setcontext = setcontext
int
-_setcontext(const ucontext_t *ucp)
+setcontext(const ucontext_t *ucp)
{
ulwp_t *self = curthread;
int ret;
@@ -507,7 +514,7 @@ _setcontext(const ucontext_t *ucp)
* the thread to exit. See setcontext(2) and makecontext(3C).
*/
if (ucp == NULL)
- _thr_exit(NULL);
+ thr_exit(NULL);
(void) memcpy(&uc, ucp, sizeof (uc));
/*
@@ -566,11 +573,9 @@ _setcontext(const ucontext_t *ucp)
return (ret);
}
-#pragma weak thr_sigsetmask = _thr_sigsetmask
-#pragma weak pthread_sigmask = _thr_sigsetmask
-#pragma weak _pthread_sigmask = _thr_sigsetmask
+#pragma weak _thr_sigsetmask = thr_sigsetmask
int
-_thr_sigsetmask(int how, const sigset_t *set, sigset_t *oset)
+thr_sigsetmask(int how, const sigset_t *set, sigset_t *oset)
{
ulwp_t *self = curthread;
sigset_t saveset;
@@ -620,9 +625,16 @@ _thr_sigsetmask(int how, const sigset_t *set, sigset_t *oset)
return (0);
}
-#pragma weak sigprocmask = _sigprocmask
+#pragma weak _pthread_sigmask = pthread_sigmask
+int
+pthread_sigmask(int how, const sigset_t *set, sigset_t *oset)
+{
+ return (thr_sigsetmask(how, set, oset));
+}
+
+#pragma weak _sigprocmask = sigprocmask
int
-_sigprocmask(int how, const sigset_t *set, sigset_t *oset)
+sigprocmask(int how, const sigset_t *set, sigset_t *oset)
{
int error;
@@ -632,7 +644,7 @@ _sigprocmask(int how, const sigset_t *set, sigset_t *oset)
if (curthread->ul_vfork)
return (__lwp_sigmask(how, set, oset));
- if ((error = _thr_sigsetmask(how, set, oset)) != 0) {
+ if ((error = thr_sigsetmask(how, set, oset)) != 0) {
errno = error;
return (-1);
}
@@ -698,7 +710,7 @@ do_sigcancel(void)
!self->ul_cancel_disabled &&
self->ul_libc_locks == 0 &&
!self->ul_cancelable)
- _pthread_exit(PTHREAD_CANCELED);
+ pthread_exit(PTHREAD_CANCELED);
set_cancel_pending_flag(self, 0);
}
diff --git a/usr/src/lib/libc/port/threads/spawn.c b/usr/src/lib/libc/port/threads/spawn.c
index cf28f44b99..8743133b9c 100644
--- a/usr/src/lib/libc/port/threads/spawn.c
+++ b/usr/src/lib/libc/port/threads/spawn.c
@@ -65,8 +65,6 @@ typedef struct file_attr {
int fa_newfiledes; /* new file descriptor for dup2() */
} file_attr_t;
-extern pid_t _vforkx(int);
-#pragma unknown_control_flow(_vforkx)
extern int __lwp_sigmask(int, const sigset_t *, sigset_t *);
extern int __sigaction(int, const struct sigaction *, struct sigaction *);
@@ -185,13 +183,12 @@ get_error(int *errp)
* (with a defunct owner) and we would deadlock ourself if we invoked it.
*
* Therefore, all of the functions we call here after returning from
- * _vforkx() in the child are not and must never be exported from libc
+ * vforkx() in the child are not and must never be exported from libc
* as global symbols. To do so would risk invoking the dynamic linker.
*/
-#pragma weak posix_spawn = _posix_spawn
int
-_posix_spawn(
+posix_spawn(
pid_t *pidp,
const char *path,
const posix_spawn_file_actions_t *file_actions,
@@ -207,7 +204,7 @@ _posix_spawn(
if (attrp != NULL && sap == NULL)
return (EINVAL);
- switch (pid = _vforkx(forkflags(sap))) {
+ switch (pid = vforkx(forkflags(sap))) {
case 0: /* child */
break;
case -1: /* parent, failure */
@@ -267,10 +264,9 @@ execat(const char *s1, const char *s2, char *si)
return (*s1? ++s1: NULL);
}
-#pragma weak posix_spawnp = _posix_spawnp
/* ARGSUSED */
int
-_posix_spawnp(
+posix_spawnp(
pid_t *pidp,
const char *file,
const posix_spawn_file_actions_t *file_actions,
@@ -309,7 +305,7 @@ _posix_spawnp(
continue;
newargs = alloca((argc + 2) * sizeof (char *));
- switch (pid = _vforkx(forkflags(sap))) {
+ switch (pid = vforkx(forkflags(sap))) {
case 0: /* child */
break;
case -1: /* parent, failure */
@@ -392,20 +388,16 @@ _posix_spawnp(
return (0); /* not reached */
}
-#pragma weak posix_spawn_file_actions_init = \
- _posix_spawn_file_actions_init
int
-_posix_spawn_file_actions_init(
+posix_spawn_file_actions_init(
posix_spawn_file_actions_t *file_actions)
{
file_actions->__file_attrp = NULL;
return (0);
}
-#pragma weak posix_spawn_file_actions_destroy = \
- _posix_spawn_file_actions_destroy
int
-_posix_spawn_file_actions_destroy(
+posix_spawn_file_actions_destroy(
posix_spawn_file_actions_t *file_actions)
{
file_attr_t *froot = file_actions->__file_attrp;
@@ -440,10 +432,8 @@ add_file_attr(posix_spawn_file_actions_t *file_actions, file_attr_t *fap)
}
}
-#pragma weak posix_spawn_file_actions_addopen = \
- _posix_spawn_file_actions_addopen
int
-_posix_spawn_file_actions_addopen(
+posix_spawn_file_actions_addopen(
posix_spawn_file_actions_t *file_actions,
int filedes,
const char *path,
@@ -473,10 +463,8 @@ _posix_spawn_file_actions_addopen(
return (0);
}
-#pragma weak posix_spawn_file_actions_addclose = \
- _posix_spawn_file_actions_addclose
int
-_posix_spawn_file_actions_addclose(
+posix_spawn_file_actions_addclose(
posix_spawn_file_actions_t *file_actions,
int filedes)
{
@@ -494,10 +482,8 @@ _posix_spawn_file_actions_addclose(
return (0);
}
-#pragma weak posix_spawn_file_actions_adddup2 = \
- _posix_spawn_file_actions_adddup2
int
-_posix_spawn_file_actions_adddup2(
+posix_spawn_file_actions_adddup2(
posix_spawn_file_actions_t *file_actions,
int filedes,
int newfiledes)
@@ -517,10 +503,8 @@ _posix_spawn_file_actions_adddup2(
return (0);
}
-#pragma weak posix_spawnattr_init = \
- _posix_spawnattr_init
int
-_posix_spawnattr_init(
+posix_spawnattr_init(
posix_spawnattr_t *attr)
{
if ((attr->__spawn_attrp = lmalloc(sizeof (posix_spawnattr_t))) == NULL)
@@ -531,10 +515,8 @@ _posix_spawnattr_init(
return (0);
}
-#pragma weak posix_spawnattr_destroy = \
- _posix_spawnattr_destroy
int
-_posix_spawnattr_destroy(
+posix_spawnattr_destroy(
posix_spawnattr_t *attr)
{
spawn_attr_t *sap = attr->__spawn_attrp;
@@ -550,10 +532,8 @@ _posix_spawnattr_destroy(
return (0);
}
-#pragma weak posix_spawnattr_setflags = \
- _posix_spawnattr_setflags
int
-_posix_spawnattr_setflags(
+posix_spawnattr_setflags(
posix_spawnattr_t *attr,
short flags)
{
@@ -567,10 +547,8 @@ _posix_spawnattr_setflags(
return (0);
}
-#pragma weak posix_spawnattr_getflags = \
- _posix_spawnattr_getflags
int
-_posix_spawnattr_getflags(
+posix_spawnattr_getflags(
const posix_spawnattr_t *attr,
short *flags)
{
@@ -583,10 +561,8 @@ _posix_spawnattr_getflags(
return (0);
}
-#pragma weak posix_spawnattr_setpgroup = \
- _posix_spawnattr_setpgroup
int
-_posix_spawnattr_setpgroup(
+posix_spawnattr_setpgroup(
posix_spawnattr_t *attr,
pid_t pgroup)
{
@@ -599,10 +575,8 @@ _posix_spawnattr_setpgroup(
return (0);
}
-#pragma weak posix_spawnattr_getpgroup = \
- _posix_spawnattr_getpgroup
int
-_posix_spawnattr_getpgroup(
+posix_spawnattr_getpgroup(
const posix_spawnattr_t *attr,
pid_t *pgroup)
{
@@ -615,10 +589,8 @@ _posix_spawnattr_getpgroup(
return (0);
}
-#pragma weak posix_spawnattr_setschedparam = \
- _posix_spawnattr_setschedparam
int
-_posix_spawnattr_setschedparam(
+posix_spawnattr_setschedparam(
posix_spawnattr_t *attr,
const struct sched_param *schedparam)
{
@@ -634,10 +606,8 @@ _posix_spawnattr_setschedparam(
return (0);
}
-#pragma weak posix_spawnattr_getschedparam = \
- _posix_spawnattr_getschedparam
int
-_posix_spawnattr_getschedparam(
+posix_spawnattr_getschedparam(
const posix_spawnattr_t *attr,
struct sched_param *schedparam)
{
@@ -650,10 +620,8 @@ _posix_spawnattr_getschedparam(
return (0);
}
-#pragma weak posix_spawnattr_setschedpolicy = \
- _posix_spawnattr_setschedpolicy
int
-_posix_spawnattr_setschedpolicy(
+posix_spawnattr_setschedpolicy(
posix_spawnattr_t *attr,
int schedpolicy)
{
@@ -673,10 +641,8 @@ _posix_spawnattr_setschedpolicy(
return (0);
}
-#pragma weak posix_spawnattr_getschedpolicy = \
- _posix_spawnattr_getschedpolicy
int
-_posix_spawnattr_getschedpolicy(
+posix_spawnattr_getschedpolicy(
const posix_spawnattr_t *attr,
int *schedpolicy)
{
@@ -689,10 +655,8 @@ _posix_spawnattr_getschedpolicy(
return (0);
}
-#pragma weak posix_spawnattr_setsigdefault = \
- _posix_spawnattr_setsigdefault
int
-_posix_spawnattr_setsigdefault(
+posix_spawnattr_setsigdefault(
posix_spawnattr_t *attr,
const sigset_t *sigdefault)
{
@@ -705,10 +669,8 @@ _posix_spawnattr_setsigdefault(
return (0);
}
-#pragma weak posix_spawnattr_getsigdefault = \
- _posix_spawnattr_getsigdefault
int
-_posix_spawnattr_getsigdefault(
+posix_spawnattr_getsigdefault(
const posix_spawnattr_t *attr,
sigset_t *sigdefault)
{
@@ -721,10 +683,8 @@ _posix_spawnattr_getsigdefault(
return (0);
}
-#pragma weak posix_spawnattr_setsigmask = \
- _posix_spawnattr_setsigmask
int
-_posix_spawnattr_setsigmask(
+posix_spawnattr_setsigmask(
posix_spawnattr_t *attr,
const sigset_t *sigmask)
{
@@ -737,10 +697,8 @@ _posix_spawnattr_setsigmask(
return (0);
}
-#pragma weak posix_spawnattr_getsigmask = \
- _posix_spawnattr_getsigmask
int
-_posix_spawnattr_getsigmask(
+posix_spawnattr_getsigmask(
const posix_spawnattr_t *attr,
sigset_t *sigmask)
{
diff --git a/usr/src/lib/libc/port/threads/synch.c b/usr/src/lib/libc/port/threads/synch.c
index 7bc1347e9a..83795070b6 100644
--- a/usr/src/lib/libc/port/threads/synch.c
+++ b/usr/src/lib/libc/port/threads/synch.c
@@ -26,8 +26,6 @@
#pragma ident "%Z%%M% %I% %E% SMI"
-#define atomic_cas_64 _atomic_cas_64
-
#include "lint.h"
#include "thr_uberdata.h"
#include <sys/rtpriocntl.h>
@@ -125,11 +123,10 @@ int thread_queue_spin = 10000;
* LOCK_PRIO_PROTECT
* LOCK_ROBUST
*/
-#pragma weak mutex_init = __mutex_init
-#pragma weak _mutex_init = __mutex_init
+#pragma weak _mutex_init = mutex_init
/* ARGSUSED2 */
int
-__mutex_init(mutex_t *mp, int type, void *arg)
+mutex_init(mutex_t *mp, int type, void *arg)
{
int basetype = (type & ~ALL_ATTRIBUTES);
const pcclass_t *pccp;
@@ -169,15 +166,14 @@ __mutex_init(mutex_t *mp, int type, void *arg)
* atomic_or_16() to set the LOCK_INITED flag so as
* not to disturb surrounding bits (LOCK_OWNERDEAD, etc).
*/
- extern void _atomic_or_16(volatile uint16_t *, uint16_t);
if (!(mp->mutex_flag & LOCK_INITED)) {
mp->mutex_type = (uint8_t)type;
- _atomic_or_16(&mp->mutex_flag, LOCK_INITED);
+ atomic_or_16(&mp->mutex_flag, LOCK_INITED);
mp->mutex_magic = MUTEX_MAGIC;
} else if (type != mp->mutex_type ||
((type & LOCK_PRIO_PROTECT) && mp->mutex_ceiling != ceil)) {
error = EINVAL;
- } else if (__mutex_consistent(mp) != 0) {
+ } else if (mutex_consistent(mp) != 0) {
error = EBUSY;
}
/* register a process robust mutex with the kernel */
@@ -1107,19 +1103,16 @@ setup_schedctl(void)
* Interfaces from libsched, incorporated into libc.
* libsched.so.1 is now a filter library onto libc.
*/
-#pragma weak schedctl_lookup = _schedctl_init
-#pragma weak _schedctl_lookup = _schedctl_init
-#pragma weak schedctl_init = _schedctl_init
+#pragma weak schedctl_lookup = schedctl_init
schedctl_t *
-_schedctl_init(void)
+schedctl_init(void)
{
volatile sc_shared_t *scp = setup_schedctl();
return ((scp == NULL)? NULL : (schedctl_t *)&scp->sc_preemptctl);
}
-#pragma weak schedctl_exit = _schedctl_exit
void
-_schedctl_exit(void)
+schedctl_exit(void)
{
}
@@ -1820,7 +1813,7 @@ mutex_lock_queue(ulwp_t *self, tdb_mutex_stats_t *msp, mutex_t *mp,
static int
mutex_recursion(mutex_t *mp, int mtype, int try)
{
- ASSERT(mutex_is_held(mp));
+ ASSERT(mutex_held(mp));
ASSERT(mtype & (LOCK_RECURSIVE|LOCK_ERRORCHECK));
ASSERT(try == MUTEX_TRY || try == MUTEX_LOCK);
@@ -1859,12 +1852,12 @@ register_lock(mutex_t *mp)
lmutex_lock(&udp->tdb_hash_lock);
if ((table = udp->robustlocks) == NULL) {
table = lmalloc(LOCKHASHSZ * sizeof (robust_t *));
- _membar_producer();
+ membar_producer();
udp->robustlocks = table;
}
lmutex_unlock(&udp->tdb_hash_lock);
}
- _membar_consumer();
+ membar_consumer();
/*
* First search the registered table with no locks held.
@@ -1898,7 +1891,7 @@ register_lock(mutex_t *mp)
(void) ___lwp_mutex_register(mp);
rlp = lmalloc(sizeof (*rlp));
rlp->robust_lock = mp;
- _membar_producer();
+ membar_producer();
*rlpp = rlp;
lmutex_unlock(&udp->tdb_hash_lock);
@@ -1956,11 +1949,11 @@ mutex_lock_internal(mutex_t *mp, timespec_t *tsp, int try)
if (msp && try == MUTEX_TRY)
tdb_incr(msp->mutex_try);
- if ((mtype & (LOCK_RECURSIVE|LOCK_ERRORCHECK)) && mutex_is_held(mp))
+ if ((mtype & (LOCK_RECURSIVE|LOCK_ERRORCHECK)) && mutex_held(mp))
return (mutex_recursion(mp, mtype, try));
if (self->ul_error_detection && try == MUTEX_LOCK &&
- tsp == NULL && mutex_is_held(mp))
+ tsp == NULL && mutex_held(mp))
lock_error(mp, "mutex_lock", NULL, NULL);
if ((mtype & LOCK_PRIO_PROTECT) && noceil == 0) {
@@ -2166,53 +2159,48 @@ mutex_lock_impl(mutex_t *mp, timespec_t *tsp)
return (mutex_lock_internal(mp, tsp, MUTEX_LOCK));
}
-#pragma weak mutex_lock = __mutex_lock
-#pragma weak _mutex_lock = __mutex_lock
-#pragma weak pthread_mutex_lock = __mutex_lock
-#pragma weak _pthread_mutex_lock = __mutex_lock
+#pragma weak pthread_mutex_lock = mutex_lock
+#pragma weak _mutex_lock = mutex_lock
int
-__mutex_lock(mutex_t *mp)
+mutex_lock(mutex_t *mp)
{
ASSERT(!curthread->ul_critical || curthread->ul_bindflags);
return (mutex_lock_impl(mp, NULL));
}
-#pragma weak pthread_mutex_timedlock = _pthread_mutex_timedlock
int
-_pthread_mutex_timedlock(mutex_t *mp, const timespec_t *abstime)
+pthread_mutex_timedlock(pthread_mutex_t *_RESTRICT_KYWD mp,
+ const struct timespec *_RESTRICT_KYWD abstime)
{
timespec_t tslocal;
int error;
ASSERT(!curthread->ul_critical || curthread->ul_bindflags);
abstime_to_reltime(CLOCK_REALTIME, abstime, &tslocal);
- error = mutex_lock_impl(mp, &tslocal);
+ error = mutex_lock_impl((mutex_t *)mp, &tslocal);
if (error == ETIME)
error = ETIMEDOUT;
return (error);
}
-#pragma weak pthread_mutex_reltimedlock_np = _pthread_mutex_reltimedlock_np
int
-_pthread_mutex_reltimedlock_np(mutex_t *mp, const timespec_t *reltime)
+pthread_mutex_reltimedlock_np(pthread_mutex_t *_RESTRICT_KYWD mp,
+ const struct timespec *_RESTRICT_KYWD reltime)
{
timespec_t tslocal;
int error;
ASSERT(!curthread->ul_critical || curthread->ul_bindflags);
tslocal = *reltime;
- error = mutex_lock_impl(mp, &tslocal);
+ error = mutex_lock_impl((mutex_t *)mp, &tslocal);
if (error == ETIME)
error = ETIMEDOUT;
return (error);
}
-#pragma weak mutex_trylock = __mutex_trylock
-#pragma weak _mutex_trylock = __mutex_trylock
-#pragma weak pthread_mutex_trylock = __mutex_trylock
-#pragma weak _pthread_mutex_trylock = __mutex_trylock
+#pragma weak pthread_mutex_trylock = mutex_trylock
int
-__mutex_trylock(mutex_t *mp)
+mutex_trylock(mutex_t *mp)
{
ulwp_t *self = curthread;
uberdata_t *udp = self->ul_uberdata;
@@ -2283,10 +2271,10 @@ mutex_unlock_internal(mutex_t *mp, int retain_robust_flags)
int release_all;
lwpid_t lwpid;
- if ((mtype & LOCK_ERRORCHECK) && !mutex_is_held(mp))
+ if ((mtype & LOCK_ERRORCHECK) && !mutex_held(mp))
return (EPERM);
- if (self->ul_error_detection && !mutex_is_held(mp))
+ if (self->ul_error_detection && !mutex_held(mp))
lock_error(mp, "mutex_unlock", NULL, NULL);
if ((mtype & LOCK_RECURSIVE) && mp->mutex_rcount != 0) {
@@ -2333,12 +2321,10 @@ mutex_unlock_internal(mutex_t *mp, int retain_robust_flags)
return (error);
}
-#pragma weak mutex_unlock = __mutex_unlock
-#pragma weak _mutex_unlock = __mutex_unlock
-#pragma weak pthread_mutex_unlock = __mutex_unlock
-#pragma weak _pthread_mutex_unlock = __mutex_unlock
+#pragma weak pthread_mutex_unlock = mutex_unlock
+#pragma weak _mutex_unlock = mutex_unlock
int
-__mutex_unlock(mutex_t *mp)
+mutex_unlock(mutex_t *mp)
{
ulwp_t *self = curthread;
int mtype = mp->mutex_type;
@@ -2435,7 +2421,7 @@ slow_unlock:
/*
* Internally to the library, almost all mutex lock/unlock actions
* go through these lmutex_ functions, to protect critical regions.
- * We replicate a bit of code from __mutex_lock() and __mutex_unlock()
+ * We replicate a bit of code from mutex_lock() and mutex_unlock()
* to make these functions faster since we know that the mutex type
* of all internal locks is USYNC_THREAD. We also know that internal
* locking can never fail, so we panic if it does.
@@ -2626,7 +2612,7 @@ cancel_safe_mutex_unlock(mutex_t *mp)
!(self->ul_vfork | self->ul_nocancel |
self->ul_critical | self->ul_sigdefer) &&
cancel_active())
- _pthread_exit(PTHREAD_CANCELED);
+ pthread_exit(PTHREAD_CANCELED);
}
static int
@@ -2652,18 +2638,9 @@ shared_mutex_held(mutex_t *mparg)
return (MUTEX_OWNED(mp, self) && mp->mutex_ownerpid == udp->pid);
}
-/*
- * Some crufty old programs define their own version of _mutex_held()
- * to be simply return(1). This breaks internal libc logic, so we
- * define a private version for exclusive use by libc, mutex_is_held(),
- * and also a new public function, __mutex_held(), to be used in new
- * code to circumvent these crufty old programs.
- */
-#pragma weak mutex_held = mutex_is_held
-#pragma weak _mutex_held = mutex_is_held
-#pragma weak __mutex_held = mutex_is_held
+#pragma weak _mutex_held = mutex_held
int
-mutex_is_held(mutex_t *mparg)
+mutex_held(mutex_t *mparg)
{
volatile mutex_t *mp = (volatile mutex_t *)mparg;
@@ -2672,12 +2649,10 @@ mutex_is_held(mutex_t *mparg)
return (MUTEX_OWNED(mp, curthread));
}
-#pragma weak mutex_destroy = __mutex_destroy
-#pragma weak _mutex_destroy = __mutex_destroy
-#pragma weak pthread_mutex_destroy = __mutex_destroy
-#pragma weak _pthread_mutex_destroy = __mutex_destroy
+#pragma weak pthread_mutex_destroy = mutex_destroy
+#pragma weak _mutex_destroy = mutex_destroy
int
-__mutex_destroy(mutex_t *mp)
+mutex_destroy(mutex_t *mp)
{
if (mp->mutex_type & USYNC_PROCESS)
forget_lock(mp);
@@ -2686,18 +2661,15 @@ __mutex_destroy(mutex_t *mp)
return (0);
}
-#pragma weak mutex_consistent = __mutex_consistent
-#pragma weak _mutex_consistent = __mutex_consistent
-#pragma weak pthread_mutex_consistent_np = __mutex_consistent
-#pragma weak _pthread_mutex_consistent_np = __mutex_consistent
+#pragma weak pthread_mutex_consistent_np = mutex_consistent
int
-__mutex_consistent(mutex_t *mp)
+mutex_consistent(mutex_t *mp)
{
/*
* Do this only for an inconsistent, initialized robust lock
* that we hold. For all other cases, return EINVAL.
*/
- if (mutex_is_held(mp) &&
+ if (mutex_held(mp) &&
(mp->mutex_type & LOCK_ROBUST) &&
(mp->mutex_flag & LOCK_INITED) &&
(mp->mutex_flag & (LOCK_OWNERDEAD | LOCK_UNMAPPED))) {
@@ -2713,9 +2685,8 @@ __mutex_consistent(mutex_t *mp)
* but we use the same data structure for them.
*/
-#pragma weak pthread_spin_init = _pthread_spin_init
int
-_pthread_spin_init(pthread_spinlock_t *lock, int pshared)
+pthread_spin_init(pthread_spinlock_t *lock, int pshared)
{
mutex_t *mp = (mutex_t *)lock;
@@ -2729,17 +2700,15 @@ _pthread_spin_init(pthread_spinlock_t *lock, int pshared)
return (0);
}
-#pragma weak pthread_spin_destroy = _pthread_spin_destroy
int
-_pthread_spin_destroy(pthread_spinlock_t *lock)
+pthread_spin_destroy(pthread_spinlock_t *lock)
{
(void) memset(lock, 0, sizeof (*lock));
return (0);
}
-#pragma weak pthread_spin_trylock = _pthread_spin_trylock
int
-_pthread_spin_trylock(pthread_spinlock_t *lock)
+pthread_spin_trylock(pthread_spinlock_t *lock)
{
mutex_t *mp = (mutex_t *)lock;
ulwp_t *self = curthread;
@@ -2758,9 +2727,8 @@ _pthread_spin_trylock(pthread_spinlock_t *lock)
return (error);
}
-#pragma weak pthread_spin_lock = _pthread_spin_lock
int
-_pthread_spin_lock(pthread_spinlock_t *lock)
+pthread_spin_lock(pthread_spinlock_t *lock)
{
mutex_t *mp = (mutex_t *)lock;
ulwp_t *self = curthread;
@@ -2797,9 +2765,8 @@ _pthread_spin_lock(pthread_spinlock_t *lock)
return (0);
}
-#pragma weak pthread_spin_unlock = _pthread_spin_unlock
int
-_pthread_spin_unlock(pthread_spinlock_t *lock)
+pthread_spin_unlock(pthread_spinlock_t *lock)
{
mutex_t *mp = (mutex_t *)lock;
ulwp_t *self = curthread;
@@ -2942,7 +2909,7 @@ heldlock_exit(void)
* We avoid that case here.
*/
if ((mp = *lockptr) != NULL &&
- mutex_is_held(mp) &&
+ mutex_held(mp) &&
(mp->mutex_type & (LOCK_ROBUST | LOCK_PRIO_INHERIT)) ==
LOCK_ROBUST) {
mp->mutex_rcount = 0;
@@ -2955,10 +2922,10 @@ heldlock_exit(void)
heldlock_free(self);
}
-#pragma weak cond_init = _cond_init
+#pragma weak _cond_init = cond_init
/* ARGSUSED2 */
int
-_cond_init(cond_t *cvp, int type, void *arg)
+cond_init(cond_t *cvp, int type, void *arg)
{
if (type != USYNC_THREAD && type != USYNC_PROCESS)
return (EINVAL);
@@ -3091,7 +3058,7 @@ cond_sleep_queue(cond_t *cvp, mutex_t *mp, timespec_t *tsp)
* then perform another cond_signal() to avoid consuming it.
*/
if (error && signalled)
- (void) cond_signal_internal(cvp);
+ (void) cond_signal(cvp);
return (error);
}
@@ -3213,7 +3180,7 @@ cond_wait_kernel(cond_t *cvp, mutex_t *mp, timespec_t *tsp)
}
/*
- * Common code for _cond_wait() and _cond_timedwait()
+ * Common code for cond_wait() and cond_timedwait()
*/
int
cond_wait_common(cond_t *cvp, mutex_t *mp, timespec_t *tsp)
@@ -3261,7 +3228,7 @@ cond_wait_common(cond_t *cvp, mutex_t *mp, timespec_t *tsp)
begin_sleep = gethrtime();
if (self->ul_error_detection) {
- if (!mutex_is_held(mp))
+ if (!mutex_held(mp))
lock_error(mp, "cond_wait", cvp, NULL);
if ((mtype & LOCK_RECURSIVE) && mp->mutex_rcount != 0)
lock_error(mp, "recursive mutex in cond_wait",
@@ -3309,8 +3276,8 @@ cond_wait_common(cond_t *cvp, mutex_t *mp, timespec_t *tsp)
}
/*
- * cond_wait() and _cond_wait() are cancellation points but __cond_wait()
- * is not. Internally, libc calls the non-cancellation version.
+ * cond_wait() is a cancellation point but __cond_wait() is not.
+ * Internally, libc calls the non-cancellation version.
* Other libraries need to use pthread_setcancelstate(), as appropriate,
* since __cond_wait() is not exported from libc.
*/
@@ -3337,9 +3304,9 @@ __cond_wait(cond_t *cvp, mutex_t *mp)
return (cond_wait_common(cvp, mp, NULL));
}
-#pragma weak cond_wait = _cond_wait
+#pragma weak _cond_wait = cond_wait
int
-_cond_wait(cond_t *cvp, mutex_t *mp)
+cond_wait(cond_t *cvp, mutex_t *mp)
{
int error;
@@ -3355,19 +3322,18 @@ _cond_wait(cond_t *cvp, mutex_t *mp)
/*
* pthread_cond_wait() is a cancellation point.
*/
-#pragma weak pthread_cond_wait = _pthread_cond_wait
int
-_pthread_cond_wait(cond_t *cvp, mutex_t *mp)
+pthread_cond_wait(pthread_cond_t *_RESTRICT_KYWD cvp,
+ pthread_mutex_t *_RESTRICT_KYWD mp)
{
int error;
- error = _cond_wait(cvp, mp);
+ error = cond_wait((cond_t *)cvp, (mutex_t *)mp);
return ((error == EINTR)? 0 : error);
}
/*
- * cond_timedwait() and _cond_timedwait() are cancellation points
- * but __cond_timedwait() is not.
+ * cond_timedwait() is a cancellation point but __cond_timedwait() is not.
*/
int
__cond_timedwait(cond_t *cvp, mutex_t *mp, const timespec_t *abstime)
@@ -3394,9 +3360,8 @@ __cond_timedwait(cond_t *cvp, mutex_t *mp, const timespec_t *abstime)
return (error);
}
-#pragma weak cond_timedwait = _cond_timedwait
int
-_cond_timedwait(cond_t *cvp, mutex_t *mp, const timespec_t *abstime)
+cond_timedwait(cond_t *cvp, mutex_t *mp, const timespec_t *abstime)
{
int error;
@@ -3412,13 +3377,14 @@ _cond_timedwait(cond_t *cvp, mutex_t *mp, const timespec_t *abstime)
/*
* pthread_cond_timedwait() is a cancellation point.
*/
-#pragma weak pthread_cond_timedwait = _pthread_cond_timedwait
int
-_pthread_cond_timedwait(cond_t *cvp, mutex_t *mp, const timespec_t *abstime)
+pthread_cond_timedwait(pthread_cond_t *_RESTRICT_KYWD cvp,
+ pthread_mutex_t *_RESTRICT_KYWD mp,
+ const struct timespec *_RESTRICT_KYWD abstime)
{
int error;
- error = _cond_timedwait(cvp, mp, abstime);
+ error = cond_timedwait((cond_t *)cvp, (mutex_t *)mp, abstime);
if (error == ETIME)
error = ETIMEDOUT;
else if (error == EINTR)
@@ -3427,8 +3393,7 @@ _pthread_cond_timedwait(cond_t *cvp, mutex_t *mp, const timespec_t *abstime)
}
/*
- * cond_reltimedwait() and _cond_reltimedwait() are cancellation points
- * but __cond_reltimedwait() is not.
+ * cond_reltimedwait() is a cancellation point but __cond_reltimedwait() is not.
*/
int
__cond_reltimedwait(cond_t *cvp, mutex_t *mp, const timespec_t *reltime)
@@ -3438,9 +3403,8 @@ __cond_reltimedwait(cond_t *cvp, mutex_t *mp, const timespec_t *reltime)
return (cond_wait_common(cvp, mp, &tslocal));
}
-#pragma weak cond_reltimedwait = _cond_reltimedwait
int
-_cond_reltimedwait(cond_t *cvp, mutex_t *mp, const timespec_t *reltime)
+cond_reltimedwait(cond_t *cvp, mutex_t *mp, const timespec_t *reltime)
{
int error;
@@ -3453,14 +3417,14 @@ _cond_reltimedwait(cond_t *cvp, mutex_t *mp, const timespec_t *reltime)
return (error);
}
-#pragma weak pthread_cond_reltimedwait_np = _pthread_cond_reltimedwait_np
int
-_pthread_cond_reltimedwait_np(cond_t *cvp, mutex_t *mp,
- const timespec_t *reltime)
+pthread_cond_reltimedwait_np(pthread_cond_t *_RESTRICT_KYWD cvp,
+ pthread_mutex_t *_RESTRICT_KYWD mp,
+ const struct timespec *_RESTRICT_KYWD reltime)
{
int error;
- error = _cond_reltimedwait(cvp, mp, reltime);
+ error = cond_reltimedwait((cond_t *)cvp, (mutex_t *)mp, reltime);
if (error == ETIME)
error = ETIMEDOUT;
else if (error == EINTR)
@@ -3468,12 +3432,10 @@ _pthread_cond_reltimedwait_np(cond_t *cvp, mutex_t *mp,
return (error);
}
-#pragma weak pthread_cond_signal = cond_signal_internal
-#pragma weak _pthread_cond_signal = cond_signal_internal
-#pragma weak cond_signal = cond_signal_internal
-#pragma weak _cond_signal = cond_signal_internal
+#pragma weak pthread_cond_signal = cond_signal
+#pragma weak _cond_signal = cond_signal
int
-cond_signal_internal(cond_t *cvp)
+cond_signal(cond_t *cvp)
{
ulwp_t *self = curthread;
uberdata_t *udp = self->ul_uberdata;
@@ -3492,7 +3454,7 @@ cond_signal_internal(cond_t *cvp)
tdb_incr(csp->cond_signal);
if (cvp->cond_waiters_kernel) /* someone sleeping in the kernel? */
- error = __lwp_cond_signal(cvp);
+ error = _lwp_cond_signal(cvp);
if (!cvp->cond_waiters_user) /* no one sleeping at user-level */
return (error);
@@ -3601,12 +3563,10 @@ alloc_lwpids(lwpid_t *lwpid, int *nlwpid_ptr, int *maxlwps_ptr)
return (lwpid);
}
-#pragma weak pthread_cond_broadcast = cond_broadcast_internal
-#pragma weak _pthread_cond_broadcast = cond_broadcast_internal
-#pragma weak cond_broadcast = cond_broadcast_internal
-#pragma weak _cond_broadcast = cond_broadcast_internal
+#pragma weak pthread_cond_broadcast = cond_broadcast
+#pragma weak _cond_broadcast = cond_broadcast
int
-cond_broadcast_internal(cond_t *cvp)
+cond_broadcast(cond_t *cvp)
{
ulwp_t *self = curthread;
uberdata_t *udp = self->ul_uberdata;
@@ -3627,7 +3587,7 @@ cond_broadcast_internal(cond_t *cvp)
tdb_incr(csp->cond_broadcast);
if (cvp->cond_waiters_kernel) /* someone sleeping in the kernel? */
- error = __lwp_cond_broadcast(cvp);
+ error = _lwp_cond_broadcast(cvp);
if (!cvp->cond_waiters_user) /* no one sleeping at user-level */
return (error);
@@ -3699,11 +3659,9 @@ cond_broadcast_internal(cond_t *cvp)
return (error);
}
-#pragma weak pthread_cond_destroy = _cond_destroy
-#pragma weak _pthread_cond_destroy = _cond_destroy
-#pragma weak cond_destroy = _cond_destroy
+#pragma weak pthread_cond_destroy = cond_destroy
int
-_cond_destroy(cond_t *cvp)
+cond_destroy(cond_t *cvp)
{
cvp->cond_magic = 0;
tdb_sync_obj_deregister(cvp);
@@ -3745,9 +3703,6 @@ record_spin_locks(ulwp_t *ulwp)
/*
* atexit function: dump the queue statistics to stderr.
*/
-#if !defined(__lint)
-#define fprintf _fprintf
-#endif
#include <stdio.h>
void
dump_queue_statistics(void)
diff --git a/usr/src/lib/libc/port/threads/tdb_agent.c b/usr/src/lib/libc/port/threads/tdb_agent.c
index 519fd4e439..919f0473f4 100644
--- a/usr/src/lib/libc/port/threads/tdb_agent.c
+++ b/usr/src/lib/libc/port/threads/tdb_agent.c
@@ -218,7 +218,7 @@ initialize_sync_hash()
tdbp->tdb_register_count = 1;
/* assign to tdb_sync_addr_hash only after fully initialized */
- _membar_producer();
+ membar_producer();
tdbp->tdb_sync_addr_hash = addr_hash;
lmutex_unlock(&udp->tdb_hash_lock);
}
@@ -269,7 +269,7 @@ tdb_sync_obj_register(void *addr, int *new)
goto out;
}
}
- _membar_consumer();
+ membar_consumer();
sapp = &tdbp->tdb_sync_addr_hash[tdb_addr_hash(addr)];
if (udp->uberflags.uf_tdb_register_sync == REGISTER_SYNC_ON) {
diff --git a/usr/src/lib/libc/port/threads/thr.c b/usr/src/lib/libc/port/threads/thr.c
index 17625cb61c..2a23b6bd88 100644
--- a/usr/src/lib/libc/port/threads/thr.c
+++ b/usr/src/lib/libc/port/threads/thr.c
@@ -34,6 +34,17 @@
#include <ctype.h>
#include "libc.h"
+/*
+ * These symbols should not be exported from libc, but
+ * /lib/libm.so.2 references _thr_main. libm needs to be fixed.
+ * Also, some older versions of the Studio compiler/debugger
+ * components reference them. These need to be fixed, too.
+ */
+#pragma weak _thr_main = thr_main
+#pragma weak _thr_create = thr_create
+#pragma weak _thr_join = thr_join
+#pragma weak _thr_self = thr_self
+
#undef errno
extern int errno;
@@ -243,7 +254,7 @@ dead_and_buried(ulwp_t *ulwp)
if (ulwp->ul_lwpid == (lwpid_t)(-1))
return (1);
if (ulwp->ul_dead && ulwp->ul_detached &&
- __lwp_kill(ulwp->ul_lwpid, 0) == ESRCH) {
+ _lwp_kill(ulwp->ul_lwpid, 0) == ESRCH) {
ulwp->ul_lwpid = (lwpid_t)(-1);
return (1);
}
@@ -512,7 +523,7 @@ ulwp_broadcast(ulwp_t *ulwp)
uberdata_t *udp = self->ul_uberdata;
ASSERT(MUTEX_OWNED(ulwp_mutex(ulwp, udp), self));
- (void) cond_broadcast_internal(ulwp_condvar(ulwp, udp));
+ (void) cond_broadcast(ulwp_condvar(ulwp, udp));
}
/*
@@ -591,7 +602,7 @@ _thrp_create(void *stk, size_t stksize, void *(*func)(void *), void *arg,
if (flags & THR_DAEMON)
lwp_flags |= LWP_DAEMON;
- /* creating a thread: enforce mt-correctness in _mutex_lock() */
+ /* creating a thread: enforce mt-correctness in mutex_lock() */
self->ul_async_safe = 1;
/* per-thread copies of global variables, for speed */
@@ -635,12 +646,12 @@ _thrp_create(void *stk, size_t stksize, void *(*func)(void *), void *arg,
_fpinherit(ulwp);
/*
* Defer signals on the new thread until its TLS constructors
- * have been called. _thr_setup() will call sigon() after
+ * have been called. _thrp_setup() will call sigon() after
* it has called tls_setup().
*/
ulwp->ul_sigdefer = 1;
- if (setup_context(&uc, _thr_setup, ulwp,
+ if (setup_context(&uc, _thrp_setup, ulwp,
(caddr_t)ulwp->ul_stk + ulwp->ul_guardsize, stksize) != 0)
error = EAGAIN;
@@ -702,9 +713,8 @@ _thrp_create(void *stk, size_t stksize, void *(*func)(void *), void *arg,
return (0);
}
-#pragma weak thr_create = _thr_create
int
-_thr_create(void *stk, size_t stksize, void *(*func)(void *), void *arg,
+thr_create(void *stk, size_t stksize, void *(*func)(void *), void *arg,
long flags, thread_t *new_thread)
{
return (_thrp_create(stk, stksize, func, arg, flags, new_thread, 0));
@@ -714,7 +724,7 @@ _thr_create(void *stk, size_t stksize, void *(*func)(void *), void *arg,
* A special cancellation cleanup hook for DCE.
* cleanuphndlr, when it is not NULL, will contain a callback
* function to be called before a thread is terminated in
- * _thr_exit() as a result of being cancelled.
+ * thr_exit() as a result of being cancelled.
*/
static void (*cleanuphndlr)(void) = NULL;
@@ -887,8 +897,8 @@ collect_queue_statistics()
}
#endif
-void
-_thr_exit_common(void *status, int unwind)
+static void __NORETURN
+_thrp_exit_common(void *status, int unwind)
{
ulwp_t *self = curthread;
int cancelled = (self->ul_cancel_pending && status == PTHREAD_CANCELED);
@@ -919,7 +929,7 @@ _thr_exit_common(void *status, int unwind)
* bad behavior. Such signals will be lost to the process
* when the thread finishes exiting.
*/
- (void) _thr_sigsetmask(SIG_SETMASK, &maskset, NULL);
+ (void) thr_sigsetmask(SIG_SETMASK, &maskset, NULL);
sigoff(self);
self->ul_rval = status;
@@ -938,7 +948,10 @@ _thr_exit_common(void *status, int unwind)
* It never returns.
*/
_thrp_unwind(NULL);
- thr_panic("_thr_exit_common(): _thrp_unwind() returned");
+ thr_panic("_thrp_exit_common(): _thrp_unwind() returned");
+
+ for (;;) /* to shut the compiler up about __NORETURN */
+ continue;
}
/*
@@ -946,18 +959,17 @@ _thr_exit_common(void *status, int unwind)
* We are at the top of the stack; no unwinding is necessary.
*/
void
-_thr_terminate(void *status)
+_thrp_terminate(void *status)
{
- _thr_exit_common(status, 0);
+ _thrp_exit_common(status, 0);
}
-#pragma weak thr_exit = _thr_exit
-#pragma weak pthread_exit = _thr_exit
-#pragma weak _pthread_exit = _thr_exit
+#pragma weak pthread_exit = thr_exit
+#pragma weak _thr_exit = thr_exit
void
-_thr_exit(void *status)
+thr_exit(void *status)
{
- _thr_exit_common(status, 1);
+ _thrp_exit_common(status, 1);
}
int
@@ -1047,9 +1059,8 @@ _thrp_join(thread_t tid, thread_t *departed, void **status, int do_cancel)
return (0);
}
-#pragma weak thr_join = _thr_join
int
-_thr_join(thread_t tid, thread_t *departed, void **status)
+thr_join(thread_t tid, thread_t *departed, void **status)
{
int error = _thrp_join(tid, departed, status, 1);
return ((error == EINVAL)? ESRCH : error);
@@ -1061,17 +1072,15 @@ _thr_join(thread_t tid, thread_t *departed, void **status)
* and hence does not have a "departed" argument.
* It returns EINVAL if tid refers to a detached thread.
*/
-#pragma weak pthread_join = _pthread_join
+#pragma weak _pthread_join = pthread_join
int
-_pthread_join(pthread_t tid, void **status)
+pthread_join(pthread_t tid, void **status)
{
return ((tid == 0)? ESRCH : _thrp_join(tid, NULL, status, 1));
}
-#pragma weak pthread_detach = _thr_detach
-#pragma weak _pthread_detach = _thr_detach
int
-_thr_detach(thread_t tid)
+pthread_detach(pthread_t tid)
{
uberdata_t *udp = curthread->ul_uberdata;
ulwp_t *ulwp;
@@ -1094,20 +1103,6 @@ _thr_detach(thread_t tid)
return (error);
}
-/*
- * Static local string compare function to avoid calling strncmp()
- * (and hence the dynamic linker) during library initialization.
- */
-static int
-sncmp(const char *s1, const char *s2, size_t n)
-{
- n++;
- while (--n != 0 && *s1 == *s2++)
- if (*s1++ == '\0')
- return (0);
- return (n == 0 ? 0 : *(uchar_t *)s1 - *(uchar_t *)--s2);
-}
-
static const char *
ematch(const char *ev, const char *match)
{
@@ -1184,18 +1179,18 @@ etest(const char *ev)
static void
set_thread_vars()
{
- extern const char **_environ;
+ extern const char **environ;
const char **pev;
const char *ev;
char c;
- if ((pev = _environ) == NULL)
+ if ((pev = environ) == NULL)
return;
while ((ev = *pev++) != NULL) {
c = *ev;
- if (c == '_' && sncmp(ev, "_THREAD_", 8) == 0)
+ if (c == '_' && strncmp(ev, "_THREAD_", 8) == 0)
etest(ev + 8);
- if (c == 'L' && sncmp(ev, "LIBTHREAD_", 10) == 0)
+ if (c == 'L' && strncmp(ev, "LIBTHREAD_", 10) == 0)
etest(ev + 10);
}
}
@@ -1314,7 +1309,7 @@ libc_init(void)
self->ul_forw = self->ul_back = self;
self->ul_hash = NULL;
self->ul_ix = 0;
- self->ul_lwpid = 1; /* __lwp_self() */
+ self->ul_lwpid = 1; /* _lwp_self() */
self->ul_main = 1;
self->ul_self = self;
self->ul_policy = -1; /* initialize only when needed */
@@ -1603,7 +1598,7 @@ postfork1_child()
__libc_threaded = 0;
for (i = 0; i < udp->hash_size; i++)
udp->thr_hash_table[i].hash_bucket = NULL;
- self->ul_lwpid = __lwp_self();
+ self->ul_lwpid = _lwp_self();
hash_in_unlocked(self, TIDHASH(self->ul_lwpid, udp), udp);
/*
@@ -1611,8 +1606,10 @@ postfork1_child()
* while holding udp->callout_lock or udp->ld_lock.
* Reinitialize the child's copies.
*/
- mutex_init(&udp->callout_lock, USYNC_THREAD | LOCK_RECURSIVE, NULL);
- mutex_init(&udp->ld_lock, USYNC_THREAD | LOCK_RECURSIVE, NULL);
+ (void) mutex_init(&udp->callout_lock,
+ USYNC_THREAD | LOCK_RECURSIVE, NULL);
+ (void) mutex_init(&udp->ld_lock,
+ USYNC_THREAD | LOCK_RECURSIVE, NULL);
/* no one in the child is on a sleep queue; reinitialize */
if ((qp = udp->queue_head) != NULL) {
@@ -1692,19 +1689,16 @@ lwp_self(void)
return (curthread->ul_lwpid);
}
-#pragma weak _ti_thr_self = _thr_self
-#pragma weak thr_self = _thr_self
-#pragma weak pthread_self = _thr_self
-#pragma weak _pthread_self = _thr_self
+#pragma weak _ti_thr_self = thr_self
+#pragma weak pthread_self = thr_self
thread_t
-_thr_self()
+thr_self()
{
return (curthread->ul_lwpid);
}
-#pragma weak thr_main = _thr_main
int
-_thr_main()
+thr_main()
{
ulwp_t *self = __curthread();
@@ -1726,9 +1720,9 @@ _thrp_stksegment(ulwp_t *ulwp, stack_t *stk)
return (0);
}
-#pragma weak thr_stksegment = _thr_stksegment
+#pragma weak _thr_stksegment = thr_stksegment
int
-_thr_stksegment(stack_t *stk)
+thr_stksegment(stack_t *stk)
{
return (_thrp_stksegment(curthread, stk));
}
@@ -1747,7 +1741,7 @@ force_continue(ulwp_t *ulwp)
ASSERT(MUTEX_OWNED(ulwp_mutex(ulwp, udp), self));
for (;;) {
- error = __lwp_continue(ulwp->ul_lwpid);
+ error = _lwp_continue(ulwp->ul_lwpid);
if (error != 0 && error != EINTR)
break;
error = 0;
@@ -1869,7 +1863,7 @@ top:
}
}
- (void) cond_broadcast_internal(cvp);
+ (void) cond_broadcast(cvp);
lmutex_unlock(mp);
return (error);
}
@@ -2099,36 +2093,32 @@ _thrp_continue(thread_t tid, uchar_t whystopped)
return (error);
}
-#pragma weak thr_suspend = _thr_suspend
int
-_thr_suspend(thread_t tid)
+thr_suspend(thread_t tid)
{
return (_thrp_suspend(tid, TSTP_REGULAR));
}
-#pragma weak thr_continue = _thr_continue
int
-_thr_continue(thread_t tid)
+thr_continue(thread_t tid)
{
return (_thrp_continue(tid, TSTP_REGULAR));
}
-#pragma weak thr_yield = _thr_yield
void
-_thr_yield()
+thr_yield()
{
yield();
}
-#pragma weak thr_kill = _thr_kill
-#pragma weak pthread_kill = _thr_kill
-#pragma weak _pthread_kill = _thr_kill
+#pragma weak pthread_kill = thr_kill
+#pragma weak _thr_kill = thr_kill
int
-_thr_kill(thread_t tid, int sig)
+thr_kill(thread_t tid, int sig)
{
if (sig == SIGCANCEL)
return (EINVAL);
- return (__lwp_kill(tid, sig));
+ return (_lwp_kill(tid, sig));
}
/*
@@ -2200,7 +2190,7 @@ _ti_bind_guard(int flags)
if ((flags & (THR_FLG_NOLOCK | THR_FLG_REENTER)) == THR_FLG_NOLOCK) {
ASSERT(self->ul_critical == 0);
sigoff(self); /* see no signals while holding ld_lock */
- mutex_lock(&udp->ld_lock);
+ (void) mutex_lock(&udp->ld_lock);
}
enter_critical(self);
self->ul_save_state = self->ul_cancel_disabled;
@@ -2226,7 +2216,7 @@ _ti_bind_clear(int flags)
if ((flags & (THR_FLG_NOLOCK | THR_FLG_REENTER)) == THR_FLG_NOLOCK) {
ASSERT(self->ul_critical == 0);
if (MUTEX_OWNED(&udp->ld_lock, self)) {
- mutex_unlock(&udp->ld_lock);
+ (void) mutex_unlock(&udp->ld_lock);
sigon(self); /* reenable signals */
}
}
@@ -2237,7 +2227,7 @@ _ti_bind_clear(int flags)
* sigoff() and sigon() enable cond_wait() to behave (optionally) like
* it does in the old libthread (see the comments in cond_wait_queue()).
* Also, signals are deferred at thread startup until TLS constructors
- * have all been called, at which time _thr_setup() calls sigon().
+ * have all been called, at which time _thrp_setup() calls sigon().
*
* _sigoff() and _sigon() are external consolidation-private interfaces to
* sigoff() and sigon(), respectively, in libc. These are used in libnsl.
@@ -2272,23 +2262,20 @@ sigon(ulwp_t *self)
}
}
-#pragma weak thr_getconcurrency = _thr_getconcurrency
int
-_thr_getconcurrency()
+thr_getconcurrency()
{
return (thr_concurrency);
}
-#pragma weak pthread_getconcurrency = _pthread_getconcurrency
int
-_pthread_getconcurrency()
+pthread_getconcurrency()
{
return (pthread_concurrency);
}
-#pragma weak thr_setconcurrency = _thr_setconcurrency
int
-_thr_setconcurrency(int new_level)
+thr_setconcurrency(int new_level)
{
uberdata_t *udp = curthread->ul_uberdata;
@@ -2303,9 +2290,8 @@ _thr_setconcurrency(int new_level)
return (0);
}
-#pragma weak pthread_setconcurrency = _pthread_setconcurrency
int
-_pthread_setconcurrency(int new_level)
+pthread_setconcurrency(int new_level)
{
if (new_level < 0)
return (EINVAL);
@@ -2315,10 +2301,8 @@ _pthread_setconcurrency(int new_level)
return (0);
}
-#pragma weak thr_min_stack = _thr_min_stack
-#pragma weak __pthread_min_stack = _thr_min_stack
size_t
-_thr_min_stack(void)
+thr_min_stack(void)
{
return (MINSTACK);
}
@@ -2346,9 +2330,9 @@ cond_t mutatorscv = DEFAULTCV; /* where non-mutators sleep. */
* Get the available register state for the target thread.
* Return non-volatile registers: TRS_NONVOLATILE
*/
-#pragma weak thr_getstate = _thr_getstate
+#pragma weak _thr_getstate = thr_getstate
int
-_thr_getstate(thread_t tid, int *flag, lwpid_t *lwp, stack_t *ss, gregset_t rs)
+thr_getstate(thread_t tid, int *flag, lwpid_t *lwp, stack_t *ss, gregset_t rs)
{
ulwp_t *self = curthread;
uberdata_t *udp = self->ul_uberdata;
@@ -2393,9 +2377,9 @@ _thr_getstate(thread_t tid, int *flag, lwpid_t *lwp, stack_t *ss, gregset_t rs)
* Set the appropriate register state for the target thread.
* This is not used by java. It exists solely for the MSTC test suite.
*/
-#pragma weak thr_setstate = _thr_setstate
+#pragma weak _thr_setstate = thr_setstate
int
-_thr_setstate(thread_t tid, int flag, gregset_t rs)
+thr_setstate(thread_t tid, int flag, gregset_t rs)
{
uberdata_t *udp = curthread->ul_uberdata;
ulwp_t *ulwp;
@@ -2524,9 +2508,9 @@ __gettsp(thread_t tid)
* This tells java stack walkers how to find the ucontext
* structure passed to signal handlers.
*/
-#pragma weak thr_sighndlrinfo = _thr_sighndlrinfo
+#pragma weak _thr_sighndlrinfo = thr_sighndlrinfo
void
-_thr_sighndlrinfo(void (**func)(), int *funcsize)
+thr_sighndlrinfo(void (**func)(), int *funcsize)
{
*func = &__sighndlr;
*funcsize = (char *)&__sighndlrend - (char *)&__sighndlr;
@@ -2536,9 +2520,9 @@ _thr_sighndlrinfo(void (**func)(), int *funcsize)
* Mark a thread a mutator or reset a mutator to being a default,
* non-mutator thread.
*/
-#pragma weak thr_setmutator = _thr_setmutator
+#pragma weak _thr_setmutator = thr_setmutator
int
-_thr_setmutator(thread_t tid, int enabled)
+thr_setmutator(thread_t tid, int enabled)
{
ulwp_t *self = curthread;
uberdata_t *udp = self->ul_uberdata;
@@ -2566,11 +2550,11 @@ top:
lmutex_lock(&mutatorslock);
if (mutatorsbarrier) {
ulwp_unlock(ulwp, udp);
- (void) _pthread_setcancelstate(PTHREAD_CANCEL_DISABLE,
+ (void) pthread_setcancelstate(PTHREAD_CANCEL_DISABLE,
&cancel_state);
while (mutatorsbarrier)
- (void) _cond_wait(&mutatorscv, &mutatorslock);
- (void) _pthread_setcancelstate(cancel_state, NULL);
+ (void) cond_wait(&mutatorscv, &mutatorslock);
+ (void) pthread_setcancelstate(cancel_state, NULL);
lmutex_unlock(&mutatorslock);
goto top;
}
@@ -2586,9 +2570,9 @@ top:
* Establish a barrier against new mutators. Any non-mutator trying
* to become a mutator is suspended until the barrier is removed.
*/
-#pragma weak thr_mutators_barrier = _thr_mutators_barrier
+#pragma weak _thr_mutators_barrier = thr_mutators_barrier
void
-_thr_mutators_barrier(int enabled)
+thr_mutators_barrier(int enabled)
{
int oldvalue;
int cancel_state;
@@ -2598,10 +2582,10 @@ _thr_mutators_barrier(int enabled)
/*
* Wait if trying to set the barrier while it is already set.
*/
- (void) _pthread_setcancelstate(PTHREAD_CANCEL_DISABLE, &cancel_state);
+ (void) pthread_setcancelstate(PTHREAD_CANCEL_DISABLE, &cancel_state);
while (mutatorsbarrier && enabled)
- (void) _cond_wait(&mutatorscv, &mutatorslock);
- (void) _pthread_setcancelstate(cancel_state, NULL);
+ (void) cond_wait(&mutatorscv, &mutatorslock);
+ (void) pthread_setcancelstate(cancel_state, NULL);
oldvalue = mutatorsbarrier;
mutatorsbarrier = enabled;
@@ -2609,7 +2593,7 @@ _thr_mutators_barrier(int enabled)
* Wakeup any blocked non-mutators when barrier is removed.
*/
if (oldvalue && !enabled)
- (void) cond_broadcast_internal(&mutatorscv);
+ (void) cond_broadcast(&mutatorscv);
lmutex_unlock(&mutatorslock);
}
@@ -2619,9 +2603,9 @@ _thr_mutators_barrier(int enabled)
* in this list are suspended. Actively running non-mutators remain
* running. Any other thread is suspended.
*/
-#pragma weak thr_suspend_allmutators = _thr_suspend_allmutators
+#pragma weak _thr_suspend_allmutators = thr_suspend_allmutators
int
-_thr_suspend_allmutators(void)
+thr_suspend_allmutators(void)
{
ulwp_t *self = curthread;
uberdata_t *udp = self->ul_uberdata;
@@ -2678,9 +2662,9 @@ top:
* suspended mutator, whether suspended by thr_suspend_mutator(), or by
* thr_suspend_allmutators(), can be resumed by thr_continue_mutator().
*/
-#pragma weak thr_suspend_mutator = _thr_suspend_mutator
+#pragma weak _thr_suspend_mutator = thr_suspend_mutator
int
-_thr_suspend_mutator(thread_t tid)
+thr_suspend_mutator(thread_t tid)
{
if (tid == 0)
tid = curthread->ul_lwpid;
@@ -2690,9 +2674,9 @@ _thr_suspend_mutator(thread_t tid)
/*
* Resume the set of all suspended mutators.
*/
-#pragma weak thr_continue_allmutators = _thr_continue_allmutators
+#pragma weak _thr_continue_allmutators = thr_continue_allmutators
int
-_thr_continue_allmutators()
+thr_continue_allmutators()
{
ulwp_t *self = curthread;
uberdata_t *udp = self->ul_uberdata;
@@ -2731,26 +2715,26 @@ _thr_continue_allmutators()
/*
* Resume a suspended mutator.
*/
-#pragma weak thr_continue_mutator = _thr_continue_mutator
+#pragma weak _thr_continue_mutator = thr_continue_mutator
int
-_thr_continue_mutator(thread_t tid)
+thr_continue_mutator(thread_t tid)
{
return (_thrp_continue(tid, TSTP_MUTATOR));
}
-#pragma weak thr_wait_mutator = _thr_wait_mutator
+#pragma weak _thr_wait_mutator = thr_wait_mutator
int
-_thr_wait_mutator(thread_t tid, int dontwait)
+thr_wait_mutator(thread_t tid, int dontwait)
{
uberdata_t *udp = curthread->ul_uberdata;
ulwp_t *ulwp;
int cancel_state;
int error = 0;
- (void) _pthread_setcancelstate(PTHREAD_CANCEL_DISABLE, &cancel_state);
+ (void) pthread_setcancelstate(PTHREAD_CANCEL_DISABLE, &cancel_state);
top:
if ((ulwp = find_lwp(tid)) == NULL) {
- (void) _pthread_setcancelstate(cancel_state, NULL);
+ (void) pthread_setcancelstate(cancel_state, NULL);
return (ESRCH);
}
@@ -2763,13 +2747,13 @@ top:
cond_t *cvp = ulwp_condvar(ulwp, udp);
mutex_t *mp = ulwp_mutex(ulwp, udp);
- (void) _cond_wait(cvp, mp);
+ (void) cond_wait(cvp, mp);
(void) lmutex_unlock(mp);
goto top;
}
ulwp_unlock(ulwp, udp);
- (void) _pthread_setcancelstate(cancel_state, NULL);
+ (void) pthread_setcancelstate(cancel_state, NULL);
return (error);
}
diff --git a/usr/src/lib/libc/port/threads/tls.c b/usr/src/lib/libc/port/threads/tls.c
index 5225f11205..12704cdc4f 100644
--- a/usr/src/lib/libc/port/threads/tls.c
+++ b/usr/src/lib/libc/port/threads/tls.c
@@ -312,7 +312,7 @@ __tls_get_addr(TLS_index *tls_index)
#endif /* TLS_GET_ADDR_IS_WRITTEN_IN_ASSEMBLER */
/*
- * This is called by _thr_setup() to initialize the thread's static TLS.
+ * This is called by _thrp_setup() to initialize the thread's static TLS.
* Constructors for initially allocated static TLS are called here.
*/
void
diff --git a/usr/src/lib/libc/port/threads/tsd.c b/usr/src/lib/libc/port/threads/tsd.c
index bd11c43a7f..290aa22352 100644
--- a/usr/src/lib/libc/port/threads/tsd.c
+++ b/usr/src/lib/libc/port/threads/tsd.c
@@ -31,17 +31,24 @@
#include <stddef.h>
/*
+ * These symbols should not be exported from libc, but
+ * /lib/libm.so.2 references them. libm needs to be fixed.
+ * Also, some older versions of the Studio compiler/debugger
+ * components reference them. These need to be fixed, too.
+ */
+#pragma weak _thr_getspecific = thr_getspecific
+#pragma weak _thr_keycreate = thr_keycreate
+#pragma weak _thr_setspecific = thr_setspecific
+
+/*
* 128 million keys should be enough for anyone.
* This allocates half a gigabyte of memory for the keys themselves and
* half a gigabyte of memory for each thread that uses the largest key.
*/
#define MAX_KEYS 0x08000000U
-#pragma weak thr_keycreate = _thr_keycreate
-#pragma weak pthread_key_create = _thr_keycreate
-#pragma weak _pthread_key_create = _thr_keycreate
int
-_thr_keycreate(thread_key_t *pkey, void (*destructor)(void *))
+thr_keycreate(thread_key_t *pkey, void (*destructor)(void *))
{
tsd_metadata_t *tsdm = &curthread->ul_uberdata->tsd_metadata;
void (**old_data)(void *) = NULL;
@@ -128,8 +135,15 @@ _thr_keycreate(thread_key_t *pkey, void (*destructor)(void *))
return (0);
}
+#pragma weak _pthread_key_create = pthread_key_create
+int
+pthread_key_create(pthread_key_t *pkey, void (*destructor)(void *))
+{
+ return (thr_keycreate(pkey, destructor));
+}
+
/*
- * Same as _thr_keycreate(), above, except that the key creation
+ * Same as thr_keycreate(), above, except that the key creation
* is performed only once. This relies upon the fact that a key
* value of THR_ONCE_KEY is invalid, and requires that the key be
* allocated with a value of THR_ONCE_KEY before calling here.
@@ -141,11 +155,9 @@ _thr_keycreate(thread_key_t *pkey, void (*destructor)(void *))
* ...
* pthread_key_create_once_np(&key, destructor);
*/
-#pragma weak pthread_key_create_once_np = _thr_keycreate_once
-#pragma weak _pthread_key_create_once_np = _thr_keycreate_once
-#pragma weak thr_keycreate_once = _thr_keycreate_once
+#pragma weak pthread_key_create_once_np = thr_keycreate_once
int
-_thr_keycreate_once(thread_key_t *keyp, void (*destructor)(void *))
+thr_keycreate_once(thread_key_t *keyp, void (*destructor)(void *))
{
static mutex_t key_lock = DEFAULTMUTEX;
thread_key_t key;
@@ -154,25 +166,23 @@ _thr_keycreate_once(thread_key_t *keyp, void (*destructor)(void *))
if (*keyp == THR_ONCE_KEY) {
lmutex_lock(&key_lock);
if (*keyp == THR_ONCE_KEY) {
- error = _thr_keycreate(&key, destructor);
+ error = thr_keycreate(&key, destructor);
if (error) {
lmutex_unlock(&key_lock);
return (error);
}
- _membar_producer();
+ membar_producer();
*keyp = key;
}
lmutex_unlock(&key_lock);
}
- _membar_consumer();
+ membar_consumer();
return (0);
}
-#pragma weak pthread_key_delete = _thr_key_delete
-#pragma weak _pthread_key_delete = _thr_key_delete
int
-_thr_key_delete(thread_key_t key)
+pthread_key_delete(pthread_key_t key)
{
tsd_metadata_t *tsdm = &curthread->ul_uberdata->tsd_metadata;
@@ -200,9 +210,8 @@ _thr_key_delete(thread_key_t key)
* incurred by thr_getspecific(). Every once in a while, the Standards
* get it right -- but usually by accident.
*/
-#pragma weak pthread_getspecific = _pthread_getspecific
void *
-_pthread_getspecific(pthread_key_t key)
+pthread_getspecific(pthread_key_t key)
{
tsd_t *stsd;
@@ -223,9 +232,8 @@ _pthread_getspecific(pthread_key_t key)
return (NULL);
}
-#pragma weak thr_getspecific = _thr_getspecific
int
-_thr_getspecific(thread_key_t key, void **valuep)
+thr_getspecific(thread_key_t key, void **valuep)
{
tsd_t *stsd;
@@ -250,13 +258,13 @@ _thr_getspecific(thread_key_t key, void **valuep)
}
/*
- * We call _thr_setspecific_slow() when the key specified
+ * We call thr_setspecific_slow() when the key specified
* is beyond the current thread's currently allocated range.
* This case is in a separate function because we want
* the compiler to optimize for the common case.
*/
static int
-_thr_setspecific_slow(thread_key_t key, void *value)
+thr_setspecific_slow(thread_key_t key, void *value)
{
ulwp_t *self = curthread;
tsd_metadata_t *tsdm = &self->ul_uberdata->tsd_metadata;
@@ -310,18 +318,15 @@ _thr_setspecific_slow(thread_key_t key, void *value)
return (0);
}
-#pragma weak thr_setspecific = _thr_setspecific
-#pragma weak pthread_setspecific = _thr_setspecific
-#pragma weak _pthread_setspecific = _thr_setspecific
int
-_thr_setspecific(thread_key_t key, void *value)
+thr_setspecific(thread_key_t key, void *value)
{
tsd_t *stsd;
int ret;
ulwp_t *self = curthread;
/*
- * See the comment in _thr_getspecific(), above.
+ * See the comment in thr_getspecific(), above.
*/
if (key == 0)
return (EINVAL);
@@ -341,11 +346,17 @@ _thr_setspecific(thread_key_t key, void *value)
* allocation and free. Similar protection required in tsd_free().
*/
enter_critical(self);
- ret = _thr_setspecific_slow(key, value);
+ ret = thr_setspecific_slow(key, value);
exit_critical(self);
return (ret);
}
+int
+pthread_setspecific(pthread_key_t key, const void *value)
+{
+ return (thr_setspecific(key, (void *)value));
+}
+
/*
* Contract-private interface for java. See PSARC/2003/159
*
diff --git a/usr/src/lib/libc/port/tpool/thread_pool.c b/usr/src/lib/libc/port/tpool/thread_pool.c
index 5042f60301..7ab97cd633 100644
--- a/usr/src/lib/libc/port/tpool/thread_pool.c
+++ b/usr/src/lib/libc/port/tpool/thread_pool.c
@@ -20,13 +20,13 @@
*/
/*
- * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
-#include "synonyms.h"
+#include "lint.h"
#include "thr_uberdata.h"
#include <stdlib.h>
#include <signal.h>
@@ -287,7 +287,7 @@ tpool_create(uint_t min_threads, uint_t max_threads, uint_t linger,
* If the attribute pointer is NULL, we need to initialize
* the new pthread_attr_t structure with default values.
*/
- error = _pthread_attr_clone(&tpool->tp_attr, attr);
+ error = pthread_attr_clone(&tpool->tp_attr, attr);
if (error) {
lfree(tpool, sizeof (*tpool));
errno = error;
@@ -297,7 +297,7 @@ tpool_create(uint_t min_threads, uint_t max_threads, uint_t linger,
/* make all pool threads be detached daemon threads */
(void) pthread_attr_setdetachstate(&tpool->tp_attr,
PTHREAD_CREATE_DETACHED);
- (void) _pthread_attr_setdaemonstate_np(&tpool->tp_attr,
+ (void) pthread_attr_setdaemonstate_np(&tpool->tp_attr,
PTHREAD_CREATE_DAEMON_NP);
/* insert into the global list of all thread pools */
diff --git a/usr/src/lib/libc/port/tpool/thread_pool_impl.h b/usr/src/lib/libc/port/tpool/thread_pool_impl.h
index 66611778a0..f7e045eef4 100644
--- a/usr/src/lib/libc/port/tpool/thread_pool_impl.h
+++ b/usr/src/lib/libc/port/tpool/thread_pool_impl.h
@@ -20,7 +20,7 @@
*/
/*
- * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
@@ -88,7 +88,7 @@ struct tpool {
#define TP_DESTROY 0x04 /* pool is being destroyed */
#define TP_ABANDON 0x08 /* pool is abandoned (auto-destroy) */
-extern int _pthread_attr_clone(pthread_attr_t *, const pthread_attr_t *);
+extern int pthread_attr_clone(pthread_attr_t *, const pthread_attr_t *);
extern const sigset_t maskset; /* set of all maskable signals */
diff --git a/usr/src/lib/libc/port/unwind/unwind.c b/usr/src/lib/libc/port/unwind/unwind.c
index 9e31d656c1..2a7f0ccc0f 100644
--- a/usr/src/lib/libc/port/unwind/unwind.c
+++ b/usr/src/lib/libc/port/unwind/unwind.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -21,13 +20,13 @@
*/
/*
- * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
-#include "synonyms.h"
+#include "lint.h"
#include "thr_uberdata.h"
#include <dlfcn.h>
@@ -57,7 +56,7 @@ extern void _ex_unwind_local(void);
* _thrp_unwind: first arg = current fp;
* jump _t_cancel;
*
- * We could have called _t_cancel(_getfp) from _thr_exit()
+ * We could have called _t_cancel(_getfp) from thr_exit()
* but _ex_unwind() also calls _t_cancel() and it does after
* poping out the two frames. If _ex_unwind() passes the current
* fp, then it will be invalid. For a caller of _thrp_unwind()
diff --git a/usr/src/lib/libc/sparc/Makefile b/usr/src/lib/libc/sparc/Makefile
index 5080553482..337b5ec720 100644
--- a/usr/src/lib/libc/sparc/Makefile
+++ b/usr/src/lib/libc/sparc/Makefile
@@ -131,8 +131,6 @@ GENOBJS= \
errlst.o \
getctxt.o \
ladd.o \
- lexp10.o \
- llog10.o \
lmul.o \
lock.o \
lshiftl.o \
@@ -508,11 +506,13 @@ PORTGEN= \
lckpwdf.o \
lconstants.o \
ldivide.o \
+ lexp10.o \
lfind.o \
lfmt.o \
lfmt_log.o \
llabs.o \
lldiv.o \
+ llog10.o \
lltostr.o \
localtime.o \
lsearch.o \
@@ -1067,8 +1067,6 @@ SRCS= \
$(LIBCBASE)/gen/byteorder.c \
$(LIBCBASE)/gen/ecvt.c \
$(LIBCBASE)/gen/getctxt.c \
- $(LIBCBASE)/gen/lexp10.c \
- $(LIBCBASE)/gen/llog10.c \
$(LIBCBASE)/gen/lmul.c \
$(LIBCBASE)/gen/makectxt.c \
$(LIBCBASE)/gen/siginfolst.c \
diff --git a/usr/src/lib/libc/sparc/crt/_ftou.c b/usr/src/lib/libc/sparc/crt/_ftou.c
index 8f960205f3..bfc4802836 100644
--- a/usr/src/lib/libc/sparc/crt/_ftou.c
+++ b/usr/src/lib/libc/sparc/crt/_ftou.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,14 +18,15 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
-#include "synonyms.h"
+#include "lint.h"
#include <sys/types.h>
#include "libc.h"
diff --git a/usr/src/lib/libc/sparc/crt/_rtld.c b/usr/src/lib/libc/sparc/crt/_rtld.c
index 596ce619e1..50647dd10c 100644
--- a/usr/src/lib/libc/sparc/crt/_rtld.c
+++ b/usr/src/lib/libc/sparc/crt/_rtld.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,8 +18,9 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
@@ -34,7 +34,7 @@
/*
* Import data structures
*/
-#include "synonyms.h"
+#include "lint.h"
#include <sys/types.h>
#include <sys/mman.h>
#include <sys/fcntl.h>
@@ -284,7 +284,7 @@ __rtld(Elf32_Boot *ebp, const char *strings[], int (*funcs[])())
*/
if (pptr->p_memsz > pptr->p_filesz) {
foff = (uintptr_t)faddr + pptr->p_vaddr +
- pptr->p_filesz;
+ pptr->p_filesz;
zaddr = (caddr_t)ROUND(foff, page_size);
for (j = 0; j < (int)(zaddr - foff); j++)
*((char *)foff + j) = 0;
diff --git a/usr/src/lib/libc/sparc/fp/_Q_get_rp_rd.s b/usr/src/lib/libc/sparc/fp/_Q_get_rp_rd.s
index e62cfcdc08..a1a5e560ad 100644
--- a/usr/src/lib/libc/sparc/fp/_Q_get_rp_rd.s
+++ b/usr/src/lib/libc/sparc/fp/_Q_get_rp_rd.s
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,14 +18,16 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2005 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
-#include "synonyms.h"
+ .file "%M%"
+
#include <sys/asm_linkage.h>
ENTRY(_QgetRD)
diff --git a/usr/src/lib/libc/sparc/fp/_Q_set_except.c b/usr/src/lib/libc/sparc/fp/_Q_set_except.c
index 42a0419c01..a55818bbb2 100644
--- a/usr/src/lib/libc/sparc/fp/_Q_set_except.c
+++ b/usr/src/lib/libc/sparc/fp/_Q_set_except.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,14 +18,15 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
-#include "synonyms.h"
+#include "lint.h"
#include <sys/ieeefp.h>
#include <ieeefp.h>
diff --git a/usr/src/lib/libc/sparc/fp/fpgetmask.s b/usr/src/lib/libc/sparc/fp/fpgetmask.s
index 6a41d8db88..a75d946234 100644
--- a/usr/src/lib/libc/sparc/fp/fpgetmask.s
+++ b/usr/src/lib/libc/sparc/fp/fpgetmask.s
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,22 +18,23 @@
*
* CDDL HEADER END
*/
-/* Copyright (c) 1988 AT&T */
-/* All Rights Reserved */
+/*
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
+ * Use is subject to license terms.
+ */
-/* Copyright (c) 1989 by Sun Microsystems, Inc. */
+/* Copyright (c) 1988 AT&T */
+/* All Rights Reserved */
-.ident "%Z%%M% %I% %E% SMI" /* SVr4.0 1.11 */
+#pragma ident "%Z%%M% %I% %E% SMI"
- .file "fpgetmask.s"
+ .file "%M%"
-#include <sys/asm_linkage.h>
+#include "SYS.h"
ANSI_PRAGMA_WEAK(fpgetmask,function)
-#include "synonyms.h"
-
ENTRY(fpgetmask)
add %sp, -SA(MINFRAME), %sp ! get an additional word of storage
set 0x0f800000, %o4 ! mask of trap enable bits
diff --git a/usr/src/lib/libc/sparc/fp/fpgetrnd.s b/usr/src/lib/libc/sparc/fp/fpgetrnd.s
index 6293fa74c3..2c2d044f79 100644
--- a/usr/src/lib/libc/sparc/fp/fpgetrnd.s
+++ b/usr/src/lib/libc/sparc/fp/fpgetrnd.s
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,22 +18,23 @@
*
* CDDL HEADER END
*/
-/* Copyright (c) 1988 AT&T */
-/* All Rights Reserved */
+/*
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
+ * Use is subject to license terms.
+ */
-/* Copyright (c) 1989 by Sun Microsystems, Inc. */
+/* Copyright (c) 1988 AT&T */
+/* All Rights Reserved */
-.ident "%Z%%M% %I% %E% SMI" /* SVr4.0 1.11 */
+#pragma ident "%Z%%M% %I% %E% SMI"
- .file "fpgetrnd.s"
+ .file "%M%"
-#include <sys/asm_linkage.h>
+#include "SYS.h"
ANSI_PRAGMA_WEAK(fpgetround,function)
-#include "synonyms.h"
-
ENTRY(fpgetround)
add %sp, -SA(MINFRAME), %sp ! get an additional word of storage
st %fsr, [%sp+ARGPUSH] ! get fsr value
diff --git a/usr/src/lib/libc/sparc/fp/fpgetsticky.s b/usr/src/lib/libc/sparc/fp/fpgetsticky.s
index 8f7890973b..bd274719d3 100644
--- a/usr/src/lib/libc/sparc/fp/fpgetsticky.s
+++ b/usr/src/lib/libc/sparc/fp/fpgetsticky.s
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,22 +18,23 @@
*
* CDDL HEADER END
*/
-/* Copyright (c) 1988 AT&T */
-/* All Rights Reserved */
+/*
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
+ * Use is subject to license terms.
+ */
-/* Copyright (c) 1989 by Sun Microsystems, Inc. */
+/* Copyright (c) 1988 AT&T */
+/* All Rights Reserved */
-.ident "%Z%%M% %I% %E% SMI" /* SVr4.0 1.11 */
+#pragma ident "%Z%%M% %I% %E% SMI"
- .file "fpgetsticky.s"
+ .file "%M%"
-#include <sys/asm_linkage.h>
+#include "SYS.h"
ANSI_PRAGMA_WEAK(fpgetsticky,function)
-#include "synonyms.h"
-
ENTRY(fpgetsticky)
add %sp, -SA(MINFRAME), %sp ! get an additional word of storage
set 0x000003e0, %o4 ! mask of accrued exception bits
diff --git a/usr/src/lib/libc/sparc/fp/fpsetmask.s b/usr/src/lib/libc/sparc/fp/fpsetmask.s
index 9732d6a85c..2277a0b536 100644
--- a/usr/src/lib/libc/sparc/fp/fpsetmask.s
+++ b/usr/src/lib/libc/sparc/fp/fpsetmask.s
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,14 +18,18 @@
*
* CDDL HEADER END
*/
+
+/*
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
+ * Use is subject to license terms.
+ */
+
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
-/* Copyright (c) 1989 by Sun Microsystems, Inc. */
-
-.ident "%Z%%M% %I% %E% SMI"
- /* SVr4.0 1.4.1.9 */
+ .file "%M%"
/*
* fp_except fpsetmask(mask)
@@ -37,14 +40,10 @@
* is cleared
*/
- .file "fpsetmask.s"
-
-#include <sys/asm_linkage.h>
+#include "SYS.h"
ANSI_PRAGMA_WEAK(fpsetmask,function)
-#include "synonyms.h"
-
ENTRY(fpsetmask)
add %sp, -SA(MINFRAME), %sp ! get an additional word of storage
set 0x0f800000, %o4 ! mask of trap enable bits
diff --git a/usr/src/lib/libc/sparc/fp/fpsetrnd.s b/usr/src/lib/libc/sparc/fp/fpsetrnd.s
index 6178aeb4f4..f668e7b7be 100644
--- a/usr/src/lib/libc/sparc/fp/fpsetrnd.s
+++ b/usr/src/lib/libc/sparc/fp/fpsetrnd.s
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,22 +18,23 @@
*
* CDDL HEADER END
*/
-/* Copyright (c) 1988 AT&T */
-/* All Rights Reserved */
+/*
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
+ * Use is subject to license terms.
+ */
-/* Copyright (c) 1989 by Sun Microsystems, Inc. */
+/* Copyright (c) 1988 AT&T */
+/* All Rights Reserved */
-.ident "%Z%%M% %I% %E% SMI" /* SVr4.0 1.5.1.9 */
+#pragma ident "%Z%%M% %I% %E% SMI"
- .file "fpsetrnd.s"
+ .file "%M%"
-#include <sys/asm_linkage.h>
+#include "SYS.h"
ANSI_PRAGMA_WEAK(fpsetround,function)
-#include "synonyms.h"
-
ENTRY(fpsetround)
add %sp, -SA(MINFRAME), %sp ! get an additional word of storage
set 0xc0000000, %o4 ! mask of round control bits
diff --git a/usr/src/lib/libc/sparc/fp/fpsetsticky.s b/usr/src/lib/libc/sparc/fp/fpsetsticky.s
index 1ce9b3c8a3..792fc0402a 100644
--- a/usr/src/lib/libc/sparc/fp/fpsetsticky.s
+++ b/usr/src/lib/libc/sparc/fp/fpsetsticky.s
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,23 +18,23 @@
*
* CDDL HEADER END
*/
-/* Copyright (c) 1988 AT&T */
-/* All Rights Reserved */
+/*
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
+ * Use is subject to license terms.
+ */
-/* Copyright (c) 1989 by Sun Microsystems, Inc. */
+/* Copyright (c) 1988 AT&T */
+/* All Rights Reserved */
-.ident "%Z%%M% %I% %E% SMI"
- /* SVr4.0 1.4.1.7 */
+#pragma ident "%Z%%M% %I% %E% SMI"
- .file "fpsetsticky.s"
+ .file "%M%"
-#include <sys/asm_linkage.h>
+#include "SYS.h"
ANSI_PRAGMA_WEAK(fpsetsticky,function)
-#include "synonyms.h"
-
ENTRY(fpsetsticky)
add %sp, -SA(MINFRAME), %sp ! get an additional word of storage
set 0x000003e0, %o4 ! mask of accrued exception bits
diff --git a/usr/src/lib/libc/sparc/gen/_stack_grow.s b/usr/src/lib/libc/sparc/gen/_stack_grow.s
index 293769fd68..07376f21bc 100644
--- a/usr/src/lib/libc/sparc/gen/_stack_grow.s
+++ b/usr/src/lib/libc/sparc/gen/_stack_grow.s
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,8 +18,9 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
@@ -28,7 +28,6 @@
.file "%M%"
-#include <sys/asm_linkage.h>
#include "SYS.h"
#include <../assym.h>
diff --git a/usr/src/lib/libc/sparc/gen/_xregs_clrptr.c b/usr/src/lib/libc/sparc/gen/_xregs_clrptr.c
index 9be916fec2..4124b55a4c 100644
--- a/usr/src/lib/libc/sparc/gen/_xregs_clrptr.c
+++ b/usr/src/lib/libc/sparc/gen/_xregs_clrptr.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,14 +18,15 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
-#include "synonyms.h"
+#include "lint.h"
#include <ucontext.h>
#include <sys/types.h>
#include "libc.h"
diff --git a/usr/src/lib/libc/sparc/gen/ecvt.c b/usr/src/lib/libc/sparc/gen/ecvt.c
index 18807b1eca..0bee1fac69 100644
--- a/usr/src/lib/libc/sparc/gen/ecvt.c
+++ b/usr/src/lib/libc/sparc/gen/ecvt.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,16 +18,16 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
/*
* ecvt converts to decimal
@@ -37,13 +36,11 @@
* sign is set to 0 for positive, 1 for negative
*
*/
-#pragma weak ecvt = _ecvt
-#pragma weak fcvt = _fcvt
-#pragma weak qecvt = _qecvt
-#pragma weak qfcvt = _qfcvt
-#pragma weak qgcvt = _qgcvt
-#include "synonyms.h"
+#pragma weak _ecvt = ecvt
+#pragma weak _fcvt = fcvt
+
+#include "lint.h"
#include <sys/types.h>
#include <stdlib.h>
#include <floatingpoint.h>
diff --git a/usr/src/lib/libc/sparc/gen/getctxt.c b/usr/src/lib/libc/sparc/gen/getctxt.c
index b119860217..3213955108 100644
--- a/usr/src/lib/libc/sparc/gen/getctxt.c
+++ b/usr/src/lib/libc/sparc/gen/getctxt.c
@@ -29,9 +29,9 @@
#pragma ident "%Z%%M% %I% %E% SMI"
-#pragma weak getcontext = _getcontext
+#pragma weak _getcontext = getcontext
-#include "synonyms.h"
+#include "lint.h"
#include "thr_uberdata.h"
#include <ucontext.h>
#include <sys/types.h>
diff --git a/usr/src/lib/libc/sparc/gen/ladd.s b/usr/src/lib/libc/sparc/gen/ladd.s
index a5ddacc329..a3bf215c56 100644
--- a/usr/src/lib/libc/sparc/gen/ladd.s
+++ b/usr/src/lib/libc/sparc/gen/ladd.s
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,13 +18,18 @@
*
* CDDL HEADER END
*/
+
+/*
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
+ * Use is subject to license terms.
+ */
+
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
-/* Copyright (c) 1989 by Sun Microsystems, Inc. */
-
-.ident "%Z%%M% %I% %E% SMI" /* SVr4.0 1.1 */
+ .file "%M%"
/*
* Double long add routine. Ported from pdp 11/70 version
@@ -39,13 +43,7 @@
* dl_t rop;
*/
- .file "ladd.s"
-
-#include <sys/asm_linkage.h>
-
- ANSI_PRAGMA_WEAK(ladd,function)
-
-#include "synonyms.h"
+#include "SYS.h"
ENTRY(ladd)
diff --git a/usr/src/lib/libc/sparc/gen/llog10.c b/usr/src/lib/libc/sparc/gen/llog10.c
deleted file mode 100644
index 14f690c61b..0000000000
--- a/usr/src/lib/libc/sparc/gen/llog10.c
+++ /dev/null
@@ -1,53 +0,0 @@
-/*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
- *
- * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information: Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- */
-/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
- * Use is subject to license terms.
- */
-
-#pragma ident "%Z%%M% %I% %E% SMI"
-
-/* Copyright (c) 1988 AT&T */
-/* All Rights Reserved */
-
-
-#pragma weak llog10 = _llog10
-
-#include "synonyms.h"
-#include <sys/types.h>
-#include <sys/dl.h>
-
-dl_t
-llog10(dl_t val)
-{
- dl_t result;
-
- result = lzero;
- val = ldivide(val, lten);
-
- while (val.dl_hop != 0 || val.dl_lop != 0) {
- val = ldivide(val, lten);
- result = ladd(result, lone);
- }
-
- return (result);
-}
diff --git a/usr/src/lib/libc/sparc/gen/lmul.c b/usr/src/lib/libc/sparc/gen/lmul.c
index 7f6aa0f079..27ea35168f 100644
--- a/usr/src/lib/libc/sparc/gen/lmul.c
+++ b/usr/src/lib/libc/sparc/gen/lmul.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,20 +18,18 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
-#pragma weak lmul = _lmul
-
-#include "synonyms.h"
+#include "lint.h"
#include "sys/types.h"
#include "sys/dl.h"
diff --git a/usr/src/lib/libc/sparc/gen/lshiftl.s b/usr/src/lib/libc/sparc/gen/lshiftl.s
index 820c91f8ea..dd1a475d22 100644
--- a/usr/src/lib/libc/sparc/gen/lshiftl.s
+++ b/usr/src/lib/libc/sparc/gen/lshiftl.s
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,13 +18,18 @@
*
* CDDL HEADER END
*/
+
+/*
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
+ * Use is subject to license terms.
+ */
+
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
-/* Copyright (c) 1989 by Sun Microsystems, Inc. */
-
-.ident "%Z%%M% %I% %E% SMI" /* SVr4.0 1.1 */
+ .file "%M%"
/*
* Shift a double long value. Ported from m32 version to sparc.
@@ -36,14 +40,7 @@
* int cnt;
*/
- .file "lshiftl.s"
-
-#include <sys/asm_linkage.h>
-
- ANSI_PRAGMA_WEAK(lshiftl,function)
-
-#include "synonyms.h"
-
+#include "SYS.h"
ENTRY(lshiftl)
diff --git a/usr/src/lib/libc/sparc/gen/lsign.s b/usr/src/lib/libc/sparc/gen/lsign.s
index 1269fbe551..6d774b582c 100644
--- a/usr/src/lib/libc/sparc/gen/lsign.s
+++ b/usr/src/lib/libc/sparc/gen/lsign.s
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,13 +18,18 @@
*
* CDDL HEADER END
*/
+
+/*
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
+ * Use is subject to license terms.
+ */
+
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
-/* Copyright (c) 1989 by Sun Microsystems, Inc. */
-
-.ident "%Z%%M% %I% %E% SMI" /* SVr4.0 1.1 */
+ .file "%M%"
/*
* Determine the sign of a double-long number.
@@ -36,13 +40,7 @@
* dl_t op;
*/
- .file "lsign.s"
-
-#include <sys/asm_linkage.h>
-
- ANSI_PRAGMA_WEAK(lsign,function)
-
-#include "synonyms.h"
+#include "SYS.h"
ENTRY(lsign)
diff --git a/usr/src/lib/libc/sparc/gen/lsub.s b/usr/src/lib/libc/sparc/gen/lsub.s
index e6457b9abe..90bbccab99 100644
--- a/usr/src/lib/libc/sparc/gen/lsub.s
+++ b/usr/src/lib/libc/sparc/gen/lsub.s
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,13 +18,18 @@
*
* CDDL HEADER END
*/
+
+/*
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
+ * Use is subject to license terms.
+ */
+
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
-/* Copyright (c) 1989 by Sun Microsystems, Inc. */
-
-.ident "%Z%%M% %I% %E% SMI" /* SVr4.0 1.1 */
+ .file "%M%"
/*
* Double long subtraction routine. Ported from pdp 11/70 version
@@ -38,13 +42,7 @@
* dl_t rop;
*/
- .file "lsub.s"
-
-#include <sys/asm_linkage.h>
-
- ANSI_PRAGMA_WEAK(lsub,function)
-
-#include "synonyms.h"
+#include "SYS.h"
ENTRY(lsub)
diff --git a/usr/src/lib/libc/sparc/gen/makectxt.c b/usr/src/lib/libc/sparc/gen/makectxt.c
index 9dc4c64697..7519bdabcb 100644
--- a/usr/src/lib/libc/sparc/gen/makectxt.c
+++ b/usr/src/lib/libc/sparc/gen/makectxt.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,21 +18,21 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
-#pragma weak makecontext = _makecontext
-#pragma weak __makecontext_v2 = ___makecontext_v2
+#pragma weak _makecontext = makecontext
+#pragma weak ___makecontext_v2 = __makecontext_v2
-#include "synonyms.h"
+#include "lint.h"
#include <stdarg.h>
#include <strings.h>
#include <sys/ucontext.h>
@@ -53,7 +52,7 @@
static void resumecontext(void);
void
-_makecontext(ucontext_t *ucp, void (*func)(), int argc, ...)
+makecontext(ucontext_t *ucp, void (*func)(), int argc, ...)
{
greg_t *reg;
long *tsp;
diff --git a/usr/src/lib/libc/sparc/gen/memchr.s b/usr/src/lib/libc/sparc/gen/memchr.s
index 0f38ad2c77..5688826dde 100644
--- a/usr/src/lib/libc/sparc/gen/memchr.s
+++ b/usr/src/lib/libc/sparc/gen/memchr.s
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,14 +18,16 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2003 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-.ident "%Z%%M% %I% %E% SMI"
+#pragma ident "%Z%%M% %I% %E% SMI"
+
+ .file "%M%"
- .file "%M%"
/*
* Return the ptr in sptr at which the character c1 appears;
* or NULL if not found in n chars; don't stop at \0.
@@ -47,7 +48,6 @@
*/
#include <sys/asm_linkage.h>
-#include "synonyms.h"
! The first part of this algorithm focuses on determining
! whether or not the desired character is in the first few bytes
diff --git a/usr/src/lib/libc/sparc/gen/memcmp.s b/usr/src/lib/libc/sparc/gen/memcmp.s
index 1ba5cc454b..be2fe4e24b 100644
--- a/usr/src/lib/libc/sparc/gen/memcmp.s
+++ b/usr/src/lib/libc/sparc/gen/memcmp.s
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,12 +18,13 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright (c) 1989-1995,1998 by Sun Microsystems, Inc.
- * All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
+ * Use is subject to license terms.
*/
-.ident "%Z%%M% %I% %E% SMI" /* SunOS 4.1 1.2 */
+#pragma ident "%Z%%M% %I% %E% SMI"
.file "%M%"
@@ -55,8 +55,6 @@
ANSI_PRAGMA_WEAK(memcmp,function)
-#include "synonyms.h"
-
ENTRY(memcmp)
st %g2, [%sp + 68] ! g2 must be restored before retl
cmp %o0, %o1 ! s1 == s2?
diff --git a/usr/src/lib/libc/sparc/gen/memcpy.s b/usr/src/lib/libc/sparc/gen/memcpy.s
index 2587108195..32589b5655 100644
--- a/usr/src/lib/libc/sparc/gen/memcpy.s
+++ b/usr/src/lib/libc/sparc/gen/memcpy.s
@@ -24,7 +24,7 @@
* Use is subject to license terms.
*/
- .ident "%Z%%M% %I% %E% SMI"
+#pragma ident "%Z%%M% %I% %E% SMI"
.file "%M%"
@@ -51,12 +51,10 @@
* }
*/
-#include <sys/asm_linkage.h>
+#include "SYS.h"
ANSI_PRAGMA_WEAK(memcpy,function)
-#include "synonyms.h"
-
ENTRY(memcpy)
st %o0, [%sp + 68] ! save des address for return val
cmp %o2, 17 ! for small counts copy bytes
diff --git a/usr/src/lib/libc/sparc/gen/memmove.s b/usr/src/lib/libc/sparc/gen/memmove.s
index e57650f6ab..122c191555 100644
--- a/usr/src/lib/libc/sparc/gen/memmove.s
+++ b/usr/src/lib/libc/sparc/gen/memmove.s
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,12 +18,13 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright (c) 1987-1995, by Sun Microsystems, Inc.
- * All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
+ * Use is subject to license terms.
*/
-.ident "%Z%%M% %I% %E% SMI"
+#pragma ident "%Z%%M% %I% %E% SMI"
.file "%M%"
@@ -32,8 +32,6 @@
ANSI_PRAGMA_WEAK(memmove,function)
-#include "synonyms.h"
-
/*
* memmove(s1, s2, len)
* Copy s2 to s1, always copy n bytes.
diff --git a/usr/src/lib/libc/sparc/gen/memset.s b/usr/src/lib/libc/sparc/gen/memset.s
index 7dd7d51961..750ee3bd2b 100644
--- a/usr/src/lib/libc/sparc/gen/memset.s
+++ b/usr/src/lib/libc/sparc/gen/memset.s
@@ -24,7 +24,7 @@
* Use is subject to license terms.
*/
- .ident "%Z%%M% %I% %E% SMI"
+#pragma ident "%Z%%M% %I% %E% SMI"
.file "%M%"
@@ -54,8 +54,6 @@
ANSI_PRAGMA_WEAK(memset,function)
-#include "synonyms.h"
-
ENTRY(memset)
mov %o0, %o5 ! copy sp before using it
cmp %o2, 7 ! if small counts, just write bytes
diff --git a/usr/src/lib/libc/sparc/gen/setjmp.s b/usr/src/lib/libc/sparc/gen/setjmp.s
index 264e9be602..c491eb26e4 100644
--- a/usr/src/lib/libc/sparc/gen/setjmp.s
+++ b/usr/src/lib/libc/sparc/gen/setjmp.s
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,26 +18,24 @@
*
* CDDL HEADER END
*/
-/* Copyright (c) 1988 AT&T */
-/* All Rights Reserved */
-
/*
- * Copyright 1987-2003 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-.ident "%Z%%M% %I% %E% SMI" /* SVr4.0 1.4 */
+/* Copyright (c) 1988 AT&T */
+/* All Rights Reserved */
+
+#pragma ident "%Z%%M% %I% %E% SMI"
- .file "setjmp.s"
+ .file "%M%"
#include <sys/asm_linkage.h>
ANSI_PRAGMA_WEAK(setjmp,function)
ANSI_PRAGMA_WEAK(longjmp,function)
-#include "synonyms.h"
-
#include <sys/trap.h>
JB_FLAGS = (0*4) ! offsets in jmpbuf (see siglonglmp.c)
diff --git a/usr/src/lib/libc/sparc/gen/siginfolst.c b/usr/src/lib/libc/sparc/gen/siginfolst.c
index 8939850c60..712e70c582 100644
--- a/usr/src/lib/libc/sparc/gen/siginfolst.c
+++ b/usr/src/lib/libc/sparc/gen/siginfolst.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,18 +18,18 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
-#include "synonyms.h"
+#include "lint.h"
#include <signal.h>
#include <siginfo.h>
diff --git a/usr/src/lib/libc/sparc/gen/siglongjmp.c b/usr/src/lib/libc/sparc/gen/siglongjmp.c
index 5efc2e28a2..83a640397d 100644
--- a/usr/src/lib/libc/sparc/gen/siglongjmp.c
+++ b/usr/src/lib/libc/sparc/gen/siglongjmp.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -21,19 +20,18 @@
*/
/*
- * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
-#pragma weak siglongjmp = _siglongjmp
+#pragma weak _siglongjmp = siglongjmp
-#include "synonyms.h"
+#include "lint.h"
#include <sys/types.h>
#include <sys/stack.h>
#include <sys/frame.h>
diff --git a/usr/src/lib/libc/sparc/gen/strcasecmp.s b/usr/src/lib/libc/sparc/gen/strcasecmp.s
index 8efc518ab4..2ef09e2ca6 100644
--- a/usr/src/lib/libc/sparc/gen/strcasecmp.s
+++ b/usr/src/lib/libc/sparc/gen/strcasecmp.s
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,12 +18,13 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2003 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-.ident "%Z%%M% %I% %E% SMI"
+#pragma ident "%Z%%M% %I% %E% SMI"
.file "%M%"
/*
@@ -116,9 +116,7 @@
* Both algorithms have been tested exhaustively for all possible 2^32 inputs.
*/
-
#include <sys/asm_linkage.h>
-#include "synonyms.h"
! The first part of this algorithm walks through the beginning of
! both strings a byte at a time until the source ptr is aligned to
diff --git a/usr/src/lib/libc/sparc/gen/strchr.s b/usr/src/lib/libc/sparc/gen/strchr.s
index 6a7ee9008b..b2e8d660de 100644
--- a/usr/src/lib/libc/sparc/gen/strchr.s
+++ b/usr/src/lib/libc/sparc/gen/strchr.s
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,12 +18,13 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2003 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-.ident "%Z%%M% %I% %E% SMI"
+#pragma ident "%Z%%M% %I% %E% SMI"
.file "%M%"
@@ -35,7 +35,6 @@
*/
#include <sys/asm_linkage.h>
-#include "synonyms.h"
! Here, we start by checking to see if we're searching the dest
! string for a null byte. We have fast code for this, so it's
diff --git a/usr/src/lib/libc/sparc/gen/strcmp.s b/usr/src/lib/libc/sparc/gen/strcmp.s
index a1b7065a04..ce402f07da 100644
--- a/usr/src/lib/libc/sparc/gen/strcmp.s
+++ b/usr/src/lib/libc/sparc/gen/strcmp.s
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,12 +18,13 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2003 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-.ident "%Z%%M% %I% %E% SMI"
+#pragma ident "%Z%%M% %I% %E% SMI"
.file "%M%"
@@ -51,7 +51,6 @@
*/
#include <sys/asm_linkage.h>
-#include "synonyms.h"
! This strcmp implementation first determines whether s1 is aligned.
! If it is not, it attempts to align it and then checks the
diff --git a/usr/src/lib/libc/sparc/gen/strcpy.s b/usr/src/lib/libc/sparc/gen/strcpy.s
index 63de6cfe8c..593a4e8293 100644
--- a/usr/src/lib/libc/sparc/gen/strcpy.s
+++ b/usr/src/lib/libc/sparc/gen/strcpy.s
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,12 +18,13 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2003 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-.ident "%Z%%M% %I% %E% SMI"
+#pragma ident "%Z%%M% %I% %E% SMI"
.file "%M%"
@@ -51,7 +51,6 @@
*/
#include <sys/asm_linkage.h>
-#include "synonyms.h"
! This is a 32-bit implementation of strcpy. It works by
! first checking the alignment of its source pointer. And,
diff --git a/usr/src/lib/libc/sparc/gen/strlcpy.s b/usr/src/lib/libc/sparc/gen/strlcpy.s
index 0dd5366dd3..9e96232e22 100644
--- a/usr/src/lib/libc/sparc/gen/strlcpy.s
+++ b/usr/src/lib/libc/sparc/gen/strlcpy.s
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,12 +18,13 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2003 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-.ident "%Z%%M% %I% %E% SMI"
+#pragma ident "%Z%%M% %I% %E% SMI"
.file "%M%"
/*
@@ -39,7 +39,6 @@
*/
#include <sys/asm_linkage.h>
-#include "synonyms.h"
! strlcpy implementation is similar to that of strcpy, except
! in this case, the maximum size of the detination must be
diff --git a/usr/src/lib/libc/sparc/gen/strlen.s b/usr/src/lib/libc/sparc/gen/strlen.s
index 09da4ed196..e709690f79 100644
--- a/usr/src/lib/libc/sparc/gen/strlen.s
+++ b/usr/src/lib/libc/sparc/gen/strlen.s
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,13 +18,13 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2003 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-
-.ident "%Z%%M% %I% %E% SMI"
+#pragma ident "%Z%%M% %I% %E% SMI"
.file "%M%"
@@ -50,7 +49,6 @@
*/
#include <sys/asm_linkage.h>
-#include "synonyms.h"
! The object of strlen is to, as quickly as possible, find the
! null byte. To this end, we attempt to get our string aligned
diff --git a/usr/src/lib/libc/sparc/gen/strncmp.s b/usr/src/lib/libc/sparc/gen/strncmp.s
index 2d9c138ce0..109c52362f 100644
--- a/usr/src/lib/libc/sparc/gen/strncmp.s
+++ b/usr/src/lib/libc/sparc/gen/strncmp.s
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,17 +18,15 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright (c) 1989,1998 by Sun Microsystems, Inc.
- * All rights reserved.
- *
- * .seg "data"
- * .asciz "@(#)strncmp.s 1.2 89/08/16"
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
+ * Use is subject to license terms.
*/
-.ident "%Z%%M% %I% %E% SMI" /* SunOS 4.1 1.4 */
+#pragma ident "%Z%%M% %I% %E% SMI"
- .file "strncmp.s"
+ .file "%M%"
/*
* strncmp(s1, s2, n)
@@ -53,7 +50,6 @@
*/
#include <sys/asm_linkage.h>
-#include "synonyms.h"
ENTRY(strncmp)
save %sp, -SA(WINDOWSIZE), %sp
diff --git a/usr/src/lib/libc/sparc/gen/strncpy.s b/usr/src/lib/libc/sparc/gen/strncpy.s
index 11afb2ac4b..e6cb8046e7 100644
--- a/usr/src/lib/libc/sparc/gen/strncpy.s
+++ b/usr/src/lib/libc/sparc/gen/strncpy.s
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,13 +18,13 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2003 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-
-.ident "%Z%%M% %I% %E% SMI"
+#pragma ident "%Z%%M% %I% %E% SMI"
.file "%M%"
@@ -54,7 +53,6 @@
*/
#include <sys/asm_linkage.h>
-#include "synonyms.h"
! strncpy works similarly to strcpy, except that n bytes of s2
! are copied to s1. If a null character is reached in s2 yet more
diff --git a/usr/src/lib/libc/sparc/gen/swapctxt.c b/usr/src/lib/libc/sparc/gen/swapctxt.c
index 8c052ca843..c2b527e868 100644
--- a/usr/src/lib/libc/sparc/gen/swapctxt.c
+++ b/usr/src/lib/libc/sparc/gen/swapctxt.c
@@ -29,9 +29,9 @@
#pragma ident "%Z%%M% %I% %E% SMI"
-#pragma weak swapcontext = _swapcontext
+#pragma weak _swapcontext = swapcontext
-#include "synonyms.h"
+#include "lint.h"
#include "thr_uberdata.h"
#include <ucontext.h>
#include <sys/types.h>
diff --git a/usr/src/lib/libc/sparc/inc/SYS.h b/usr/src/lib/libc/sparc/inc/SYS.h
index 7a0f619a72..25a2a9b898 100644
--- a/usr/src/lib/libc/sparc/inc/SYS.h
+++ b/usr/src/lib/libc/sparc/inc/SYS.h
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,8 +18,9 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
@@ -39,7 +39,6 @@
#include <sys/asm_linkage.h>
#include <sys/syscall.h>
#include <sys/errno.h>
-#include "synonyms.h"
/*
* While it's tempting to imagine we could use 'rd %pc' here,
diff --git a/usr/src/lib/libc/sparc/mapfile-vers b/usr/src/lib/libc/sparc/mapfile-vers
index 3c08ffb4b7..443284364e 100644
--- a/usr/src/lib/libc/sparc/mapfile-vers
+++ b/usr/src/lib/libc/sparc/mapfile-vers
@@ -40,7 +40,6 @@ SUNW_1.23 {
enable_extended_FILE_stdio;
lio_listio64;
mkstemps64;
- _mkstemps64;
posix_fallocate64;
};
@@ -941,6 +940,7 @@ SUNWprivate_1.1 {
__lshrdi3;
_memcmp = AUXILIARY /platform/$PLATFORM/lib/libc_psr.so.1;
_memcpy = AUXILIARY /platform/$PLATFORM/lib/libc_psr.so.1;
+ _memcpy = NODYNSORT;
_memmove = AUXILIARY /platform/$PLATFORM/lib/libc_psr.so.1;
_memset = AUXILIARY /platform/$PLATFORM/lib/libc_psr.so.1;
__moddi3;
diff --git a/usr/src/lib/libc/sparc/sys/_lwp_mutex_unlock.s b/usr/src/lib/libc/sparc/sys/_lwp_mutex_unlock.s
index 79dfca3c39..62a0a82b8c 100644
--- a/usr/src/lib/libc/sparc/sys/_lwp_mutex_unlock.s
+++ b/usr/src/lib/libc/sparc/sys/_lwp_mutex_unlock.s
@@ -26,14 +26,9 @@
#pragma ident "%Z%%M% %I% %E% SMI"
- .file "%M%"
-
-#include <sys/asm_linkage.h>
-
- ANSI_PRAGMA_WEAK(_lwp_mutex_unlock,function)
+ .file "%M%"
#include "SYS.h"
-#include <sys/synch32.h>
#include <../assym.h>
ENTRY(_lwp_mutex_unlock)
diff --git a/usr/src/lib/libc/sparc/sys/door.s b/usr/src/lib/libc/sparc/sys/door.s
index 19059ef056..b7fb6abce2 100644
--- a/usr/src/lib/libc/sparc/sys/door.s
+++ b/usr/src/lib/libc/sparc/sys/door.s
@@ -28,27 +28,18 @@
.file "%M%"
-#include <sys/asm_linkage.h>
+#include "SYS.h"
+#include <sys/door.h>
/*
* weak aliases for public interfaces
*/
- ANSI_PRAGMA_WEAK(_door_bind,function)
- ANSI_PRAGMA_WEAK(_door_getparam,function)
- ANSI_PRAGMA_WEAK(_door_info,function)
- ANSI_PRAGMA_WEAK(_door_revoke,function)
- ANSI_PRAGMA_WEAK(_door_setparam,function)
- ANSI_PRAGMA_WEAK(_door_unbind,function)
-
- ANSI_PRAGMA_WEAK(door_bind,function)
- ANSI_PRAGMA_WEAK(door_getparam,function)
- ANSI_PRAGMA_WEAK(door_info,function)
- ANSI_PRAGMA_WEAK(door_revoke,function)
- ANSI_PRAGMA_WEAK(door_setparam,function)
- ANSI_PRAGMA_WEAK(door_unbind,function)
-
-#include <sys/door.h>
-#include "SYS.h"
+ ANSI_PRAGMA_WEAK2(door_bind,__door_bind,function)
+ ANSI_PRAGMA_WEAK2(door_getparam,__door_getparam,function)
+ ANSI_PRAGMA_WEAK2(door_info,__door_info,function)
+ ANSI_PRAGMA_WEAK2(door_revoke,__door_revoke,function)
+ ANSI_PRAGMA_WEAK2(door_setparam,__door_setparam,function)
+ ANSI_PRAGMA_WEAK2(door_unbind,__door_unbind,function)
/*
* Offsets within struct door_results
@@ -138,7 +129,7 @@ door_restart:
ldn [%sp + DOOR_DESC_SIZE], %o4
/* Exit the thread if we return here */
- call _thr_terminate
+ call _thrp_terminate
mov %g0, %o0
/* NOTREACHED */
2:
diff --git a/usr/src/lib/libc/sparc/sys/gettimeofday.s b/usr/src/lib/libc/sparc/sys/gettimeofday.s
index 23984f57ee..dedd12fd7b 100644
--- a/usr/src/lib/libc/sparc/sys/gettimeofday.s
+++ b/usr/src/lib/libc/sparc/sys/gettimeofday.s
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,15 +18,15 @@
*
* CDDL HEADER END
*/
-/* Copyright (c) 1988 AT&T */
-/* All Rights Reserved */
-
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
+/* Copyright (c) 1988 AT&T */
+/* All Rights Reserved */
+
#pragma ident "%Z%%M% %I% %E% SMI"
.file "%M%"
@@ -37,12 +36,10 @@
* int gettimeofday (struct timeval *tp);
*/
-#include <sys/asm_linkage.h>
+#include "SYS.h"
ANSI_PRAGMA_WEAK(gettimeofday,function)
-#include "SYS.h"
-
/*
* The interface below calls the trap (0x27) to get the timestamp in
* secs and nsecs. It than converts the nsecs value into usecs before
@@ -63,7 +60,7 @@
*
*/
- ENTRY(_gettimeofday)
+ ENTRY(gettimeofday)
brz,pn %o0, 1f
mov %o0, %o5
SYSFASTTRAP(GETHRESTIME)
@@ -74,4 +71,4 @@
srlx %o2, 38, %o2
stn %o2, [%o5 + CLONGSIZE]
1: RETC
- SET_SIZE(_gettimeofday)
+ SET_SIZE(gettimeofday)
diff --git a/usr/src/lib/libc/sparc/sys/ptrace.c b/usr/src/lib/libc/sparc/sys/ptrace.c
index 68c923489e..7610586c3f 100644
--- a/usr/src/lib/libc/sparc/sys/ptrace.c
+++ b/usr/src/lib/libc/sparc/sys/ptrace.c
@@ -30,9 +30,9 @@
#pragma ident "%Z%%M% %I% %E% SMI"
-#pragma weak ptrace = _ptrace
+#pragma weak _ptrace = ptrace
-#include "synonyms.h"
+#include "lint.h"
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
diff --git a/usr/src/lib/libc/sparc/sys/syscall.s b/usr/src/lib/libc/sparc/sys/syscall.s
index ab4fa8020f..f90ee2c92e 100644
--- a/usr/src/lib/libc/sparc/sys/syscall.s
+++ b/usr/src/lib/libc/sparc/sys/syscall.s
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,15 +18,15 @@
*
* CDDL HEADER END
*/
-/* Copyright (c) 1988 AT&T */
-/* All Rights Reserved */
-
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
+/* Copyright (c) 1988 AT&T */
+/* All Rights Reserved */
+
#pragma ident "%Z%%M% %I% %E% SMI"
/*
@@ -48,16 +47,11 @@
.file "%M%"
-#include <sys/asm_linkage.h>
-
- ANSI_PRAGMA_WEAK(syscall,function)
-
#include "SYS.h"
-#undef _syscall /* override "synonyms.h" */
-#undef __systemcall
+ ANSI_PRAGMA_WEAK(syscall,function)
- ENTRY(_syscall)
+ ENTRY(syscall)
save %sp, -SA(MINFRAME + 2*CLONGSIZE), %sp
ldn [%fp + STACK_BIAS + MINFRAME], %o5 ! arg 5
mov %i3, %o2 ! arg 2
@@ -79,7 +73,7 @@
1:
ret
restore
- SET_SIZE(_syscall)
+ SET_SIZE(syscall)
/*
* Same as _syscall(), but restricted to 6 syscall arguments
diff --git a/usr/src/lib/libc/sparc/sys/vforkx.s b/usr/src/lib/libc/sparc/sys/vforkx.s
index d5e41b571a..2757668e6b 100644
--- a/usr/src/lib/libc/sparc/sys/vforkx.s
+++ b/usr/src/lib/libc/sparc/sys/vforkx.s
@@ -19,23 +19,18 @@
* CDDL HEADER END
*/
-/* Copyright (c) 1988 AT&T */
-/* All Rights Reserved */
-
/*
- * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
+/* Copyright (c) 1988 AT&T */
+/* All Rights Reserved */
+
#pragma ident "%Z%%M% %I% %E% SMI"
.file "%M%"
-#include <sys/asm_linkage.h>
-
- ANSI_PRAGMA_WEAK(vforkx,function)
- ANSI_PRAGMA_WEAK(vfork,function)
-
#include "SYS.h"
#include <assym.h>
diff --git a/usr/src/lib/libc/sparc/threads/asm_subr.s b/usr/src/lib/libc/sparc/threads/asm_subr.s
index f2fbb6adab..29489eb44e 100644
--- a/usr/src/lib/libc/sparc/threads/asm_subr.s
+++ b/usr/src/lib/libc/sparc/threads/asm_subr.s
@@ -26,20 +26,19 @@
#pragma ident "%Z%%M% %I% %E% SMI"
- .file "asm_subr.s"
+ .file "%M%"
-#include <sys/asm_linkage.h>
+#include "SYS.h"
#include <sys/trap.h>
#include <../assym.h>
-#include "SYS.h"
! This is where execution resumes when a thread created with
! thr_create() or pthread_create() returns (see setup_context()).
- ! We pass the (void *) return value to _thr_terminate().
+ ! We pass the (void *) return value to _thrp_terminate().
ENTRY(_lwp_start)
nop ! this is the location from which the func() was "called"
nop
- call _thr_terminate ! %o0 contains the return value
+ call _thrp_terminate ! %o0 contains the return value
nop
SET_SIZE(_lwp_start)
diff --git a/usr/src/lib/libc/sparc/threads/machdep.c b/usr/src/lib/libc/sparc/threads/machdep.c
index c5510f776f..a1704c0418 100644
--- a/usr/src/lib/libc/sparc/threads/machdep.c
+++ b/usr/src/lib/libc/sparc/threads/machdep.c
@@ -67,7 +67,7 @@ setup_context(ucontext_t *ucp, void *(*func)(ulwp_t *),
* Machine-dependent startup code for a newly-created thread.
*/
void *
-_thr_setup(ulwp_t *self)
+_thrp_setup(ulwp_t *self)
{
extern void _setfsr(greg_t *);
diff --git a/usr/src/lib/libc/sparc/threads/tls_get_addr.s b/usr/src/lib/libc/sparc/threads/tls_get_addr.s
index 9e88bde010..dc4051b7ab 100644
--- a/usr/src/lib/libc/sparc/threads/tls_get_addr.s
+++ b/usr/src/lib/libc/sparc/threads/tls_get_addr.s
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,8 +18,9 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2003 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
@@ -28,10 +28,8 @@
.file "%M%"
-#include <sys/asm_linkage.h>
-#include <sys/trap.h>
-#include <../assym.h>
#include "SYS.h"
+#include <../assym.h>
/*
* To make thread-local storage accesses as fast as possible, we
diff --git a/usr/src/lib/libc/sparcv9/Makefile b/usr/src/lib/libc/sparcv9/Makefile
index 9155de7910..9f7c8d7ef1 100644
--- a/usr/src/lib/libc/sparcv9/Makefile
+++ b/usr/src/lib/libc/sparcv9/Makefile
@@ -130,8 +130,6 @@ GENOBJS= \
cuexit.o \
ecvt.o \
getctxt.o \
- lexp10.o \
- llog10.o \
lock.o \
makectxt.o \
memchr.o \
@@ -469,10 +467,12 @@ PORTGEN= \
lckpwdf.o \
lconstants.o \
ldivide.o \
+ lexp10.o \
lfind.o \
lfmt.o \
lfmt_log.o \
lldiv.o \
+ llog10.o \
lltostr.o \
lmath.o \
localtime.o \
@@ -1000,8 +1000,6 @@ SRCS= \
$(LIBCBASE)/gen/byteorder.c \
$(LIBCBASE)/gen/ecvt.c \
$(LIBCBASE)/gen/getctxt.c \
- $(LIBCBASE)/gen/lexp10.c \
- $(LIBCBASE)/gen/llog10.c \
$(LIBCBASE)/gen/makectxt.c \
$(LIBCBASE)/gen/siginfolst.c \
$(LIBCBASE)/gen/siglongjmp.c \
diff --git a/usr/src/lib/libc/sparcv9/crt/__align_cpy_2.s b/usr/src/lib/libc/sparcv9/crt/__align_cpy_2.s
index f4d8a0e2c5..267ff34fe6 100644
--- a/usr/src/lib/libc/sparcv9/crt/__align_cpy_2.s
+++ b/usr/src/lib/libc/sparcv9/crt/__align_cpy_2.s
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,12 +18,13 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright (c) 1997, Sun Microsystems, Inc.
- * All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
+ * Use is subject to license terms.
*/
-.ident "%Z%%M% %I% %E% SMI"
+#pragma ident "%Z%%M% %I% %E% SMI"
.file "%M%"
@@ -40,8 +40,6 @@
#include <sys/asm_linkage.h>
-#include "synonyms.h"
-
ENTRY(__align_cpy_2)
cmp %o0, %o1
be,pn %xcc, .done ! Identical addresses--done.
diff --git a/usr/src/lib/libc/sparcv9/crt/__align_cpy_4.s b/usr/src/lib/libc/sparcv9/crt/__align_cpy_4.s
index 801f7fd57f..b307e6a9e2 100644
--- a/usr/src/lib/libc/sparcv9/crt/__align_cpy_4.s
+++ b/usr/src/lib/libc/sparcv9/crt/__align_cpy_4.s
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,14 +18,15 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright (c) 1997, Sun Microsystems, Inc.
- * All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
+ * Use is subject to license terms.
*/
-.ident "%Z%%M% %I% %E% SMI"
+#pragma ident "%Z%%M% %I% %E% SMI"
- .file "%M%"
+ .file "%M%"
/* __align_cpy_4(s1, s2, n)
*
@@ -59,8 +59,6 @@
#include <sys/asm_linkage.h>
-#include "synonyms.h"
-
ENTRY(__align_cpy_4)
brz,pn %o2, .done ! Skip out if no bytes to copy.
cmp %o0, %o1
diff --git a/usr/src/lib/libc/sparcv9/crt/__align_cpy_8.s b/usr/src/lib/libc/sparcv9/crt/__align_cpy_8.s
index 87fbcbc187..da54955ef9 100644
--- a/usr/src/lib/libc/sparcv9/crt/__align_cpy_8.s
+++ b/usr/src/lib/libc/sparcv9/crt/__align_cpy_8.s
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,14 +18,15 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright (c) 1997, Sun Microsystems, Inc.
- * All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
+ * Use is subject to license terms.
*/
-.ident "%Z%%M% %I% %E% SMI"
+#pragma ident "%Z%%M% %I% %E% SMI"
- .file "%M%"
+ .file "%M%"
/* __align_cpy_8(s1, s2, n)
*
@@ -72,8 +72,6 @@
#include <sys/asm_linkage.h>
-#include "synonyms.h"
-
ENTRY(__align_cpy_8)
ENTRY(__align_cpy_16)
cmp %o0, %o1 ! Identical--do nothing.
diff --git a/usr/src/lib/libc/sparcv9/crt/_ftou.c b/usr/src/lib/libc/sparcv9/crt/_ftou.c
index 8f960205f3..bfc4802836 100644
--- a/usr/src/lib/libc/sparcv9/crt/_ftou.c
+++ b/usr/src/lib/libc/sparcv9/crt/_ftou.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,14 +18,15 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
-#include "synonyms.h"
+#include "lint.h"
#include <sys/types.h>
#include "libc.h"
diff --git a/usr/src/lib/libc/sparcv9/fp/_Q_get_rp_rd.s b/usr/src/lib/libc/sparcv9/fp/_Q_get_rp_rd.s
index 85b66c3c20..d5a7c6c413 100644
--- a/usr/src/lib/libc/sparcv9/fp/_Q_get_rp_rd.s
+++ b/usr/src/lib/libc/sparcv9/fp/_Q_get_rp_rd.s
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,14 +18,16 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2005 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
-#include "synonyms.h"
+ .file "%M%"
+
#include <sys/asm_linkage.h>
ENTRY(_QgetRD)
diff --git a/usr/src/lib/libc/sparcv9/fp/fpgetmask.s b/usr/src/lib/libc/sparcv9/fp/fpgetmask.s
index 9a42594805..5bd3d6322e 100644
--- a/usr/src/lib/libc/sparcv9/fp/fpgetmask.s
+++ b/usr/src/lib/libc/sparcv9/fp/fpgetmask.s
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,22 +18,23 @@
*
* CDDL HEADER END
*/
-/* Copyright (c) 1988 AT&T */
-/* All Rights Reserved */
+/*
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
+ * Use is subject to license terms.
+ */
-/* Copyright (c) 1989 by Sun Microsystems, Inc. */
+/* Copyright (c) 1988 AT&T */
+/* All Rights Reserved */
-.ident "%Z%%M% %I% %E% SMI" /* SVr4.0 1.11 */
+#pragma ident "%Z%%M% %I% %E% SMI"
- .file "fpgetmask.s"
+ .file "%M%"
-#include <sys/asm_linkage.h>
+#include "SYS.h"
ANSI_PRAGMA_WEAK(fpgetmask,function)
-#include "synonyms.h"
-
ENTRY(fpgetmask)
add %sp, -SA(MINFRAME), %sp ! get an additional word of storage
set 0x0f800000, %o4 ! mask of trap enable bits
diff --git a/usr/src/lib/libc/sparcv9/fp/fpgetrnd.s b/usr/src/lib/libc/sparcv9/fp/fpgetrnd.s
index e12e975bdf..9f0e0e0849 100644
--- a/usr/src/lib/libc/sparcv9/fp/fpgetrnd.s
+++ b/usr/src/lib/libc/sparcv9/fp/fpgetrnd.s
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,22 +18,23 @@
*
* CDDL HEADER END
*/
-/* Copyright (c) 1988 AT&T */
-/* All Rights Reserved */
+/*
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
+ * Use is subject to license terms.
+ */
-/* Copyright (c) 1989 by Sun Microsystems, Inc. */
+/* Copyright (c) 1988 AT&T */
+/* All Rights Reserved */
-.ident "%Z%%M% %I% %E% SMI" /* SVr4.0 1.11 */
+#pragma ident "%Z%%M% %I% %E% SMI"
- .file "fpgetrnd.s"
+ .file "%M%"
-#include <sys/asm_linkage.h>
+#include "SYS.h"
ANSI_PRAGMA_WEAK(fpgetround,function)
-#include "synonyms.h"
-
ENTRY(fpgetround)
add %sp, -SA(MINFRAME), %sp ! get an additional word of storage
st %fsr, [%sp+STACK_BIAS+ARGPUSH] ! get fsr value
diff --git a/usr/src/lib/libc/sparcv9/fp/fpgetsticky.s b/usr/src/lib/libc/sparcv9/fp/fpgetsticky.s
index 2ba37fff19..060fa74df2 100644
--- a/usr/src/lib/libc/sparcv9/fp/fpgetsticky.s
+++ b/usr/src/lib/libc/sparcv9/fp/fpgetsticky.s
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,22 +18,23 @@
*
* CDDL HEADER END
*/
-/* Copyright (c) 1988 AT&T */
-/* All Rights Reserved */
+/*
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
+ * Use is subject to license terms.
+ */
-/* Copyright (c) 1989 by Sun Microsystems, Inc. */
+/* Copyright (c) 1988 AT&T */
+/* All Rights Reserved */
-.ident "%Z%%M% %I% %E% SMI" /* SVr4.0 1.11 */
+#pragma ident "%Z%%M% %I% %E% SMI"
- .file "fpgetsticky.s"
+ .file "%M%"
-#include <sys/asm_linkage.h>
+#include "SYS.h"
ANSI_PRAGMA_WEAK(fpgetsticky,function)
-#include "synonyms.h"
-
ENTRY(fpgetsticky)
add %sp, -SA(MINFRAME), %sp ! get an additional word of storage
set 0x000003e0, %o4 ! mask of accrued exception bits
diff --git a/usr/src/lib/libc/sparcv9/fp/fpsetmask.s b/usr/src/lib/libc/sparcv9/fp/fpsetmask.s
index 3cae67dad5..38c359e33f 100644
--- a/usr/src/lib/libc/sparcv9/fp/fpsetmask.s
+++ b/usr/src/lib/libc/sparcv9/fp/fpsetmask.s
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,14 +18,18 @@
*
* CDDL HEADER END
*/
+
+/*
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
+ * Use is subject to license terms.
+ */
+
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
-/* Copyright (c) 1989 by Sun Microsystems, Inc. */
-
-.ident "%Z%%M% %I% %E% SMI"
- /* SVr4.0 1.4.1.9 */
+ .file "%M%"
/*
* fp_except fpsetmask(mask)
@@ -37,14 +40,10 @@
* is cleared
*/
- .file "fpsetmask.s"
-
-#include <sys/asm_linkage.h>
+#include "SYS.h"
ANSI_PRAGMA_WEAK(fpsetmask,function)
-#include "synonyms.h"
-
ENTRY(fpsetmask)
add %sp, -SA(MINFRAME), %sp ! get an additional word of storage
set 0x0f800000, %o4 ! mask of trap enable bits
diff --git a/usr/src/lib/libc/sparcv9/fp/fpsetrnd.s b/usr/src/lib/libc/sparcv9/fp/fpsetrnd.s
index c21b1e454a..deaec67f5d 100644
--- a/usr/src/lib/libc/sparcv9/fp/fpsetrnd.s
+++ b/usr/src/lib/libc/sparcv9/fp/fpsetrnd.s
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,22 +18,23 @@
*
* CDDL HEADER END
*/
-/* Copyright (c) 1988 AT&T */
-/* All Rights Reserved */
+/*
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
+ * Use is subject to license terms.
+ */
-/* Copyright (c) 1989 by Sun Microsystems, Inc. */
+/* Copyright (c) 1988 AT&T */
+/* All Rights Reserved */
-.ident "%Z%%M% %I% %E% SMI" /* SVr4.0 1.5.1.9 */
+#pragma ident "%Z%%M% %I% %E% SMI"
- .file "fpsetrnd.s"
+ .file "%M%"
-#include <sys/asm_linkage.h>
+#include "SYS.h"
ANSI_PRAGMA_WEAK(fpsetround,function)
-#include "synonyms.h"
-
ENTRY(fpsetround)
add %sp, -SA(MINFRAME), %sp ! get an additional word of storage
set 0xc0000000, %o4 ! mask of round control bits
diff --git a/usr/src/lib/libc/sparcv9/fp/fpsetsticky.s b/usr/src/lib/libc/sparcv9/fp/fpsetsticky.s
index 934bbacd50..54dec4ab6b 100644
--- a/usr/src/lib/libc/sparcv9/fp/fpsetsticky.s
+++ b/usr/src/lib/libc/sparcv9/fp/fpsetsticky.s
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,23 +18,23 @@
*
* CDDL HEADER END
*/
-/* Copyright (c) 1988 AT&T */
-/* All Rights Reserved */
+/*
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
+ * Use is subject to license terms.
+ */
-/* Copyright (c) 1989 by Sun Microsystems, Inc. */
+/* Copyright (c) 1988 AT&T */
+/* All Rights Reserved */
-.ident "%Z%%M% %I% %E% SMI"
- /* SVr4.0 1.4.1.7 */
+#pragma ident "%Z%%M% %I% %E% SMI"
- .file "fpsetsticky.s"
+ .file "%M%"
-#include <sys/asm_linkage.h>
+#include "SYS.h"
ANSI_PRAGMA_WEAK(fpsetsticky,function)
-#include "synonyms.h"
-
ENTRY(fpsetsticky)
add %sp, -SA(MINFRAME), %sp ! get an additional word of storage
set 0x000003e0, %o4 ! mask of accrued exception bits
diff --git a/usr/src/lib/libc/sparcv9/gen/_xregs_clrptr.c b/usr/src/lib/libc/sparcv9/gen/_xregs_clrptr.c
index b6c09be578..1873ed6c18 100644
--- a/usr/src/lib/libc/sparcv9/gen/_xregs_clrptr.c
+++ b/usr/src/lib/libc/sparcv9/gen/_xregs_clrptr.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,14 +18,15 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
-#include "synonyms.h"
+#include "lint.h"
#include <sys/types.h>
#include <ucontext.h>
#include "libc.h"
diff --git a/usr/src/lib/libc/sparcv9/gen/abs.s b/usr/src/lib/libc/sparcv9/gen/abs.s
index 9e483e2ca2..4d39a59436 100644
--- a/usr/src/lib/libc/sparcv9/gen/abs.s
+++ b/usr/src/lib/libc/sparcv9/gen/abs.s
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -21,19 +20,15 @@
*/
/*
- * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-.ident "%Z%%M% %I% %E% SMI"
+#pragma ident "%Z%%M% %I% %E% SMI"
.file "%M%"
-#include <sys/asm_linkage.h>
-
- ANSI_PRAGMA_WEAK(llabs,function)
-
-#include "synonyms.h"
+#include "SYS.h"
/*
* int abs(int arg);
diff --git a/usr/src/lib/libc/sparcv9/gen/ecvt.c b/usr/src/lib/libc/sparcv9/gen/ecvt.c
index 1e7e9e6111..422e980fb9 100644
--- a/usr/src/lib/libc/sparcv9/gen/ecvt.c
+++ b/usr/src/lib/libc/sparcv9/gen/ecvt.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,16 +18,16 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
/*
* ecvt converts to decimal
@@ -37,13 +36,11 @@
* sign is set to 0 for positive, 1 for negative
*
*/
-#pragma weak ecvt = _ecvt
-#pragma weak fcvt = _fcvt
-#pragma weak qecvt = _qecvt
-#pragma weak qfcvt = _qfcvt
-#pragma weak qgcvt = _qgcvt
-#include "synonyms.h"
+#pragma weak _ecvt = ecvt
+#pragma weak _fcvt = fcvt
+
+#include "lint.h"
#include <sys/types.h>
#include <stdlib.h>
#include <floatingpoint.h>
diff --git a/usr/src/lib/libc/sparcv9/gen/getctxt.c b/usr/src/lib/libc/sparcv9/gen/getctxt.c
index b119860217..3213955108 100644
--- a/usr/src/lib/libc/sparcv9/gen/getctxt.c
+++ b/usr/src/lib/libc/sparcv9/gen/getctxt.c
@@ -29,9 +29,9 @@
#pragma ident "%Z%%M% %I% %E% SMI"
-#pragma weak getcontext = _getcontext
+#pragma weak _getcontext = getcontext
-#include "synonyms.h"
+#include "lint.h"
#include "thr_uberdata.h"
#include <ucontext.h>
#include <sys/types.h>
diff --git a/usr/src/lib/libc/sparcv9/gen/lexp10.c b/usr/src/lib/libc/sparcv9/gen/lexp10.c
deleted file mode 100644
index 28152a5b8f..0000000000
--- a/usr/src/lib/libc/sparcv9/gen/lexp10.c
+++ /dev/null
@@ -1,52 +0,0 @@
-/*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
- *
- * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information: Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- */
-/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
- * Use is subject to license terms.
- */
-
-#pragma ident "%Z%%M% %I% %E% SMI"
-
-/* Copyright (c) 1988 AT&T */
-/* All Rights Reserved */
-
-
-#pragma weak lexp10 = _lexp10
-
-#include "synonyms.h"
-#include <sys/types.h>
-#include <sys/dl.h>
-
-dl_t
-lexp10(dl_t exp)
-{
- dl_t result;
-
- result = lone;
-
- while (exp.dl_hop != 0 || exp.dl_lop != 0) {
- result = lmul(result, lten);
- exp = lsub(exp, lone);
- }
-
- return (result);
-}
diff --git a/usr/src/lib/libc/sparcv9/gen/makectxt.c b/usr/src/lib/libc/sparcv9/gen/makectxt.c
index 9dc4c64697..7519bdabcb 100644
--- a/usr/src/lib/libc/sparcv9/gen/makectxt.c
+++ b/usr/src/lib/libc/sparcv9/gen/makectxt.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,21 +18,21 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
-#pragma weak makecontext = _makecontext
-#pragma weak __makecontext_v2 = ___makecontext_v2
+#pragma weak _makecontext = makecontext
+#pragma weak ___makecontext_v2 = __makecontext_v2
-#include "synonyms.h"
+#include "lint.h"
#include <stdarg.h>
#include <strings.h>
#include <sys/ucontext.h>
@@ -53,7 +52,7 @@
static void resumecontext(void);
void
-_makecontext(ucontext_t *ucp, void (*func)(), int argc, ...)
+makecontext(ucontext_t *ucp, void (*func)(), int argc, ...)
{
greg_t *reg;
long *tsp;
diff --git a/usr/src/lib/libc/sparcv9/gen/memchr.s b/usr/src/lib/libc/sparcv9/gen/memchr.s
index d0f4a6c905..d04b7b6526 100644
--- a/usr/src/lib/libc/sparcv9/gen/memchr.s
+++ b/usr/src/lib/libc/sparcv9/gen/memchr.s
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,14 +18,16 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2003 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-.ident "%Z%%M% %I% %E% SMI"
+#pragma ident "%Z%%M% %I% %E% SMI"
+
+ .file "%M%"
- .file "%M%"
/*
* Return the ptr in sptr at which the character c1 appears;
* or NULL if not found in n chars; don't stop at \0.
@@ -47,7 +48,6 @@
*/
#include <sys/asm_linkage.h>
-#include "synonyms.h"
! The first part of this algorithm focuses on determining
! whether or not the desired character is in the first few bytes
diff --git a/usr/src/lib/libc/sparcv9/gen/memcmp.s b/usr/src/lib/libc/sparcv9/gen/memcmp.s
index bc1846b180..d551a68b6d 100644
--- a/usr/src/lib/libc/sparcv9/gen/memcmp.s
+++ b/usr/src/lib/libc/sparcv9/gen/memcmp.s
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,12 +18,13 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright (c) 1997-1998 by Sun Microsystems, Inc.
- * All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
+ * Use is subject to license terms.
*/
-.ident "%Z%%M% %I% %E% SMI"
+#pragma ident "%Z%%M% %I% %E% SMI"
.file "%M%"
@@ -55,8 +55,6 @@
ANSI_PRAGMA_WEAK(memcmp,function)
-#include "synonyms.h"
-
ENTRY(memcmp)
cmp %o0, %o1 ! s1 == s2?
be,pn %xcc, .cmpeq
diff --git a/usr/src/lib/libc/sparcv9/gen/memcpy.s b/usr/src/lib/libc/sparcv9/gen/memcpy.s
index 46e22d08b2..4bea160cee 100644
--- a/usr/src/lib/libc/sparcv9/gen/memcpy.s
+++ b/usr/src/lib/libc/sparcv9/gen/memcpy.s
@@ -24,7 +24,7 @@
* Use is subject to license terms.
*/
- .ident "%Z%%M% %I% %E% SMI"
+#pragma ident "%Z%%M% %I% %E% SMI"
.file "%M%"
@@ -58,8 +58,6 @@
ANSI_PRAGMA_WEAK(memcpy,function)
-#include "synonyms.h"
-
ENTRY(memcpy)
ENTRY(__align_cpy_1)
mov %o0, %g5 ! save des address for return val
diff --git a/usr/src/lib/libc/sparcv9/gen/memmove.s b/usr/src/lib/libc/sparcv9/gen/memmove.s
index 05348f1997..5b85b05c20 100644
--- a/usr/src/lib/libc/sparcv9/gen/memmove.s
+++ b/usr/src/lib/libc/sparcv9/gen/memmove.s
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,12 +18,13 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright (c) 1997, by Sun Microsystems, Inc.
- * All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
+ * Use is subject to license terms.
*/
-.ident "%Z%%M% %I% %E% SMI"
+#pragma ident "%Z%%M% %I% %E% SMI"
.file "%M%"
@@ -32,8 +32,6 @@
ANSI_PRAGMA_WEAK(memmove,function)
-#include "synonyms.h"
-
/*
* memmove(s1, s2, len)
* Copy s2 to s1, always copy n bytes.
diff --git a/usr/src/lib/libc/sparcv9/gen/memset.s b/usr/src/lib/libc/sparcv9/gen/memset.s
index 72fe265317..92110f5e6a 100644
--- a/usr/src/lib/libc/sparcv9/gen/memset.s
+++ b/usr/src/lib/libc/sparcv9/gen/memset.s
@@ -24,7 +24,7 @@
* Use is subject to license terms.
*/
- .ident "%Z%%M% %I% %E% SMI"
+#pragma ident "%Z%%M% %I% %E% SMI"
.file "%M%"
@@ -76,8 +76,6 @@
ANSI_PRAGMA_WEAK(memset,function)
-#include "synonyms.h"
-
ENTRY(memset)
mov %o0, %o5 ! need to return this value
cmp %o2, 7
diff --git a/usr/src/lib/libc/sparcv9/gen/setjmp.s b/usr/src/lib/libc/sparcv9/gen/setjmp.s
index 35f977ea05..0d381be0c8 100644
--- a/usr/src/lib/libc/sparcv9/gen/setjmp.s
+++ b/usr/src/lib/libc/sparcv9/gen/setjmp.s
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,26 +18,24 @@
*
* CDDL HEADER END
*/
-/* Copyright (c) 1988 AT&T */
-/* All Rights Reserved */
-
/*
- * Copyright 1987-2003 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-.ident "%Z%%M% %I% %E% SMI" /* SVr4.0 1.4 */
+/* Copyright (c) 1988 AT&T */
+/* All Rights Reserved */
+
+#pragma ident "%Z%%M% %I% %E% SMI"
- .file "setjmp.s"
+ .file "%M%"
#include <sys/asm_linkage.h>
ANSI_PRAGMA_WEAK(setjmp,function)
ANSI_PRAGMA_WEAK(longjmp,function)
-#include "synonyms.h"
-
#include <sys/trap.h>
JB_FLAGS = (0*8) ! offsets in jmpbuf (see siglongjmp.c)
diff --git a/usr/src/lib/libc/sparcv9/gen/siginfolst.c b/usr/src/lib/libc/sparcv9/gen/siginfolst.c
index 8939850c60..712e70c582 100644
--- a/usr/src/lib/libc/sparcv9/gen/siginfolst.c
+++ b/usr/src/lib/libc/sparcv9/gen/siginfolst.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,18 +18,18 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
-#include "synonyms.h"
+#include "lint.h"
#include <signal.h>
#include <siginfo.h>
diff --git a/usr/src/lib/libc/sparcv9/gen/siglongjmp.c b/usr/src/lib/libc/sparcv9/gen/siglongjmp.c
index 5efc2e28a2..83a640397d 100644
--- a/usr/src/lib/libc/sparcv9/gen/siglongjmp.c
+++ b/usr/src/lib/libc/sparcv9/gen/siglongjmp.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -21,19 +20,18 @@
*/
/*
- * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
-#pragma weak siglongjmp = _siglongjmp
+#pragma weak _siglongjmp = siglongjmp
-#include "synonyms.h"
+#include "lint.h"
#include <sys/types.h>
#include <sys/stack.h>
#include <sys/frame.h>
diff --git a/usr/src/lib/libc/sparcv9/gen/strcasecmp.s b/usr/src/lib/libc/sparcv9/gen/strcasecmp.s
index a9423ea749..32ac6bf3e1 100644
--- a/usr/src/lib/libc/sparcv9/gen/strcasecmp.s
+++ b/usr/src/lib/libc/sparcv9/gen/strcasecmp.s
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,14 +18,16 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2003 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-.ident "%Z%%M% %I% %E% SMI"
+#pragma ident "%Z%%M% %I% %E% SMI"
.file "%M%"
+
/*
* The strcasecmp() function is a case insensitive versions of strcmp().
* It assumes the ASCII character set and ignores differences in case
@@ -116,9 +117,7 @@
* Both algorithms have been tested exhaustively for all possible 2^32 inputs.
*/
-
#include <sys/asm_linkage.h>
-#include "synonyms.h"
! The first part of this algorithm walks through the beginning of
! both strings a byte at a time until the source ptr is aligned to
diff --git a/usr/src/lib/libc/sparcv9/gen/strchr.s b/usr/src/lib/libc/sparcv9/gen/strchr.s
index afc1fff4db..910399e822 100644
--- a/usr/src/lib/libc/sparcv9/gen/strchr.s
+++ b/usr/src/lib/libc/sparcv9/gen/strchr.s
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,12 +18,13 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2003 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-.ident "%Z%%M% %I% %E% SMI"
+#pragma ident "%Z%%M% %I% %E% SMI"
.file "%M%"
@@ -35,7 +35,6 @@
*/
#include <sys/asm_linkage.h>
-#include "synonyms.h"
! Here, we start by checking to see if we're searching the dest
! string for a null byte. We have fast code for this, so it's
diff --git a/usr/src/lib/libc/sparcv9/gen/strcmp.s b/usr/src/lib/libc/sparcv9/gen/strcmp.s
index 57525d2347..34c9d46d18 100644
--- a/usr/src/lib/libc/sparcv9/gen/strcmp.s
+++ b/usr/src/lib/libc/sparcv9/gen/strcmp.s
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,13 +18,13 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2003 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-
-.ident "%Z%%M% %I% %E% SMI"
+#pragma ident "%Z%%M% %I% %E% SMI"
.file "%M%"
@@ -52,7 +51,6 @@
*/
#include <sys/asm_linkage.h>
-#include "synonyms.h"
! This strcmp implementation first determines whether s1 is aligned.
! If it is not, it attempts to align it and then checks the
diff --git a/usr/src/lib/libc/sparcv9/gen/strcpy.s b/usr/src/lib/libc/sparcv9/gen/strcpy.s
index 77d98e1856..ac97dd6566 100644
--- a/usr/src/lib/libc/sparcv9/gen/strcpy.s
+++ b/usr/src/lib/libc/sparcv9/gen/strcpy.s
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,12 +18,13 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2003 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-.ident "%Z%%M% %I% %E% SMI"
+#pragma ident "%Z%%M% %I% %E% SMI"
.file "%M%"
@@ -51,7 +51,6 @@
*/
#include <sys/asm_linkage.h>
-#include "synonyms.h"
! This implementation of strcpy works by first checking the
! source alignment and copying byte, half byte, or word
diff --git a/usr/src/lib/libc/sparcv9/gen/strlcpy.s b/usr/src/lib/libc/sparcv9/gen/strlcpy.s
index 24e5b558b7..810b331921 100644
--- a/usr/src/lib/libc/sparcv9/gen/strlcpy.s
+++ b/usr/src/lib/libc/sparcv9/gen/strlcpy.s
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,12 +18,13 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2003 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-.ident "%Z%%M% %I% %E% SMI"
+#pragma ident "%Z%%M% %I% %E% SMI"
.file "%M%"
@@ -40,7 +40,6 @@
*/
#include <sys/asm_linkage.h>
-#include "synonyms.h"
! strlcpy implementation is similar to that of strcpy, except
! in this case, the maximum size of the detination must be
diff --git a/usr/src/lib/libc/sparcv9/gen/strlen.s b/usr/src/lib/libc/sparcv9/gen/strlen.s
index 09da4ed196..e709690f79 100644
--- a/usr/src/lib/libc/sparcv9/gen/strlen.s
+++ b/usr/src/lib/libc/sparcv9/gen/strlen.s
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,13 +18,13 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2003 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-
-.ident "%Z%%M% %I% %E% SMI"
+#pragma ident "%Z%%M% %I% %E% SMI"
.file "%M%"
@@ -50,7 +49,6 @@
*/
#include <sys/asm_linkage.h>
-#include "synonyms.h"
! The object of strlen is to, as quickly as possible, find the
! null byte. To this end, we attempt to get our string aligned
diff --git a/usr/src/lib/libc/sparcv9/gen/strncmp.s b/usr/src/lib/libc/sparcv9/gen/strncmp.s
index 56460a213a..519669005c 100644
--- a/usr/src/lib/libc/sparcv9/gen/strncmp.s
+++ b/usr/src/lib/libc/sparcv9/gen/strncmp.s
@@ -20,7 +20,7 @@
*/
/*
- * Copyright 2007 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
@@ -50,7 +50,6 @@
*/
#include <sys/asm_linkage.h>
-#include "synonyms.h"
ENTRY(strncmp)
save %sp, -SA(WINDOWSIZE), %sp
diff --git a/usr/src/lib/libc/sparcv9/gen/strncpy.s b/usr/src/lib/libc/sparcv9/gen/strncpy.s
index 03f04c999c..fe73b67bf6 100644
--- a/usr/src/lib/libc/sparcv9/gen/strncpy.s
+++ b/usr/src/lib/libc/sparcv9/gen/strncpy.s
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,12 +18,13 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2003 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-.ident "%Z%%M% %I% %E% SMI"
+#pragma ident "%Z%%M% %I% %E% SMI"
.file "%M%"
@@ -53,7 +53,6 @@
*/
#include <sys/asm_linkage.h>
-#include "synonyms.h"
! strncpy works similarly to strcpy, except that n bytes of s2
! are copied to s1. If a null character is reached in s2 yet more
diff --git a/usr/src/lib/libc/sparcv9/gen/swapctxt.c b/usr/src/lib/libc/sparcv9/gen/swapctxt.c
index 8c052ca843..c2b527e868 100644
--- a/usr/src/lib/libc/sparcv9/gen/swapctxt.c
+++ b/usr/src/lib/libc/sparcv9/gen/swapctxt.c
@@ -29,9 +29,9 @@
#pragma ident "%Z%%M% %I% %E% SMI"
-#pragma weak swapcontext = _swapcontext
+#pragma weak _swapcontext = swapcontext
-#include "synonyms.h"
+#include "lint.h"
#include "thr_uberdata.h"
#include <ucontext.h>
#include <sys/types.h>
diff --git a/usr/src/lib/libc/sparcv9/inc/SYS.h b/usr/src/lib/libc/sparcv9/inc/SYS.h
index c9496cdcf2..10b1cd7bed 100644
--- a/usr/src/lib/libc/sparcv9/inc/SYS.h
+++ b/usr/src/lib/libc/sparcv9/inc/SYS.h
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,8 +18,9 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
@@ -39,7 +39,6 @@
#include <sys/asm_linkage.h>
#include <sys/syscall.h>
#include <sys/errno.h>
-#include "synonyms.h"
/*
* While it's tempting to imagine we could use 'rd %pc' here,
diff --git a/usr/src/lib/libc/sparcv9/mapfile-vers b/usr/src/lib/libc/sparcv9/mapfile-vers
index ee7b4afdbb..1070574249 100644
--- a/usr/src/lib/libc/sparcv9/mapfile-vers
+++ b/usr/src/lib/libc/sparcv9/mapfile-vers
@@ -796,6 +796,7 @@ SUNWprivate_1.1 {
_install_utrap;
_memcmp = AUXILIARY /platform/$PLATFORM/lib/sparcv9/libc_psr.so.1;
_memcpy = AUXILIARY /platform/$PLATFORM/lib/sparcv9/libc_psr.so.1;
+ _memcpy = NODYNSORT;
_memmove = AUXILIARY /platform/$PLATFORM/lib/sparcv9/libc_psr.so.1;
_memset = AUXILIARY /platform/$PLATFORM/lib/sparcv9/libc_psr.so.1;
nop;