Re: svn commit: r305358 - in head: bin/cat/tests contrib/netbsd-tests contrib/netbsd-tests/bin/cat contrib/netbsd-tests/bin/sh contrib/netbsd-tests/bin/sh/dotcmd contrib/netbsd-tests/crypto/opencrypto
Hi, The tests in libc are broken after this commit. lib/libc/test/db/Makefile defines "PROGS = h_lfsr" but the test is trying to execute a binary "h_db" which no longer exists. Can you fix this? Thanks. -- Craig On Sat, Sep 3, 2016 at 11:11 AM, Ngie Cooperwrote: > Author: ngie > Date: Sat Sep 3 18:11:48 2016 > New Revision: 305358 > URL: https://svnweb.freebsd.org/changeset/base/305358 > > Log: > Update contrib/netbsd-tests with new content from NetBSD > > This updates the snapshot from 09/30/2014 to 08/11/2016 > > This brings in a number of new testcases from upstream, most > notably: > > - bin/cat > - lib/libc > - lib/msun > - lib/libthr > - usr.bin/sort > > lib/libc/tests/stdio/open_memstream_test.c was moved to > lib/libc/tests/stdio/open_memstream2_test.c to accomodate > the new open_memstream test from NetBSD. > > MFC after:2 months > Tested on:amd64 (VMware fusion VM; various bare metal platforms); > i386 (VMware fusion VM); make tinderbox > Sponsored by: EMC / Isilon Storage Division > > Added: > head/contrib/netbsd-tests/bin/cat/d_se_output.in > - copied unchanged from r305318, projects/netbsd-tests-update- > 12/contrib/netbsd-tests/bin/cat/d_se_output.in > head/contrib/netbsd-tests/bin/cat/d_se_output.out > - copied unchanged from r305318, projects/netbsd-tests-update- > 12/contrib/netbsd-tests/bin/cat/d_se_output.out > head/contrib/netbsd-tests/bin/sh/t_arith.sh > - copied unchanged from r305318, projects/netbsd-tests-update- > 12/contrib/netbsd-tests/bin/sh/t_arith.sh > head/contrib/netbsd-tests/bin/sh/t_cmdsub.sh > - copied unchanged from r305318, projects/netbsd-tests-update- > 12/contrib/netbsd-tests/bin/sh/t_cmdsub.sh > head/contrib/netbsd-tests/bin/sh/t_option.sh > - copied unchanged from r305318, projects/netbsd-tests-update- > 12/contrib/netbsd-tests/bin/sh/t_option.sh > head/contrib/netbsd-tests/bin/sh/t_redir.sh > - copied unchanged from r305318, projects/netbsd-tests-update- > 12/contrib/netbsd-tests/bin/sh/t_redir.sh > head/contrib/netbsd-tests/bin/sh/t_redircloexec.sh > - copied unchanged from r305318, projects/netbsd-tests-update- > 12/contrib/netbsd-tests/bin/sh/t_redircloexec.sh > head/contrib/netbsd-tests/bin/sh/t_shift.sh > - copied unchanged from r305318, projects/netbsd-tests-update- > 12/contrib/netbsd-tests/bin/sh/t_shift.sh > head/contrib/netbsd-tests/bin/sh/t_varval.sh > - copied unchanged from r305318, projects/netbsd-tests-update- > 12/contrib/netbsd-tests/bin/sh/t_varval.sh > head/contrib/netbsd-tests/dev/fss/ > - copied from r305318, projects/netbsd-tests-update- > 12/contrib/netbsd-tests/dev/fss/ > head/contrib/netbsd-tests/dev/usb/ > - copied from r305318, projects/netbsd-tests-update- > 12/contrib/netbsd-tests/dev/usb/ > head/contrib/netbsd-tests/include/sys/t_pslist.c > - copied unchanged from r305318, projects/netbsd-tests-update- > 12/contrib/netbsd-tests/include/sys/t_pslist.c > head/contrib/netbsd-tests/kernel/kqueue/t_vnode.c > - copied unchanged from r305318, projects/netbsd-tests-update- > 12/contrib/netbsd-tests/kernel/kqueue/t_vnode.c > head/contrib/netbsd-tests/lib/libc/db/h_lfsr.c > - copied unchanged from r305318, projects/netbsd-tests-update- > 12/contrib/netbsd-tests/lib/libc/db/h_lfsr.c > head/contrib/netbsd-tests/lib/libc/db/t_db_hash_seq.c > - copied unchanged from r305318, projects/netbsd-tests-update- > 12/contrib/netbsd-tests/lib/libc/db/t_db_hash_seq.c > head/contrib/netbsd-tests/lib/libc/inet/t_inet_addr.c > - copied unchanged from r305318, projects/netbsd-tests-update- > 12/contrib/netbsd-tests/lib/libc/inet/t_inet_addr.c > head/contrib/netbsd-tests/lib/libc/stdio/t_open_memstream.c > - copied unchanged from r305318, projects/netbsd-tests-update- > 12/contrib/netbsd-tests/lib/libc/stdio/t_open_memstream.c > head/contrib/netbsd-tests/lib/libc/stdlib/t_strtoi.c > - copied unchanged from r305318, projects/netbsd-tests-update- > 12/contrib/netbsd-tests/lib/libc/stdlib/t_strtoi.c > head/contrib/netbsd-tests/lib/libc/sync/cpp_atomic_ops_linkable.cc > - copied unchanged from r305318, projects/netbsd-tests-update- > 12/contrib/netbsd-tests/lib/libc/sync/cpp_atomic_ops_linkable.cc > head/contrib/netbsd-tests/lib/libc/sys/t_bind.c > - copied unchanged from r305318, projects/netbsd-tests-update- > 12/contrib/netbsd-tests/lib/libc/sys/t_bind.c > head/contrib/netbsd-tests/lib/libc/sys/t_getsockname.c > - copied unchanged from r305318, projects/netbsd-tests-update- > 12/contrib/netbsd-tests/lib/libc/sys/t_getsockname.c > head/contrib/netbsd-tests/lib/libc/sys/t_posix_fallocate.c > - copied unchanged from r305318, projects/netbsd-tests-update- > 12/contrib/netbsd-tests/lib/libc/sys/t_posix_fallocate.c > head/contrib/netbsd-tests/lib/libc/sys/t_wait.c > - copied unchanged from r305318, projects/netbsd-tests-update- >
Re: svn commit: r305170 - head/lib/atf/libatf-c
On Thursday, September 1, 2016, Brooks Daviswrote: > > > Are these the variables used to control the tests that try to compile > things? > > > You need to carefully read the source code for this particular test to understand what is going on. This test compiles a binary, and then the test runs "strings" against the binary and expects a certain output. The compiler flags make a difference for this test. -- Craig ___ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
Re: svn commit: r301752 - head/contrib/netbsd-tests/lib/libc/string
Ngie, Can you please MFC this to stable/10 branch? I believe this has been causing a test failure in this branch since June. Thanks. -- Craig On Thu, Jun 9, 2016 at 11:35 AM, Garrett Cooperwrote: > Author: ngie > Date: Thu Jun 9 18:35:37 2016 > New Revision: 301752 > URL: https://svnweb.freebsd.org/changeset/base/301752 > > Log: > Update `goodResult` after recent changes made to the PRNG in libc > > The PRNG was changed in r300953/r300956, and subsequently, the numbers > generated have changed. This is expected ABI breakage per ache > > X-MFC with: r300953, r300956 > Tested with: amd64, i386 > Sponsored by: EMC / Isilon Storage Division > > Modified: > head/contrib/netbsd-tests/lib/libc/string/t_memcpy.c > > Modified: head/contrib/netbsd-tests/lib/libc/string/t_memcpy.c > > == > --- head/contrib/netbsd-tests/lib/libc/string/t_memcpy.cThu Jun > 9 18:27:41 2016(r301751) > +++ head/contrib/netbsd-tests/lib/libc/string/t_memcpy.cThu Jun > 9 18:35:37 2016(r301752) > @@ -54,7 +54,7 @@ char result[100]; > #ifdef __NetBSD__ > const char goodResult[] = "7b405d24bc03195474c70ddae9e1f8fb"; > #else > -const char goodResult[] = "217b4fbe456916bf62a2f85df752e4ab"; > +const char goodResult[] = "5ab4443f0e3e058d94087d9f2a11ef5e"; > #endif > > static void > > ___ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
Re: svn commit: r304860 - in head: include lib/libc/gen
On Mon, Aug 29, 2016 at 12:08 AM, Ngie Cooper (yaneurabeya) < yaneurab...@gmail.com> wrote: > > > I already filed a bug for this: https://bugs.freebsd.org > /bugzilla/show_bug.cgi?id=212193 . I’m going to mark this as a failure > soon to mute the noise. > Thanks, > -Ngie > Thanks. That will be helpful. -- Craig ___ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
Re: svn commit: r304860 - in head: include lib/libc/gen
[Resending from right e-mail address] On Fri, Aug 26, 2016 at 1:23 PM, Ed Schoutenwrote: > Author: ed > Date: Fri Aug 26 20:23:10 2016 > New Revision: 304860 > URL: https://svnweb.freebsd.org/changeset/base/304860 > > Log: > Improve compatibility of calls to dirname() on constant strings. > Ed, I think one of the dirname related tests is failing after this change. Can you take a look: https://jenkins.freebsd.org/job/FreeBSD_HEAD/561/ -- Craig ___ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
Re: svn commit: r304860 - in head: include lib/libc/gen
On Fri, Aug 26, 2016 at 1:23 PM, Ed Schoutenwrote: > Author: ed > Date: Fri Aug 26 20:23:10 2016 > New Revision: 304860 > URL: https://svnweb.freebsd.org/changeset/base/304860 > > Log: > Improve compatibility of calls to dirname() on constant strings. > Ed, I think one of the dirname related tests is failing after this change. Can you take a look: https://jenkins.freebsd.org/job/FreeBSD_HEAD/561/ -- Craig ___ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
Re: svn commit: r297789 - stable/10/bin/csh
On Sun, Apr 10, 2016 at 11:12 AM, Mark Peekwrote: > Author: mp > Date: Sun Apr 10 18:12:04 2016 > New Revision: 297789 > URL: https://svnweb.freebsd.org/changeset/base/297789 > > Log: > MFC 297673: > > Revert r296969 by removing SAVESIGVEC and switching to fork instead. This > fixes usage with system libraries which maintain their own signal state. > > PR: 208132 > > I'm not sure, but it looks like this might have fixed some tests which were failing for the past month. Should this go into 10.3 as an Errata Notice? -- Craig ___ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
Re: svn commit: r294315 - in vendor-crypto/openssh/dist: . contrib/redhat contrib/suse
On Tue, Jan 19, 2016 at 2:10 AM, Dag-Erling Smørgravwrote: > Author: des > Date: Tue Jan 19 10:10:58 2016 > New Revision: 294315 > URL: https://svnweb.freebsd.org/changeset/base/294315 > > Log: > Vendor import of OpenSSH 7.1p2. > Hi, I'm not sure if this is the exact commit, but sometime around this commit, I have started seeing some failures in some scripts that I have running. These scripts build and boot a VM, and try to SSH into the VM to run some tests. It turns out that sshd is not starting properly, so the tests fail to SSH into the VM: https://jenkins.freebsd.org/job/FreeBSD_HEAD/54/execution/node/43/log/ From last night's build, I was able to boot the VM, and log into the VM console. If I tried to manually start sshd, I got this: # service sshd restart Performing sanity check on sshd configuration. Fssh_key_load_public: invalid format Could not load host key: /etc/ssh/ssh_host_rsa_key Could not load host key: /etc/ssh/ssh_host_dsa_key Fssh_key_load_public: invalid format Could not load host key: /etc/ssh/ssh_host_ecdsa_key Fssh_key_load_public: invalid format Could not load host key: /etc/ssh/ssh_host_ed25519_key Disabling protocol version 2. Could not load host key sshd: no hostkeys available -- exiting. Some observations: - these do not exist: /etc/ssh/ssh_host_dsa_key /etc/ssh/ssh_host_ecdsa_key - these files exist: -rw--- 1 root wheel 227 Jan 25 21:34 /etc/ssh/ssh_host_ecdsa_key -rw--- 1 root wheel 387 Jan 25 21:34 /etc/ssh/ssh_host_ed25519_key -rw--- 1 root wheel 1679 Jan 25 21:34 /etc/ssh/ssh_host_rsa_key but they seem to be all zeroes The VM that I configured is nothing fancy. It just has this in /etc/rc.conf: sshd_enable="YES" ifconfig_vtnet0="inet 192.168.10.2/24" Any ideas as to what the problem might be? -- Craig ___ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
Re: svn commit: r294464 - in head: crypto/openssh crypto/openssh/contrib/redhat crypto/openssh/contrib/suse crypto/openssh/openbsd-compat crypto/openssh/regress crypto/openssh/regress/unittests crypto
On Wed, Jan 20, 2016 at 2:57 PM, Dag-Erling Smørgravwrote: > Author: des > Date: Wed Jan 20 22:57:10 2016 > New Revision: 294464 > URL: https://svnweb.freebsd.org/changeset/base/294464 > > Log: > Upgrade to OpenSSH 7.0p1. > > Modified: > head/crypto/openssh/openbsd-compat/realpath.c > clang is emitting a new warning on this file: https://jenkins.freebsd.org/job/FreeBSD_HEAD/62/warnings7Result/new/ Is it a legitimate problem which needs to be fixed upstream, or is it a non-issue? -- Craig ___ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
Re: svn commit: r293191 - stable/10/etc/mtree
On Tue, Jan 5, 2016 at 3:10 AM, Garrett Cooperwrote: > Author: ngie > Date: Tue Jan 5 08:10:06 2016 > New Revision: 293191 > URL: https://svnweb.freebsd.org/changeset/base/293191 > > Log: > Add `..` after sys/kern/pipe entry accidentally missed in r291183 > > This is a direct commit to stable/10 > > Pointyhat to: ngie > Reported by: rodrigc > Sponsored by: EMC / Isilon Storage Division > > Thanks, that fixed it for me. ___ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
Re: svn commit: r277457 - in stable/10: . etc etc/mtree tools/build/mk
On Tue, Jan 20, 2015 at 6:39 PM, Garrett Cooperwrote: > Author: ngie > Date: Tue Jan 20 23:39:08 2015 > New Revision: 277457 > URL: https://svnweb.freebsd.org/changeset/base/277457 > > Log: > MFC r275907: > > r275907 (by ngie): > > Fix building/installing tests when TESTSBASE != /usr/tests > > This merge is botched. Can you fix this? mtree is now creating these directories under /usr/tests/sys which is wrong, and causing "installworld" to fail if src.conf contains WITH_TESTS="yes" usr/tests/sys/usr.sbin usr/tests/sys/usr.sbin/sa usr/tests/sys/usr.sbin/pw usr/tests/sys/usr.sbin/fstyp usr/tests/sys/usr.sbin/nmtree usr/tests/sys/usr.sbin/newsyslog usr/tests/sys/usr.sbin/etcupdate usr/tests/sys/usr.sbin/makefs usr/tests/sys/usr.bin usr/tests/sys/usr.bin/tar usr/tests/sys/usr.bin/cut usr/tests/sys/usr.bin/comm usr/tests/sys/usr.bin/col usr/tests/sys/usr.bin/cpio usr/tests/sys/usr.bin/file2c usr/tests/sys/usr.bin/uudecode usr/tests/sys/usr.bin/truncate usr/tests/sys/usr.bin/cmp usr/tests/sys/usr.bin/m4 usr/tests/sys/usr.bin/grep usr/tests/sys/usr.bin/timeout usr/tests/sys/usr.bin/lastcomm usr/tests/sys/usr.bin/ncal usr/tests/sys/usr.bin/yacc usr/tests/sys/usr.bin/yacc/yacc usr/tests/sys/usr.bin/join usr/tests/sys/usr.bin/bmake usr/tests/sys/usr.bin/bmake/basic usr/tests/sys/usr.bin/bmake/basic/t3 usr/tests/sys/usr.bin/bmake/basic/t0 usr/tests/sys/usr.bin/bmake/basic/t2 usr/tests/sys/usr.bin/bmake/basic/t1 usr/tests/sys/usr.bin/bmake/shell usr/tests/sys/usr.bin/bmake/shell/select usr/tests/sys/usr.bin/bmake/shell/meta usr/tests/sys/usr.bin/bmake/shell/path usr/tests/sys/usr.bin/bmake/shell/path_select usr/tests/sys/usr.bin/bmake/shell/builtin usr/tests/sys/usr.bin/bmake/shell/replace usr/tests/sys/usr.bin/bmake/sysmk usr/tests/sys/usr.bin/bmake/sysmk/t1 usr/tests/sys/usr.bin/bmake/sysmk/t1/2 usr/tests/sys/usr.bin/bmake/sysmk/t1/2/1 usr/tests/sys/usr.bin/bmake/sysmk/t1/mk usr/tests/sys/usr.bin/bmake/sysmk/t2 usr/tests/sys/usr.bin/bmake/sysmk/t2/mk usr/tests/sys/usr.bin/bmake/sysmk/t2/2 usr/tests/sys/usr.bin/bmake/sysmk/t2/2/1 usr/tests/sys/usr.bin/bmake/sysmk/t0 usr/tests/sys/usr.bin/bmake/sysmk/t0/mk usr/tests/sys/usr.bin/bmake/sysmk/t0/2 usr/tests/sys/usr.bin/bmake/sysmk/t0/2/1 usr/tests/sys/usr.bin/bmake/variables usr/tests/sys/usr.bin/bmake/variables/modifier_t usr/tests/sys/usr.bin/bmake/variables/opt_V usr/tests/sys/usr.bin/bmake/variables/t0 usr/tests/sys/usr.bin/bmake/variables/modifier_M usr/tests/sys/usr.bin/bmake/archives usr/tests/sys/usr.bin/bmake/archives/fmt_oldbsd usr/tests/sys/usr.bin/bmake/archives/fmt_44bsd_mod usr/tests/sys/usr.bin/bmake/archives/fmt_44bsd usr/tests/sys/usr.bin/bmake/suffixes usr/tests/sys/usr.bin/bmake/suffixes/basic usr/tests/sys/usr.bin/bmake/suffixes/src_wild2 usr/tests/sys/usr.bin/bmake/suffixes/src_wild1 usr/tests/sys/usr.bin/bmake/execution usr/tests/sys/usr.bin/bmake/execution/plus usr/tests/sys/usr.bin/bmake/execution/ellipsis usr/tests/sys/usr.bin/bmake/execution/joberr usr/tests/sys/usr.bin/bmake/execution/empty usr/tests/sys/usr.bin/bmake/syntax usr/tests/sys/usr.bin/bmake/syntax/enl usr/tests/sys/usr.bin/bmake/syntax/funny-targets usr/tests/sys/usr.bin/bmake/syntax/directive-t0 usr/tests/sys/usr.bin/bmake/syntax/semi usr/tests/sys/usr.bin/sed usr/tests/sys/usr.bin/sed/regress.multitest.out usr/tests/sys/usr.bin/apply usr/tests/sys/usr.bin/opensm usr/tests/sys/usr.bin/calendar usr/tests/sys/usr.bin/limits usr/tests/sys/usr.bin/jot usr/tests/sys/usr.bin/tr usr/tests/sys/usr.bin/printf usr/tests/sys/usr.bin/dirname usr/tests/sys/usr.bin/xargs usr/tests/sys/usr.bin/uuencode usr/tests/sys/usr.bin/gzip usr/tests/sys/usr.bin/basename -- Craig ___ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
Re: svn commit: r292533 - head/tools/regression/mac/mac_bsdextended
On Mon, Dec 21, 2015 at 12:58 AM, Garrett Cooperwrote: > Author: ngie > Date: Mon Dec 21 08:58:14 2015 > New Revision: 292533 > URL: https://svnweb.freebsd.org/changeset/base/292533 > > Log: > Skip the testcases if mac_bsdextended(4) isn't detected on the > system > > MFC after: 2 weeks > Sponsored by: EMC / Isilon Storage Division > > Modified: > head/tools/regression/mac/mac_bsdextended/test_matches.sh > > One of these tests seems to be failing: https://jenkins.freebsd.org/job/FreeBSD_HEAD_Build_and_Test/60/testReport/junit/sys.mac.bsdextended/ugidfw_test/main/ -- Craig ___ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
svn commit: r292612 - head
Author: rodrigc Date: Tue Dec 22 17:46:14 2015 New Revision: 292612 URL: https://svnweb.freebsd.org/changeset/base/292612 Log: Refer to creating Phabricator Herald notifications This will allow maintainers to be notified of any reviews or commits affecting parts of the tree which they maintain. Reviewed by: jhb, emaste, allanjude Differential Revision: https://reviews.freebsd.org/D4623 Modified: head/MAINTAINERS Modified: head/MAINTAINERS == --- head/MAINTAINERSTue Dec 22 17:18:40 2015(r292611) +++ head/MAINTAINERSTue Dec 22 17:46:14 2015(r292612) @@ -24,6 +24,15 @@ maintainer of a sub-system is to check r sub-system. *** +*** +Maintainers are encouraged to visit: + https://reviews.freebsd.org/herald + +and configure notifications for parts of the tree which they maintain. +Notifications can automatically be sent when someone proposes a revision or +makes a commit to the specified subtree. +*** + subsystem login notes - atffreebsd-testing,jmmv,ngie Pre-commit review requested. ___ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
svn commit: r292646 - head/usr.bin/vmstat
Author: rodrigc Date: Wed Dec 23 07:28:48 2015 New Revision: 292646 URL: https://svnweb.freebsd.org/changeset/base/292646 Log: Remove extraneous characters Noticed by: markj Reviewed by:allanjude Modified: head/usr.bin/vmstat/vmstat.c Modified: head/usr.bin/vmstat/vmstat.c == --- head/usr.bin/vmstat/vmstat.cWed Dec 23 06:49:28 2015 (r292645) +++ head/usr.bin/vmstat/vmstat.cWed Dec 23 07:28:48 2015 (r292646) @@ -886,9 +886,9 @@ printhdr(int maxid, u_long cpumask) num_shown = (num_selected < maxshowdevs) ? num_selected : maxshowdevs; if (hflag) { - xo_emit("{T:procs} {T:memory} ${T:/page%*s}", 19, ""); + xo_emit("{T:procs} {T:memory} {T:/page%*s}", 19, ""); } else { - xo_emit("{T:procs} {T:memory}${T:/page%*s}", 19, ""); + xo_emit("{T:procs} {T:memory}{T:/page%*s}", 19, ""); } if (num_shown > 1) xo_emit(" {T:/disks %*s}", num_shown * 4 - 7, ""); ___ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
svn commit: r292580 - head/usr.sbin/jls
Author: rodrigc Date: Tue Dec 22 00:58:35 2015 New Revision: 292580 URL: https://svnweb.freebsd.org/changeset/base/292580 Log: Add libxo support to jls PR:200746 Submitted by: Emmanuel Vadot Reviewed by: allanjude Relnotes: yes Differential Revision: https://reviews.freebsd.org/D4452 Modified: head/usr.sbin/jls/Makefile head/usr.sbin/jls/jls.8 head/usr.sbin/jls/jls.c Modified: head/usr.sbin/jls/Makefile == --- head/usr.sbin/jls/Makefile Tue Dec 22 00:53:19 2015(r292579) +++ head/usr.sbin/jls/Makefile Tue Dec 22 00:58:35 2015(r292580) @@ -4,7 +4,7 @@ PROG= jls MAN= jls.8 -LIBADD=jail +LIBADD=jail xo .if ${MK_INET6_SUPPORT} != "no" CFLAGS+= -DINET6 Modified: head/usr.sbin/jls/jls.8 == --- head/usr.sbin/jls/jls.8 Tue Dec 22 00:53:19 2015(r292579) +++ head/usr.sbin/jls/jls.8 Tue Dec 22 00:58:35 2015(r292580) @@ -33,6 +33,7 @@ .Nd "list jails" .Sh SYNOPSIS .Nm +.Op Fl -libxo .Op Fl dhNnqsv .Op Fl j Ar jail .Op Ar parameter ... @@ -62,6 +63,13 @@ and path (path). .Pp The following options are available: .Bl -tag -width indent +.It Fl -libxo +Generate output via +.Xr libxo 3 +in a selection of different human and machine readable formats. +See +.Xr xo_parse_args 3 +for details on command line arguments. .It Fl d List .Va dying @@ -106,7 +114,9 @@ Without this option, all active jails wi .Sh SEE ALSO .Xr jail_get 2 , .Xr jail 8 , -.Xr jexec 8 +.Xr jexec 8 , +.Xr libxo 3 , +.Xr xo_parse_args 3 .Sh HISTORY The .Nm @@ -114,3 +124,5 @@ utility was added in .Fx 5.1 . Extensible jail parameters were introduced in .Fx 8.0 . +libxo support was added in +.Fx 11.0 . Modified: head/usr.sbin/jls/jls.c == --- head/usr.sbin/jls/jls.c Tue Dec 22 00:53:19 2015(r292579) +++ head/usr.sbin/jls/jls.c Tue Dec 22 00:58:35 2015(r292580) @@ -2,6 +2,7 @@ * Copyright (c) 2003 Mike Barcroft* Copyright (c) 2008 Bjoern A. Zeeb * Copyright (c) 2009 James Gritton + * Copyright (c) 2015 Emmanuel Vadot * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -45,10 +46,13 @@ __FBSDID("$FreeBSD$"); #include #include #include +#include #defineJP_USER 0x0100 #defineJP_OPT 0x0200 +#define JLS_XO_VERSION "1" + #definePRINT_DEFAULT 0x01 #definePRINT_HEADER0x02 #definePRINT_NAMEVAL 0x04 @@ -73,7 +77,7 @@ static int sort_param(const void *a, con static char *noname(const char *name); static char *nononame(const char *name); static int print_jail(int pflags, int jflags); -static void quoted_print(char *str); +static void quoted_print(int pflags, char *name, char *value); int main(int argc, char **argv) @@ -81,6 +85,11 @@ main(int argc, char **argv) char *dot, *ep, *jname, *pname; int c, i, jflags, jid, lastjid, pflags, spc; + argc = xo_parse_args(argc, argv); + if (argc < 0) + exit(1); + +xo_set_version(JLS_XO_VERSION); jname = NULL; pflags = jflags = jid = 0; while ((c = getopt(argc, argv, "adj:hNnqsv")) >= 0) @@ -119,7 +128,7 @@ main(int argc, char **argv) PRINT_VERBOSE; break; default: - errx(1, "usage: jls [-dhNnqv] [-j jail] [param ...]"); + xo_errx(1, "usage: jls [-dhNnqv] [-j jail] [param ...]"); } #ifdef INET6 @@ -196,42 +205,48 @@ main(int argc, char **argv) add_param("lastjid", , sizeof(lastjid), NULL, 0); /* Print a header line if requested. */ - if (pflags & PRINT_VERBOSE) - printf(" JID Hostname Path\n" - "Name State\n" - "CPUSetID\n" - "IP Address(es)\n"); + if (pflags & PRINT_VERBOSE) { + xo_emit("{T:/%3s}{T:JID}{P: }{T:Hostname}{Pd:/%22s}{T:Path}\n", + "", ""); + xo_emit("{P:/%8s}{T:Name}{Pd:/%26s}{T:State}\n", "", ""); + xo_emit("{P:/%8s}{T:CPUSetID}\n", ""); + xo_emit("{P:/%8s}{T:IP Address(es)}\n", ""); + } else if (pflags & PRINT_DEFAULT) if (pflags & PRINT_JAIL_NAME) - printf(" JID IP Address " - "Hostname Path\n"); + xo_emit("{P: }{T:JID/%-15s}{P: }{T:IP Address/%-15s}" +
svn commit: r292021 - head/lib/libopenbsd
Author: rodrigc Date: Wed Dec 9 19:19:36 2015 New Revision: 292021 URL: https://svnweb.freebsd.org/changeset/base/292021 Log: Merge from OpenBSD: revision 1.11 date: 2015/11/27 01:57:59; author: mmcc; state: Exp; lines: +2 -3 Remove three NULL-checks before free(). ok millert@ Modified: head/lib/libopenbsd/imsg.c Modified: head/lib/libopenbsd/imsg.c == --- head/lib/libopenbsd/imsg.c Wed Dec 9 18:55:25 2015(r292020) +++ head/lib/libopenbsd/imsg.c Wed Dec 9 19:19:36 2015(r292021) @@ -1,4 +1,4 @@ -/* $OpenBSD: imsg.c,v 1.10 2015/07/19 07:18:59 nicm Exp $ */ +/* $OpenBSD: imsg.c,v 1.11 2015/11/27 01:57:59 mmcc Exp $ */ /* * Copyright (c) 2003, 2004 Henning Brauer@@ -120,8 +120,7 @@ again: } fail: - if (ifd) - free(ifd); + free(ifd); return (n); } ___ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
svn commit: r292022 - head/lib/libopenbsd
Author: rodrigc Date: Wed Dec 9 19:21:00 2015 New Revision: 292022 URL: https://svnweb.freebsd.org/changeset/base/292022 Log: Merge from OpenBSD: revision 1.12 date: 2015/12/05 13:06:52; author: claudio; state: Exp; lines: +4 -6 Do not loop on EAGAIN in imsg_read(). Better to return the error to the caller and let him do another poll loop. This fixes spinning relayd processes seen on busy TLS relays. OK benno@ henning@ Modified: head/lib/libopenbsd/imsg.c Modified: head/lib/libopenbsd/imsg.c == --- head/lib/libopenbsd/imsg.c Wed Dec 9 19:19:36 2015(r292021) +++ head/lib/libopenbsd/imsg.c Wed Dec 9 19:21:00 2015(r292022) @@ -1,4 +1,4 @@ -/* $OpenBSD: imsg.c,v 1.11 2015/11/27 01:57:59 mmcc Exp $ */ +/* $OpenBSD: imsg.c,v 1.12 2015/12/05 13:06:52 claudio Exp $ */ /* * Copyright (c) 2003, 2004 Henning Brauer@@ -82,11 +82,9 @@ again: } if ((n = recvmsg(ibuf->fd, , 0)) == -1) { - if (errno == EMSGSIZE) - goto fail; - if (errno != EINTR && errno != EAGAIN) - goto fail; - goto again; + if (errno == EINTR) + goto again; + goto fail; } ibuf->r.wpos += n; ___ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
svn commit: r292023 - head/lib/libopenbsd
Author: rodrigc Date: Wed Dec 9 19:22:20 2015 New Revision: 292023 URL: https://svnweb.freebsd.org/changeset/base/292023 Log: Merge from OpenBSD: revision 1.13 date: 2015/12/09 11:54:12; author: tb; state: Exp; lines: +2 -2 Add a cast to silence a compiler warning by clang on FreeBSD. From Craig Rodrigues. ok tedu@ Modified: head/lib/libopenbsd/imsg.c Modified: head/lib/libopenbsd/imsg.c == --- head/lib/libopenbsd/imsg.c Wed Dec 9 19:21:00 2015(r292022) +++ head/lib/libopenbsd/imsg.c Wed Dec 9 19:22:20 2015(r292023) @@ -1,4 +1,4 @@ -/* $OpenBSD: imsg.c,v 1.12 2015/12/05 13:06:52 claudio Exp $ */ +/* $OpenBSD: imsg.c,v 1.13 2015/12/09 11:54:12 tb Exp $*/ /* * Copyright (c) 2003, 2004 Henning Brauer <henn...@openbsd.org> @@ -74,7 +74,7 @@ imsg_read(struct imsgbuf *ibuf) again: if (getdtablecount() + imsg_fd_overhead + - (CMSG_SPACE(sizeof(int))-CMSG_SPACE(0))/sizeof(int) + (int)((CMSG_SPACE(sizeof(int))-CMSG_SPACE(0))/sizeof(int)) >= getdtablesize()) { errno = EAGAIN; free(ifd); ___ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
svn commit: r292024 - head/lib/libopenbsd
Author: rodrigc Date: Wed Dec 9 19:25:45 2015 New Revision: 292024 URL: https://svnweb.freebsd.org/changeset/base/292024 Log: Remove NO_WERROR, after fix from r292023. Modified: head/lib/libopenbsd/Makefile Modified: head/lib/libopenbsd/Makefile == --- head/lib/libopenbsd/MakefileWed Dec 9 19:22:20 2015 (r292023) +++ head/lib/libopenbsd/MakefileWed Dec 9 19:25:45 2015 (r292024) @@ -11,5 +11,4 @@ CFLAGS+= -I${.CURDIR} WARNS= 3 -NO_WERROR= .include ___ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
svn commit: r291713 - stable/10/tests/sys/kern/acct
Author: rodrigc Date: Thu Dec 3 18:04:43 2015 New Revision: 291713 URL: https://svnweb.freebsd.org/changeset/base/291713 Log: Fix bad MFC (r291173) Replace SRCTOP with the relevant path via .CURDIR Reviewed by: bdrewery Modified: stable/10/tests/sys/kern/acct/Makefile Modified: stable/10/tests/sys/kern/acct/Makefile == --- stable/10/tests/sys/kern/acct/Makefile Thu Dec 3 17:25:59 2015 (r291712) +++ stable/10/tests/sys/kern/acct/Makefile Thu Dec 3 18:04:43 2015 (r291713) @@ -10,7 +10,7 @@ CLEANFILES+= convert.c DPSRCS.acct_test= convert.c -convert.c: ${SRCTOP}/sys/kern/kern_acct.c +convert.c: ${.CURDIR:H:H:H:H}/sys/kern/kern_acct.c sed -n -e 's/log(/syslog(/g' \ -e '/FLOAT_CONVERSION_START/,/FLOAT_CONVERSION_END/p' ${.ALLSRC} >>${.TARGET} ___ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
svn commit: r291615 - head/contrib/netbsd-tests/lib/libcrypt
Author: rodrigc Date: Tue Dec 1 21:22:29 2015 New Revision: 291615 URL: https://svnweb.freebsd.org/changeset/base/291615 Log: Hack test so that it works on FreeBSD. Modified: head/contrib/netbsd-tests/lib/libcrypt/t_crypt.c Modified: head/contrib/netbsd-tests/lib/libcrypt/t_crypt.c == --- head/contrib/netbsd-tests/lib/libcrypt/t_crypt.cTue Dec 1 21:19:16 2015(r291614) +++ head/contrib/netbsd-tests/lib/libcrypt/t_crypt.cTue Dec 1 21:22:29 2015(r291615) @@ -124,11 +124,13 @@ ATF_TC_HEAD(crypt_salts, tc) ATF_TC_BODY(crypt_salts, tc) { for (size_t i = 0; tests[i].hash; i++) { + char *hash = crypt(tests[i].pw, tests[i].hash); #if defined(__FreeBSD__) - if (22 <= i) + if (i >= 22 && i != 24 && i != 25) atf_tc_expect_fail("Old-style/bad inputs fail on FreeBSD"); + else + atf_tc_expect_pass(); #endif - char *hash = crypt(tests[i].pw, tests[i].hash); if (!hash) { ATF_CHECK_MSG(0, "Test %zu NULL\n", i); continue; ___ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
svn commit: r291616 - head/lib/libcrypt/tests
Author: rodrigc Date: Tue Dec 1 21:25:18 2015 New Revision: 291616 URL: https://svnweb.freebsd.org/changeset/base/291616 Log: Enable libcrypt tests. kyua 0.12 has fix for https://github.com/jmmv/kyua/pull/148 which eliminates invalid XML characters from being written to test reports with "kyua report-junit". Modified: head/lib/libcrypt/tests/Makefile Modified: head/lib/libcrypt/tests/Makefile == --- head/lib/libcrypt/tests/MakefileTue Dec 1 21:22:29 2015 (r291615) +++ head/lib/libcrypt/tests/MakefileTue Dec 1 21:25:18 2015 (r291616) @@ -1,12 +1,12 @@ # $FreeBSD$ -#ATF_TESTS_C+= crypt_tests -# -#NETBSD_ATF_TESTS_C+= crypt_test -# -#CFLAGS+= -I${.CURDIR:H} -#LIBADD= crypt -# +ATF_TESTS_C+= crypt_tests + +NETBSD_ATF_TESTS_C+= crypt_test + +CFLAGS+= -I${.CURDIR:H} +LIBADD=crypt + .include .include ___ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
Re: svn commit: r291637 - head/cddl/contrib/opensolaris/cmd/plockstat
On Tue, Dec 1, 2015 at 6:11 PM, Bryan Drewerywrote: > - (void) snprintf(buf, size, "%#lx", addr); > + (void) snprintf(buf, size, "%#lx", (unsigned long)addr); > return (0); > In the past when I've hit these types of problems, I have found that using %#jx and casting to (uintmax_t) instead seemed to work consistently across different platforms, so you might want to do that here. There are lots of examples in the tree of this pattern. -- Craig ___ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
svn commit: r291607 - in head: bin/df bin/ls bin/ps sbin/savecore usr.bin/iscsictl usr.bin/netstat usr.bin/w usr.bin/wc
Author: rodrigc Date: Tue Dec 1 19:18:53 2015 New Revision: 291607 URL: https://svnweb.freebsd.org/changeset/base/291607 Log: Add more text to explain --libxo flag. Modified: head/bin/df/df.1 head/bin/ls/ls.1 head/bin/ps/ps.1 head/sbin/savecore/savecore.8 head/usr.bin/iscsictl/iscsictl.8 head/usr.bin/netstat/netstat.1 head/usr.bin/w/w.1 head/usr.bin/wc/wc.1 Modified: head/bin/df/df.1 == --- head/bin/df/df.1Tue Dec 1 19:17:30 2015(r291606) +++ head/bin/df/df.1Tue Dec 1 19:18:53 2015(r291607) @@ -29,7 +29,7 @@ .\" @(#)df.1 8.3 (Berkeley) 5/8/95 .\" $FreeBSD$ .\" -.Dd November 6, 2014 +.Dd December 1, 2015 .Dt DF 1 .Os .Sh NAME @@ -62,6 +62,13 @@ option below). .Pp The following options are available: .Bl -tag -width indent +.It Fl -libxo +Generate output via +.Xr libxo 3 +in a selection of different human and machine readable formats. +See +.Xr xo_parse_args 3 +for details on command line arguments. .It Fl a Show all mount points, including those that were mounted with the .Dv MNT_IGNORE Modified: head/bin/ls/ls.1 == --- head/bin/ls/ls.1Tue Dec 1 19:17:30 2015(r291606) +++ head/bin/ls/ls.1Tue Dec 1 19:18:53 2015(r291607) @@ -32,7 +32,7 @@ .\" @(#)ls.1 8.7 (Berkeley) 7/29/94 .\" $FreeBSD$ .\" -.Dd September 27, 2015 +.Dd December 1, 2015 .Dt LS 1 .Os .Sh NAME @@ -69,6 +69,13 @@ lexicographical order. .Pp The following options are available: .Bl -tag -width indent +.It Fl -libxo +Generate output via +.Xr libxo 3 +in a selection of different human and machine readable formats. +See +.Xr xo_parse_args 3 +for details on command line arguments. .It Fl A Include directory entries whose names begin with a dot Modified: head/bin/ps/ps.1 == --- head/bin/ps/ps.1Tue Dec 1 19:17:30 2015(r291606) +++ head/bin/ps/ps.1Tue Dec 1 19:18:53 2015(r291607) @@ -29,7 +29,7 @@ .\" @(#)ps.1 8.3 (Berkeley) 4/18/94 .\" $FreeBSD$ .\" -.Dd May 27, 2015 +.Dd December 1, 2015 .Dt PS 1 .Os .Sh NAME @@ -103,6 +103,13 @@ and associated command. .Pp The options are as follows: .Bl -tag -width indent +.It Fl -libxo +Generate output via +.Xr libxo 3 +in a selection of different human and machine readable formats. +See +.Xr xo_parse_args 3 +for details on command line arguments. .It Fl a Display information about other users' processes as well as your own. If the Modified: head/sbin/savecore/savecore.8 == --- head/sbin/savecore/savecore.8 Tue Dec 1 19:17:30 2015 (r291606) +++ head/sbin/savecore/savecore.8 Tue Dec 1 19:18:53 2015 (r291607) @@ -28,7 +28,7 @@ .\" From: @(#)savecore.8 8.1 (Berkeley) 6/5/93 .\" $FreeBSD$ .\" -.Dd December 17, 2012 +.Dd December 1, 2015 .Dt SAVECORE 8 .Os .Sh NAME @@ -44,6 +44,7 @@ .Op Fl v .Op Ar device ... .Nm +.Op Fl -libxo .Op Fl fkvz .Op Fl m Ar maxdumps .Op Ar directory Op Ar device ... @@ -61,6 +62,13 @@ the system log. .Pp The options are as follows: .Bl -tag -width ".Fl m Ar maxdumps" +.It Fl -libxo +Generate output via +.Xr libxo 3 +in a selection of different human and machine readable formats. +See +.Xr xo_parse_args 3 +for details on command line arguments. .It Fl C Check to see if a dump exists, and display a brief message to indicate the status. @@ -154,6 +162,8 @@ is meant to be called near the end of th .Sh SEE ALSO .Xr gzip 1 , .Xr getbootfile 3 , +.Xr libxo 3 , +.Xr xo_parse_args 3 , .Xr textdump 4 , .Xr tar 5 , .Xr dumpon 8 , Modified: head/usr.bin/iscsictl/iscsictl.8 == --- head/usr.bin/iscsictl/iscsictl.8Tue Dec 1 19:17:30 2015 (r291606) +++ head/usr.bin/iscsictl/iscsictl.8Tue Dec 1 19:18:53 2015 (r291607) @@ -27,7 +27,7 @@ .\" .\" $FreeBSD$ .\" -.Dd October 17, 2015 +.Dd December 1, 2015 .Dt ISCSICTL 8 .Os .Sh NAME @@ -80,6 +80,13 @@ utility is used to configure the iSCSI i .Pp The following options are available: .Bl -tag -width ".Fl A" +.It Fl -libxo +Generate output via +.Xr libxo 3 +in a selection of different human and machine readable formats. +See +.Xr xo_parse_args 3 +for details on command line arguments. .It Fl A Add session. .It Fl M @@ -182,7 +189,9 @@ Disconnect all iSCSI sessions: .Sh SEE ALSO .Xr iscsi 4 , .Xr iscsi.conf 5 , -.Xr iscsid 8 +.Xr iscsid 8 , +.Xr libxo 3 , +.Xr xo_parse_args 3 .Sh HISTORY The .Nm Modified: head/usr.bin/netstat/netstat.1 == --- head/usr.bin/netstat/netstat.1 Tue Dec 1 19:17:30 2015 (r291606) +++
svn commit: r291608 - head/bin/ps
Author: rodrigc Date: Tue Dec 1 19:20:38 2015 New Revision: 291608 URL: https://svnweb.freebsd.org/changeset/base/291608 Log: Fix spelling, as recommended by igor tool. Modified: head/bin/ps/ps.1 Modified: head/bin/ps/ps.1 == --- head/bin/ps/ps.1Tue Dec 1 19:18:53 2015(r291607) +++ head/bin/ps/ps.1Tue Dec 1 19:20:38 2015(r291608) @@ -142,7 +142,7 @@ column is not the last column displayed. .It Fl e Display the environment as well. .It Fl f -Show commandline and environment information about swapped out processes. +Show command-line and environment information about swapped out processes. This option is honored only if the UID of the user is 0. .It Fl G Display information about processes which are running with the specified ___ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
svn commit: r291089 - head/tests
Author: rodrigc Date: Fri Nov 20 03:24:04 2015 New Revision: 291089 URL: https://svnweb.freebsd.org/changeset/base/291089 Log: Copy README into /usr/tests Add a few sentences describing how to run the tests. Reviewed by: ngie Differential Revision: https://reviews.freebsd.org/D4224 Modified: head/tests/Makefile head/tests/README Modified: head/tests/Makefile == --- head/tests/Makefile Fri Nov 20 02:23:35 2015(r291088) +++ head/tests/Makefile Fri Nov 20 03:24:04 2015(r291089) @@ -9,6 +9,9 @@ SUBDIR_PARALLEL= TESTSDIR= ${TESTSBASE} KYUAFILE= yes +FILES+= README +FILESDIR_README= ${TESTSDIR} + afterinstall: install-tests-local install-tests-local: .PHONY ${INSTALL_SYMLINK} ../local/tests ${DESTDIR}${TESTSDIR}/local Modified: head/tests/README == --- head/tests/README Fri Nov 20 02:23:35 2015(r291088) +++ head/tests/README Fri Nov 20 03:24:04 2015(r291089) @@ -1,10 +1,19 @@ src/tests: The FreeBSD test suite = -This file describes the build infrastructure of the FreeBSD test suite. -If you are only interested in using the test suite itself, please refer -to tests(7) instead. +To run the FreeBSD test suite: +(1) Make sure that kyua is installed: + pkg install kyua +(2) To run the tests: + kyua test -k /usr/tests/Kyuafile +(3) To see the test results: + kyua report +For further information on using the test suite, read tests(7): + man tests + +Description of FreeBSD test suite += The build of the test suite is organized in the following manner: * The build of all test artifacts is protected by the MK_TESTS knob. ___ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
svn commit: r291090 - head/usr.bin/vmstat
Author: rodrigc Date: Fri Nov 20 05:15:34 2015 New Revision: 291090 URL: https://svnweb.freebsd.org/changeset/base/291090 Log: Convert vmstat to use libxo. This patch was based on this patch: https://github.com/Juniper/libxo/blob/master/patches/vmstat.patch by Phil Shafer at Juniper Networks, but updated to the latest vmstat code. Reviewed by: allanjude Differential Revision: https://reviews.freebsd.org/D3935 Modified: head/usr.bin/vmstat/Makefile head/usr.bin/vmstat/vmstat.8 head/usr.bin/vmstat/vmstat.c Modified: head/usr.bin/vmstat/Makefile == --- head/usr.bin/vmstat/MakefileFri Nov 20 03:24:04 2015 (r291089) +++ head/usr.bin/vmstat/MakefileFri Nov 20 05:15:34 2015 (r291090) @@ -3,7 +3,7 @@ PROG= vmstat MAN= vmstat.8 -LIBADD=devstat kvm memstat util +LIBADD=devstat kvm memstat xo util WARNS?=1 Modified: head/usr.bin/vmstat/vmstat.8 == --- head/usr.bin/vmstat/vmstat.8Fri Nov 20 03:24:04 2015 (r291089) +++ head/usr.bin/vmstat/vmstat.8Fri Nov 20 05:15:34 2015 (r291090) @@ -28,7 +28,7 @@ .\"@(#)vmstat.88.1 (Berkeley) 6/6/93 .\" $FreeBSD$ .\" -.Dd August 8, 2014 +.Dd November 19, 2015 .Dt VMSTAT 8 .Os .Sh NAME @@ -37,6 +37,7 @@ .Sh SYNOPSIS .Nm .\" .Op Fl fimst +.Op Fl -libxo .Op Fl afHhimoPsz .Op Fl M Ar core Op Fl N Ar system .Op Fl c Ar count @@ -68,6 +69,13 @@ the default image). .Pp The options are as follows: .Bl -tag -width indent +.It Fl -libxo +Generate output via +.Xr libxo 3 +in a selection of different human and machine readable formats. +See +.Xr xo_parse_args 3 +for details on command line arguments. .It Fl a When used with .Fl i , @@ -361,6 +369,8 @@ statistics every second. .Xr ps 1 , .Xr systat 1 , .Xr libmemstat 3 , +.Xr libxo 3 , +.Xr xo_parse_args 3 , .Xr gstat 8 , .Xr iostat 8 , .Xr pstat 8 , Modified: head/usr.bin/vmstat/vmstat.c == --- head/usr.bin/vmstat/vmstat.cFri Nov 20 03:24:04 2015 (r291089) +++ head/usr.bin/vmstat/vmstat.cFri Nov 20 05:15:34 2015 (r291090) @@ -76,6 +76,9 @@ __FBSDID("$FreeBSD$"); #include #include #include +#include + +#define VMSTAT_XO_VERSION "1" static char da[] = "da"; @@ -184,6 +187,11 @@ main(int argc, char *argv[]) interval = reps = todo = 0; maxshowdevs = 2; hflag = isatty(1); + + argc = xo_parse_args(argc, argv); + if (argc < 0) + return argc; + while ((c = getopt(argc, argv, "ac:fhHiM:mN:n:oPp:stw:z")) != -1) { switch (c) { case 'a': @@ -220,7 +228,7 @@ main(int argc, char *argv[]) nflag = 1; maxshowdevs = atoi(optarg); if (maxshowdevs < 0) - errx(1, "number of devices %d is < 0", + xo_errx(1, "number of devices %d is < 0", maxshowdevs); break; case 'o': @@ -228,7 +236,7 @@ main(int argc, char *argv[]) break; case 'p': if (devstat_buildmatch(optarg, , _matches) != 0) - errx(1, "%s", devstat_errbuf); + xo_errx(1, "%s", devstat_errbuf); break; case 's': todo |= SUMSTAT; @@ -237,7 +245,7 @@ main(int argc, char *argv[]) #ifdef notyet todo |= TIMESTAT; #else - errx(EX_USAGE, "sorry, -t is not (re)implemented yet"); + xo_errx(EX_USAGE, "sorry, -t is not (re)implemented yet"); #endif break; case 'w': @@ -256,18 +264,21 @@ main(int argc, char *argv[]) argc -= optind; argv += optind; + xo_set_version(VMSTAT_XO_VERSION); if (todo == 0) todo = VMSTAT; if (memf != NULL) { kd = kvm_openfiles(nlistf, memf, NULL, O_RDONLY, errbuf); if (kd == NULL) - errx(1, "kvm_openfiles: %s", errbuf); + xo_errx(1, "kvm_openfiles: %s", errbuf); } retry_nlist: if (kd != NULL && (c = kvm_nlist(kd, namelist)) != 0) { if (c > 0) { + int bufsize = 0, len = 0; + char *buf, *bp; /* * 'cnt' was renamed to 'vm_cnt'. If 'vm_cnt' is not * found try looking up older 'cnt' symbol. @@ -277,20 +288,34 @@ retry_nlist: namelist[X_SUM].n_name = "_cnt";
svn commit: r291015 - head/lib/libcrypt/tests
Author: rodrigc Date: Wed Nov 18 13:19:34 2015 New Revision: 291015 URL: https://svnweb.freebsd.org/changeset/base/291015 Log: Temporarily comment out the libcrypt tests. They are emitting characters which are triggering a kyua bug which causes kyua to emit invalid XML. This invalid XML is causing false failures in Jenkins. On a separate note, kyua needs to be fixed with this: https://github.com/jmmv/kyua/pull/148 or something similar. Modified: head/lib/libcrypt/tests/Makefile Modified: head/lib/libcrypt/tests/Makefile == --- head/lib/libcrypt/tests/MakefileWed Nov 18 12:39:20 2015 (r291014) +++ head/lib/libcrypt/tests/MakefileWed Nov 18 13:19:34 2015 (r291015) @@ -1,12 +1,12 @@ # $FreeBSD$ -ATF_TESTS_C+= crypt_tests - -NETBSD_ATF_TESTS_C+= crypt_test - -CFLAGS+= -I${.CURDIR:H} -LIBADD=crypt - +#ATF_TESTS_C+= crypt_tests +# +#NETBSD_ATF_TESTS_C+= crypt_test +# +#CFLAGS+= -I${.CURDIR:H} +#LIBADD= crypt +# .include .include ___ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
svn commit: r291041 - in head: tools/debugscripts tools/regression/netinet/ip_id_period tools/sched tools/tools/shlib-compat usr.bin/fortune/tools
Author: rodrigc Date: Thu Nov 19 00:01:52 2015 New Revision: 291041 URL: https://svnweb.freebsd.org/changeset/base/291041 Log: Use print as a function for Python 3 [PEP 3105] Import print_function from the __future__ module to activate this for Python 2. This works as far back as Python 2.6.0a2: https://docs.python.org/2/library/__future__.html [PEP 3105] https://www.python.org/dev/peps/pep-3105/ Modified: head/tools/debugscripts/kld_deb.py head/tools/regression/netinet/ip_id_period/ip_id_period.py head/tools/sched/schedgraph.py head/tools/tools/shlib-compat/shlib-compat.py head/usr.bin/fortune/tools/do_uniq.py Modified: head/tools/debugscripts/kld_deb.py == --- head/tools/debugscripts/kld_deb.py Wed Nov 18 23:53:13 2015 (r291040) +++ head/tools/debugscripts/kld_deb.py Thu Nov 19 00:01:52 2015 (r291041) @@ -26,6 +26,7 @@ # # $FreeBSD$ +from __future__ import print_function import sys import os import popen2 @@ -42,7 +43,7 @@ printre = re.compile(r'\$\d+\s+=\s+') kld_debug_paths = [] if len(sys.argv[1:]) < 2: - print 'Usage: prog []' + print('Usage: prog []') sys.exit(1) #Get the base modules path @@ -129,7 +130,7 @@ for i in addr[1:]: #Tell our user that we couldn't find it. a = i[1] sys.stderr.write("Can't find module: %s (addr: %d + header)\n" % (i[0], a)) - print '#add-symbol-file ', a, '#add header' + print('#add-symbol-file ', a, '#add header') continue #j = popen2.popen4('objdump --section-headers /boot/kernel/%s | grep "\.text"' % i[0])[0].read().strip().split() @@ -137,6 +138,6 @@ for i in addr[1:]: j = popen2.popen4('objdump --section-headers "%s" | grep "\.text"' % p)[0].read().strip().split() try: a = int(j[5], 16) - print 'add-symbol-file', p, i[1] + a + print('add-symbol-file', p, i[1] + a) except IndexError: sys.stderr.write('Bad file: %s, address: %d\n' % (i[0], i[1])) Modified: head/tools/regression/netinet/ip_id_period/ip_id_period.py == --- head/tools/regression/netinet/ip_id_period/ip_id_period.py Wed Nov 18 23:53:13 2015(r291040) +++ head/tools/regression/netinet/ip_id_period/ip_id_period.py Thu Nov 19 00:01:52 2015(r291041) @@ -27,6 +27,7 @@ # code. It will push 20 packets, then report back what the min and max # periods it saw for different IDs were. +from __future__ import print_function import os import signal import subprocess Modified: head/tools/sched/schedgraph.py == --- head/tools/sched/schedgraph.py Wed Nov 18 23:53:13 2015 (r291040) +++ head/tools/sched/schedgraph.py Thu Nov 19 00:01:52 2015 (r291041) @@ -26,6 +26,7 @@ # # $FreeBSD$ +from __future__ import print_function import sys import re import random @@ -142,7 +143,7 @@ class Colormap: color = self.map[name] except: color = colors[random.randrange(0, len(colors))] - print "Picking random color", color, "for", name + print("Picking random color", color, "for", name) self.map[name] = color self.table.append((name, color)) return (color) @@ -736,9 +737,9 @@ class StateEvent(Event): color = colormap.lookup(self.name) if (duration < 0): duration = 0 - print "Unsynchronized timestamp" - print self.cpu, self.timestamp - print next.cpu, next.timestamp + print("Unsynchronized timestamp") + print(self.cpu, self.timestamp) + print(next.cpu, next.timestamp) delta = duration / canvas.ratio l = canvas.create_rectangle(xpos, ypos, xpos + delta, ypos - 10, fill=color, width=0, @@ -762,9 +763,9 @@ class CountEvent(Event): self.duration = duration = next.timestamp - self.timestamp if (duration < 0): duration = 0 - print "Unsynchronized timestamp" - print self.cpu, self.timestamp - print next.cpu, next.timestamp + print("Unsynchronized timestamp") + print(self.cpu, self.timestamp) + print(next.cpu, next.timestamp) self.attrs.insert(0, ("count", self.count)) self.attrs.insert(1, ("duration", ticks2sec(duration))) delta = duration /
svn commit: r291036 - in head/tools: sched tools/shlib-compat
Author: rodrigc Date: Wed Nov 18 23:32:29 2015 New Revision: 291036 URL: https://svnweb.freebsd.org/changeset/base/291036 Log: Use 'in' instead of 'has_key()' for testing dictionary membership. In PEP 0290, has_key() was deprecated in Python 2.2 and higher: https://www.python.org/dev/peps/pep-0290/#testing-dictionary-membership https://docs.python.org/2.2/whatsnew/node4.html In Python 3, dict.has_key() was removed: https://docs.python.org/3.0/whatsnew/3.0.html#builtins Modified: head/tools/sched/schedgraph.py head/tools/tools/shlib-compat/shlib-compat.py Modified: head/tools/sched/schedgraph.py == --- head/tools/sched/schedgraph.py Wed Nov 18 23:04:01 2015 (r291035) +++ head/tools/sched/schedgraph.py Wed Nov 18 23:32:29 2015 (r291036) @@ -461,7 +461,7 @@ class SourceStats(Toplevel): if (event.type == "pad"): continue duration = event.duration - if (eventtypes.has_key(event.name)): + if (event.name in eventtypes): (c, d) = eventtypes[event.name] c += 1 d += duration @@ -1069,7 +1069,7 @@ class KTRFile: def makeid(self, group, id, type): tag = group + id - if (self.taghash.has_key(tag)): + if (tag in self.taghash): return self.taghash[tag] if (type == "counter"): source = Counter(group, id) Modified: head/tools/tools/shlib-compat/shlib-compat.py == --- head/tools/tools/shlib-compat/shlib-compat.py Wed Nov 18 23:04:01 2015(r291035) +++ head/tools/tools/shlib-compat/shlib-compat.py Wed Nov 18 23:32:29 2015(r291036) @@ -130,7 +130,7 @@ class Cache(object): self.stats = stats def get(self, id): -if self.enabled and self.items.has_key(id): +if self.enabled and id in self.items: self.stats.hit += 1 return self.items[id] else: @@ -139,7 +139,7 @@ class Cache(object): def put(self, id, obj): if self.enabled: -if self.items.has_key(id) and obj is not self.items[id]: +if id in self.items and obj is not self.items[id]: #raise ValueError("Item is already cached: %d (%s, %s)" % #(id, self.items[id], obj)) warn(Config.w_cached, "Item is already cached: %d (%s, %s)" % \ @@ -148,7 +148,7 @@ class Cache(object): def replace(self, id, obj): if self.enabled: -assert self.items.has_key(id) +assert id in self.items self.items[id] = obj class ListDiff(object): @@ -226,7 +226,7 @@ class VersionMap(object): self.symbols = {} def append(self, symbol): -if (self.symbols.has_key(symbol.name)): +if (symbol.name in self.symbols): raise ValueError("Symbol is already defined %s@%s" % (symbol.name, self.name)) self.symbols[symbol.name] = symbol @@ -250,7 +250,7 @@ class Def(object): self.attrs = kwargs def __getattr__(self, attr): -if not self.attrs.has_key(attr): +if attr not in self.attrs: raise AttributeError('%s in %s' % (attr, str(self))) return self.attrs[attr] @@ -645,7 +645,7 @@ class Shlib(object): if not Config.symbol_filter.match(p['symbol']): continue sym = Symbol(p['symbol'], p['offset'], vername, self) -if not self.versions.has_key(vername): +if vername not in self.versions: self.versions[vername] = VersionMap(vername) self.versions[vername].append(sym) if Config.alias_prefixes: @@ -655,7 +655,7 @@ class Shlib(object): if not p['symbol'].startswith(prefix): continue alias = SymbolAlias(p['symbol'], prefix, p['offset']) -if self.alias_syms.has_key(alias.name): +if alias.name in self.alias_syms: prevalias = self.alias_syms[alias.name] if alias.name != prevalias.name or \ alias.offset != prevalias.offset: @@ -676,7 +676,7 @@ class Shlib(object): localnames = self.local_offsetmap[sym.offset] localnames.sort(key=lambda x: -len(x)) for localname in localnames: -if not self.alias_syms.has_key(localname): +if localname not in self.alias_syms: continue alias =
svn commit: r290931 - head/usr.sbin/ypldap
Author: rodrigc Date: Mon Nov 16 16:48:43 2015 New Revision: 290931 URL: https://svnweb.freebsd.org/changeset/base/290931 Log: Import ypldap from OpenBSD. ypldap -- Intended to be a drop-in replacement for ypserv, gluing in a LDAP directory and thus providing support for users and groups stored in LDAP for the get{pw,gr}ent family of functions. Added: head/usr.sbin/ypldap/ head/usr.sbin/ypldap/Makefile (contents, props changed) head/usr.sbin/ypldap/aldap.c (contents, props changed) head/usr.sbin/ypldap/aldap.h (contents, props changed) head/usr.sbin/ypldap/ber.c (contents, props changed) head/usr.sbin/ypldap/ber.h (contents, props changed) head/usr.sbin/ypldap/entries.c (contents, props changed) head/usr.sbin/ypldap/ldapclient.c (contents, props changed) head/usr.sbin/ypldap/log.c (contents, props changed) head/usr.sbin/ypldap/parse.y (contents, props changed) head/usr.sbin/ypldap/yp.c (contents, props changed) head/usr.sbin/ypldap/ypldap.8 (contents, props changed) head/usr.sbin/ypldap/ypldap.c (contents, props changed) head/usr.sbin/ypldap/ypldap.conf.5 (contents, props changed) head/usr.sbin/ypldap/ypldap.h (contents, props changed) head/usr.sbin/ypldap/ypldap_dns.c (contents, props changed) Added: head/usr.sbin/ypldap/Makefile == --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/usr.sbin/ypldap/Makefile Mon Nov 16 16:48:43 2015 (r290931) @@ -0,0 +1,21 @@ +# $OpenBSD: Makefile,v 1.8 2015/09/09 15:33:18 deraadt Exp $ +# $FreeBSD$ + +PROG= ypldap +SRCS= parse.y ypldap.c log.c \ + ldapclient.c entries.c yp.c \ + aldap.c ber.c \ + ypldap_dns.c + +MAN= ypldap.8 ypldap.conf.5 + +DPADD= ${LIBEVENT} ${LIBUTIL} ${LIBRPCSVC} +LDADD= -levent -lutil -lrpcsvc +CFLAGS+= -I${.CURDIR} +CFLAGS+= -Wall +CFLAGS+= -Wstrict-prototypes -Wmissing-prototypes +CFLAGS+= -Wmissing-declarations +CFLAGS+= -Wshadow -Wpointer-arith -Wcast-qual +CFLAGS+= -Wsign-compare + +.include Added: head/usr.sbin/ypldap/aldap.c == --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/usr.sbin/ypldap/aldap.cMon Nov 16 16:48:43 2015 (r290931) @@ -0,0 +1,1273 @@ +/* $Id: aldap.c,v 1.30 2012/04/30 21:40:03 jmatthew Exp $ */ +/* $OpenBSD: aldap.c,v 1.30 2012/04/30 21:40:03 jmatthew Exp $ */ +/* $FreeBSD$ */ + +/* + * Copyright (c) 2008 Alexander Schrijver+ * Copyright (c) 2006, 2007 Marc Balmer + * + * Permission to use, copy, modify, and distribute this software for any + * purpose with or without fee is hereby granted, provided that the above + * copyright notice and this permission notice appear in all copies. + * + * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES + * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR + * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES + * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN + * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF + * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + */ + +#include +#include +#include +#include +#include + +#include "aldap.h" + +#if 0 +#define DEBUG +#endif +#define VERSION 3 + +static struct ber_element *ldap_parse_search_filter(struct ber_element *, + char *); +static struct ber_element *ldap_do_parse_search_filter( + struct ber_element *, char **); +char **aldap_get_stringset(struct ber_element *); +char *utoa(char *); +char *parseval(char *, size_t); +intaldap_create_page_control(struct ber_element *, + int, struct aldap_page_control *); + +#ifdef DEBUG +voidldap_debug_elements(struct ber_element *); +#endif + +#ifdef DEBUG +#define DPRINTF(x...) printf(x) +#define LDAP_DEBUG(x, y) do { fprintf(stderr, "*** " x "\n"); ldap_debug_elements(y); } while (0) +#else +#define DPRINTF(x...) do { } while (0) +#define LDAP_DEBUG(x, y) do { } while (0) +#endif + +int +aldap_close(struct aldap *al) +{ + if (close(al->ber.fd) == -1) + return (-1); + + ber_free(>ber); + free(al); + + return (0); +} + +struct aldap * +aldap_init(int fd) +{ + struct aldap *a; + + if ((a = calloc(1, sizeof(*a))) == NULL) + return NULL; + a->ber.fd = fd; + + return a; +} + +int
svn commit: r290932 - head/usr.sbin/ypldap
Author: rodrigc Date: Mon Nov 16 16:51:18 2015 New Revision: 290932 URL: https://svnweb.freebsd.org/changeset/base/290932 Log: Convert Makefile to FreeBSD style. Add libopenbsd to link line for imsg. Modified: head/usr.sbin/ypldap/Makefile Modified: head/usr.sbin/ypldap/Makefile == --- head/usr.sbin/ypldap/Makefile Mon Nov 16 16:48:43 2015 (r290931) +++ head/usr.sbin/ypldap/Makefile Mon Nov 16 16:51:18 2015 (r290932) @@ -9,13 +9,12 @@ SRCS= parse.y ypldap.c log.c \ MAN= ypldap.8 ypldap.conf.5 -DPADD= ${LIBEVENT} ${LIBUTIL} ${LIBRPCSVC} -LDADD= -levent -lutil -lrpcsvc -CFLAGS+= -I${.CURDIR} -CFLAGS+= -Wall -CFLAGS+= -Wstrict-prototypes -Wmissing-prototypes -CFLAGS+= -Wmissing-declarations -CFLAGS+= -Wshadow -Wpointer-arith -Wcast-qual -CFLAGS+= -Wsign-compare +LIBADD=openbsd event util rpcsvc + +CFLAGS+=-I${.CURDIR} +CFLAGS+=-I${.CURDIR}/../../contrib/pf/libevent +CFLAGS+=-I${.CURDIR}/../../lib/libopenbsd + +WARNS= 2 .include ___ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
svn commit: r290935 - head/usr.sbin/ypldap
Author: rodrigc Date: Mon Nov 16 17:02:34 2015 New Revision: 290935 URL: https://svnweb.freebsd.org/changeset/base/290935 Log: Replace HOST_NAME_MAX with MAXHOSTNAMELEN. FreeBSD lacks HOST_NAME_MAX. Modified: head/usr.sbin/ypldap/ypldap.h Modified: head/usr.sbin/ypldap/ypldap.h == --- head/usr.sbin/ypldap/ypldap.h Mon Nov 16 16:58:09 2015 (r290934) +++ head/usr.sbin/ypldap/ypldap.h Mon Nov 16 17:02:34 2015 (r290935) @@ -82,7 +82,7 @@ enum client_state { struct idm { TAILQ_ENTRY(idm) idm_entry; u_int32_tidm_id; - char idm_name[HOST_NAME_MAX+1]; + char idm_name[MAXHOSTNAMELEN]; #define F_SSL 0x0010 #define F_CONFIGURING 0x0020 #define F_NEEDAUTH 0x0040 @@ -156,7 +156,7 @@ struct env { u_int32_tsc_maxid; - char sc_domainname[HOST_NAME_MAX+1]; + char sc_domainname[MAXHOSTNAMELEN]; struct timeval sc_conf_tv; struct event sc_conf_ev; TAILQ_HEAD(idm_list, idm)sc_idms; ___ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
svn commit: r290933 - head/usr.sbin/ypldap
Author: rodrigc Date: Mon Nov 16 16:52:56 2015 New Revision: 290933 URL: https://svnweb.freebsd.org/changeset/base/290933 Log: Add include of for strlen() prototype. Modified: head/usr.sbin/ypldap/ber.c Modified: head/usr.sbin/ypldap/ber.c == --- head/usr.sbin/ypldap/ber.c Mon Nov 16 16:51:18 2015(r290932) +++ head/usr.sbin/ypldap/ber.c Mon Nov 16 16:52:56 2015(r290933) @@ -26,6 +26,7 @@ #include #include/* XXX for debug output */ #include /* XXX for debug output */ +#include #include #include #include ___ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
svn commit: r290936 - head/usr.sbin/ypldap
Author: rodrigc Date: Mon Nov 16 17:03:52 2015 New Revision: 290936 URL: https://svnweb.freebsd.org/changeset/base/290936 Log: Replace __dead with __dead2. FreeBSD lacks __dead. Modified: head/usr.sbin/ypldap/ypldap.h Modified: head/usr.sbin/ypldap/ypldap.h == --- head/usr.sbin/ypldap/ypldap.h Mon Nov 16 17:02:34 2015 (r290935) +++ head/usr.sbin/ypldap/ypldap.h Mon Nov 16 17:03:52 2015 (r290936) @@ -187,8 +187,8 @@ void log_info(const char *, ...); voidlog_debug(const char *, ...); voidlogit(int, const char *, ...); voidvlog(int, const char *, va_list); -__dead void fatal(const char *); -__dead void fatalx(const char *); +__dead2 voidfatal(const char *); +__dead2 voidfatalx(const char *); /* parse.y */ int parse_config(struct env *, const char *, int); ___ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
svn commit: r290934 - head/usr.sbin/ypldap
Author: rodrigc Date: Mon Nov 16 16:58:09 2015 New Revision: 290934 URL: https://svnweb.freebsd.org/changeset/base/290934 Log: Remove reference to EAI_NODATA. It does not exist on FreeBSD. Modified: head/usr.sbin/ypldap/ypldap_dns.c Modified: head/usr.sbin/ypldap/ypldap_dns.c == --- head/usr.sbin/ypldap/ypldap_dns.c Mon Nov 16 16:52:56 2015 (r290933) +++ head/usr.sbin/ypldap/ypldap_dns.c Mon Nov 16 16:58:09 2015 (r290934) @@ -215,7 +215,7 @@ host_dns(const char *s, struct ypldap_ad hints.ai_family = PF_UNSPEC; hints.ai_socktype = SOCK_DGRAM; /* DUMMY */ error = getaddrinfo(s, NULL, , ); - if (error == EAI_AGAIN || error == EAI_NODATA || error == EAI_NONAME) + if (error == EAI_AGAIN || error == EAI_NONAME) return (0); if (error) { log_warnx("could not parse \"%s\": %s", s, ___ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
svn commit: r290939 - head/usr.sbin/ypldap
Author: rodrigc Date: Mon Nov 16 17:08:51 2015 New Revision: 290939 URL: https://svnweb.freebsd.org/changeset/base/290939 Log: Add include of time.h for tzset() prototype. Modified: head/usr.sbin/ypldap/log.c Modified: head/usr.sbin/ypldap/log.c == --- head/usr.sbin/ypldap/log.c Mon Nov 16 17:08:05 2015(r290938) +++ head/usr.sbin/ypldap/log.c Mon Nov 16 17:08:51 2015(r290939) @@ -25,6 +25,7 @@ #include #include #include +#include voidlog_init(int); voidlog_warn(const char *, ...); ___ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
svn commit: r290940 - head/usr.sbin/ypldap
Author: rodrigc Date: Mon Nov 16 17:11:11 2015 New Revision: 290940 URL: https://svnweb.freebsd.org/changeset/base/290940 Log: Do not use SA_LEN() to dereference sa_len. FreeBSD lacks the SA_LEN() macro. Modified: head/usr.sbin/ypldap/ldapclient.c Modified: head/usr.sbin/ypldap/ldapclient.c == --- head/usr.sbin/ypldap/ldapclient.c Mon Nov 16 17:08:51 2015 (r290939) +++ head/usr.sbin/ypldap/ldapclient.c Mon Nov 16 17:11:11 2015 (r290940) @@ -71,14 +71,14 @@ client_aldap_open(struct ypldap_addr *ad char hbuf[NI_MAXHOST], sbuf[NI_MAXSERV]; struct sockaddr *sa = (struct sockaddr *)>ss; - if (getnameinfo(sa, SA_LEN(sa), hbuf, sizeof(hbuf), sbuf, + if (getnameinfo(sa, sa->sa_len, hbuf, sizeof(hbuf), sbuf, sizeof(sbuf), NI_NUMERICHOST | NI_NUMERICSERV)) errx(1, "could not get numeric hostname"); if ((fd = socket(sa->sa_family, SOCK_STREAM, 0)) < 0) return NULL; - if (connect(fd, sa, SA_LEN(sa)) == 0) + if (connect(fd, sa, sa->sa_len) == 0) break; warn("connect to %s port %s (%s) failed", hbuf, sbuf, "tcp"); ___ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
svn commit: r290937 - head/usr.sbin/ypldap
Author: rodrigc Date: Mon Nov 16 17:06:33 2015 New Revision: 290937 URL: https://svnweb.freebsd.org/changeset/base/290937 Log: Add include of sys/param.h for MAXHOSTNAMELEN Modified: head/usr.sbin/ypldap/entries.c head/usr.sbin/ypldap/parse.y head/usr.sbin/ypldap/yp.c head/usr.sbin/ypldap/ypldap.c head/usr.sbin/ypldap/ypldap_dns.c Modified: head/usr.sbin/ypldap/entries.c == --- head/usr.sbin/ypldap/entries.c Mon Nov 16 17:03:52 2015 (r290936) +++ head/usr.sbin/ypldap/entries.c Mon Nov 16 17:06:33 2015 (r290937) @@ -17,6 +17,7 @@ */ #include +#include #include #include #include Modified: head/usr.sbin/ypldap/parse.y == --- head/usr.sbin/ypldap/parse.yMon Nov 16 17:03:52 2015 (r290936) +++ head/usr.sbin/ypldap/parse.yMon Nov 16 17:06:33 2015 (r290937) @@ -26,6 +26,7 @@ %{ #include +#include #include #include #include Modified: head/usr.sbin/ypldap/yp.c == --- head/usr.sbin/ypldap/yp.c Mon Nov 16 17:03:52 2015(r290936) +++ head/usr.sbin/ypldap/yp.c Mon Nov 16 17:06:33 2015(r290937) @@ -17,6 +17,7 @@ */ #include +#include #include #include #include Modified: head/usr.sbin/ypldap/ypldap.c == --- head/usr.sbin/ypldap/ypldap.c Mon Nov 16 17:03:52 2015 (r290936) +++ head/usr.sbin/ypldap/ypldap.c Mon Nov 16 17:06:33 2015 (r290937) @@ -18,6 +18,7 @@ */ #include +#include #include #include #include Modified: head/usr.sbin/ypldap/ypldap_dns.c == --- head/usr.sbin/ypldap/ypldap_dns.c Mon Nov 16 17:03:52 2015 (r290936) +++ head/usr.sbin/ypldap/ypldap_dns.c Mon Nov 16 17:06:33 2015 (r290937) @@ -18,6 +18,7 @@ */ #include +#include #include #include #include ___ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
svn commit: r290938 - head/usr.sbin/ypldap
Author: rodrigc Date: Mon Nov 16 17:08:05 2015 New Revision: 290938 URL: https://svnweb.freebsd.org/changeset/base/290938 Log: Replace __dead with __dead2. FreeBSD lacks __dead. Modified: head/usr.sbin/ypldap/log.c head/usr.sbin/ypldap/ypldap.c Modified: head/usr.sbin/ypldap/log.c == --- head/usr.sbin/ypldap/log.c Mon Nov 16 17:06:33 2015(r290937) +++ head/usr.sbin/ypldap/log.c Mon Nov 16 17:08:05 2015(r290938) @@ -31,8 +31,8 @@ void log_warn(const char *, ...); voidlog_warnx(const char *, ...); voidlog_info(const char *, ...); voidlog_debug(const char *, ...); -__dead void fatal(const char *); -__dead void fatalx(const char *); +__dead2 voidfatal(const char *); +__dead2 voidfatalx(const char *); int debug; Modified: head/usr.sbin/ypldap/ypldap.c == --- head/usr.sbin/ypldap/ypldap.c Mon Nov 16 17:06:33 2015 (r290937) +++ head/usr.sbin/ypldap/ypldap.c Mon Nov 16 17:08:05 2015 (r290938) @@ -40,7 +40,7 @@ #include "ypldap.h" -__dead void usage(void); +__dead2 voidusage(void); int check_child(pid_t, const char *); voidmain_sig_handler(int, short, void *); voidmain_shutdown(void); ___ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
svn commit: r290941 - head/usr.sbin/ypldap
Author: rodrigc Date: Mon Nov 16 17:25:27 2015 New Revision: 290941 URL: https://svnweb.freebsd.org/changeset/base/290941 Log: Replace __svc_fdset with svc_fdset. FreeBSD lacks __svc_fdset and __svc_fdsetsize. Modified: head/usr.sbin/ypldap/yp.c Modified: head/usr.sbin/ypldap/yp.c == --- head/usr.sbin/ypldap/yp.c Mon Nov 16 17:11:11 2015(r290940) +++ head/usr.sbin/ypldap/yp.c Mon Nov 16 17:25:27 2015(r290941) @@ -82,13 +82,12 @@ yp_disable_events(void) void yp_enable_events(void) { - int i; - extern fd_set *__svc_fdset; - extern int __svc_fdsetsize; + int i; + extern fd_set svc_fdset; struct yp_event *ye; - for (i = 0; i < __svc_fdsetsize; i++) { - if (FD_ISSET(i, __svc_fdset)) { + for (i = 0; i < getdtablesize(); i++) { + if (FD_ISSET(i, _fdset)) { if ((ye = calloc(1, sizeof(*ye))) == NULL) fatal(NULL); event_set(>ye_event, i, EV_READ, yp_fd_event, NULL); ___ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
svn commit: r290942 - head/usr.sbin/ypldap
Author: rodrigc Date: Mon Nov 16 17:28:04 2015 New Revision: 290942 URL: https://svnweb.freebsd.org/changeset/base/290942 Log: Add include of signal.h for signal() prototype. Modified: head/usr.sbin/ypldap/ldapclient.c Modified: head/usr.sbin/ypldap/ldapclient.c == --- head/usr.sbin/ypldap/ldapclient.c Mon Nov 16 17:25:27 2015 (r290941) +++ head/usr.sbin/ypldap/ldapclient.c Mon Nov 16 17:28:04 2015 (r290942) @@ -34,6 +34,7 @@ #include #include #include +#include #include #include #include ___ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
svn commit: r290906 - head/share/locale-links
Author: rodrigc Date: Mon Nov 16 04:02:24 2015 New Revision: 290906 URL: https://svnweb.freebsd.org/changeset/base/290906 Log: Fix path for symlinks. Reviewed by: ngie Modified: head/share/locale-links/Makefile Modified: head/share/locale-links/Makefile == --- head/share/locale-links/MakefileMon Nov 16 03:32:12 2015 (r290905) +++ head/share/locale-links/MakefileMon Nov 16 04:02:24 2015 (r290906) @@ -15,7 +15,7 @@ ALIASES= zh_Hans_CN.GB18030 zh_CN.GB1803 .for from to in ${ALIASES} .for f in ${LC_FILES} -SYMLINKS+= ${from}/${f} ${LOCALEDIR}/${to}/${f} +SYMLINKS+= ../${from}/${f} ${LOCALEDIR}/${to}/${f} .endfor .endfor ___ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
svn commit: r290835 - head/lib/libopenbsd
Author: rodrigc Date: Sat Nov 14 23:07:38 2015 New Revision: 290835 URL: https://svnweb.freebsd.org/changeset/base/290835 Log: Implemtn getdtablecount() to count open file descriptors for current process. Use underlying sysctl implemented by mjg in r290473. PR:194985 Reviewed by: bapt, mjg Differential Revision: https://reviews.freebsd.org/D4084 Added: head/lib/libopenbsd/getdtablecount.c (contents, props changed) head/lib/libopenbsd/unistd.h (contents, props changed) Modified: head/lib/libopenbsd/Makefile Modified: head/lib/libopenbsd/Makefile == --- head/lib/libopenbsd/MakefileSat Nov 14 22:46:50 2015 (r290834) +++ head/lib/libopenbsd/MakefileSat Nov 14 23:07:38 2015 (r290835) @@ -1,9 +1,12 @@ # $FreeBSD$ LIB= openbsd -SRCS= ohash.c +SRCS= getdtablecount.c \ + ohash.c INTERNALLIB= +CFLAGS+= -I${.CURDIR} + WARNS= 3 .include Added: head/lib/libopenbsd/getdtablecount.c == --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/lib/libopenbsd/getdtablecount.cSat Nov 14 23:07:38 2015 (r290835) @@ -0,0 +1,58 @@ +/*- + * Copyright (c) 2015 Craig Rodrigues + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + *notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + *notice, this list of conditions and the following disclaimer in the + *documentation and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE + * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY + * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + * SUCH DAMAGE. + */ + +#include +__FBSDID("$FreeBSD$"); + +#include +#include +#include + +int getdtablecount(void); + +/* + * Return the count of open file descriptors for this process. + * + */ +int +getdtablecount(void) +{ + int mib[4]; + int error; + int nfds; + size_t len; + + len = sizeof(nfds); + mib[0] = CTL_KERN; + mib[1] = KERN_PROC; + mib[2] = KERN_PROC_NFDS; + mib[3] = 0; + + error = sysctl(mib, 4, , , NULL, 0); + if (error) + return (-1); + return (nfds); +} Added: head/lib/libopenbsd/unistd.h == --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/lib/libopenbsd/unistd.hSat Nov 14 23:07:38 2015 (r290835) @@ -0,0 +1,36 @@ +/*- + * Copyright (c) 2015 Craig Rodrigues + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + *notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + *notice, this list of conditions and the following disclaimer in the + *documentation and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE + * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY + * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + * SUCH DAMAGE. + * + * $FreeBSD$ + */ + +#ifndef _LIBOPENBSD_UNISTD_H
svn commit: r290836 - head/lib/libopenbsd
Author: rodrigc Date: Sat Nov 14 23:13:15 2015 New Revision: 290836 URL: https://svnweb.freebsd.org/changeset/base/290836 Log: Add imsg to libopenbsd. This will help with importing OpenBSD programs such as ypldap into the base system. Modified: head/lib/libopenbsd/Makefile Modified: head/lib/libopenbsd/Makefile == --- head/lib/libopenbsd/MakefileSat Nov 14 23:07:38 2015 (r290835) +++ head/lib/libopenbsd/MakefileSat Nov 14 23:13:15 2015 (r290836) @@ -2,6 +2,8 @@ LIB= openbsd SRCS= getdtablecount.c \ + imsg-buffer.c \ + imsg.c \ ohash.c INTERNALLIB= @@ -9,4 +11,5 @@ CFLAGS+= -I${.CURDIR} WARNS= 3 +NO_WERROR= .include ___ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
svn commit: r290838 - head/lib/libopenbsd/sys
Author: rodrigc Date: Sat Nov 14 23:43:59 2015 New Revision: 290838 URL: https://svnweb.freebsd.org/changeset/base/290838 Log: Fix bootstrapping of libopenbsd on build hosts where KERN_PROC_NFDS it not defined. Added: head/lib/libopenbsd/sys/ head/lib/libopenbsd/sys/sysctl.h (contents, props changed) Added: head/lib/libopenbsd/sys/sysctl.h == --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/lib/libopenbsd/sys/sysctl.hSat Nov 14 23:43:59 2015 (r290838) @@ -0,0 +1,38 @@ +/*- + * Copyright (c) 2015 Craig Rodrigues + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + *notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + *notice, this list of conditions and the following disclaimer in the + *documentation and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE + * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY + * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + * SUCH DAMAGE. + * + * $FreeBSD$ + */ + +#ifndef _LIBOPENBSD_SYS_SYSCTL_H_ +#define _LIBOPENBSD_SYS_SYSCTL_H_ + +#include_next + +#ifndef KERN_PROC_NFDS +#defineKERN_PROC_NFDS 43 /* number of open file descriptors */ +#endif + +#endif /* _LIBOPENBSD_SYS_SYSCTL_H_ */ ___ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
Re: svn commit: r290628 - in head/etc: . rc.d
On Mon, Nov 9, 2015 at 3:37 PM, Bryan Drewerywrote: > > When extracting mtrees, pass -i so schg/sappnd are respected. > > However, if NO_FSCHG is specified in make.conf, this does not do the right thing. -- Craig ___ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
Re: svn commit: r290628 - in head/etc: . rc.d
On Thu, Nov 12, 2015 at 9:11 AM, Bryan Drewery <bdrew...@freebsd.org> wrote: > On 11/12/2015 6:42 AM, Craig Rodrigues wrote: > > However, if NO_FSCHG is specified in make.conf, this does not do the > > right thing. > > > > This is now fixed. > Thank you. -- Craig ___ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
Re: svn commit: r290433 - in head: share/mk sys/conf tools/build/options
On Thu, Nov 5, 2015 at 8:45 PM, Bryan Drewerywrote: > Author: bdrewery > Date: Fri Nov 6 04:45:29 2015 > New Revision: 290433 > URL: https://svnweb.freebsd.org/changeset/base/290433 > > Log: > Add a FAST_DEPEND option, off by default, which speeds up the build > significantly. > > Enabling this by default, for src or out-of-src, can be done once more > testing > has been done, such as a ports exp-run, and with more compilers. > I put WITH_FAST_DEPEND="yes" in make.conf for these builds: https://jenkins.freebsd.org/job/FreeBSD_HEAD https://jenkins.freebsd.org/job/FreeBSD_HEAD_amd64_gcc4.9 https://jenkins.freebsd.org/job/FreeBSD_HEAD_sparc64 For the FreeBSD_HEAD_sparc64 build, there is a weird failure on bootstrap: https://jenkins.freebsd.org/job/FreeBSD_HEAD_sparc64/1311/console If you put these entries in make.conf: TARGET=sparc64 WITH_FAST_DEPEND=yes and do: make -j 4 buildworld __MAKE_CONF=make.conf That seems to trigger it. Can you take a look? -- Craig ___ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
svn commit: r290377 - head/lib/libopenbsd
Author: rodrigc Date: Thu Nov 5 01:29:48 2015 New Revision: 290377 URL: https://svnweb.freebsd.org/changeset/base/290377 Log: Add README, similar to the one from libnetbsd. Added: head/lib/libopenbsd/README (contents, props changed) Added: head/lib/libopenbsd/README == --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/lib/libopenbsd/README Thu Nov 5 01:29:48 2015(r290377) @@ -0,0 +1,7 @@ +$FreeBSD$ + +libopenbsd is a thin compatibility layer intended to allow a limited +set of OpenBSD software to compile as part of the FreeBSD build with +little or no modifiction. It is built as a static library and not +installed for general use. Likewise, its header files are not +installed. ___ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
svn commit: r290375 - head/lib/libopenbsd
Author: rodrigc Date: Wed Nov 4 23:52:19 2015 New Revision: 290375 URL: https://svnweb.freebsd.org/changeset/base/290375 Log: Import imsg from OpenBSD's libutil. imsg provides functions for communication between processes using sockets. imsg is used by programs in OpenBSD such as ypldap. Added: head/lib/libopenbsd/imsg-buffer.c (contents, props changed) head/lib/libopenbsd/imsg.c (contents, props changed) head/lib/libopenbsd/imsg.h (contents, props changed) head/lib/libopenbsd/imsg_init.3 (contents, props changed) Added: head/lib/libopenbsd/imsg-buffer.c == --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/lib/libopenbsd/imsg-buffer.c Wed Nov 4 23:52:19 2015 (r290375) @@ -0,0 +1,309 @@ +/* $OpenBSD: imsg-buffer.c,v 1.7 2015/07/12 18:40:49 nicm Exp $*/ + +/* + * Copyright (c) 2003, 2004 Henning Brauer+ * + * Permission to use, copy, modify, and distribute this software for any + * purpose with or without fee is hereby granted, provided that the above + * copyright notice and this permission notice appear in all copies. + * + * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES + * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR + * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES + * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN + * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF + * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + * + * $FreeBSD$ + */ + +#include +#include +#include +#include + +#include +#include +#include +#include +#include + +#include "imsg.h" + +intibuf_realloc(struct ibuf *, size_t); +void ibuf_enqueue(struct msgbuf *, struct ibuf *); +void ibuf_dequeue(struct msgbuf *, struct ibuf *); + +struct ibuf * +ibuf_open(size_t len) +{ + struct ibuf *buf; + + if ((buf = calloc(1, sizeof(struct ibuf))) == NULL) + return (NULL); + if ((buf->buf = malloc(len)) == NULL) { + free(buf); + return (NULL); + } + buf->size = buf->max = len; + buf->fd = -1; + + return (buf); +} + +struct ibuf * +ibuf_dynamic(size_t len, size_t max) +{ + struct ibuf *buf; + + if (max < len) + return (NULL); + + if ((buf = ibuf_open(len)) == NULL) + return (NULL); + + if (max > 0) + buf->max = max; + + return (buf); +} + +int +ibuf_realloc(struct ibuf *buf, size_t len) +{ + u_char *b; + + /* on static buffers max is eq size and so the following fails */ + if (buf->wpos + len > buf->max) { + errno = ERANGE; + return (-1); + } + + b = realloc(buf->buf, buf->wpos + len); + if (b == NULL) + return (-1); + buf->buf = b; + buf->size = buf->wpos + len; + + return (0); +} + +int +ibuf_add(struct ibuf *buf, const void *data, size_t len) +{ + if (buf->wpos + len > buf->size) + if (ibuf_realloc(buf, len) == -1) + return (-1); + + memcpy(buf->buf + buf->wpos, data, len); + buf->wpos += len; + return (0); +} + +void * +ibuf_reserve(struct ibuf *buf, size_t len) +{ + void*b; + + if (buf->wpos + len > buf->size) + if (ibuf_realloc(buf, len) == -1) + return (NULL); + + b = buf->buf + buf->wpos; + buf->wpos += len; + return (b); +} + +void * +ibuf_seek(struct ibuf *buf, size_t pos, size_t len) +{ + /* only allowed to seek in already written parts */ + if (pos + len > buf->wpos) + return (NULL); + + return (buf->buf + pos); +} + +size_t +ibuf_size(struct ibuf *buf) +{ + return (buf->wpos); +} + +size_t +ibuf_left(struct ibuf *buf) +{ + return (buf->max - buf->wpos); +} + +void +ibuf_close(struct msgbuf *msgbuf, struct ibuf *buf) +{ + ibuf_enqueue(msgbuf, buf); +} + +int +ibuf_write(struct msgbuf *msgbuf) +{ + struct iovec iov[IOV_MAX]; + struct ibuf *buf; + unsigned int i = 0; + ssize_t n; + + memset(, 0, sizeof(iov)); + TAILQ_FOREACH(buf, >bufs, entry) { + if (i >= IOV_MAX) + break; + iov[i].iov_base = buf->buf + buf->rpos; + iov[i].iov_len = buf->wpos - buf->rpos; + i++; + } + +again: + if ((n = writev(msgbuf->fd, iov, i)) == -1) { + if (errno == EINTR) + goto again; + if (errno == ENOBUFS) + errno = EAGAIN; + return (-1); + } + + if (n == 0) { /* connection closed */
svn commit: r290378 - in head/lib: libnetbsd libopenbsd
Author: rodrigc Date: Thu Nov 5 01:54:38 2015 New Revision: 290378 URL: https://svnweb.freebsd.org/changeset/base/290378 Log: Fix spelling error. Reported by: junovitch Modified: head/lib/libnetbsd/README head/lib/libopenbsd/README Modified: head/lib/libnetbsd/README == --- head/lib/libnetbsd/README Thu Nov 5 01:29:48 2015(r290377) +++ head/lib/libnetbsd/README Thu Nov 5 01:54:38 2015(r290378) @@ -2,6 +2,6 @@ $FreeBSD$ libnetbsd is a thin compatibility layer intended to allow a limited set of NetBSD software to compile as part of the FreeBSD build with -little or no modifiction. It is built as a static library and not +little or no modification. It is built as a static library and not installed for general use. Likewise, its header files are not installed. Modified: head/lib/libopenbsd/README == --- head/lib/libopenbsd/README Thu Nov 5 01:29:48 2015(r290377) +++ head/lib/libopenbsd/README Thu Nov 5 01:54:38 2015(r290378) @@ -2,6 +2,6 @@ $FreeBSD$ libopenbsd is a thin compatibility layer intended to allow a limited set of OpenBSD software to compile as part of the FreeBSD build with -little or no modifiction. It is built as a static library and not +little or no modification. It is built as a static library and not installed for general use. Likewise, its header files are not installed. ___ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
svn commit: r290350 - head/gnu/usr.bin/grep
Author: rodrigc Date: Wed Nov 4 05:38:08 2015 New Revision: 290350 URL: https://svnweb.freebsd.org/changeset/base/290350 Log: Include "system.h" for isdir() prototype. Submitted by: bofh Differential Revision: https://reviews.freebsd.org/D2711 Modified: head/gnu/usr.bin/grep/savedir.c Modified: head/gnu/usr.bin/grep/savedir.c == --- head/gnu/usr.bin/grep/savedir.c Wed Nov 4 04:01:59 2015 (r290349) +++ head/gnu/usr.bin/grep/savedir.c Wed Nov 4 05:38:08 2015 (r290350) @@ -71,6 +71,7 @@ char *stpcpy (); #include #include "savedir.h" +#include "system.h" char *path; size_t pathlen; ___ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
svn commit: r290351 - in head: . lib lib/libohash lib/libopenbsd share/mk usr.bin/m4 usr.bin/mandoc
Author: rodrigc Date: Wed Nov 4 07:20:55 2015 New Revision: 290351 URL: https://svnweb.freebsd.org/changeset/base/290351 Log: Rename libohash to libopenbsd. libopenbsd is an internal library which to bring in compatibility stuff from OpenBSD. This will allow us to bring in more OpenBSD utilities into the FreeBSD base system. We similarly use libnetbsd for bringing in stuff from NetBSD. Reviewed by: bapt Differential Revision: https://reviews.freebsd.org/D4078 Added: head/lib/libopenbsd/ - copied from r290350, head/lib/libohash/ Deleted: head/lib/libohash/ Modified: head/Makefile.inc1 head/lib/Makefile head/lib/libopenbsd/Makefile head/share/mk/src.libnames.mk head/usr.bin/m4/Makefile head/usr.bin/m4/Makefile.depend head/usr.bin/mandoc/Makefile head/usr.bin/mandoc/Makefile.depend Modified: head/Makefile.inc1 == --- head/Makefile.inc1 Wed Nov 4 05:38:08 2015(r290350) +++ head/Makefile.inc1 Wed Nov 4 07:20:55 2015(r290351) @@ -1367,10 +1367,10 @@ _sed= usr.bin/sed .endif .if ${BOOTSTRAPPING} < 102 -_libohash= lib/libohash +_libopenbsd= lib/libopenbsd _m4= usr.bin/m4 -${_bt}-usr.bin/m4: ${_bt}-lib/libohash +${_bt}-usr.bin/m4: ${_bt}-lib/libopenbsd .endif .if ${BOOTSTRAPPING} < 126 @@ -1443,10 +1443,10 @@ _kerberos5_bootstrap_tools= \ .endif .if ${MK_MANDOCDB} != "no" -_libohash?=lib/libohash +_libopenbsd?= lib/libopenbsd _makewhatis= lib/libsqlite3 \ usr.bin/mandoc -${_bt}-usr.bin/mandoc: ${_bt}-lib/libohash ${_bt}-lib/libsqlite3 +${_bt}-usr.bin/mandoc: ${_bt}-lib/libopenbsd ${_bt}-lib/libsqlite3 .else _makewhatis=usr.bin/makewhatis .endif @@ -1469,7 +1469,7 @@ bootstrap-tools: .PHONY ${_awk} \ ${_cat} \ usr.bin/lorder \ -${_libohash} \ +${_libopenbsd} \ ${_makewhatis} \ usr.bin/rpcgen \ ${_sed} \ Modified: head/lib/Makefile == --- head/lib/Makefile Wed Nov 4 05:38:08 2015(r290350) +++ head/lib/Makefile Wed Nov 4 07:20:55 2015(r290351) @@ -75,7 +75,7 @@ SUBDIR= ${SUBDIR_ORDERED} \ ${_libnetgraph} \ ${_libngatm} \ libnv \ - libohash \ + libopenbsd \ libopie \ libpam \ libpcap \ Modified: head/lib/libopenbsd/Makefile == --- head/lib/libohash/Makefile Wed Nov 4 05:38:08 2015(r290350) +++ head/lib/libopenbsd/MakefileWed Nov 4 07:20:55 2015 (r290351) @@ -1,6 +1,6 @@ # $FreeBSD$ -LIB= ohash +LIB= openbsd SRCS= ohash.c INTERNALLIB= Modified: head/share/mk/src.libnames.mk == --- head/share/mk/src.libnames.mk Wed Nov 4 05:38:08 2015 (r290350) +++ head/share/mk/src.libnames.mk Wed Nov 4 07:20:55 2015 (r290351) @@ -39,7 +39,7 @@ _INTERNALLIBS=\ netbsd \ ntp \ ntpevent \ - ohash \ + openbsd \ opts \ parse \ readline \ @@ -313,8 +313,8 @@ LIBELFTC?= ${LIBELFTCDIR}/libelftc.a LIBREADLINEDIR=${ROOTOBJDIR}/gnu/lib/libreadline/readline LIBREADLINE?= ${LIBREADLINEDIR}/libreadline.a -LIBOHASHDIR= ${ROOTOBJDIR}/lib/libohash -LIBOHASH?= ${LIBOHASHDIR}/libohash.a +LIBOPENBSDDIR= ${ROOTOBJDIR}/lib/libopenbsd +LIBOPENBSD?= ${LIBOPENBSDDIR}/libopenbsd.a LIBSMDIR= ${ROOTOBJDIR}/lib/libsm LIBSM?=${LIBSMDIR}/libsm.a Modified: head/usr.bin/m4/Makefile == --- head/usr.bin/m4/MakefileWed Nov 4 05:38:08 2015(r290350) +++ head/usr.bin/m4/MakefileWed Nov 4 07:20:55 2015(r290351) @@ -7,8 +7,8 @@ .include PROG= m4 -CFLAGS+=-DEXTENDED -I${.CURDIR} -I${.CURDIR}/../../lib/libohash -LIBADD=y l m ohash +CFLAGS+=-DEXTENDED -I${.CURDIR} -I${.CURDIR}/../../lib/libopenbsd +LIBADD=y l m openbsd NO_WMISSING_VARIABLE_DECLARATIONS= Modified: head/usr.bin/m4/Makefile.depend == --- head/usr.bin/m4/Makefile.depend Wed Nov 4 05:38:08 2015 (r290350) +++ head/usr.bin/m4/Makefile.depend Wed Nov 4 07:20:55 2015 (r290351) @@ -9,7 +9,7 @@ DIRDEPS = \ lib/${CSU_DIR} \ lib/libc \ lib/libcompiler_rt \ - lib/libohash \ + lib/libopenbsd \ lib/liby \ lib/msun \ usr.bin/lex/lib \ Modified: head/usr.bin/mandoc/Makefile == --- head/usr.bin/mandoc/MakefileWed Nov 4 05:38:08 2015
svn commit: r289027 - head/contrib/tzcode/stdtime
Author: rodrigc Date: Thu Oct 8 11:42:15 2015 New Revision: 289027 URL: https://svnweb.freebsd.org/changeset/base/289027 Log: Merge: commit 400ecf36bb0b73f6390f9641e6cb8bbfb91a5cfd Author: Paul EggertDate: Fri Oct 12 07:53:12 2012 -0700 Assume C89. https://github.com/eggert/tz/commit/400ecf36bb0b73f6390f9641e6cb8bbfb91a5cfd Modified: head/contrib/tzcode/stdtime/difftime.c head/contrib/tzcode/stdtime/localtime.c head/contrib/tzcode/stdtime/private.h Modified: head/contrib/tzcode/stdtime/difftime.c == --- head/contrib/tzcode/stdtime/difftime.c Thu Oct 8 11:07:09 2015 (r289026) +++ head/contrib/tzcode/stdtime/difftime.c Thu Oct 8 11:42:15 2015 (r289027) @@ -18,9 +18,7 @@ __FBSDID("$FreeBSD$"); #include "un-namespace.h" double -difftime(time1, time0) -const time_t time1; -const time_t time0; +difftime(const time_t time1, const time_t time0) { /* ** If (sizeof (double) > sizeof (time_t)) simply convert and subtract Modified: head/contrib/tzcode/stdtime/localtime.c == --- head/contrib/tzcode/stdtime/localtime.c Thu Oct 8 11:07:09 2015 (r289026) +++ head/contrib/tzcode/stdtime/localtime.c Thu Oct 8 11:42:15 2015 (r289027) @@ -173,8 +173,9 @@ struct rule { static longdetzcode(const char * codep); static time_t detzcode64(const char * codep); static int differ_by_repeat(time_t t1, time_t t0); -static const char *getzname(const char * strp); -static const char *getqzname(const char * strp, const int delim); +static const char *getzname(const char * strp) ATTRIBUTE_PURE; +static const char *getqzname(const char * strp, const int delim) + ATTRIBUTE_PURE; static const char *getnum(const char * strp, int * nump, int min, int max); static const char *getsecs(const char * strp, long * secsp); @@ -186,7 +187,7 @@ static struct tm * gmtsub(const time_t * static struct tm * localsub(const time_t * timep, long offset, struct tm * tmp); static int increment_overflow(int * number, int delta); -static int leaps_thru_end_of(int y); +static int leaps_thru_end_of(int y) ATTRIBUTE_PURE; static int long_increment_overflow(long * number, int delta); static int long_normalize_overflow(long * tensptr, int * unitsptr, int base); @@ -210,7 +211,8 @@ static struct tm * timesub(const time_t static int tmcomp(const struct tm * atmp, const struct tm * btmp); static time_t transtime(time_t janfirst, int year, - const struct rule * rulep, long offset); + const struct rule * rulep, long offset) + ATTRIBUTE_PURE; static int typesequiv(const struct state * sp, int a, int b); static int tzload(const char * name, struct state * sp, int doextend); @@ -269,8 +271,7 @@ time_t altzone = 0; #endif /* defined ALTZONE */ static long -detzcode(codep) -const char * const codep; +detzcode(const char *const codep) { longresult; int i; @@ -282,8 +283,7 @@ const char * const codep; } static time_t -detzcode64(codep) -const char * const codep; +detzcode64(const char *const codep) { register time_t result; register inti; @@ -355,9 +355,7 @@ settzname(void) } static int -differ_by_repeat(t1, t0) -const time_t t1; -const time_t t0; +differ_by_repeat(const time_t t1, const time_t t0) { int_fast64_t _t0 = t0; int_fast64_t _t1 = t1; @@ -1217,8 +1215,7 @@ const int lastditch; } static void -gmtload(sp) -struct state * const sp; +gmtload(struct state *const sp) { if (tzload(gmt, sp, TRUE) != 0) (void) tzparse(gmt, sp, TRUE); @@ -1241,7 +1238,7 @@ tzsetwall_basic(int rdlocked) #ifdef ALL_STATE if (lclptr == NULL) { - lclptr = (struct state *) calloc(1, sizeof *lclptr); + lclptr = calloc(1, sizeof *lclptr); if (lclptr == NULL) { settzname();/* all we can do */ _RWLOCK_UNLOCK(_rwlock); @@ -1341,10 +1338,7 @@ tzset(void) /*ARGSUSED*/ static struct tm * -localsub(timep, offset, tmp) -const time_t * const timep; -const long offset; -struct tm * const tmp; +localsub(const time_t *const timep, const long offset, struct tm *const tmp) { struct state * sp; const struct ttinfo * ttisp; @@ -1440,8 +1434,7 @@ localtime_key_init(void) } struct tm * -localtime(timep) -const time_t *
svn commit: r288995 - head/lib/libc/rpc
Author: rodrigc Date: Wed Oct 7 19:55:58 2015 New Revision: 288995 URL: https://svnweb.freebsd.org/changeset/base/288995 Log: Use proper function prototypes. Eliminates -Wstrict-prototypes warning Modified: head/lib/libc/rpc/getpublickey.c head/lib/libc/rpc/key_call.c Modified: head/lib/libc/rpc/getpublickey.c == --- head/lib/libc/rpc/getpublickey.cWed Oct 7 19:10:38 2015 (r288994) +++ head/lib/libc/rpc/getpublickey.cWed Oct 7 19:55:58 2015 (r288995) @@ -56,7 +56,7 @@ __FBSDID("$FreeBSD$"); /* * Hack to let ypserv/rpc.nisd use AUTH_DES. */ -int (*__getpublickey_LOCAL)() = 0; +int (*__getpublickey_LOCAL)(const char *, char *) = 0; /* * Get somebody's public key Modified: head/lib/libc/rpc/key_call.c == --- head/lib/libc/rpc/key_call.cWed Oct 7 19:10:38 2015 (r288994) +++ head/lib/libc/rpc/key_call.cWed Oct 7 19:55:58 2015 (r288995) @@ -81,9 +81,9 @@ __FBSDID("$FreeBSD$"); * implementations of these functions, and to call those in key_call(). */ -cryptkeyres *(*__key_encryptsession_pk_LOCAL)() = 0; -cryptkeyres *(*__key_decryptsession_pk_LOCAL)() = 0; -des_block *(*__key_gendes_LOCAL)() = 0; +cryptkeyres *(*__key_encryptsession_pk_LOCAL)(uid_t, void *arg) = 0; +cryptkeyres *(*__key_decryptsession_pk_LOCAL)(uid_t, void *arg) = 0; +des_block *(*__key_gendes_LOCAL)(uid_t, void *) = 0; static int key_call( u_long, xdrproc_t, void *, xdrproc_t, void *); ___ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
svn commit: r289002 - head/release/scripts
Author: rodrigc Date: Thu Oct 8 03:28:15 2015 New Revision: 289002 URL: https://svnweb.freebsd.org/changeset/base/289002 Log: Use print as a function, not operator. Modified: head/release/scripts/list-new-changesets.py Modified: head/release/scripts/list-new-changesets.py == --- head/release/scripts/list-new-changesets.py Thu Oct 8 02:28:22 2015 (r289001) +++ head/release/scripts/list-new-changesets.py Thu Oct 8 03:28:15 2015 (r289002) @@ -44,6 +44,7 @@ #list-new-changesets.py -r254153:261794 \ #svn://svn.freebsd.org/base/stable/9 +from __future__ import print_function import os import subprocess import sys @@ -60,15 +61,15 @@ def print_logentry(logentry): date = logentry.find('date').text msg = logentry.find('msg').text -print "-" * 71 -print "%s | %s | %s" % (rev, author, date) -print "Changed paths:" +print("-" * 71) +print("%s | %s | %s" % (rev, author, date)) +print("Changed paths:") for paths in logentry.findall('paths'): for path in paths.findall('path'): -print " %s %s" % (path.attrib['action'], path.text) +print(" %s %s" % (path.attrib['action'], path.text)) -print -print msg.encode('utf-8') +print() +print(msg.encode('utf-8')) def main(args): """Main function. @@ -80,13 +81,13 @@ def main(args): cmd = ["svn", "log", "-v", "--xml"] cmd += args[1:] -print " ".join(cmd) +print(" ".join(cmd)) proc = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE) (out, err) = proc.communicate() if proc.returncode != 0: -print err +print(err) sys.exit(proc.returncode) displayed_entries = 0 @@ -107,10 +108,10 @@ def main(args): displayed_entries += 1 if displayed_entries == 0: -print "No changesets with Added or Deleted files" +print("No changesets with Added or Deleted files") if displayed_entries > 0: -print "-" * 71 +print("-" * 71) if __name__ == "__main__": ___ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
svn commit: r288998 - head/lib/clang/libclangbasic
Author: rodrigc Date: Thu Oct 8 00:48:29 2015 New Revision: 288998 URL: https://svnweb.freebsd.org/changeset/base/288998 Log: Use -fpermissive if compiling with GCC. Works around GCC bug: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67888 when compiling Module.cpp Modified: head/lib/clang/libclangbasic/Makefile Modified: head/lib/clang/libclangbasic/Makefile == --- head/lib/clang/libclangbasic/Makefile Thu Oct 8 00:31:11 2015 (r288997) +++ head/lib/clang/libclangbasic/Makefile Thu Oct 8 00:48:29 2015 (r288998) @@ -47,3 +47,6 @@ TGHDRS= AttrHasAttributeImpl \ arm_neon .include "../clang.lib.mk" + +# XX: work around GCC bug 67888 +CFLAGS.gcc += -fpermissive ___ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
svn commit: r288147 - head/lib/libc/isc
Author: rodrigc Date: Wed Sep 23 16:16:16 2015 New Revision: 288147 URL: https://svnweb.freebsd.org/changeset/base/288147 Log: Use ANSI C prototypes. Eliminates -Wold-style-definition warnings. Submitted by: Sascha WildnerObtained from: DragonFlyBSD (commit 5d7d35b17f98588c39b30036f1a3fe8802935c2c) Modified: head/lib/libc/isc/ev_timers.c Modified: head/lib/libc/isc/ev_timers.c == --- head/lib/libc/isc/ev_timers.c Wed Sep 23 15:49:27 2015 (r288146) +++ head/lib/libc/isc/ev_timers.c Wed Sep 23 16:16:16 2015 (r288147) @@ -117,7 +117,7 @@ evCmpTime(struct timespec a, struct time } struct timespec -evNowTime() { +evNowTime(void) { struct timeval now; #ifdef CLOCK_REALTIME struct timespec tsnow; @@ -136,7 +136,7 @@ evNowTime() { } struct timespec -evUTCTime() { +evUTCTime(void) { struct timeval now; #ifdef CLOCK_REALTIME struct timespec tsnow; ___ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
svn commit: r288114 - head/lib/libc/resolv
Author: rodrigc Date: Tue Sep 22 15:57:26 2015 New Revision: 288114 URL: https://svnweb.freebsd.org/changeset/base/288114 Log: Use ANSI C prototypes. Eliminates -Wold-style-definition warnings. Modified: head/lib/libc/resolv/res_debug.c head/lib/libc/resolv/res_init.c head/lib/libc/resolv/res_mkupdate.c head/lib/libc/resolv/res_send.c Modified: head/lib/libc/resolv/res_debug.c == --- head/lib/libc/resolv/res_debug.cTue Sep 22 15:40:07 2015 (r288113) +++ head/lib/libc/resolv/res_debug.cTue Sep 22 15:57:26 2015 (r288114) @@ -367,11 +367,8 @@ p_cdname(const u_char *cp, const u_char length supplied). */ const u_char * -p_fqnname(cp, msg, msglen, name, namelen) - const u_char *cp, *msg; - int msglen; - char *name; - int namelen; +p_fqnname(const u_char *cp, const u_char *msg, int msglen, char *name, +int namelen) { int n, newlen; @@ -758,8 +755,7 @@ static unsigned int poweroften[10] = {1, /*% takes an XeY precision/size value, returns a string representation. */ static const char * -precsize_ntoa(prec) - u_int8_t prec; +precsize_ntoa(u_int8_t prec) { char *retbuf = precsize_ntoa_retbuf; unsigned long val; @@ -912,9 +908,7 @@ latlon2ul(const char **latlonstrptr, int * converts a zone file representation in a string to an RDATA on-the-wire * representation. */ int -loc_aton(ascii, binary) - const char *ascii; - u_char *binary; +loc_aton(const char *ascii, u_char *binary) { const char *cp, *maxcp; u_char *bcp; @@ -1023,9 +1017,7 @@ loc_aton(ascii, binary) /*% takes an on-the-wire LOC RR and formats it in a human readable format. */ const char * -loc_ntoa(binary, ascii) - const u_char *binary; - char *ascii; +loc_ntoa(const u_char *binary, char *ascii) { static const char *error = "?"; static char tmpbuf[sizeof Modified: head/lib/libc/resolv/res_init.c == --- head/lib/libc/resolv/res_init.c Tue Sep 22 15:40:07 2015 (r288113) +++ head/lib/libc/resolv/res_init.c Tue Sep 22 15:57:26 2015 (r288114) @@ -718,8 +718,7 @@ res_setoptions(res_state statp, const ch #ifdef RESOLVSORT /* XXX - should really support CIDR which means explicit masks always. */ static u_int32_t -net_mask(in) /*!< XXX - should really use system's version of this */ - struct in_addr in; +net_mask(struct in_addr in)/*!< XXX - should really use system's version of this */ { u_int32_t i = ntohl(in.s_addr); Modified: head/lib/libc/resolv/res_mkupdate.c == --- head/lib/libc/resolv/res_mkupdate.c Tue Sep 22 15:40:07 2015 (r288113) +++ head/lib/libc/resolv/res_mkupdate.c Tue Sep 22 15:57:26 2015 (r288114) @@ -973,7 +973,7 @@ struct valuelist { static struct valuelist *servicelist, *protolist; static void -res_buildservicelist() { +res_buildservicelist(void) { struct servent *sp; struct valuelist *slp; Modified: head/lib/libc/resolv/res_send.c == --- head/lib/libc/resolv/res_send.c Tue Sep 22 15:40:07 2015 (r288113) +++ head/lib/libc/resolv/res_send.c Tue Sep 22 15:57:26 2015 (r288114) @@ -574,8 +574,7 @@ res_nsend(res_state statp, /* Private */ static int -get_salen(sa) - const struct sockaddr *sa; +get_salen(const struct sockaddr *sa) { #ifdef HAVE_SA_LEN @@ -596,9 +595,7 @@ get_salen(sa) * pick appropriate nsaddr_list for use. see res_init() for initialization. */ static struct sockaddr * -get_nsaddr(statp, n) - res_state statp; - size_t n; +get_nsaddr(res_state statp, size_t n) { if (!statp->nsaddr_list[n].sin_family && EXT(statp).ext) { ___ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
svn commit: r288098 - head/lib/libc/gen
Author: rodrigc Date: Tue Sep 22 07:40:55 2015 New Revision: 288098 URL: https://svnweb.freebsd.org/changeset/base/288098 Log: Use proper function prototype for readdir(). Eliminates -Wstrict-prototypes warning Submitted by: Joerg SonnenbergerObtained from: DragonFlyBSD (commit 2a6aec8dab58c89961cabcfdb92e0d0ae256dea4) Modified: head/lib/libc/gen/glob.c Modified: head/lib/libc/gen/glob.c == --- head/lib/libc/gen/glob.cTue Sep 22 07:31:40 2015(r288097) +++ head/lib/libc/gen/glob.cTue Sep 22 07:40:55 2015(r288098) @@ -650,13 +650,7 @@ glob3(Char *pathbuf, Char *pathend, Char int err; char buf[MAXPATHLEN]; - /* -* The readdirfunc declaration can't be prototyped, because it is -* assigned, below, to two functions which are prototyped in glob.h -* and dirent.h as taking pointers to differently typed opaque -* structures. -*/ - struct dirent *(*readdirfunc)(); + struct dirent *(*readdirfunc)(DIR *); if (pathend > pathend_last) return (GLOB_ABORTED); @@ -677,12 +671,14 @@ glob3(Char *pathbuf, Char *pathend, Char err = 0; - /* Search directory for matching names. */ + /* pglob->gl_readdir takes a void *, fix this manually */ if (pglob->gl_flags & GLOB_ALTDIRFUNC) - readdirfunc = pglob->gl_readdir; + readdirfunc = (struct dirent *(*)(DIR *))pglob->gl_readdir; else readdirfunc = readdir; - while ((dp = (*readdirfunc)(dirp))) { + + /* Search directory for matching names. */ + while ((dp = (*readdirfunc)(dirp)) != NULL) { char *sc; Char *dc; wchar_t wc; ___ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
svn commit: r288097 - head/lib/libc/gen
Author: rodrigc Date: Tue Sep 22 07:31:40 2015 New Revision: 288097 URL: https://svnweb.freebsd.org/changeset/base/288097 Log: Use ANSI C prototypes. Eliminates -Wold-style-definition warnings. Modified: head/lib/libc/gen/clock.c Modified: head/lib/libc/gen/clock.c == --- head/lib/libc/gen/clock.c Tue Sep 22 06:51:55 2015(r288096) +++ head/lib/libc/gen/clock.c Tue Sep 22 07:31:40 2015(r288097) @@ -45,7 +45,7 @@ __FBSDID("$FreeBSD$"); + (r).tv_usec / (100 / CLOCKS_PER_SEC)) clock_t -clock() +clock(void) { struct rusage ru; ___ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
svn commit: r288113 - head/lib/libc/rpc
Author: rodrigc Date: Tue Sep 22 15:40:07 2015 New Revision: 288113 URL: https://svnweb.freebsd.org/changeset/base/288113 Log: Use ANSI C prototypes. Eliminates -Wold-style-definition warnings. Modified: head/lib/libc/rpc/auth_unix.c head/lib/libc/rpc/authdes_prot.c head/lib/libc/rpc/authunix_prot.c head/lib/libc/rpc/bindresvport.c head/lib/libc/rpc/clnt_bcast.c head/lib/libc/rpc/clnt_perror.c head/lib/libc/rpc/clnt_raw.c head/lib/libc/rpc/clnt_simple.c head/lib/libc/rpc/clnt_vc.c head/lib/libc/rpc/des_crypt.c head/lib/libc/rpc/getnetconfig.c head/lib/libc/rpc/getnetpath.c head/lib/libc/rpc/getrpcent.c head/lib/libc/rpc/getrpcport.c head/lib/libc/rpc/mt_misc.c head/lib/libc/rpc/netname.c head/lib/libc/rpc/netnamer.c head/lib/libc/rpc/pmap_getmaps.c head/lib/libc/rpc/pmap_getport.c head/lib/libc/rpc/pmap_prot.c head/lib/libc/rpc/pmap_prot2.c head/lib/libc/rpc/pmap_rmt.c head/lib/libc/rpc/rpc_callmsg.c head/lib/libc/rpc/rpc_generic.c head/lib/libc/rpc/rpc_prot.c head/lib/libc/rpc/rpc_soc.c head/lib/libc/rpc/rpcb_clnt.c head/lib/libc/rpc/rpcb_prot.c head/lib/libc/rpc/rpcb_st_xdr.c head/lib/libc/rpc/svc_auth.c head/lib/libc/rpc/svc_auth_unix.c head/lib/libc/rpc/svc_generic.c head/lib/libc/rpc/svc_raw.c head/lib/libc/rpc/svc_run.c head/lib/libc/rpc/svc_simple.c Modified: head/lib/libc/rpc/auth_unix.c == --- head/lib/libc/rpc/auth_unix.c Tue Sep 22 15:32:27 2015 (r288112) +++ head/lib/libc/rpc/auth_unix.c Tue Sep 22 15:40:07 2015 (r288113) @@ -91,12 +91,7 @@ struct audata { * Returns an auth handle with the given stuff in it. */ AUTH * -authunix_create(machname, uid, gid, len, aup_gids) - char *machname; - u_int uid; - u_int gid; - int len; - u_int *aup_gids; +authunix_create(char *machname, u_int uid, u_int gid, int len, u_int *aup_gids) { struct authunix_parms aup; char mymem[MAX_AUTH_BYTES]; @@ -182,7 +177,7 @@ authunix_create(machname, uid, gid, len, * syscalls. */ AUTH * -authunix_create_default() +authunix_create_default(void) { AUTH *auth; int ngids; @@ -218,16 +213,13 @@ authunix_create_default() /* ARGSUSED */ static void -authunix_nextverf(auth) - AUTH *auth; +authunix_nextverf(AUTH *auth) { /* no action necessary */ } static bool_t -authunix_marshal(auth, xdrs) - AUTH *auth; - XDR *xdrs; +authunix_marshal(AUTH *auth, XDR *xdrs) { struct audata *au; @@ -239,9 +231,7 @@ authunix_marshal(auth, xdrs) } static bool_t -authunix_validate(auth, verf) - AUTH *auth; - struct opaque_auth *verf; +authunix_validate(AUTH *auth, struct opaque_auth *verf) { struct audata *au; XDR xdrs; @@ -317,8 +307,7 @@ done: } static void -authunix_destroy(auth) - AUTH *auth; +authunix_destroy(AUTH *auth) { struct audata *au; @@ -343,8 +332,7 @@ authunix_destroy(auth) * sets private data, au_marshed and au_mpos */ static void -marshal_new_auth(auth) - AUTH *auth; +marshal_new_auth(AUTH *auth) { XDR xdr_stream; XDR *xdrs = _stream; @@ -363,7 +351,7 @@ marshal_new_auth(auth) } static struct auth_ops * -authunix_ops() +authunix_ops(void) { static struct auth_ops ops; Modified: head/lib/libc/rpc/authdes_prot.c == --- head/lib/libc/rpc/authdes_prot.cTue Sep 22 15:32:27 2015 (r288112) +++ head/lib/libc/rpc/authdes_prot.cTue Sep 22 15:40:07 2015 (r288113) @@ -49,9 +49,7 @@ __FBSDID("$FreeBSD$"); #define ATTEMPT(xdr_op) if (!(xdr_op)) return (FALSE) bool_t -xdr_authdes_cred(xdrs, cred) - XDR *xdrs; - struct authdes_cred *cred; +xdr_authdes_cred(XDR *xdrs, struct authdes_cred *cred) { enum authdes_namekind *padc_namekind = >adc_namekind; /* @@ -78,9 +76,7 @@ xdr_authdes_cred(xdrs, cred) bool_t -xdr_authdes_verf(xdrs, verf) - XDR *xdrs; - struct authdes_verf *verf; +xdr_authdes_verf(XDR *xdrs, struct authdes_verf *verf) { /* * Unrolled xdr Modified: head/lib/libc/rpc/authunix_prot.c == --- head/lib/libc/rpc/authunix_prot.c Tue Sep 22 15:32:27 2015 (r288112) +++ head/lib/libc/rpc/authunix_prot.c Tue Sep 22 15:40:07 2015 (r288113) @@ -55,9 +55,7 @@ __FBSDID("$FreeBSD$"); * XDR for unix authentication parameters. */ bool_t -xdr_authunix_parms(xdrs, p) - XDR *xdrs; - struct authunix_parms *p; +xdr_authunix_parms(XDR *xdrs, struct authunix_parms *p) { u_int **paup_gids; Modified: head/lib/libc/rpc/bindresvport.c == --- head/lib/libc/rpc/bindresvport.cTue Sep 22 15:32:27
svn commit: r288031 - head/lib/libc/stdio
Author: rodrigc Date: Sun Sep 20 20:26:46 2015 New Revision: 288031 URL: https://svnweb.freebsd.org/changeset/base/288031 Log: Remove names from some prototypes Modified: head/lib/libc/stdio/_flock_stub.c Modified: head/lib/libc/stdio/_flock_stub.c == --- head/lib/libc/stdio/_flock_stub.c Sun Sep 20 20:24:28 2015 (r288030) +++ head/lib/libc/stdio/_flock_stub.c Sun Sep 20 20:26:46 2015 (r288031) @@ -55,8 +55,8 @@ __weak_reference(_flockfile_debug_stub, __weak_reference(_ftrylockfile, ftrylockfile); __weak_reference(_funlockfile, funlockfile); -void _flockfile_debug_stub(FILE *fp, char *fname, int lineno); -int _ftrylockfile(FILE *fp); +void _flockfile_debug_stub(FILE *, char *, int); +int _ftrylockfile(FILE *); void _flockfile(FILE *fp) ___ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
svn commit: r288037 - head/lib/libc/locale
Author: rodrigc Date: Sun Sep 20 20:50:18 2015 New Revision: 288037 URL: https://svnweb.freebsd.org/changeset/base/288037 Log: Use ANSI C prototypes. Eliminates -Wold-style-definition warnings. Modified: head/lib/libc/locale/isctype.c head/lib/libc/locale/iswctype.c head/lib/libc/locale/setlocale.c head/lib/libc/locale/tolower.c head/lib/libc/locale/toupper.c Modified: head/lib/libc/locale/isctype.c == --- head/lib/libc/locale/isctype.c Sun Sep 20 20:47:19 2015 (r288036) +++ head/lib/libc/locale/isctype.c Sun Sep 20 20:50:18 2015 (r288037) @@ -45,184 +45,161 @@ __FBSDID("$FreeBSD$"); #undef digittoint int -digittoint(c) - int c; +digittoint(int c) { return (__sbmaskrune(c, 0xFF)); } #undef isalnum int -isalnum(c) - int c; +isalnum(int c) { return (__sbistype(c, _CTYPE_A|_CTYPE_D)); } #undef isalpha int -isalpha(c) - int c; +isalpha(int c) { return (__sbistype(c, _CTYPE_A)); } #undef isascii int -isascii(c) - int c; +isascii(int c) { return ((c & ~0x7F) == 0); } #undef isblank int -isblank(c) - int c; +isblank(int c) { return (__sbistype(c, _CTYPE_B)); } #undef iscntrl int -iscntrl(c) - int c; +iscntrl(int c) { return (__sbistype(c, _CTYPE_C)); } #undef isdigit int -isdigit(c) - int c; +isdigit(int c) { return (__isctype(c, _CTYPE_D)); } #undef isgraph int -isgraph(c) - int c; +isgraph(int c) { return (__sbistype(c, _CTYPE_G)); } #undef ishexnumber int -ishexnumber(c) - int c; +ishexnumber(int c) { return (__sbistype(c, _CTYPE_X)); } #undef isideogram int -isideogram(c) - int c; +isideogram(int c) { return (__sbistype(c, _CTYPE_I)); } #undef islower int -islower(c) - int c; +islower(int c) { return (__sbistype(c, _CTYPE_L)); } #undef isnumber int -isnumber(c) - int c; +isnumber(int c) { return (__sbistype(c, _CTYPE_D)); } #undef isphonogram int -isphonogram(c) - int c; +isphonogram(int c) { return (__sbistype(c, _CTYPE_Q)); } #undef isprint int -isprint(c) - int c; +isprint(int c) { return (__sbistype(c, _CTYPE_R)); } #undef ispunct int -ispunct(c) - int c; +ispunct(int c) { return (__sbistype(c, _CTYPE_P)); } #undef isrune int -isrune(c) - int c; +isrune(int c) { return (__sbistype(c, 0xFF00L)); } #undef isspace int -isspace(c) - int c; +isspace(int c) { return (__sbistype(c, _CTYPE_S)); } #undef isspecial int -isspecial(c) - int c; +isspecial(int c) { return (__sbistype(c, _CTYPE_T)); } #undef isupper int -isupper(c) - int c; +isupper(int c) { return (__sbistype(c, _CTYPE_U)); } #undef isxdigit int -isxdigit(c) - int c; +isxdigit(int c) { return (__isctype(c, _CTYPE_X)); } #undef toascii int -toascii(c) - int c; +toascii(int c) { return (c & 0x7F); } #undef tolower int -tolower(c) - int c; +tolower(int c) { return (__sbtolower(c)); } #undef toupper int -toupper(c) - int c; +toupper(int c) { return (__sbtoupper(c)); } Modified: head/lib/libc/locale/iswctype.c == --- head/lib/libc/locale/iswctype.c Sun Sep 20 20:47:19 2015 (r288036) +++ head/lib/libc/locale/iswctype.c Sun Sep 20 20:50:18 2015 (r288037) @@ -42,168 +42,147 @@ __FBSDID("$FreeBSD$"); #undef iswalnum int -iswalnum(wc) - wint_t wc; +iswalnum(wint_t wc) { return (__istype(wc, _CTYPE_A|_CTYPE_D)); } #undef iswalpha int -iswalpha(wc) - wint_t wc; +iswalpha(wint_t wc) { return (__istype(wc, _CTYPE_A)); } #undef iswascii int -iswascii(wc) - wint_t wc; +iswascii(wint_t wc) { return ((wc & ~0x7F) == 0); } #undef iswblank int -iswblank(wc) - wint_t wc; +iswblank(wint_t wc) { return (__istype(wc, _CTYPE_B)); } #undef iswcntrl int -iswcntrl(wc) - wint_t wc; +iswcntrl(wint_t wc) { return (__istype(wc, _CTYPE_C)); } #undef iswdigit int -iswdigit(wc) - wint_t wc; +iswdigit(wint_t wc) { return (__isctype(wc, _CTYPE_D)); } #undef iswgraph int -iswgraph(wc) - wint_t wc; +iswgraph(wint_t wc) { return (__istype(wc, _CTYPE_G)); } #undef iswhexnumber int -iswhexnumber(wc) - wint_t wc; +iswhexnumber(wint_t wc) { return (__istype(wc, _CTYPE_X)); } #undef iswideogram int -iswideogram(wc) - wint_t wc; +iswideogram(wint_t wc) { return (__istype(wc, _CTYPE_I)); } #undef iswlower int -iswlower(wc) - wint_t wc; +iswlower(wint_t wc) { return (__istype(wc, _CTYPE_L)); } #undef iswnumber int
svn commit: r288039 - head/lib/libc/stdtime
Author: rodrigc Date: Sun Sep 20 20:51:52 2015 New Revision: 288039 URL: https://svnweb.freebsd.org/changeset/base/288039 Log: Use ANSI C prototypes. Eliminates -Wold-style-definition warnings. Modified: head/lib/libc/stdtime/strftime.c Modified: head/lib/libc/stdtime/strftime.c == --- head/lib/libc/stdtime/strftime.cSun Sep 20 20:50:56 2015 (r288038) +++ head/lib/libc/stdtime/strftime.cSun Sep 20 20:51:52 2015 (r288039) @@ -127,13 +127,8 @@ strftime(char * __restrict s, size_t max } static char * -_fmt(format, t, pt, ptlim, warnp, loc) -const char * format; -const struct tm * constt; -char * pt; -const char * const ptlim; -int * warnp; -locale_t loc; +_fmt(const char *format, const struct tm * const t, char *pt, +const char * const ptlim, int *warnp, locale_t loc) { int Ealternative, Oalternative, PadIndex; struct lc_time_T *tptr = __get_current_time_locale(loc); @@ -592,12 +587,8 @@ label: } static char * -_conv(n, format, pt, ptlim, loc) -const int n; -const char * const format; -char * const pt; -const char * const ptlim; -locale_t loc; +_conv(const int n, const char * const format, char * const pt, +const char * const ptlim, locale_t loc) { charbuf[INT_STRLEN_MAXIMUM(int) + 1]; @@ -606,10 +597,7 @@ locale_t loc; } static char * -_add(str, pt, ptlim) -const char * str; -char * pt; -const char * const ptlim; +_add(const char *str, char *pt, const char * const ptlim) { while (pt < ptlim && (*pt = *str++) != '\0') ++pt; @@ -625,14 +613,8 @@ const char * const ptlim; */ static char * -_yconv(a, b, convert_top, convert_yy, pt, ptlim, loc) -const int a; -const int b; -const int convert_top; -const int convert_yy; -char * pt; -const char * const ptlim; -locale_t loc; +_yconv(const int a, const int b, const int convert_top, const int convert_yy, +char *pt, const char * const ptlim, locale_t loc) { register intlead; register inttrail; ___ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
svn commit: r288038 - head/lib/libc/inet
Author: rodrigc Date: Sun Sep 20 20:50:56 2015 New Revision: 288038 URL: https://svnweb.freebsd.org/changeset/base/288038 Log: Use ANSI C prototypes. Eliminates -Wold-style-definition warnings. Modified: head/lib/libc/inet/inet_lnaof.c head/lib/libc/inet/inet_makeaddr.c head/lib/libc/inet/inet_net_ntop.c head/lib/libc/inet/inet_neta.c head/lib/libc/inet/inet_netof.c head/lib/libc/inet/inet_network.c Modified: head/lib/libc/inet/inet_lnaof.c == --- head/lib/libc/inet/inet_lnaof.c Sun Sep 20 20:50:18 2015 (r288037) +++ head/lib/libc/inet/inet_lnaof.c Sun Sep 20 20:50:56 2015 (r288038) @@ -47,8 +47,7 @@ __FBSDID("$FreeBSD$"); * number formats. */ in_addr_t -inet_lnaof(in) - struct in_addr in; +inet_lnaof(struct in_addr in) { in_addr_t i = ntohl(in.s_addr); Modified: head/lib/libc/inet/inet_makeaddr.c == --- head/lib/libc/inet/inet_makeaddr.c Sun Sep 20 20:50:18 2015 (r288037) +++ head/lib/libc/inet/inet_makeaddr.c Sun Sep 20 20:50:56 2015 (r288038) @@ -46,8 +46,7 @@ __FBSDID("$FreeBSD$"); * building addresses stored in the ifnet structure. */ struct in_addr -inet_makeaddr(net, host) - in_addr_t net, host; +inet_makeaddr(in_addr_t net, in_addr_t host) { struct in_addr a; Modified: head/lib/libc/inet/inet_net_ntop.c == --- head/lib/libc/inet/inet_net_ntop.c Sun Sep 20 20:50:18 2015 (r288037) +++ head/lib/libc/inet/inet_net_ntop.c Sun Sep 20 20:50:56 2015 (r288038) @@ -57,12 +57,7 @@ static char *inet_net_ntop_ipv6(const u * Paul Vixie (ISC), July 1996 */ char * -inet_net_ntop(af, src, bits, dst, size) - int af; - const void *src; - int bits; - char *dst; - size_t size; +inet_net_ntop(int af, const void *src, int bits, char *dst, size_t size) { switch (af) { case AF_INET: @@ -89,11 +84,7 @@ inet_net_ntop(af, src, bits, dst, size) * Paul Vixie (ISC), July 1996 */ static char * -inet_net_ntop_ipv4(src, bits, dst, size) - const u_char *src; - int bits; - char *dst; - size_t size; +inet_net_ntop_ipv4(const u_char *src, int bits, char *dst, size_t size) { char *odst = dst; char *t; Modified: head/lib/libc/inet/inet_neta.c == --- head/lib/libc/inet/inet_neta.c Sun Sep 20 20:50:18 2015 (r288037) +++ head/lib/libc/inet/inet_neta.c Sun Sep 20 20:50:56 2015 (r288038) @@ -52,10 +52,7 @@ __FBSDID("$FreeBSD$"); * Paul Vixie (ISC), July 1996 */ char * -inet_neta(src, dst, size) - in_addr_t src; - char *dst; - size_t size; +inet_neta(in_addr_t src, char *dst, size_t size) { char *odst = dst; char *tp; Modified: head/lib/libc/inet/inet_netof.c == --- head/lib/libc/inet/inet_netof.c Sun Sep 20 20:50:18 2015 (r288037) +++ head/lib/libc/inet/inet_netof.c Sun Sep 20 20:50:56 2015 (r288038) @@ -46,8 +46,7 @@ __FBSDID("$FreeBSD$"); * address; handles class a/b/c network #'s. */ in_addr_t -inet_netof(in) - struct in_addr in; +inet_netof(struct in_addr in) { in_addr_t i = ntohl(in.s_addr); Modified: head/lib/libc/inet/inet_network.c == --- head/lib/libc/inet/inet_network.c Sun Sep 20 20:50:18 2015 (r288037) +++ head/lib/libc/inet/inet_network.c Sun Sep 20 20:50:56 2015 (r288038) @@ -48,8 +48,7 @@ __FBSDID("$FreeBSD$"); * network numbers. */ in_addr_t -inet_network(cp) - const char *cp; +inet_network(const char *cp) { in_addr_t val, base, n; char c; ___ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
svn commit: r288042 - head/lib/libc/db/hash
Author: rodrigc Date: Sun Sep 20 20:55:00 2015 New Revision: 288042 URL: https://svnweb.freebsd.org/changeset/base/288042 Log: Use ANSI C prototypes. Eliminates -Wold-style-definition warnings. Modified: head/lib/libc/db/hash/ndbm.c Modified: head/lib/libc/db/hash/ndbm.c == --- head/lib/libc/db/hash/ndbm.cSun Sep 20 20:53:24 2015 (r288041) +++ head/lib/libc/db/hash/ndbm.cSun Sep 20 20:55:00 2015 (r288042) @@ -56,9 +56,7 @@ __FBSDID("$FreeBSD$"); * NULL on failure */ extern DBM * -dbm_open(file, flags, mode) - const char *file; - int flags, mode; +dbm_open(const char *file, int flags, int mode) { HASHINFO info; char path[MAXPATHLEN]; @@ -80,8 +78,7 @@ dbm_open(file, flags, mode) } extern void -dbm_close(db) - DBM *db; +dbm_close(DBM *db) { (void)(db->close)(db); } @@ -92,9 +89,7 @@ dbm_close(db) * NULL on failure */ extern datum -dbm_fetch(db, key) - DBM *db; - datum key; +dbm_fetch(DBM *db, datum key) { datum retdata; int status; @@ -118,8 +113,7 @@ dbm_fetch(db, key) * NULL on failure */ extern datum -dbm_firstkey(db) - DBM *db; +dbm_firstkey(DBM *db) { int status; datum retkey; @@ -139,8 +133,7 @@ dbm_firstkey(db) * NULL on failure */ extern datum -dbm_nextkey(db) - DBM *db; +dbm_nextkey(DBM *db) { int status; datum retkey; @@ -160,9 +153,7 @@ dbm_nextkey(db) * <0 failure */ extern int -dbm_delete(db, key) - DBM *db; - datum key; +dbm_delete(DBM *db, datum key) { int status; DBT dbtkey; @@ -183,10 +174,7 @@ dbm_delete(db, key) * 1 if DBM_INSERT and entry exists */ extern int -dbm_store(db, key, data, flags) - DBM *db; - datum key, data; - int flags; +dbm_store(DBM *db, datum key, datum data, int flags) { DBT dbtkey, dbtdata; @@ -199,8 +187,7 @@ dbm_store(db, key, data, flags) } extern int -dbm_error(db) - DBM *db; +dbm_error(DBM *db) { HTAB *hp; @@ -209,8 +196,7 @@ dbm_error(db) } extern int -dbm_clearerr(db) - DBM *db; +dbm_clearerr(DBM *db) { HTAB *hp; @@ -220,8 +206,7 @@ dbm_clearerr(db) } extern int -dbm_dirfno(db) - DBM *db; +dbm_dirfno(DBM *db) { return(((HTAB *)db->internal)->fp); } ___ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
svn commit: r288046 - head/lib/libc/net
Author: rodrigc Date: Sun Sep 20 21:21:17 2015 New Revision: 288046 URL: https://svnweb.freebsd.org/changeset/base/288046 Log: Use ANSI C prototypes. Eliminates -Wold-style-definition warnings. Modified: head/lib/libc/net/rcmd.c Modified: head/lib/libc/net/rcmd.c == --- head/lib/libc/net/rcmd.cSun Sep 20 21:21:01 2015(r288045) +++ head/lib/libc/net/rcmd.cSun Sep 20 21:21:17 2015(r288046) @@ -73,22 +73,15 @@ static int __icheckhost(const struct soc char paddr[NI_MAXHOST]; int -rcmd(ahost, rport, locuser, remuser, cmd, fd2p) - char **ahost; - u_short rport; - const char *locuser, *remuser, *cmd; - int *fd2p; +rcmd(char **ahost, int rport, const char *locuser, const char *remuser, +const char *cmd, int *fd2p) { return rcmd_af(ahost, rport, locuser, remuser, cmd, fd2p, AF_INET); } int -rcmd_af(ahost, rport, locuser, remuser, cmd, fd2p, af) - char **ahost; - u_short rport; - const char *locuser, *remuser, *cmd; - int *fd2p; - int af; +rcmd_af(char **ahost, int rport, const char *locuser, const char *remuser, +const char *cmd, int *fd2p, int af) { struct addrinfo hints, *res, *ai; struct sockaddr_storage from; @@ -321,15 +314,13 @@ bad: } int -rresvport(port) - int *port; +rresvport(int *port) { return rresvport_af(port, AF_INET); } int -rresvport_af(alport, family) - int *alport, family; +rresvport_af(int *alport, int family) { int s; struct sockaddr_storage ss; @@ -380,9 +371,7 @@ int __check_rhosts_file = 1; char *__rcmd_errstr; int -ruserok(rhost, superuser, ruser, luser) - const char *rhost, *ruser, *luser; - int superuser; +ruserok(const char *rhost, int superuser, const char *ruser, const char *luser) { struct addrinfo hints, *res, *r; int error; @@ -415,10 +404,7 @@ ruserok(rhost, superuser, ruser, luser) * Returns 0 if ok, -1 if not ok. */ int -iruserok(raddr, superuser, ruser, luser) - unsigned long raddr; - int superuser; - const char *ruser, *luser; +iruserok(unsigned long raddr, int superuser, const char *ruser, const char *luser) { struct sockaddr_in sin; @@ -436,11 +422,8 @@ iruserok(raddr, superuser, ruser, luser) * Returns 0 if ok, -1 if not ok. */ int -iruserok_sa(ra, rlen, superuser, ruser, luser) - const void *ra; - int rlen; - int superuser; - const char *ruser, *luser; +iruserok_sa(const void *ra, int rlen, int superuser, const char *ruser, +const char *luser) { char *cp; struct stat sbuf; @@ -520,10 +503,7 @@ again: * Returns 0 if ok, -1 if not ok. */ int -__ivaliduser(hostf, raddr, luser, ruser) - FILE *hostf; - u_int32_t raddr; - const char *luser, *ruser; +__ivaliduser(FILE *hostf, u_int32_t raddr, const char *luser, const char *ruser) { struct sockaddr_in sin; @@ -541,11 +521,8 @@ __ivaliduser(hostf, raddr, luser, ruser) * XXX obsolete API. */ int -__ivaliduser_af(hostf, raddr, luser, ruser, af, len) - FILE *hostf; - const void *raddr; - const char *luser, *ruser; - int af, len; +__ivaliduser_af(FILE *hostf, const void *raddr, const char *luser, +const char *ruser, int af, int len) { struct sockaddr *sa = NULL; struct sockaddr_in *sin = NULL; @@ -584,11 +561,8 @@ __ivaliduser_af(hostf, raddr, luser, rus } int -__ivaliduser_sa(hostf, raddr, salen, luser, ruser) - FILE *hostf; - const struct sockaddr *raddr; - socklen_t salen; - const char *luser, *ruser; +__ivaliduser_sa(FILE *hostf, const struct sockaddr *raddr, socklen_t salen, +const char *luser, const char *ruser) { char *user, *p; int ch; @@ -707,10 +681,7 @@ __ivaliduser_sa(hostf, raddr, salen, lus * Returns "true" if match, 0 if no match. */ static int -__icheckhost(raddr, salen, lhost) - const struct sockaddr *raddr; - socklen_t salen; -const char *lhost; +__icheckhost(const struct sockaddr *raddr, socklen_t salen, const char *lhost) { struct sockaddr_in sin; struct sockaddr_in6 *sin6; ___ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
svn commit: r288041 - head/lib/libc/compat-43
Author: rodrigc Date: Sun Sep 20 20:53:24 2015 New Revision: 288041 URL: https://svnweb.freebsd.org/changeset/base/288041 Log: Use ANSI C prototypes. Eliminates -Wold-style-definition warnings. Modified: head/lib/libc/compat-43/sigcompat.c Modified: head/lib/libc/compat-43/sigcompat.c == --- head/lib/libc/compat-43/sigcompat.c Sun Sep 20 20:52:13 2015 (r288040) +++ head/lib/libc/compat-43/sigcompat.c Sun Sep 20 20:53:24 2015 (r288041) @@ -42,9 +42,7 @@ __FBSDID("$FreeBSD$"); #include "libc_private.h" int -sigvec(signo, sv, osv) - int signo; - struct sigvec *sv, *osv; +sigvec(int signo, struct sigvec *sv, struct sigvec *osv) { struct sigaction sa, osa; struct sigaction *sap, *osap; @@ -69,8 +67,7 @@ sigvec(signo, sv, osv) } int -sigsetmask(mask) - int mask; +sigsetmask(int mask) { sigset_t set, oset; int n; @@ -84,8 +81,7 @@ sigsetmask(mask) } int -sigblock(mask) - int mask; +sigblock(int mask) { sigset_t set, oset; int n; ___ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
svn commit: r288040 - head/lib/libc/xdr
Author: rodrigc Date: Sun Sep 20 20:52:13 2015 New Revision: 288040 URL: https://svnweb.freebsd.org/changeset/base/288040 Log: Use ANSI C prototypes. Eliminates -Wold-style-definition warnings. Modified: head/lib/libc/xdr/xdr_float.c Modified: head/lib/libc/xdr/xdr_float.c == --- head/lib/libc/xdr/xdr_float.c Sun Sep 20 20:51:52 2015 (r288039) +++ head/lib/libc/xdr/xdr_float.c Sun Sep 20 20:52:13 2015 (r288040) @@ -102,9 +102,7 @@ static struct sgl_limits { #endif /* vax */ bool_t -xdr_float(xdrs, fp) - XDR *xdrs; - float *fp; +xdr_float(XDR *xdrs, float *fp) { #ifndef IEEEFP struct ieee_single is; ___ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
svn commit: r288045 - head/lib/libc/net
Author: rodrigc Date: Sun Sep 20 21:21:01 2015 New Revision: 288045 URL: https://svnweb.freebsd.org/changeset/base/288045 Log: Use ANSI C prototypes. Eliminates -Wold-style-definition warnings. Modified: head/lib/libc/net/gethostbydns.c head/lib/libc/net/getnetbydns.c head/lib/libc/net/getservent.c head/lib/libc/net/linkaddr.c head/lib/libc/net/nslexer.l head/lib/libc/net/nsparser.y head/lib/libc/net/recv.c head/lib/libc/net/rthdr.c head/lib/libc/net/send.c Modified: head/lib/libc/net/gethostbydns.c == --- head/lib/libc/net/gethostbydns.cSun Sep 20 21:18:33 2015 (r288044) +++ head/lib/libc/net/gethostbydns.cSun Sep 20 21:21:01 2015 (r288045) @@ -107,10 +107,7 @@ int _dns_ttl_; #ifdef DEBUG static void -dprintf(msg, num, res) - char *msg; - int num; - res_state res; +dprintf(char *msg, int num, res_state res) { if (res->options & RES_DEBUG) { int save = errno; @@ -769,7 +766,7 @@ _sethostdnsent(int stayopen) } void -_endhostdnsent() +_endhostdnsent(void) { res_state statp; Modified: head/lib/libc/net/getnetbydns.c == --- head/lib/libc/net/getnetbydns.c Sun Sep 20 21:18:33 2015 (r288044) +++ head/lib/libc/net/getnetbydns.c Sun Sep 20 21:21:01 2015 (r288045) @@ -455,7 +455,7 @@ _setnetdnsent(int stayopen) } void -_endnetdnsent() +_endnetdnsent(void) { res_state statp; Modified: head/lib/libc/net/getservent.c == --- head/lib/libc/net/getservent.c Sun Sep 20 21:18:33 2015 (r288044) +++ head/lib/libc/net/getservent.c Sun Sep 20 21:21:01 2015 (r288045) @@ -1241,7 +1241,7 @@ setservent(int stayopen) } void -endservent() +endservent(void) { #ifdef NS_CACHING static const nss_cache_info cache_info = NS_MP_CACHE_INFO_INITIALIZER( @@ -1362,7 +1362,7 @@ getservbyport(int port, const char *prot } struct servent * -getservent() +getservent(void) { struct key key; Modified: head/lib/libc/net/linkaddr.c == --- head/lib/libc/net/linkaddr.cSun Sep 20 21:18:33 2015 (r288044) +++ head/lib/libc/net/linkaddr.cSun Sep 20 21:21:01 2015 (r288045) @@ -50,9 +50,7 @@ __FBSDID("$FreeBSD$"); #define LETTER (4*3) void -link_addr(addr, sdl) - const char *addr; - struct sockaddr_dl *sdl; +link_addr(const char *addr, struct sockaddr_dl *sdl) { char *cp = sdl->sdl_data; char *cplim = sdl->sdl_len + (char *)sdl; @@ -121,8 +119,7 @@ link_addr(addr, sdl) static const char hexlist[] = "0123456789abcdef"; char * -link_ntoa(sdl) - const struct sockaddr_dl *sdl; +link_ntoa(const struct sockaddr_dl *sdl) { static char obuf[64]; char *out = obuf; Modified: head/lib/libc/net/nslexer.l == --- head/lib/libc/net/nslexer.l Sun Sep 20 21:18:33 2015(r288044) +++ head/lib/libc/net/nslexer.l Sun Sep 20 21:21:01 2015(r288045) @@ -97,14 +97,13 @@ STRING [a-zA-Z][a-zA-Z0-9_]* #undef _nsyywrap int -_nsyywrap() +_nsyywrap(void) { return 1; } /* _nsyywrap */ void -_nsyyerror(msg) - const char *msg; +_nsyyerror(const char *msg) { syslog(LOG_ERR, "NSSWITCH(nslexer): %s line %d: %s at '%s'", Modified: head/lib/libc/net/nsparser.y == --- head/lib/libc/net/nsparser.ySun Sep 20 21:18:33 2015 (r288044) +++ head/lib/libc/net/nsparser.ySun Sep 20 21:21:01 2015 (r288045) @@ -145,8 +145,7 @@ Action %% static void -_nsaddsrctomap(elem) - const char *elem; +_nsaddsrctomap(const char *elem) { int i, lineno; extern int _nsyylineno; Modified: head/lib/libc/net/recv.c == --- head/lib/libc/net/recv.cSun Sep 20 21:18:33 2015(r288044) +++ head/lib/libc/net/recv.cSun Sep 20 21:21:01 2015(r288045) @@ -40,10 +40,7 @@ __FBSDID("$FreeBSD$"); #include ssize_t -recv(s, buf, len, flags) - int s, flags; - size_t len; - void *buf; +recv(int s, void *buf, size_t len, int flags) { /* * POSIX says recv() shall be a cancellation point, so call the Modified: head/lib/libc/net/rthdr.c == --- head/lib/libc/net/rthdr.c Sun Sep 20 21:18:33 2015(r288044) +++ head/lib/libc/net/rthdr.c Sun Sep 20 21:21:01 2015(r288045) @@ -47,8 +47,7 @@ __FBSDID("$FreeBSD$"); */ size_t
svn commit: r288028 - head/lib/libc/gen
Author: rodrigc Date: Sun Sep 20 20:21:49 2015 New Revision: 288028 URL: https://svnweb.freebsd.org/changeset/base/288028 Log: Remove names from some prototypes Modified: head/lib/libc/gen/dlfcn.c head/lib/libc/gen/dup3.c head/lib/libc/gen/elf_utils.c head/lib/libc/gen/fmtcheck.c head/lib/libc/gen/nlist.c head/lib/libc/gen/sleep.c head/lib/libc/gen/uname.c head/lib/libc/gen/usleep.c head/lib/libc/gen/wait.c head/lib/libc/gen/wait3.c head/lib/libc/gen/waitid.c head/lib/libc/gen/waitpid.c Modified: head/lib/libc/gen/dlfcn.c == --- head/lib/libc/gen/dlfcn.c Sun Sep 20 20:16:34 2015(r288027) +++ head/lib/libc/gen/dlfcn.c Sun Sep 20 20:21:49 2015(r288028) @@ -41,9 +41,9 @@ __FBSDID("$FreeBSD$"); static char sorry[] = "Service unavailable"; -void _rtld_thread_init(void * li); -void _rtld_atfork_pre(int *locks); -void _rtld_atfork_post(int *locks); +void _rtld_thread_init(void *); +void _rtld_atfork_pre(int *); +void _rtld_atfork_post(int *); /* * For ELF, the dynamic linker directly resolves references to its Modified: head/lib/libc/gen/dup3.c == --- head/lib/libc/gen/dup3.cSun Sep 20 20:16:34 2015(r288027) +++ head/lib/libc/gen/dup3.cSun Sep 20 20:21:49 2015(r288028) @@ -35,7 +35,7 @@ __FBSDID("$FreeBSD$"); #include #include "un-namespace.h" -int __dup3(int oldfd, int newfd, int flags); +int __dup3(int, int, int); int __dup3(int oldfd, int newfd, int flags) Modified: head/lib/libc/gen/elf_utils.c == --- head/lib/libc/gen/elf_utils.c Sun Sep 20 20:16:34 2015 (r288027) +++ head/lib/libc/gen/elf_utils.c Sun Sep 20 20:21:49 2015 (r288028) @@ -33,7 +33,7 @@ #include #include -int __elf_phdr_match_addr(struct dl_phdr_info *phdr_info, void *addr); +int __elf_phdr_match_addr(struct dl_phdr_info *, void *); void __pthread_map_stacks_exec(void); int Modified: head/lib/libc/gen/fmtcheck.c == --- head/lib/libc/gen/fmtcheck.cSun Sep 20 20:16:34 2015 (r288027) +++ head/lib/libc/gen/fmtcheck.cSun Sep 20 20:21:49 2015 (r288028) @@ -36,7 +36,7 @@ __FBSDID("$FreeBSD$"); #include __weak_reference(__fmtcheck, fmtcheck); -const char * __fmtcheck(const char *f1, const char *f2); +const char * __fmtcheck(const char *, const char *); enum __e_fmtcheck_types { FMTCHECK_START, Modified: head/lib/libc/gen/nlist.c == --- head/lib/libc/gen/nlist.c Sun Sep 20 20:16:34 2015(r288027) +++ head/lib/libc/gen/nlist.c Sun Sep 20 20:21:49 2015(r288028) @@ -61,7 +61,7 @@ __FBSDID("$FreeBSD$"); int __fdnlist(int, struct nlist *); int __aout_fdnlist(int, struct nlist *); int __elf_fdnlist(int, struct nlist *); -int __elf_is_okay__(Elf_Ehdr *ehdr); +int __elf_is_okay__(Elf_Ehdr *); int nlist(const char *name, struct nlist *list) Modified: head/lib/libc/gen/sleep.c == --- head/lib/libc/gen/sleep.c Sun Sep 20 20:16:34 2015(r288027) +++ head/lib/libc/gen/sleep.c Sun Sep 20 20:21:49 2015(r288028) @@ -42,7 +42,7 @@ __FBSDID("$FreeBSD$"); #include "libc_private.h" -unsigned int __sleep(unsigned int seconds); +unsigned int __sleep(unsigned int); unsigned int __sleep(unsigned int seconds) Modified: head/lib/libc/gen/uname.c == --- head/lib/libc/gen/uname.c Sun Sep 20 20:16:34 2015(r288027) +++ head/lib/libc/gen/uname.c Sun Sep 20 20:21:49 2015(r288028) @@ -40,7 +40,7 @@ __FBSDID("$FreeBSD$"); #include #undef uname -int uname(struct utsname *name); +int uname(struct utsname *); int uname(struct utsname *name) Modified: head/lib/libc/gen/usleep.c == --- head/lib/libc/gen/usleep.c Sun Sep 20 20:16:34 2015(r288027) +++ head/lib/libc/gen/usleep.c Sun Sep 20 20:21:49 2015(r288028) @@ -40,7 +40,7 @@ __FBSDID("$FreeBSD$"); #include "libc_private.h" -int __usleep(useconds_t useconds); +int __usleep(useconds_t); int __usleep(useconds_t useconds) Modified: head/lib/libc/gen/wait.c == --- head/lib/libc/gen/wait.cSun Sep 20 20:16:34 2015(r288027) +++ head/lib/libc/gen/wait.cSun Sep 20 20:21:49 2015(r288028) @@ -42,7 +42,7 @@ __FBSDID("$FreeBSD$"); #include "libc_private.h" -pid_t __wait(int *istat); +pid_t __wait(int *); pid_t __wait(int *istat) Modified:
svn commit: r288026 - head/lib/libc/stdlib
Author: rodrigc Date: Sun Sep 20 20:15:44 2015 New Revision: 288026 URL: https://svnweb.freebsd.org/changeset/base/288026 Log: Remove names from prototypes Modified: head/lib/libc/stdlib/atexit.c head/lib/libc/stdlib/heapsort.c head/lib/libc/stdlib/merge.c Modified: head/lib/libc/stdlib/atexit.c == --- head/lib/libc/stdlib/atexit.c Sun Sep 20 19:20:03 2015 (r288025) +++ head/lib/libc/stdlib/atexit.c Sun Sep 20 20:15:44 2015 (r288026) @@ -82,8 +82,8 @@ struct atexit { static struct atexit *__atexit;/* points to head of LIFO stack */ typedef DECLARE_BLOCK(void, atexit_block, void); -int atexit_b(atexit_block func); -int __cxa_atexit(void (*func)(void *), void *arg, void *dso); +int atexit_b(atexit_block); +int __cxa_atexit(void (*)(void *), void *, void *); /* * Register the function described by 'fptr' to be called at application Modified: head/lib/libc/stdlib/heapsort.c == --- head/lib/libc/stdlib/heapsort.c Sun Sep 20 19:20:03 2015 (r288025) +++ head/lib/libc/stdlib/heapsort.c Sun Sep 20 20:15:44 2015 (r288026) @@ -139,10 +139,10 @@ typedef DECLARE_BLOCK(int, heapsort_bloc } #ifdef I_AM_HEAPSORT_B -int heapsort_b(void *vbase, size_t nmemb, size_t size, heapsort_block compar); +int heapsort_b(void *, size_t, size_t, heapsort_block); #else -int heapsort(void *vbase, size_t nmemb, size_t size, -int (*compar)(const void *, const void *)); +int heapsort(void *, size_t, size_t, +int (*)(const void *, const void *)); #endif /* * Heapsort -- Knuth, Vol. 3, page 145. Runs in O (N lg N), both average Modified: head/lib/libc/stdlib/merge.c == --- head/lib/libc/stdlib/merge.cSun Sep 20 19:20:03 2015 (r288025) +++ head/lib/libc/stdlib/merge.cSun Sep 20 20:15:44 2015 (r288026) @@ -100,9 +100,9 @@ static void insertionsort(u_char *, size (((u_char *)p + PSIZE - 1 - (u_char *) 0) & ~(PSIZE - 1))) #ifdef I_AM_MERGESORT_B -int mergesort_b(void *base, size_t nmemb, size_t size, cmp_t cmp); +int mergesort_b(void *, size_t, size_t, cmp_t); #else -int mergesort(void *base, size_t nmemb, size_t size, cmp_t cmp); +int mergesort(void *, size_t, size_t, cmp_t); #endif /* ___ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
svn commit: r288027 - head/lib/libc/posix1e
Author: rodrigc Date: Sun Sep 20 20:16:34 2015 New Revision: 288027 URL: https://svnweb.freebsd.org/changeset/base/288027 Log: Remove names from some prototypes Modified: head/lib/libc/posix1e/acl_compat.c head/lib/libc/posix1e/acl_support.h Modified: head/lib/libc/posix1e/acl_compat.c == --- head/lib/libc/posix1e/acl_compat.c Sun Sep 20 20:15:44 2015 (r288026) +++ head/lib/libc/posix1e/acl_compat.c Sun Sep 20 20:16:34 2015 (r288027) @@ -29,9 +29,9 @@ __FBSDID("$FreeBSD$"); #include -int __oldacl_get_perm_np(acl_permset_t permset_d, oldacl_perm_t perm); -int __oldacl_add_perm(acl_permset_t permset_d, oldacl_perm_t perm); -int __oldacl_delete_perm(acl_permset_t permset_d, oldacl_perm_t perm); +int __oldacl_get_perm_np(acl_permset_t, oldacl_perm_t); +int __oldacl_add_perm(acl_permset_t, oldacl_perm_t); +int __oldacl_delete_perm(acl_permset_t, oldacl_perm_t); /* * Compatibility wrappers for applications compiled against libc from before Modified: head/lib/libc/posix1e/acl_support.h == --- head/lib/libc/posix1e/acl_support.h Sun Sep 20 20:15:44 2015 (r288026) +++ head/lib/libc/posix1e/acl_support.h Sun Sep 20 20:16:34 2015 (r288027) @@ -45,8 +45,8 @@ int _acl_brand_may_be(const acl_t acl, i int_entry_brand_may_be(const acl_entry_t entry, int brand); void _acl_brand_as(acl_t acl, int brand); void _entry_brand_as(const acl_entry_t entry, int brand); -int_nfs4_acl_entry_from_text(acl_t aclp, char *str); -char *_nfs4_acl_to_text_np(const acl_t aclp, ssize_t *len_p, int flags); +int_nfs4_acl_entry_from_text(acl_t, char *); +char *_nfs4_acl_to_text_np(const acl_t, ssize_t *, int); int_nfs4_format_flags(char *str, size_t size, acl_flag_t var, int verbose); int_nfs4_format_access_mask(char *str, size_t size, acl_perm_t var, int verbose); int_nfs4_parse_flags(const char *str, acl_flag_t *var); ___ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
svn commit: r288033 - head/lib/libc/stdio
Author: rodrigc Date: Sun Sep 20 20:28:49 2015 New Revision: 288033 URL: https://svnweb.freebsd.org/changeset/base/288033 Log: Use ANSI C prototypes. Eliminates -Wold-style-definition warnings. Modified: head/lib/libc/stdio/findfp.c head/lib/libc/stdio/getchar.c head/lib/libc/stdio/vfscanf.c Modified: head/lib/libc/stdio/findfp.c == --- head/lib/libc/stdio/findfp.cSun Sep 20 20:27:57 2015 (r288032) +++ head/lib/libc/stdio/findfp.cSun Sep 20 20:28:49 2015 (r288033) @@ -113,7 +113,7 @@ moreglue(int n) * Find a free FILE for fopen et al. */ FILE * -__sfp() +__sfp(void) { FILE*fp; int n; @@ -164,7 +164,7 @@ found: */ __warn_references(f_prealloc, "warning: this program uses f_prealloc(), which is not recommended."); -void f_prealloc_void(); +void f_prealloc(void); void f_prealloc(void) @@ -196,7 +196,7 @@ f_prealloc(void) * The name `_cleanup' is, alas, fairly well known outside stdio. */ void -_cleanup() +_cleanup(void) { /* (void) _fwalk(fclose); */ (void) _fwalk(__sflush);/* `cheating' */ @@ -206,7 +206,7 @@ _cleanup() * __sinit() is called whenever stdio's internal variables must be set up. */ void -__sinit() +__sinit(void) { /* Make sure we clean up on exit. */ Modified: head/lib/libc/stdio/getchar.c == --- head/lib/libc/stdio/getchar.c Sun Sep 20 20:27:57 2015 (r288032) +++ head/lib/libc/stdio/getchar.c Sun Sep 20 20:28:49 2015 (r288033) @@ -49,7 +49,7 @@ __FBSDID("$FreeBSD$"); #undef getchar_unlocked int -getchar() +getchar(void) { int retval; FLOCKFILE(stdin); Modified: head/lib/libc/stdio/vfscanf.c == --- head/lib/libc/stdio/vfscanf.c Sun Sep 20 20:27:57 2015 (r288032) +++ head/lib/libc/stdio/vfscanf.c Sun Sep 20 20:28:49 2015 (r288033) @@ -814,9 +814,7 @@ match_failure: * considered part of the scanset. */ static const u_char * -__sccl(tab, fmt) - char *tab; - const u_char *fmt; +__sccl(char *tab, const u_char *fmt) { int c, n, v, i; struct xlocale_collate *table = ___ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
svn commit: r288032 - head/lib/libc/stdio
Author: rodrigc Date: Sun Sep 20 20:27:57 2015 New Revision: 288032 URL: https://svnweb.freebsd.org/changeset/base/288032 Log: Remove names from some prototypes Modified: head/lib/libc/stdio/fgetwln.c Modified: head/lib/libc/stdio/fgetwln.c == --- head/lib/libc/stdio/fgetwln.c Sun Sep 20 20:26:46 2015 (r288031) +++ head/lib/libc/stdio/fgetwln.c Sun Sep 20 20:27:57 2015 (r288032) @@ -40,7 +40,7 @@ __FBSDID("$FreeBSD$"); #include "local.h" #include "xlocale_private.h" -wchar_t *fgetwln_l(FILE * __restrict fp, size_t *lenp, locale_t locale); +wchar_t *fgetwln_l(FILE * __restrict, size_t *, locale_t); wchar_t * fgetwln_l(FILE * __restrict fp, size_t *lenp, locale_t locale) ___ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
svn commit: r288029 - head/lib/libc/gen
Author: rodrigc Date: Sun Sep 20 20:23:16 2015 New Revision: 288029 URL: https://svnweb.freebsd.org/changeset/base/288029 Log: Use ANSI C prototypes. Eliminates -Wold-style-definition warnings. Modified: head/lib/libc/gen/alarm.c head/lib/libc/gen/assert.c head/lib/libc/gen/err.c head/lib/libc/gen/exec.c head/lib/libc/gen/fnmatch.c head/lib/libc/gen/ftok.c head/lib/libc/gen/fts-compat.c head/lib/libc/gen/fts.c head/lib/libc/gen/getbsize.c head/lib/libc/gen/getcwd.c head/lib/libc/gen/getdomainname.c head/lib/libc/gen/getgrent.c head/lib/libc/gen/gethostname.c head/lib/libc/gen/getpagesize.c head/lib/libc/gen/getusershell.c head/lib/libc/gen/getvfsbyname.c head/lib/libc/gen/initgroups.c head/lib/libc/gen/isatty.c head/lib/libc/gen/popen.c head/lib/libc/gen/psignal.c head/lib/libc/gen/raise.c head/lib/libc/gen/readdir.c head/lib/libc/gen/rewinddir.c head/lib/libc/gen/seekdir.c head/lib/libc/gen/setjmperr.c head/lib/libc/gen/sigsetops.c head/lib/libc/gen/sysconf.c head/lib/libc/gen/telldir.c head/lib/libc/gen/tls.c head/lib/libc/gen/ualarm.c head/lib/libc/gen/unvis-compat.c head/lib/libc/gen/utime.c Modified: head/lib/libc/gen/alarm.c == --- head/lib/libc/gen/alarm.c Sun Sep 20 20:21:49 2015(r288028) +++ head/lib/libc/gen/alarm.c Sun Sep 20 20:23:16 2015(r288029) @@ -40,8 +40,7 @@ __FBSDID("$FreeBSD$"); #include unsigned int -alarm(secs) - unsigned int secs; +alarm(unsigned int secs) { struct itimerval it, oitv; struct itimerval *itp = Modified: head/lib/libc/gen/assert.c == --- head/lib/libc/gen/assert.c Sun Sep 20 20:21:49 2015(r288028) +++ head/lib/libc/gen/assert.c Sun Sep 20 20:23:16 2015(r288029) @@ -38,10 +38,7 @@ __FBSDID("$FreeBSD$"); #include void -__assert(func, file, line, failedexpr) - const char *func, *file; - int line; - const char *failedexpr; +__assert(const char *func, const char *file, int line, const char *failedexpr) { if (func == NULL) (void)fprintf(stderr, Modified: head/lib/libc/gen/err.c == --- head/lib/libc/gen/err.c Sun Sep 20 20:21:49 2015(r288028) +++ head/lib/libc/gen/err.c Sun Sep 20 20:23:16 2015(r288029) @@ -79,10 +79,7 @@ _err(int eval, const char *fmt, ...) } void -verr(eval, fmt, ap) - int eval; - const char *fmt; - va_list ap; +verr(int eval, const char *fmt, va_list ap) { verrc(eval, errno, fmt, ap); } Modified: head/lib/libc/gen/exec.c == --- head/lib/libc/gen/exec.cSun Sep 20 20:21:49 2015(r288028) +++ head/lib/libc/gen/exec.cSun Sep 20 20:23:16 2015(r288029) @@ -131,9 +131,7 @@ execlp(const char *name, const char *arg } int -execv(name, argv) - const char *name; - char * const *argv; +execv(const char *name, char * const *argv) { (void)_execve(name, argv, environ); return (-1); Modified: head/lib/libc/gen/fnmatch.c == --- head/lib/libc/gen/fnmatch.c Sun Sep 20 20:21:49 2015(r288028) +++ head/lib/libc/gen/fnmatch.c Sun Sep 20 20:23:16 2015(r288029) @@ -76,9 +76,7 @@ static int fnmatch1(const char *, const mbstate_t); int -fnmatch(pattern, string, flags) - const char *pattern, *string; - int flags; +fnmatch(const char *pattern, const char *string, int flags) { static const mbstate_t initial; @@ -86,10 +84,8 @@ fnmatch(pattern, string, flags) } static int -fnmatch1(pattern, string, stringstart, flags, patmbs, strmbs) - const char *pattern, *string, *stringstart; - int flags; - mbstate_t patmbs, strmbs; +fnmatch1(const char *pattern, const char *string, const char *stringstart, +int flags, mbstate_t patmbs, mbstate_t strmbs) { char *newp; char c; @@ -214,12 +210,8 @@ fnmatch1(pattern, string, stringstart, f } static int -rangematch(pattern, test, flags, newp, patmbs) - const char *pattern; - wchar_t test; - int flags; - char **newp; - mbstate_t *patmbs; +rangematch(const char *pattern, wchar_t test, int flags, char **newp, +mbstate_t *patmbs) { int negate, ok; wchar_t c, c2; Modified: head/lib/libc/gen/ftok.c == --- head/lib/libc/gen/ftok.cSun Sep 20 20:21:49 2015(r288028) +++ head/lib/libc/gen/ftok.cSun Sep 20 20:23:16 2015(r288029) @@ -33,9 +33,7 @@ __FBSDID("$FreeBSD$"); #include key_t -ftok(path, id) - const char *path; - int id;
svn commit: r288030 - head/lib/libc/stdlib
Author: rodrigc Date: Sun Sep 20 20:24:28 2015 New Revision: 288030 URL: https://svnweb.freebsd.org/changeset/base/288030 Log: Use ANSI C prototypes. Eliminates -Wold-style-definition warnings. Modified: head/lib/libc/stdlib/abort.c head/lib/libc/stdlib/abs.c head/lib/libc/stdlib/atof.c head/lib/libc/stdlib/atoi.c head/lib/libc/stdlib/atol.c head/lib/libc/stdlib/atoll.c head/lib/libc/stdlib/bsearch.c head/lib/libc/stdlib/exit.c head/lib/libc/stdlib/labs.c head/lib/libc/stdlib/qsort.c head/lib/libc/stdlib/rand.c head/lib/libc/stdlib/tfind.c Modified: head/lib/libc/stdlib/abort.c == --- head/lib/libc/stdlib/abort.cSun Sep 20 20:23:16 2015 (r288029) +++ head/lib/libc/stdlib/abort.cSun Sep 20 20:24:28 2015 (r288030) @@ -44,7 +44,7 @@ __FBSDID("$FreeBSD$"); #include "libc_private.h" void -abort() +abort(void) { struct sigaction act; Modified: head/lib/libc/stdlib/abs.c == --- head/lib/libc/stdlib/abs.c Sun Sep 20 20:23:16 2015(r288029) +++ head/lib/libc/stdlib/abs.c Sun Sep 20 20:24:28 2015(r288030) @@ -36,8 +36,7 @@ __FBSDID("$FreeBSD$"); #include int -abs(j) - int j; +abs(int j) { return(j < 0 ? -j : j); } Modified: head/lib/libc/stdlib/atof.c == --- head/lib/libc/stdlib/atof.c Sun Sep 20 20:23:16 2015(r288029) +++ head/lib/libc/stdlib/atof.c Sun Sep 20 20:24:28 2015(r288030) @@ -42,16 +42,13 @@ __FBSDID("$FreeBSD$"); #include double -atof(ascii) - const char *ascii; +atof(const char *ascii) { return strtod(ascii, (char **)NULL); } double -atof_l(ascii, locale) - const char *ascii; - locale_t locale; +atof_l(const char *ascii, locale_t locale) { return strtod_l(ascii, (char **)NULL, locale); } Modified: head/lib/libc/stdlib/atoi.c == --- head/lib/libc/stdlib/atoi.c Sun Sep 20 20:23:16 2015(r288029) +++ head/lib/libc/stdlib/atoi.c Sun Sep 20 20:24:28 2015(r288030) @@ -42,16 +42,13 @@ __FBSDID("$FreeBSD$"); #include int -atoi(str) - const char *str; +atoi(const char *str) { return (int)strtol(str, (char **)NULL, 10); } int -atoi_l(str, locale) - const char *str; - locale_t locale; +atoi_l(const char *str, locale_t locale) { return (int)strtol_l(str, (char **)NULL, 10, locale); } Modified: head/lib/libc/stdlib/atol.c == --- head/lib/libc/stdlib/atol.c Sun Sep 20 20:23:16 2015(r288029) +++ head/lib/libc/stdlib/atol.c Sun Sep 20 20:24:28 2015(r288030) @@ -42,16 +42,13 @@ __FBSDID("$FreeBSD$"); #include long -atol(str) - const char *str; +atol(const char *str) { return strtol(str, (char **)NULL, 10); } long -atol_l(str, locale) - const char *str; - locale_t locale; +atol_l(const char *str, locale_t locale) { return strtol_l(str, (char **)NULL, 10, locale); } Modified: head/lib/libc/stdlib/atoll.c == --- head/lib/libc/stdlib/atoll.cSun Sep 20 20:23:16 2015 (r288029) +++ head/lib/libc/stdlib/atoll.cSun Sep 20 20:24:28 2015 (r288030) @@ -39,16 +39,13 @@ __FBSDID("$FreeBSD$"); #include long long -atoll(str) - const char *str; +atoll(const char *str) { return strtoll(str, (char **)NULL, 10); } long long -atoll_l(str, locale) - const char *str; - locale_t locale; +atoll_l(const char *str, locale_t locale) { return strtoll_l(str, (char **)NULL, 10, locale); } Modified: head/lib/libc/stdlib/bsearch.c == --- head/lib/libc/stdlib/bsearch.c Sun Sep 20 20:23:16 2015 (r288029) +++ head/lib/libc/stdlib/bsearch.c Sun Sep 20 20:24:28 2015 (r288030) @@ -61,20 +61,12 @@ __FBSDID("$FreeBSD$"); */ #ifdef I_AM_BSEARCH_B void * -bsearch_b(key, base0, nmemb, size, compar) - const void *key; - const void *base0; - size_t nmemb; - size_t size; - DECLARE_BLOCK(int, compar, const void *, const void *); +bsearch_b(const void *key, const void *base0, size_t nmemb, size_t size, +DECLARE_BLOCK(int, compar, const void *, const void *)) #else void * -bsearch(key, base0, nmemb, size, compar) - const void *key; - const void *base0; - size_t nmemb; - size_t size; - int (*compar)(const void *, const void *); +bsearch(const void *key, const void *base0, size_t nmemb, size_t size, +int (*compar)(const void *, const void *)) #endif { const char
svn commit: r288004 - head/lib/libc/string
Author: rodrigc Date: Sun Sep 20 03:51:15 2015 New Revision: 288004 URL: https://svnweb.freebsd.org/changeset/base/288004 Log: Add declaration to eliminate -Wmissing-prototypes warning. Modified: head/lib/libc/string/strchrnul.c Modified: head/lib/libc/string/strchrnul.c == --- head/lib/libc/string/strchrnul.cSun Sep 20 03:49:08 2015 (r288003) +++ head/lib/libc/string/strchrnul.cSun Sep 20 03:51:15 2015 (r288004) @@ -33,6 +33,8 @@ __FBSDID("$FreeBSD$"); __weak_reference(__strchrnul, strchrnul); +char *__strchrnul(const char *, int); + char * __strchrnul(const char *p, int ch) { ___ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
svn commit: r288005 - head/lib/libc/stdlib
Author: rodrigc Date: Sun Sep 20 03:53:08 2015 New Revision: 288005 URL: https://svnweb.freebsd.org/changeset/base/288005 Log: Add declarations to eliminate -Wmissing-prototypes warnings. Modified: head/lib/libc/stdlib/atexit.c head/lib/libc/stdlib/heapsort.c head/lib/libc/stdlib/merge.c Modified: head/lib/libc/stdlib/atexit.c == --- head/lib/libc/stdlib/atexit.c Sun Sep 20 03:51:15 2015 (r288004) +++ head/lib/libc/stdlib/atexit.c Sun Sep 20 03:53:08 2015 (r288005) @@ -82,6 +82,9 @@ struct atexit { static struct atexit *__atexit;/* points to head of LIFO stack */ typedef DECLARE_BLOCK(void, atexit_block, void); +int atexit_b(atexit_block func); +int __cxa_atexit(void (*func)(void *), void *arg, void *dso); + /* * Register the function described by 'fptr' to be called at application * exit or owning shared object unload time. This is a helper function Modified: head/lib/libc/stdlib/heapsort.c == --- head/lib/libc/stdlib/heapsort.c Sun Sep 20 03:51:15 2015 (r288004) +++ head/lib/libc/stdlib/heapsort.c Sun Sep 20 03:53:08 2015 (r288005) @@ -138,6 +138,12 @@ typedef DECLARE_BLOCK(int, heapsort_bloc } \ } +#ifdef I_AM_HEAPSORT_B +int heapsort_b(void *vbase, size_t nmemb, size_t size, heapsort_block compar); +#else +int heapsort(void *vbase, size_t nmemb, size_t size, +int (*compar)(const void *, const void *)); +#endif /* * Heapsort -- Knuth, Vol. 3, page 145. Runs in O (N lg N), both average * and worst. While heapsort is faster than the worst case of quicksort, Modified: head/lib/libc/stdlib/merge.c == --- head/lib/libc/stdlib/merge.cSun Sep 20 03:51:15 2015 (r288004) +++ head/lib/libc/stdlib/merge.cSun Sep 20 03:53:08 2015 (r288005) @@ -99,6 +99,12 @@ static void insertionsort(u_char *, size ((u_char *)0 + \ (((u_char *)p + PSIZE - 1 - (u_char *) 0) & ~(PSIZE - 1))) +#ifdef I_AM_MERGESORT_B +int mergesort_b(void *base, size_t nmemb, size_t size, cmp_t cmp); +#else +int mergesort(void *base, size_t nmemb, size_t size, cmp_t cmp); +#endif + /* * Arguments are as for qsort. */ ___ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
svn commit: r288019 - in head/lib/libc: aarch64/gen amd64/gen arm/gen mips/gen powerpc/gen powerpc64/gen sparc64/gen
Author: rodrigc Date: Sun Sep 20 04:59:01 2015 New Revision: 288019 URL: https://svnweb.freebsd.org/changeset/base/288019 Log: Add include for declaration of _set_tp(). Eliminates -Wmissing-prototypes warnings. Modified: head/lib/libc/aarch64/gen/_set_tp.c head/lib/libc/amd64/gen/_set_tp.c head/lib/libc/arm/gen/_set_tp.c head/lib/libc/mips/gen/_set_tp.c head/lib/libc/powerpc/gen/_set_tp.c head/lib/libc/powerpc64/gen/_set_tp.c head/lib/libc/sparc64/gen/_set_tp.c Modified: head/lib/libc/aarch64/gen/_set_tp.c == --- head/lib/libc/aarch64/gen/_set_tp.c Sun Sep 20 04:26:55 2015 (r288018) +++ head/lib/libc/aarch64/gen/_set_tp.c Sun Sep 20 04:59:01 2015 (r288019) @@ -33,6 +33,7 @@ __FBSDID("$FreeBSD$"); #include #include +#include "libc_private.h" void _set_tp(void *tp) Modified: head/lib/libc/amd64/gen/_set_tp.c == --- head/lib/libc/amd64/gen/_set_tp.c Sun Sep 20 04:26:55 2015 (r288018) +++ head/lib/libc/amd64/gen/_set_tp.c Sun Sep 20 04:59:01 2015 (r288019) @@ -29,6 +29,7 @@ #include #include #include +#include "libc_private.h" void _set_tp(void *tp) Modified: head/lib/libc/arm/gen/_set_tp.c == --- head/lib/libc/arm/gen/_set_tp.c Sun Sep 20 04:26:55 2015 (r288018) +++ head/lib/libc/arm/gen/_set_tp.c Sun Sep 20 04:59:01 2015 (r288019) @@ -30,6 +30,7 @@ #include #include +#include "libc_private.h" void _set_tp(void *tp) Modified: head/lib/libc/mips/gen/_set_tp.c == --- head/lib/libc/mips/gen/_set_tp.cSun Sep 20 04:26:55 2015 (r288018) +++ head/lib/libc/mips/gen/_set_tp.cSun Sep 20 04:59:01 2015 (r288019) @@ -30,6 +30,7 @@ #include #include +#include "libc_private.h" void _set_tp(void *tp) Modified: head/lib/libc/powerpc/gen/_set_tp.c == --- head/lib/libc/powerpc/gen/_set_tp.c Sun Sep 20 04:26:55 2015 (r288018) +++ head/lib/libc/powerpc/gen/_set_tp.c Sun Sep 20 04:59:01 2015 (r288019) @@ -25,6 +25,7 @@ * * $FreeBSD$ */ +#include "libc_private.h" void _set_tp(void *tpval) Modified: head/lib/libc/powerpc64/gen/_set_tp.c == --- head/lib/libc/powerpc64/gen/_set_tp.c Sun Sep 20 04:26:55 2015 (r288018) +++ head/lib/libc/powerpc64/gen/_set_tp.c Sun Sep 20 04:59:01 2015 (r288019) @@ -25,6 +25,7 @@ * * $FreeBSD$ */ +#include "libc_private.h" void _set_tp(void *tpval) Modified: head/lib/libc/sparc64/gen/_set_tp.c == --- head/lib/libc/sparc64/gen/_set_tp.c Sun Sep 20 04:26:55 2015 (r288018) +++ head/lib/libc/sparc64/gen/_set_tp.c Sun Sep 20 04:59:01 2015 (r288019) @@ -25,6 +25,7 @@ * * $FreeBSD$ */ +#include "libc_private.h" void _set_tp(void *tpval) ___ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
svn commit: r288003 - head/lib/libc/sys
Author: rodrigc Date: Sun Sep 20 03:49:08 2015 New Revision: 288003 URL: https://svnweb.freebsd.org/changeset/base/288003 Log: Add missing include to eliminate -Wmissing-prototypes warnings Modified: head/lib/libc/sys/__error.c Modified: head/lib/libc/sys/__error.c == --- head/lib/libc/sys/__error.c Sun Sep 20 03:45:57 2015(r288002) +++ head/lib/libc/sys/__error.c Sun Sep 20 03:49:08 2015(r288003) @@ -30,6 +30,8 @@ #include __FBSDID("$FreeBSD$"); +#include "libc_private.h" + extern int errno; static int * ___ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
svn commit: r288017 - head/lib/libc/rpc
Author: rodrigc Date: Sun Sep 20 04:23:16 2015 New Revision: 288017 URL: https://svnweb.freebsd.org/changeset/base/288017 Log: Use ANSI C prototypes. Eliminates gcc 4.9 warnings. Modified: head/lib/libc/rpc/svc.c Modified: head/lib/libc/rpc/svc.c == --- head/lib/libc/rpc/svc.c Sun Sep 20 04:21:44 2015(r288016) +++ head/lib/libc/rpc/svc.c Sun Sep 20 04:23:16 2015(r288017) @@ -97,8 +97,7 @@ static void __xprt_do_unregister (SVCXPR * Activate a transport handle. */ void -xprt_register(xprt) - SVCXPRT *xprt; +xprt_register(SVCXPRT *xprt) { int sock; @@ -140,9 +139,7 @@ __xprt_unregister_unlocked(SVCXPRT *xprt * De-activate a transport handle. */ static void -__xprt_do_unregister(xprt, dolock) - SVCXPRT *xprt; - bool_t dolock; +__xprt_do_unregister(SVCXPRT *xprt, bool_t dolock) { int sock; @@ -171,12 +168,9 @@ __xprt_do_unregister(xprt, dolock) * program number comes in. */ bool_t -svc_reg(xprt, prog, vers, dispatch, nconf) - SVCXPRT *xprt; - const rpcprog_t prog; - const rpcvers_t vers; - void (*dispatch)(struct svc_req *, SVCXPRT *); - const struct netconfig *nconf; +svc_reg(SVCXPRT *xprt, const rpcprog_t prog, const rpcvers_t vers, +void (*dispatch)(struct svc_req *, SVCXPRT *), +const struct netconfig *nconf) { bool_t dummy; struct svc_callout *prev; @@ -245,9 +239,7 @@ rpcb_it: * Remove a service program from the callout list. */ void -svc_unreg(prog, vers) - const rpcprog_t prog; - const rpcvers_t vers; +svc_unreg(const rpcprog_t prog, const rpcvers_t vers) { struct svc_callout *prev; struct svc_callout *s; @@ -278,12 +270,9 @@ svc_unreg(prog, vers) * program number comes in. */ bool_t -svc_register(xprt, prog, vers, dispatch, protocol) - SVCXPRT *xprt; - u_long prog; - u_long vers; - void (*dispatch)(struct svc_req *, SVCXPRT *); - int protocol; +svc_register(SVCXPRT *xprt, u_long prog, u_long vers, +void (*dispatch)(struct svc_req *, SVCXPRT *), +int protocol) { struct svc_callout *prev; struct svc_callout *s; @@ -318,9 +307,7 @@ pmap_it: * Remove a service program from the callout list. */ void -svc_unregister(prog, vers) - u_long prog; - u_long vers; +svc_unregister(u_long prog, u_long vers) { struct svc_callout *prev; struct svc_callout *s; @@ -345,11 +332,8 @@ svc_unregister(prog, vers) * struct. */ static struct svc_callout * -svc_find(prog, vers, prev, netid) - rpcprog_t prog; - rpcvers_t vers; - struct svc_callout **prev; - char *netid; +svc_find(rpcprog_t prog, rpcvers_t vers, struct svc_callout **prev, +char *netid) { struct svc_callout *s, *p; @@ -373,10 +357,8 @@ svc_find(prog, vers, prev, netid) * Send a reply to an rpc request */ bool_t -svc_sendreply(xprt, xdr_results, xdr_location) - SVCXPRT *xprt; - xdrproc_t xdr_results; - void * xdr_location; +svc_sendreply(SVCXPRT *xprt, xdrproc_t xdr_results, +void * xdr_location) { struct rpc_msg rply; @@ -395,8 +377,7 @@ svc_sendreply(xprt, xdr_results, xdr_loc * No procedure error reply */ void -svcerr_noproc(xprt) - SVCXPRT *xprt; +svcerr_noproc(SVCXPRT *xprt) { struct rpc_msg rply; @@ -413,8 +394,7 @@ svcerr_noproc(xprt) * Can't decode args error reply */ void -svcerr_decode(xprt) - SVCXPRT *xprt; +svcerr_decode(SVCXPRT *xprt) { struct rpc_msg rply; @@ -431,8 +411,7 @@ svcerr_decode(xprt) * Some system error */ void -svcerr_systemerr(xprt) - SVCXPRT *xprt; +svcerr_systemerr(SVCXPRT *xprt) { struct rpc_msg rply; @@ -453,31 +432,27 @@ svcerr_systemerr(xprt) * protocol: the portmapper (or rpc binder). */ void -__svc_versquiet_on(xprt) - SVCXPRT *xprt; +__svc_versquiet_on(SVCXPRT *xprt) { SVC_EXT(xprt)->xp_flags |= SVC_VERSQUIET; } void -__svc_versquiet_off(xprt) - SVCXPRT *xprt; +__svc_versquiet_off(SVCXPRT *xprt) { SVC_EXT(xprt)->xp_flags &= ~SVC_VERSQUIET; } void -svc_versquiet(xprt) - SVCXPRT *xprt; +svc_versquiet(SVCXPRT *xprt) { __svc_versquiet_on(xprt); } int -__svc_versquiet_get(xprt) - SVCXPRT *xprt; +__svc_versquiet_get(SVCXPRT *xprt) { return (SVC_EXT(xprt)->xp_flags & SVC_VERSQUIET); @@ -488,9 +463,7 @@ __svc_versquiet_get(xprt) * Authentication error reply */ void -svcerr_auth(xprt, why) - SVCXPRT *xprt; - enum auth_stat why; +svcerr_auth(SVCXPRT *xprt, enum auth_stat why) { struct rpc_msg rply; @@ -507,8 +480,7 @@ svcerr_auth(xprt, why) * Auth too weak error reply */ void -svcerr_weakauth(xprt) - SVCXPRT *xprt; +svcerr_weakauth(SVCXPRT *xprt) { assert(xprt != NULL); @@ -520,8 +492,7 @@ svcerr_weakauth(xprt) *
svn commit: r288010 - head/lib/libc/gdtoa
Author: rodrigc Date: Sun Sep 20 04:06:04 2015 New Revision: 288010 URL: https://svnweb.freebsd.org/changeset/base/288010 Log: Add missing include to eliminate -Wmissing-prototypes warning Modified: head/lib/libc/gdtoa/_ldtoa.c Modified: head/lib/libc/gdtoa/_ldtoa.c == --- head/lib/libc/gdtoa/_ldtoa.cSun Sep 20 03:59:27 2015 (r288009) +++ head/lib/libc/gdtoa/_ldtoa.cSun Sep 20 04:06:04 2015 (r288010) @@ -32,6 +32,7 @@ __FBSDID("$FreeBSD$"); #include #include #include +#include "../stdio/floatio.h" #include "fpmath.h" #include "gdtoaimp.h" ___ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
svn commit: r288011 - head/lib/libc/posix1e
Author: rodrigc Date: Sun Sep 20 04:06:55 2015 New Revision: 288011 URL: https://svnweb.freebsd.org/changeset/base/288011 Log: Adding missing declarations to eliminate -Wmissing-prototypes warnings Modified: head/lib/libc/posix1e/acl_compat.c head/lib/libc/posix1e/acl_support.h Modified: head/lib/libc/posix1e/acl_compat.c == --- head/lib/libc/posix1e/acl_compat.c Sun Sep 20 04:06:04 2015 (r288010) +++ head/lib/libc/posix1e/acl_compat.c Sun Sep 20 04:06:55 2015 (r288011) @@ -29,6 +29,10 @@ __FBSDID("$FreeBSD$"); #include +int __oldacl_get_perm_np(acl_permset_t permset_d, oldacl_perm_t perm); +int __oldacl_add_perm(acl_permset_t permset_d, oldacl_perm_t perm); +int __oldacl_delete_perm(acl_permset_t permset_d, oldacl_perm_t perm); + /* * Compatibility wrappers for applications compiled against libc from before * NFSv4 ACLs were added. Modified: head/lib/libc/posix1e/acl_support.h == --- head/lib/libc/posix1e/acl_support.h Sun Sep 20 04:06:04 2015 (r288010) +++ head/lib/libc/posix1e/acl_support.h Sun Sep 20 04:06:55 2015 (r288011) @@ -45,6 +45,8 @@ int _acl_brand_may_be(const acl_t acl, i int_entry_brand_may_be(const acl_entry_t entry, int brand); void _acl_brand_as(acl_t acl, int brand); void _entry_brand_as(const acl_entry_t entry, int brand); +int_nfs4_acl_entry_from_text(acl_t aclp, char *str); +char *_nfs4_acl_to_text_np(const acl_t aclp, ssize_t *len_p, int flags); int_nfs4_format_flags(char *str, size_t size, acl_flag_t var, int verbose); int_nfs4_format_access_mask(char *str, size_t size, acl_perm_t var, int verbose); int_nfs4_parse_flags(const char *str, acl_flag_t *var); ___ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
svn commit: r288009 - head/lib/libc/gmon
Author: rodrigc Date: Sun Sep 20 03:59:27 2015 New Revision: 288009 URL: https://svnweb.freebsd.org/changeset/base/288009 Log: Add declaration to eliminate -Wmissing-prototypes warning Modified: head/lib/libc/gmon/gmon.c Modified: head/lib/libc/gmon/gmon.c == --- head/lib/libc/gmon/gmon.c Sun Sep 20 03:58:27 2015(r288008) +++ head/lib/libc/gmon/gmon.c Sun Sep 20 03:59:27 2015(r288009) @@ -68,6 +68,7 @@ static ints_scale; void moncontrol(int); static int hertz(void); +void _mcleanup(void); void monstartup(u_long lowpc, u_long highpc) ___ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
svn commit: r288015 - head/lib/libc/net
Author: rodrigc Date: Sun Sep 20 04:20:31 2015 New Revision: 288015 URL: https://svnweb.freebsd.org/changeset/base/288015 Log: Add declarations to netdb_private.h to eliminate -Wmissing-prototypes warnings. Modified: head/lib/libc/net/gethostnamadr.c head/lib/libc/net/getnetnamadr.c head/lib/libc/net/getproto.c head/lib/libc/net/map_v4v6.c head/lib/libc/net/netdb_private.h Modified: head/lib/libc/net/gethostnamadr.c == --- head/lib/libc/net/gethostnamadr.c Sun Sep 20 04:17:53 2015 (r288014) +++ head/lib/libc/net/gethostnamadr.c Sun Sep 20 04:20:31 2015 (r288015) @@ -48,13 +48,6 @@ __FBSDID("$FreeBSD$"); #include "nscache.h" #endif -extern int _ht_gethostbyname(void *, void *, va_list); -extern int _dns_gethostbyname(void *, void *, va_list); -extern int _nis_gethostbyname(void *, void *, va_list); -extern int _ht_gethostbyaddr(void *, void *, va_list); -extern int _dns_gethostbyaddr(void *, void *, va_list); -extern int _nis_gethostbyaddr(void *, void *, va_list); - static int gethostbyname_internal(const char *, int, struct hostent *, char *, size_t, struct hostent **, int *, res_state); Modified: head/lib/libc/net/getnetnamadr.c == --- head/lib/libc/net/getnetnamadr.cSun Sep 20 04:17:53 2015 (r288014) +++ head/lib/libc/net/getnetnamadr.cSun Sep 20 04:20:31 2015 (r288015) @@ -46,13 +46,6 @@ __FBSDID("$FreeBSD$"); #include "nscache.h" #endif -extern int _ht_getnetbyname(void *, void *, va_list); -extern int _dns_getnetbyname(void *, void *, va_list); -extern int _nis_getnetbyname(void *, void *, va_list); -extern int _ht_getnetbyaddr(void *, void *, va_list); -extern int _dns_getnetbyaddr(void *, void *, va_list); -extern int _nis_getnetbyaddr(void *, void *, va_list); - /* Network lookup order if nsswitch.conf is broken or nonexistant */ static const ns_src default_src[] = { { NSSRC_FILES, NS_SUCCESS }, Modified: head/lib/libc/net/getproto.c == --- head/lib/libc/net/getproto.cSun Sep 20 04:17:53 2015 (r288014) +++ head/lib/libc/net/getproto.cSun Sep 20 04:20:31 2015 (r288015) @@ -47,12 +47,6 @@ static const ns_src defaultsrc[] = { { NULL, 0 } }; -#ifdef NS_CACHING -extern int __proto_id_func(char *, size_t *, va_list, void *); -extern int __proto_marshal_func(char *, size_t *, void *, va_list, void *); -extern int __proto_unmarshal_func(char *, size_t, void *, va_list, void *); -#endif - static int files_getprotobynumber(void *retval, void *mdata, va_list ap) { Modified: head/lib/libc/net/map_v4v6.c == --- head/lib/libc/net/map_v4v6.cSun Sep 20 04:17:53 2015 (r288014) +++ head/lib/libc/net/map_v4v6.cSun Sep 20 04:20:31 2015 (r288015) @@ -68,6 +68,7 @@ __FBSDID("$FreeBSD$"); #include #include #include +#include "netdb_private.h" typedef union { int32_t al; Modified: head/lib/libc/net/netdb_private.h == --- head/lib/libc/net/netdb_private.h Sun Sep 20 04:17:53 2015 (r288014) +++ head/lib/libc/net/netdb_private.h Sun Sep 20 04:20:31 2015 (r288015) @@ -142,4 +142,23 @@ void _sethosthtent(int, struct hostent_d void _setnetdnsent(int); void _setnethtent(int, struct netent_data *); +struct hostent *__dns_getanswer(const char *, int, const char *, int); +int _dns_gethostbyaddr(void *, void *, va_list); +int _dns_gethostbyname(void *, void *, va_list); +int _dns_getnetbyaddr(void *, void *, va_list); +int _dns_getnetbyname(void *, void *, va_list); +int _ht_gethostbyaddr(void *, void *, va_list); +int _ht_gethostbyname(void *, void *, va_list); +int _ht_getnetbyaddr(void *, void *, va_list); +int _ht_getnetbyname(void *, void *, va_list); +int _nis_gethostbyaddr(void *, void *, va_list); +int _nis_gethostbyname(void *, void *, va_list); +int _nis_getnetbyaddr(void *, void *, va_list); +int _nis_getnetbyname(void *, void *, va_list); +#ifdef NS_CACHING +int __proto_id_func(char *, size_t *, va_list, void *); +int __proto_marshal_func(char *, size_t *, void *, va_list, void *); +int __proto_unmarshal_func(char *, size_t, void *, va_list, void *); +#endif + #endif /* _NETDB_PRIVATE_H_ */ ___ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
svn commit: r288016 - head/lib/libc/compat-43
Author: rodrigc Date: Sun Sep 20 04:21:44 2015 New Revision: 288016 URL: https://svnweb.freebsd.org/changeset/base/288016 Log: Add declaration to eliminate -Wmissing-prototypes warning Modified: head/lib/libc/compat-43/creat.c Modified: head/lib/libc/compat-43/creat.c == --- head/lib/libc/compat-43/creat.c Sun Sep 20 04:20:31 2015 (r288015) +++ head/lib/libc/compat-43/creat.c Sun Sep 20 04:21:44 2015 (r288016) @@ -41,6 +41,8 @@ __FBSDID("$FreeBSD$"); __weak_reference(__creat, creat); __weak_reference(__creat, _creat); +int __creat(const char *path, mode_t mode); + #pragma weak creat int __creat(const char *path, mode_t mode) ___ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
svn commit: r288014 - head/lib/libc/net
Author: rodrigc Date: Sun Sep 20 04:17:53 2015 New Revision: 288014 URL: https://svnweb.freebsd.org/changeset/base/288014 Log: Add declarations to eliminate -Wmissing-prototypes warnings Modified: head/lib/libc/net/nss_compat.c Modified: head/lib/libc/net/nss_compat.c == --- head/lib/libc/net/nss_compat.c Sun Sep 20 04:17:03 2015 (r288013) +++ head/lib/libc/net/nss_compat.c Sun Sep 20 04:17:53 2015 (r288014) @@ -79,6 +79,16 @@ do { \ DECLARE_TERMINATOR(group); +int __nss_compat_getgrnam_r(void *retval, void *mdata, va_list ap); +int __nss_compat_getgrgid_r(void *retval, void *mdata, va_list ap); +int __nss_compat_getgrent_r(void *retval, void *mdata, va_list ap); +int __nss_compat_setgrent(void *retval, void *mdata, va_list ap); +int __nss_compat_endgrent(void *retval, void *mdata, va_list ap); +int __nss_compat_getpwnam_r(void *retval, void *mdata, va_list ap); +int __nss_compat_getpwuid_r(void *retval, void *mdata, va_list ap); +int __nss_compat_getpwent_r(void *retval, void *mdata, va_list ap); +int __nss_compat_setpwent(void *retval, void *mdata, va_list ap); +int __nss_compat_endpwent(void *retval, void *mdata, va_list ap); int __nss_compat_getgrnam_r(void *retval, void *mdata, va_list ap) ___ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
svn commit: r288002 - head/lib/libc/sys
Author: rodrigc Date: Sun Sep 20 03:45:57 2015 New Revision: 288002 URL: https://svnweb.freebsd.org/changeset/base/288002 Log: Add missing includes to eliminate -Wmissing-prototypes warnings Modified: head/lib/libc/sys/close.c head/lib/libc/sys/fsync.c head/lib/libc/sys/msync.c head/lib/libc/sys/readv.c head/lib/libc/sys/writev.c Modified: head/lib/libc/sys/close.c == --- head/lib/libc/sys/close.c Sun Sep 20 01:35:51 2015(r288001) +++ head/lib/libc/sys/close.c Sun Sep 20 03:45:57 2015(r288002) @@ -35,6 +35,7 @@ __FBSDID("$FreeBSD$"); #include #include +#include #include "libc_private.h" __weak_reference(__sys_close, __close); Modified: head/lib/libc/sys/fsync.c == --- head/lib/libc/sys/fsync.c Sun Sep 20 01:35:51 2015(r288001) +++ head/lib/libc/sys/fsync.c Sun Sep 20 03:45:57 2015(r288002) @@ -35,6 +35,7 @@ __FBSDID("$FreeBSD$"); #include #include +#include #include "libc_private.h" __weak_reference(__sys_fsync, __fsync); Modified: head/lib/libc/sys/msync.c == --- head/lib/libc/sys/msync.c Sun Sep 20 01:35:51 2015(r288001) +++ head/lib/libc/sys/msync.c Sun Sep 20 03:45:57 2015(r288002) @@ -35,6 +35,7 @@ __FBSDID("$FreeBSD$"); #include #include +#include #include "libc_private.h" __weak_reference(__sys_msync, __msync); Modified: head/lib/libc/sys/readv.c == --- head/lib/libc/sys/readv.c Sun Sep 20 01:35:51 2015(r288001) +++ head/lib/libc/sys/readv.c Sun Sep 20 03:45:57 2015(r288002) @@ -35,6 +35,7 @@ __FBSDID("$FreeBSD$"); #include #include +#include #include #include "libc_private.h" Modified: head/lib/libc/sys/writev.c == --- head/lib/libc/sys/writev.c Sun Sep 20 01:35:51 2015(r288001) +++ head/lib/libc/sys/writev.c Sun Sep 20 03:45:57 2015(r288002) @@ -35,6 +35,7 @@ __FBSDID("$FreeBSD$"); #include #include +#include #include #include "libc_private.h" ___ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
svn commit: r288013 - head/lib/libc/net
Author: rodrigc Date: Sun Sep 20 04:17:03 2015 New Revision: 288013 URL: https://svnweb.freebsd.org/changeset/base/288013 Log: Define _NS_PRIVATE to make declarations visible. This eliminates -Wmissing-prototypes warnings. Modified: head/lib/libc/net/nscache.c Modified: head/lib/libc/net/nscache.c == --- head/lib/libc/net/nscache.c Sun Sep 20 04:15:37 2015(r288012) +++ head/lib/libc/net/nscache.c Sun Sep 20 04:17:03 2015(r288013) @@ -29,6 +29,7 @@ __FBSDID("$FreeBSD$"); #include "namespace.h" +#define _NS_PRIVATE #include #include #include ___ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
svn commit: r288012 - head/lib/libc/net
Author: rodrigc Date: Sun Sep 20 04:15:37 2015 New Revision: 288012 URL: https://svnweb.freebsd.org/changeset/base/288012 Log: Add missing includes to eliminate -Wmissing-prototypes warnings Modified: head/lib/libc/net/ntoh.c head/lib/libc/net/sockatmark.c Modified: head/lib/libc/net/ntoh.c == --- head/lib/libc/net/ntoh.cSun Sep 20 04:06:55 2015(r288011) +++ head/lib/libc/net/ntoh.cSun Sep 20 04:15:37 2015(r288012) @@ -28,6 +28,8 @@ __FBSDID("$FreeBSD$"); #include +#define _BYTEORDER_FUNC_DEFINED +#include uint32_t htonl(uint32_t hl) Modified: head/lib/libc/net/sockatmark.c == --- head/lib/libc/net/sockatmark.c Sun Sep 20 04:06:55 2015 (r288011) +++ head/lib/libc/net/sockatmark.c Sun Sep 20 04:15:37 2015 (r288012) @@ -26,6 +26,7 @@ */ #include "namespace.h" #include +#include #include "un-namespace.h" int sockatmark(int s) ___ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
svn commit: r288018 - head/lib/libc/resolv
Author: rodrigc Date: Sun Sep 20 04:26:55 2015 New Revision: 288018 URL: https://svnweb.freebsd.org/changeset/base/288018 Log: Add declarations to eliminate -Wmissing-prototypes warnings Modified: head/lib/libc/resolv/h_errno.c Modified: head/lib/libc/resolv/h_errno.c == --- head/lib/libc/resolv/h_errno.c Sun Sep 20 04:23:16 2015 (r288017) +++ head/lib/libc/resolv/h_errno.c Sun Sep 20 04:26:55 2015 (r288018) @@ -33,6 +33,9 @@ #undef h_errno extern int h_errno; +int *__h_errno(void); +void __h_errno_set(res_state res, int err); + int * __h_errno(void) { ___ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
svn commit: r288008 - head/lib/libc/gen
Author: rodrigc Date: Sun Sep 20 03:58:27 2015 New Revision: 288008 URL: https://svnweb.freebsd.org/changeset/base/288008 Log: Add declarations to eliminate -Wmissing-prototypes warnings Modified: head/lib/libc/gen/dlfcn.c head/lib/libc/gen/dup3.c head/lib/libc/gen/elf_utils.c head/lib/libc/gen/fmtcheck.c head/lib/libc/gen/getgrent.c head/lib/libc/gen/nlist.c head/lib/libc/gen/pause.c head/lib/libc/gen/raise.c head/lib/libc/gen/semctl.c head/lib/libc/gen/sleep.c head/lib/libc/gen/ttyslot.c head/lib/libc/gen/uname.c head/lib/libc/gen/unvis-compat.c head/lib/libc/gen/usleep.c head/lib/libc/gen/wait.c head/lib/libc/gen/wait3.c head/lib/libc/gen/waitid.c head/lib/libc/gen/waitpid.c Modified: head/lib/libc/gen/dlfcn.c == --- head/lib/libc/gen/dlfcn.c Sun Sep 20 03:56:57 2015(r288007) +++ head/lib/libc/gen/dlfcn.c Sun Sep 20 03:58:27 2015(r288008) @@ -41,6 +41,10 @@ __FBSDID("$FreeBSD$"); static char sorry[] = "Service unavailable"; +void _rtld_thread_init(void * li); +void _rtld_atfork_pre(int *locks); +void _rtld_atfork_post(int *locks); + /* * For ELF, the dynamic linker directly resolves references to its * services to functions inside the dynamic linker itself. These Modified: head/lib/libc/gen/dup3.c == --- head/lib/libc/gen/dup3.cSun Sep 20 03:56:57 2015(r288007) +++ head/lib/libc/gen/dup3.cSun Sep 20 03:58:27 2015(r288008) @@ -35,6 +35,8 @@ __FBSDID("$FreeBSD$"); #include #include "un-namespace.h" +int __dup3(int oldfd, int newfd, int flags); + int __dup3(int oldfd, int newfd, int flags) { Modified: head/lib/libc/gen/elf_utils.c == --- head/lib/libc/gen/elf_utils.c Sun Sep 20 03:56:57 2015 (r288007) +++ head/lib/libc/gen/elf_utils.c Sun Sep 20 03:58:27 2015 (r288008) @@ -33,6 +33,9 @@ #include #include +int __elf_phdr_match_addr(struct dl_phdr_info *phdr_info, void *addr); +void __pthread_map_stacks_exec(void); + int __elf_phdr_match_addr(struct dl_phdr_info *phdr_info, void *addr) { Modified: head/lib/libc/gen/fmtcheck.c == --- head/lib/libc/gen/fmtcheck.cSun Sep 20 03:56:57 2015 (r288007) +++ head/lib/libc/gen/fmtcheck.cSun Sep 20 03:58:27 2015 (r288008) @@ -36,6 +36,7 @@ __FBSDID("$FreeBSD$"); #include __weak_reference(__fmtcheck, fmtcheck); +const char * __fmtcheck(const char *f1, const char *f2); enum __e_fmtcheck_types { FMTCHECK_START, Modified: head/lib/libc/gen/getgrent.c == --- head/lib/libc/gen/getgrent.cSun Sep 20 03:56:57 2015 (r288007) +++ head/lib/libc/gen/getgrent.cSun Sep 20 03:58:27 2015 (r288008) @@ -75,6 +75,8 @@ static const ns_src defaultsrc[] = { { NULL, 0 } }; +int__getgroupmembership(const char *uname, gid_t agroup, gid_t *groups, + int maxgrp, int *grpcnt); int __gr_match_entry(const char *, size_t, enum nss_lookup_type, const char *, gid_t); int __gr_parse_entry(char *, size_t, struct group *, char *, size_t, Modified: head/lib/libc/gen/nlist.c == --- head/lib/libc/gen/nlist.c Sun Sep 20 03:56:57 2015(r288007) +++ head/lib/libc/gen/nlist.c Sun Sep 20 03:58:27 2015(r288008) @@ -61,6 +61,7 @@ __FBSDID("$FreeBSD$"); int __fdnlist(int, struct nlist *); int __aout_fdnlist(int, struct nlist *); int __elf_fdnlist(int, struct nlist *); +int __elf_is_okay__(Elf_Ehdr *ehdr); int nlist(const char *name, struct nlist *list) Modified: head/lib/libc/gen/pause.c == --- head/lib/libc/gen/pause.c Sun Sep 20 03:56:57 2015(r288007) +++ head/lib/libc/gen/pause.c Sun Sep 20 03:58:27 2015(r288008) @@ -38,6 +38,8 @@ __FBSDID("$FreeBSD$"); #include "libc_private.h" +int __pause(void); + /* * Backwards compatible pause. */ Modified: head/lib/libc/gen/raise.c == --- head/lib/libc/gen/raise.c Sun Sep 20 03:56:57 2015(r288007) +++ head/lib/libc/gen/raise.c Sun Sep 20 03:58:27 2015(r288008) @@ -40,6 +40,7 @@ __FBSDID("$FreeBSD$"); __weak_reference(__raise, raise); __weak_reference(__raise, _raise); +int __raise(int s); int __raise(int s) Modified: head/lib/libc/gen/semctl.c == --- head/lib/libc/gen/semctl.c Sun Sep 20 03:56:57 2015(r288007) +++ head/lib/libc/gen/semctl.c
svn commit: r288007 - head/lib/libc/gen
Author: rodrigc Date: Sun Sep 20 03:56:57 2015 New Revision: 288007 URL: https://svnweb.freebsd.org/changeset/base/288007 Log: Adding missing include to eliminate -Wmissing-prototypes warning Modified: head/lib/libc/gen/feature_present.c Modified: head/lib/libc/gen/feature_present.c == --- head/lib/libc/gen/feature_present.c Sun Sep 20 03:55:03 2015 (r288006) +++ head/lib/libc/gen/feature_present.c Sun Sep 20 03:56:57 2015 (r288007) @@ -35,6 +35,7 @@ __FBSDID("$FreeBSD$"); #include #include #include +#include /* * Returns true if the named feature is present in the currently ___ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
svn commit: r288006 - head/lib/libc/stdio
Author: rodrigc Date: Sun Sep 20 03:55:03 2015 New Revision: 288006 URL: https://svnweb.freebsd.org/changeset/base/288006 Log: Add declarations to eliminate -Wmissing-prototypes warnings Modified: head/lib/libc/stdio/_flock_stub.c head/lib/libc/stdio/fgetwln.c head/lib/libc/stdio/findfp.c Modified: head/lib/libc/stdio/_flock_stub.c == --- head/lib/libc/stdio/_flock_stub.c Sun Sep 20 03:53:08 2015 (r288005) +++ head/lib/libc/stdio/_flock_stub.c Sun Sep 20 03:55:03 2015 (r288006) @@ -55,6 +55,9 @@ __weak_reference(_flockfile_debug_stub, __weak_reference(_ftrylockfile, ftrylockfile); __weak_reference(_funlockfile, funlockfile); +void _flockfile_debug_stub(FILE *fp, char *fname, int lineno); +int _ftrylockfile(FILE *fp); + void _flockfile(FILE *fp) { Modified: head/lib/libc/stdio/fgetwln.c == --- head/lib/libc/stdio/fgetwln.c Sun Sep 20 03:53:08 2015 (r288005) +++ head/lib/libc/stdio/fgetwln.c Sun Sep 20 03:55:03 2015 (r288006) @@ -40,6 +40,8 @@ __FBSDID("$FreeBSD$"); #include "local.h" #include "xlocale_private.h" +wchar_t *fgetwln_l(FILE * __restrict fp, size_t *lenp, locale_t locale); + wchar_t * fgetwln_l(FILE * __restrict fp, size_t *lenp, locale_t locale) { Modified: head/lib/libc/stdio/findfp.c == --- head/lib/libc/stdio/findfp.cSun Sep 20 03:53:08 2015 (r288005) +++ head/lib/libc/stdio/findfp.cSun Sep 20 03:55:03 2015 (r288006) @@ -164,6 +164,7 @@ found: */ __warn_references(f_prealloc, "warning: this program uses f_prealloc(), which is not recommended."); +void f_prealloc_void(); void f_prealloc(void) ___ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
Re: svn commit: r287964 - in head: lib/libc/sys sys/kern sys/sys
On Fri, Sep 18, 2015 at 10:32 AM, Edward Tomasz Napieralawrote: > pretty. The reason for this is to avoid changing vfs_mountroot(), which > is (obviously) rather mission-critical, but not very well documented, > and thus hard to test properly. > vfs_mounroot() is indeed quite involved. It's not perfect, but I took an initial pass at writing the mount.conf(8) man page, which tries to document some stuff. -- Craig ___ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
svn commit: r287793 - in head/lib/libc: gen gmon stdlib
Author: rodrigc Date: Mon Sep 14 18:44:13 2015 New Revision: 287793 URL: https://svnweb.freebsd.org/changeset/base/287793 Log: Use ANSI C prototypes. Eliminates gcc 4.9 warnings. Modified: head/lib/libc/gen/fts-compat.c head/lib/libc/gen/getloadavg.c head/lib/libc/gen/getmntinfo.c head/lib/libc/gen/nlist.c head/lib/libc/gen/strtofflags.c head/lib/libc/gmon/gmon.c head/lib/libc/stdlib/heapsort.c head/lib/libc/stdlib/merge.c head/lib/libc/stdlib/radixsort.c Modified: head/lib/libc/gen/fts-compat.c == --- head/lib/libc/gen/fts-compat.c Mon Sep 14 18:05:27 2015 (r287792) +++ head/lib/libc/gen/fts-compat.c Mon Sep 14 18:44:13 2015 (r287793) @@ -635,9 +635,7 @@ __fts_set_clientptr_44bsd(FTS *sp, void * been found, cutting the stat calls by about 2/3. */ static FTSENT * -fts_build(sp, type) - FTS *sp; - int type; +fts_build(FTS *sp, int type) { struct dirent *dp; FTSENT *p, *head; @@ -901,10 +899,7 @@ mem1: saved_errno = errno; } static u_short -fts_stat(sp, p, follow) - FTS *sp; - FTSENT *p; - int follow; +fts_stat(FTS *sp, FTSENT *p, int follow) { FTSENT *t; dev_t dev; @@ -999,10 +994,7 @@ fts_compar(const void *a, const void *b) } static FTSENT * -fts_sort(sp, head, nitems) - FTS *sp; - FTSENT *head; - int nitems; +fts_sort(FTS *sp, FTSENT *head, int nitems) { FTSENT **ap, *p; @@ -1031,10 +1023,7 @@ fts_sort(sp, head, nitems) } static FTSENT * -fts_alloc(sp, name, namelen) - FTS *sp; - char *name; - int namelen; +fts_alloc(FTS *sp, char *name, int namelen) { FTSENT *p; size_t len; @@ -1081,8 +1070,7 @@ fts_alloc(sp, name, namelen) } static void -fts_lfree(head) - FTSENT *head; +fts_lfree(FTSENT *head) { FTSENT *p; @@ -1100,9 +1088,7 @@ fts_lfree(head) * plus 256 bytes so don't realloc the path 2 bytes at a time. */ static int -fts_palloc(sp, more) - FTS *sp; - size_t more; +fts_palloc(FTS *sp, size_t more) { sp->fts_pathlen += more + 256; @@ -1127,9 +1113,7 @@ fts_palloc(sp, more) * already returned. */ static void -fts_padjust(sp, head) - FTS *sp; - FTSENT *head; +fts_padjust(FTS *sp, FTSENT *head) { FTSENT *p; char *addr = sp->fts_path; @@ -1153,8 +1137,7 @@ fts_padjust(sp, head) } static size_t -fts_maxarglen(argv) - char * const *argv; +fts_maxarglen(char * const *argv) { size_t len, max; @@ -1170,11 +1153,7 @@ fts_maxarglen(argv) * Assumes p->fts_dev and p->fts_ino are filled in. */ static int -fts_safe_changedir(sp, p, fd, path) - FTS *sp; - FTSENT *p; - int fd; - char *path; +fts_safe_changedir(FTS *sp, FTSENT *p, int fd, char *path) { int ret, oerrno, newfd; struct stat sb; Modified: head/lib/libc/gen/getloadavg.c == --- head/lib/libc/gen/getloadavg.c Mon Sep 14 18:05:27 2015 (r287792) +++ head/lib/libc/gen/getloadavg.c Mon Sep 14 18:44:13 2015 (r287793) @@ -48,9 +48,7 @@ __FBSDID("$FreeBSD$"); * Return number of samples retrieved, or -1 on error. */ int -getloadavg(loadavg, nelem) - double loadavg[]; - int nelem; +getloadavg(double loadavg[], int nelem) { struct loadavg loadinfo; int i, mib[2]; Modified: head/lib/libc/gen/getmntinfo.c == --- head/lib/libc/gen/getmntinfo.c Mon Sep 14 18:05:27 2015 (r287792) +++ head/lib/libc/gen/getmntinfo.c Mon Sep 14 18:44:13 2015 (r287793) @@ -42,9 +42,7 @@ __FBSDID("$FreeBSD$"); * Return information about mounted filesystems. */ int -getmntinfo(mntbufp, flags) - struct statfs **mntbufp; - int flags; +getmntinfo(struct statfs **mntbufp, int flags) { static struct statfs *mntbuf; static int mntsize; Modified: head/lib/libc/gen/nlist.c == --- head/lib/libc/gen/nlist.c Mon Sep 14 18:05:27 2015(r287792) +++ head/lib/libc/gen/nlist.c Mon Sep 14 18:44:13 2015(r287793) @@ -63,9 +63,7 @@ int __aout_fdnlist(int, struct nlist *); int __elf_fdnlist(int, struct nlist *); int -nlist(name, list) - const char *name; - struct nlist *list; +nlist(const char *name, struct nlist *list) { int fd, n; @@ -89,11 +87,10 @@ static struct nlist_handlers { }; int -__fdnlist(fd, list) - int fd; - struct nlist *list; +__fdnlist(int fd, struct nlist *list) { - int n = -1, i; + int n = -1; + unsigned int i; for (i = 0; i < sizeof(nlist_fn) / sizeof(nlist_fn[0]); i++) { n = (nlist_fn[i].fn)(fd,
svn commit: r287797 - head/lib/libc/gen
Author: rodrigc Date: Mon Sep 14 18:59:01 2015 New Revision: 287797 URL: https://svnweb.freebsd.org/changeset/base/287797 Log: Use unsigned variables in a few places. Eliminates gcc 4.9 warnings. Modified: head/lib/libc/gen/getgrent.c head/lib/libc/gen/getpwent.c head/lib/libc/gen/strtofflags.c Modified: head/lib/libc/gen/getgrent.c == --- head/lib/libc/gen/getgrent.cMon Sep 14 18:58:30 2015 (r287796) +++ head/lib/libc/gen/getgrent.cMon Sep 14 18:59:01 2015 (r287797) @@ -1238,7 +1238,7 @@ compat_setgrent(void *retval, void *mdat int rv, stayopen; #define set_setent(x, y) do { \ - int i; \ + unsigned int i; \ \ for (i = 0; i < (sizeof(x)/sizeof(x[0])) - 1; i++) \ x[i].mdata = (void *)y; \ @@ -1308,7 +1308,7 @@ compat_group(void *retval, void *mdata, int rv, stayopen, *errnop; #define set_lookup_type(x, y) do { \ - int i; \ + unsigned int i; \ \ for (i = 0; i < (sizeof(x)/sizeof(x[0])) - 1; i++) \ x[i].mdata = (void *)y; \ Modified: head/lib/libc/gen/getpwent.c == --- head/lib/libc/gen/getpwent.cMon Sep 14 18:58:30 2015 (r287796) +++ head/lib/libc/gen/getpwent.cMon Sep 14 18:59:01 2015 (r287797) @@ -1607,7 +1607,8 @@ compat_redispatch(struct compat_state *s { NULL, NULL, NULL } }; void*discard; - int rv, e, i; + int rv, e; + unsigned int i; for (i = 0; i < sizeof(dtab)/sizeof(dtab[0]) - 1; i++) dtab[i].mdata = (void *)lookup_how; @@ -1702,7 +1703,7 @@ compat_setpwent(void *retval, void *mdat int rv, stayopen; #define set_setent(x, y) do { \ - int i; \ + unsigned int i; \ \ for (i = 0; i < (sizeof(x)/sizeof(x[0])) - 1; i++) \ x[i].mdata = (void *)y; \ Modified: head/lib/libc/gen/strtofflags.c == --- head/lib/libc/gen/strtofflags.c Mon Sep 14 18:58:30 2015 (r287796) +++ head/lib/libc/gen/strtofflags.c Mon Sep 14 18:59:01 2015 (r287797) @@ -100,7 +100,7 @@ fflagstostr(u_long flags) const char *sp; char *dp; u_long setflags; - int i; + u_int i; if ((string = (char *)malloc(nmappings * (longestflaglen + 1))) == NULL) return (NULL); ___ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"