svn commit: r368778 - head/usr.bin/login

2020-12-18 Thread Pedro F. Giffuni
Author: pfg Date: Sat Dec 19 03:07:38 2020 New Revision: 368778 URL: https://svnweb.freebsd.org/changeset/base/368778 Log: login(1): when exporting variables check the result of setenv(3) When exporting a variable we correctly check all the preconditions that could make setenv(3) fail.

svn commit: r368777 - head/usr.bin/login

2020-12-18 Thread Pedro F. Giffuni
Author: pfg Date: Sat Dec 19 02:42:14 2020 New Revision: 368777 URL: https://svnweb.freebsd.org/changeset/base/368777 Log: Revert r368776: login(1): when exporting variables check the result of setenv(3) mismatch: the return value upon error is -1, so the code was not doing nothing.

svn commit: r368776 - head/usr.bin/login

2020-12-18 Thread Pedro F. Giffuni
Author: pfg Date: Sat Dec 19 02:23:53 2020 New Revision: 368776 URL: https://svnweb.freebsd.org/changeset/base/368776 Log: login(1): when exporting variables check the result of setenv(3) When exporting a variable we correctly check all the preconditions that could make setenv(3) fail.

svn commit: r368712 - in head: . usr.sbin/services_mkdb

2020-12-16 Thread Pedro F. Giffuni
Author: pfg Date: Thu Dec 17 02:54:32 2020 New Revision: 368712 URL: https://svnweb.freebsd.org/changeset/base/368712 Log: /etc/services: attempt to bring the database to this century 2/2. This is the final half of splitting r358153 in two, in order to avoid a build system bugs and being

svn commit: r366501 - head/sys/fs/ext2fs

2020-10-06 Thread Pedro F. Giffuni
Author: pfg Date: Tue Oct 6 21:31:04 2020 New Revision: 366501 URL: https://svnweb.freebsd.org/changeset/base/366501 Log: ext2fs: minor typo. Obtained from:Dragonfly MFC after:3 days Modified: head/sys/fs/ext2fs/ext2_alloc.c Modified: head/sys/fs/ext2fs/ext2_alloc.c

svn commit: r364417 - head/usr.sbin/fstyp

2020-08-19 Thread Pedro F. Giffuni
Author: pfg Date: Thu Aug 20 05:18:08 2020 New Revision: 364417 URL: https://svnweb.freebsd.org/changeset/base/364417 Log: usr.sbin/fstyp: Fix incorrect pfs_type test in ondisk inode "ipdata.meta.pfs_type & HAMMER2_PFSTYPE_SUPROOT" happened to have the same result (except

svn commit: r364416 - head/sys/fs/ext2fs

2020-08-19 Thread Pedro F. Giffuni
Author: pfg Date: Thu Aug 20 05:08:49 2020 New Revision: 364416 URL: https://svnweb.freebsd.org/changeset/base/364416 Log: extfs: remove redundant little endian conversion. The XTIME_TO_NSEC macro already calls the htole32(), so there is no need to call it twice. This code does nothing

svn commit: r364308 - head/sys/fs/ext2fs

2020-08-17 Thread Pedro F. Giffuni
Author: pfg Date: Mon Aug 17 15:05:41 2020 New Revision: 364308 URL: https://svnweb.freebsd.org/changeset/base/364308 Log: extfs: remove redundant little endian conversion. The NSEC_TO_XTIME macro already calls the htole32(), so there is no need to call it twice. This code does nothing

svn commit: r361898 - head/usr.sbin/services_mkdb

2020-06-07 Thread Pedro F. Giffuni
Author: pfg Date: Sun Jun 7 19:56:17 2020 New Revision: 361898 URL: https://svnweb.freebsd.org/changeset/base/361898 Log: services: Add SSDP to service database This is used for UPnP and is registered in the IANA database. MFC after:2 weeks PR: 241573 Modified:

svn commit: r359005 - head/usr.bin/calendar/calendars

2020-03-14 Thread Pedro F. Giffuni
Author: pfg Date: Sun Mar 15 00:49:06 2020 New Revision: 359005 URL: https://svnweb.freebsd.org/changeset/base/359005 Log: calendar(1): Updates and corrections for some calendar files. These have an educational value and are, no doubt, an integral part of the fun behind running the BSDs.

svn commit: r358904 - head/usr.sbin/services_mkdb

2020-03-11 Thread Pedro F. Giffuni
Author: pfg Date: Thu Mar 12 03:56:54 2020 New Revision: 358904 URL: https://svnweb.freebsd.org/changeset/base/358904 Log: style(9): Fix space after #define. No functional change. Modified: head/usr.sbin/services_mkdb/services_mkdb.c Modified:

svn commit: r358448 - head/usr.sbin/services_mkdb

2020-02-28 Thread Pedro F. Giffuni
Author: pfg Date: Fri Feb 28 20:43:35 2020 New Revision: 358448 URL: https://svnweb.freebsd.org/changeset/base/358448 Log: /etc/services: attempt to bring the database to this century 1/2. This is the result of splitting r358153 in two, in order to avoid a build system bug and being able

svn commit: r358170 - head/usr.sbin/services_mkdb

2020-02-20 Thread Pedro F. Giffuni
Author: pfg Date: Thu Feb 20 15:52:36 2020 New Revision: 358170 URL: https://svnweb.freebsd.org/changeset/base/358170 Log: Revert r358153: it is causing unexpected issues with the build system. Modified: head/usr.sbin/services_mkdb/services Modified: head/usr.sbin/services_mkdb/services

svn commit: r358153 - head/usr.sbin/services_mkdb

2020-02-19 Thread Pedro F. Giffuni
Author: pfg Date: Thu Feb 20 03:54:07 2020 New Revision: 358153 URL: https://svnweb.freebsd.org/changeset/base/358153 Log: /etc/services: attempt bring the database to this century. Document better this file, updating the URL to the IANA registry and closely match the official services.

svn commit: r357860 - head/usr.sbin/services_mkdb

2020-02-13 Thread Pedro F. Giffuni
Author: pfg Date: Thu Feb 13 15:42:14 2020 New Revision: 357860 URL: https://svnweb.freebsd.org/changeset/base/357860 Log: Revert r357343: services: Add PROFInet and EtherCAT. Both are admitedly very niche features and no known users exist currently. I am doing a further review/update

svn commit: r357655 - head/sys/net

2020-02-07 Thread Pedro F. Giffuni
Author: pfg Date: Fri Feb 7 15:16:04 2020 New Revision: 357655 URL: https://svnweb.freebsd.org/changeset/base/357655 Log: typo: stray spaces. No functional change Modified: head/sys/net/ethernet.h Modified: head/sys/net/ethernet.h

svn commit: r357654 - in head: lib/libc/xdr sys/xdr

2020-02-07 Thread Pedro F. Giffuni
Author: pfg Date: Fri Feb 7 15:14:29 2020 New Revision: 357654 URL: https://svnweb.freebsd.org/changeset/base/357654 Log: typo: s/impelmentation/implementation/. No functional change Modified: head/lib/libc/xdr/xdr_array.c head/lib/libc/xdr/xdr_reference.c head/sys/xdr/xdr_array.c

svn commit: r357631 - head/usr.sbin/fstyp

2020-02-06 Thread Pedro F. Giffuni
Author: pfg Date: Thu Feb 6 18:04:15 2020 New Revision: 357631 URL: https://svnweb.freebsd.org/changeset/base/357631 Log: fstyp: sync HAMMER1/2 detection support with DragonFly BSD. Submitted by: Tomohiro Kusumi PR: 243929 Modified: head/usr.sbin/fstyp/hammer.c

svn commit: r357587 - head/sys/net

2020-02-05 Thread Pedro F. Giffuni
Author: pfg Date: Wed Feb 5 19:11:07 2020 New Revision: 357587 URL: https://svnweb.freebsd.org/changeset/base/357587 Log: ethernet: Add a couple more Ethertypes. Powerlink and Sercos III are used in automation. Both have been standardized and In the case of Ethernet Powerlink there is a

svn commit: r357424 - head/sys/net

2020-02-02 Thread Pedro F. Giffuni
Author: pfg Date: Mon Feb 3 02:02:13 2020 New Revision: 357424 URL: https://svnweb.freebsd.org/changeset/base/357424 Log: typo: Registration. Pointed by: Dikshie Fauzie Modified: head/sys/net/ethernet.h Modified: head/sys/net/ethernet.h

svn commit: r357423 - head/sys/net

2020-02-02 Thread Pedro F. Giffuni
Author: pfg Date: Mon Feb 3 01:08:15 2020 New Revision: 357423 URL: https://svnweb.freebsd.org/changeset/base/357423 Log: ethernet: Minor cleanup. Consistently use uppercase for ethertype hex numbers. Modified: head/sys/net/ethernet.h Modified: head/sys/net/ethernet.h

svn commit: r357417 - head/sys/net

2020-02-02 Thread Pedro F. Giffuni
Author: pfg Date: Sun Feb 2 19:02:07 2020 New Revision: 357417 URL: https://svnweb.freebsd.org/changeset/base/357417 Log: style(9): Fix spaces after #define. No functional change. Modified: head/sys/net/ethernet.h Modified: head/sys/net/ethernet.h

svn commit: r357415 - head/sys/net

2020-02-02 Thread Pedro F. Giffuni
Author: pfg Date: Sun Feb 2 18:33:20 2020 New Revision: 357415 URL: https://svnweb.freebsd.org/changeset/base/357415 Log: ethernet: add some more Ethertypes. Sort ETHERTYPE_FCOE, from r357414. Modified: head/sys/net/ethernet.h Modified: head/sys/net/ethernet.h

svn commit: r357414 - head/sys/net

2020-02-02 Thread Pedro F. Giffuni
Author: pfg Date: Sun Feb 2 18:27:37 2020 New Revision: 357414 URL: https://svnweb.freebsd.org/changeset/base/357414 Log: ethernet: add some more Ethertypes. Add some types based on other BSDs and also add EtherCat and PROFINET, which are IEC standards. There is a public list (CSV

svn commit: r357343 - head/usr.sbin/services_mkdb

2020-01-31 Thread Pedro F. Giffuni
Author: pfg Date: Fri Jan 31 18:55:21 2020 New Revision: 357343 URL: https://svnweb.freebsd.org/changeset/base/357343 Log: services: Add PROFInet and EtherCAT. Both are used in industrial networks. MFC after:1 week Modified: head/usr.sbin/services_mkdb/services Modified:

svn commit: r356624 - head/sys/sys

2020-01-10 Thread Pedro F. Giffuni
Author: pfg Date: Sat Jan 11 01:44:55 2020 New Revision: 356624 URL: https://svnweb.freebsd.org/changeset/base/356624 Log: Update ELFOSABI_* constants with OpenVOS. Reference: https://www.sco.com/developers/gabi/latest/ch4.eheader.html Modified: head/sys/sys/elf_common.h

svn commit: r356142 - in head/sys: dev/ofw sys

2019-12-27 Thread Pedro F. Giffuni
Author: pfg Date: Sat Dec 28 02:58:30 2019 New Revision: 356142 URL: https://svnweb.freebsd.org/changeset/base/356142 Log: SPDX: update some tags with two licenses. Modified: head/sys/dev/ofw/openfirm.h head/sys/sys/sched.h Modified: head/sys/dev/ofw/openfirm.h

svn commit: r356141 - head/lib/libc/arm/string

2019-12-27 Thread Pedro F. Giffuni
Author: pfg Date: Sat Dec 28 02:11:41 2019 New Revision: 356141 URL: https://svnweb.freebsd.org/changeset/base/356141 Log: arm/ffs.S: remove stale comment. We already use the CLZ instruction. Discussed with: andrew Modified: head/lib/libc/arm/string/ffs.S Modified:

svn commit: r356106 - head/lib/msun/bsdsrc

2019-12-26 Thread Pedro F. Giffuni
Author: pfg Date: Fri Dec 27 01:11:26 2019 New Revision: 356106 URL: https://svnweb.freebsd.org/changeset/base/356106 Log: msun: drop clause 3 from the Berkeley license. Per the University California Regents letter, drop the so-called "advertisement" clause. Discussed with:

svn commit: r356060 - head/usr.sbin/fstyp

2019-12-24 Thread Pedro F. Giffuni
Author: pfg Date: Tue Dec 24 19:00:20 2019 New Revision: 356060 URL: https://svnweb.freebsd.org/changeset/base/356060 Log: sbin/fstyp: recgonize Dragonfly's hammer and hammer2. This is based on DragonFly's implementation from about 2019-09-13. It only contains the basic code and header

svn commit: r355828 - head/sys/sys

2019-12-16 Thread Pedro F. Giffuni
Author: pfg Date: Mon Dec 16 23:55:30 2019 New Revision: 355828 URL: https://svnweb.freebsd.org/changeset/base/355828 Log: Double the size of ARG_MAX on LP64 platforms. As modern software keeps growing in size, we get requests to update the value of ARG_MAX in order to link the resulting

svn commit: r355762 - head/sys/sys

2019-12-14 Thread Pedro F. Giffuni
Author: pfg Date: Sun Dec 15 01:56:56 2019 New Revision: 355762 URL: https://svnweb.freebsd.org/changeset/base/355762 Log: cdefs: use more accurate GCC version for the deprecated attribute. The message argument in the "deprecated" attribute was introduced in GCC 4.5 *. Use the accurate

svn commit: r354924 - head/contrib/openresolv

2019-11-20 Thread Pedro F. Giffuni
Author: pfg Date: Wed Nov 20 23:56:20 2019 New Revision: 354924 URL: https://svnweb.freebsd.org/changeset/base/354924 Log: MFV 354917, 354918, 354919 openresolv: update to version 3.9.2 MFC after:3 weeks Added: head/contrib/openresolv/LICENSE - copied unchanged from r354917,

svn commit: r352054 - head/sys/dev/ral

2019-09-08 Thread Pedro F. Giffuni
Author: pfg Date: Mon Sep 9 03:31:46 2019 New Revision: 352054 URL: https://svnweb.freebsd.org/changeset/base/352054 Log: ral(4): Use unsigned to avoid undefined behavior. Found by NetBSD's kUBSan Obtained from:NetBSD (github 5b153f1) Modified: head/sys/dev/ral/rt2860.c

svn commit: r346310 - head/share/misc

2019-09-03 Thread Pedro F. Giffuni
Author: pfg Date: Wed Apr 17 14:12:11 2019 New Revision: 346310 URL: https://svnweb.freebsd.org/changeset/base/346310 Log: Add myself to ports committers. Approved by: pfg (mentor) Modified: head/share/misc/committers-ports.dot Modified: head/share/misc/committers-ports.dot

svn commit: r346311 - head/share/misc

2019-09-03 Thread Pedro F. Giffuni
Author: pfg Date: Wed Apr 17 14:20:55 2019 New Revision: 346311 URL: https://svnweb.freebsd.org/changeset/base/346311 Log: Add orphan mentee. Modified: head/share/misc/committers-src.dot Modified: head/share/misc/committers-src.dot

svn commit: r350969 - head/share/man/man4

2019-08-12 Thread Pedro F. Giffuni
Author: pfg Date: Tue Aug 13 01:24:43 2019 New Revision: 350969 URL: https://svnweb.freebsd.org/changeset/base/350969 Log: Add deprecation notice to snd_ds1(4). As suggested in: https://wiki.freebsd.org/WhatsGoing/FreeBSD13 We will be dropping the snd_ds1 driver. The driver is known

svn commit: r350970 - head/share/man/man4

2019-08-12 Thread Pedro F. Giffuni
Author: pfg Date: Tue Aug 13 01:25:07 2019 New Revision: 350970 URL: https://svnweb.freebsd.org/changeset/base/350970 Log: Add deprecation notice to snd_maestro(4). As suggested in: https://wiki.freebsd.org/WhatsGoing/FreeBSD13 this old driver is buggy and no one is working on it so

svn commit: r348349 - in head: lib/libc/net sys/i386/i386

2019-05-28 Thread Pedro F. Giffuni
Author: pfg Date: Wed May 29 02:08:23 2019 New Revision: 348349 URL: https://svnweb.freebsd.org/changeset/base/348349 Log: typo: suppported. Modified: head/lib/libc/net/rthdr.c head/sys/i386/i386/initcpu.c Modified: head/lib/libc/net/rthdr.c

svn commit: r346311 - head/share/misc

2019-04-17 Thread Pedro F. Giffuni
Author: pfg Date: Wed Apr 17 14:20:55 2019 New Revision: 346311 URL: https://svnweb.freebsd.org/changeset/base/346311 Log: Add orphan mentee. Modified: head/share/misc/committers-src.dot Modified: head/share/misc/committers-src.dot

svn commit: r346310 - head/share/misc

2019-04-17 Thread Pedro F. Giffuni
Author: pfg Date: Wed Apr 17 14:12:11 2019 New Revision: 346310 URL: https://svnweb.freebsd.org/changeset/base/346310 Log: Add myself to ports committers. Approved by: pfg (mentor) Modified: head/share/misc/committers-ports.dot Modified: head/share/misc/committers-ports.dot

svn commit: r344042 - head/sys/vm

2019-02-11 Thread Pedro F. Giffuni
Author: pfg Date: Tue Feb 12 04:33:05 2019 New Revision: 344042 URL: https://svnweb.freebsd.org/changeset/base/344042 Log: UMA: unsign some variables related to allocation in hash_alloc(). As a followup to r343673, unsign some variables related to allocation since the hashsize cannot be

svn commit: r343459 - head/sys/fs/ext2fs

2019-01-25 Thread Pedro F. Giffuni
Author: pfg Date: Fri Jan 25 22:22:29 2019 New Revision: 343459 URL: https://svnweb.freebsd.org/changeset/base/343459 Log: ext2fs: Add some extra consistency checks for the superblock. Maliciously formed, or badly corrupted, filesystems can cause kernel panics. In general, such acts of

svn commit: r343023 - head/lib/msun/src

2019-01-14 Thread Pedro F. Giffuni
Author: pfg Date: Mon Jan 14 15:48:35 2019 New Revision: 343023 URL: https://svnweb.freebsd.org/changeset/base/343023 Log: msun: reduce diff between src/e_j0.c and src/e_j0f.c PR: 229501 MFC after:1 week Modified: head/lib/msun/src/e_j0.c head/lib/msun/src/e_j0f.c Modified:

svn commit: r342910 - head/gnu/usr.bin/grep

2019-01-09 Thread Pedro F. Giffuni
Author: pfg Date: Thu Jan 10 02:59:19 2019 New Revision: 342910 URL: https://svnweb.freebsd.org/changeset/base/342910 Log: grep(1) outputs NOT-matched lines with multi-byte characters PR113343 MFC after:2 months Modified: head/gnu/usr.bin/grep/search.c Modified:

svn commit: r342851 - head/lib/msun/src

2019-01-07 Thread Pedro F. Giffuni
Author: pfg Date: Mon Jan 7 17:35:09 2019 New Revision: 342851 URL: https://svnweb.freebsd.org/changeset/base/342851 Log: pow(3): Workaround possible signed shift Undefined Behavior. j is int32_t and thus j<<31 is undefined if j==1. Hinted by:muusl-lib (git

svn commit: r342651 - in head/lib/msun: ld128 src

2018-12-31 Thread Pedro F. Giffuni
Author: pfg Date: Mon Dec 31 15:43:06 2018 New Revision: 342651 URL: https://svnweb.freebsd.org/changeset/base/342651 Log: msun: Fix some old typos. Seen in a posting from July 27 by "CM Graff" in musl-libc. Modified: head/lib/msun/ld128/e_powl.c head/lib/msun/src/k_rem_pio2.c

svn commit: r342632 - head/share/man/man5

2018-12-30 Thread Pedro F. Giffuni
Author: pfg Date: Sun Dec 30 19:44:50 2018 New Revision: 342632 URL: https://svnweb.freebsd.org/changeset/base/342632 Log: ext2fs.5: Update the manpage. General update of the driver description and mention some important credits. Add a symlink for ext4fs as it is of special interest

svn commit: r342383 - head/include

2018-12-23 Thread Pedro F. Giffuni
Author: pfg Date: Sun Dec 23 20:51:13 2018 New Revision: 342383 URL: https://svnweb.freebsd.org/changeset/base/342383 Log: Fix mismatch from r342379. Modified: head/include/netdb.h Modified: head/include/netdb.h ==

svn commit: r342379 - in head: include lib/libc/net

2018-12-23 Thread Pedro F. Giffuni
Author: pfg Date: Sun Dec 23 18:15:48 2018 New Revision: 342379 URL: https://svnweb.freebsd.org/changeset/base/342379 Log: gai_strerror() - Update string error messages according to RFC 3493. Error messages in gai_strerror(3) vary largely among OSs. For new software we largely

svn commit: r341505 - head/share/man/man5

2018-12-04 Thread Pedro F. Giffuni
Author: pfg Date: Tue Dec 4 22:51:13 2018 New Revision: 341505 URL: https://svnweb.freebsd.org/changeset/base/341505 Log: ext2fs.4: basic updates. Starting with FreeBSD 12 we fully support writing ext4 filesystems. Mention some features that we don't support while here. MFC after:

svn commit: r338125 - head/lib/libthr/thread

2018-08-20 Thread Pedro F. Giffuni
Author: pfg Date: Tue Aug 21 01:33:25 2018 New Revision: 338125 URL: https://svnweb.freebsd.org/changeset/base/338125 Log: libthr: minor spacing cleanup. No functional change. X-MFC with: r337992 Modified: head/lib/libthr/thread/thr_attr.c Modified:

svn commit: r337992 - in head: include lib/libthr/thread share/man/man3

2018-08-17 Thread Pedro F. Giffuni
Author: pfg Date: Sat Aug 18 01:05:38 2018 New Revision: 337992 URL: https://svnweb.freebsd.org/changeset/base/337992 Log: POSIX compliance improvements in the pthread(3) functions. This basically adds makes use of the C99 restrict keyword, and also adds some 'const's to four threading

svn commit: r337920 - head/usr.bin/sed

2018-08-16 Thread Pedro F. Giffuni
Author: pfg Date: Thu Aug 16 18:35:39 2018 New Revision: 337920 URL: https://svnweb.freebsd.org/changeset/base/337920 Log: Revert r337419. The fix is only partial and causes an asymmetry which breaks a test in multi_test.sh. We should consider both parts of the issue found in

svn commit: r337458 - head/usr.bin/printf

2018-08-08 Thread Pedro F. Giffuni
Author: pfg Date: Wed Aug 8 15:25:01 2018 New Revision: 337458 URL: https://svnweb.freebsd.org/changeset/base/337458 Log: Fix printf(1) ignores width and precision in %b format. The precision with the conversion specifier b is specified by POSIX: see point 7 in the reference

svn commit: r337457 - head/usr.bin/printf

2018-08-08 Thread Pedro F. Giffuni
Author: pfg Date: Wed Aug 8 15:12:32 2018 New Revision: 337457 URL: https://svnweb.freebsd.org/changeset/base/337457 Log: Revert r337440: the log message is wrong. Modified: head/usr.bin/printf/printf.c Modified: head/usr.bin/printf/printf.c

svn commit: r337456 - head/sys/fs/msdosfs

2018-08-08 Thread Pedro F. Giffuni
Author: pfg Date: Wed Aug 8 15:08:22 2018 New Revision: 337456 URL: https://svnweb.freebsd.org/changeset/base/337456 Log: msdosfs: fixes for Undefined Behavior. These were found by the Undefined Behaviour GsoC project at NetBSD: Do not change signedness bit with left shift. While

svn commit: r337440 - head/usr.bin/printf

2018-08-07 Thread Pedro F. Giffuni
Author: pfg Date: Tue Aug 7 23:03:50 2018 New Revision: 337440 URL: https://svnweb.freebsd.org/changeset/base/337440 Log: Fix printf(1) ignores width and precision in %b format. The precision with behavior is "unspecified" by POSIX (as of 2018), but most implementations seem to have

svn commit: r337422 - in head/lib/libc: gen inet

2018-08-07 Thread Pedro F. Giffuni
Author: pfg Date: Tue Aug 7 15:24:19 2018 New Revision: 337422 URL: https://svnweb.freebsd.org/changeset/base/337422 Log: libc: fix cases of undefined behavior. These were found by the Undefined Behavious GsoC project at NetBSD: Avoid undefined behavior in ftok(3) Do not change

svn commit: r337419 - head/usr.bin/sed

2018-08-07 Thread Pedro F. Giffuni
Author: pfg Date: Tue Aug 7 14:47:39 2018 New Revision: 337419 URL: https://svnweb.freebsd.org/changeset/base/337419 Log: sed(1): partial fix for the case of the regex delimited with '['. We don't generally support the weird case of regular expresions delimited by an opening square

svn commit: r336929 - head/usr.bin/sed

2018-07-30 Thread Pedro F. Giffuni
Author: pfg Date: Mon Jul 30 19:41:54 2018 New Revision: 336929 URL: https://svnweb.freebsd.org/changeset/base/336929 Log: sed: compile with the default WARNS level. Modified: head/usr.bin/sed/Makefile Modified: head/usr.bin/sed/Makefile

svn commit: r336926 - head/usr.bin/sed

2018-07-30 Thread Pedro F. Giffuni
Author: pfg Date: Mon Jul 30 18:29:46 2018 New Revision: 336926 URL: https://svnweb.freebsd.org/changeset/base/336926 Log: sed: unsign some indexes to fix sign-compare warnings. Hinted by:OpenBSD (CVS 1.32) MFC after: 1 week Modified: head/usr.bin/sed/extern.h

svn commit: r336360 - head/sys/sys

2018-07-16 Thread Pedro F. Giffuni
Author: pfg Date: Tue Jul 17 02:20:51 2018 New Revision: 336360 URL: https://svnweb.freebsd.org/changeset/base/336360 Log: FreeBSD_version bump as per r336351, Updating the libstdc++ is likely to have consequences for archs that are still using the older GCC based toolchain.

svn commit: r336351 - head/gnu/lib/libstdc++

2018-07-16 Thread Pedro F. Giffuni
Author: pfg Date: Mon Jul 16 18:53:28 2018 New Revision: 336351 URL: https://svnweb.freebsd.org/changeset/base/336351 Log: Update libstdc++ configuration. Its been quite a while since the last time we updated this and since then we have grown iconv and a bunch of complex math functions.

svn commit: r336145 - head/usr.bin/localedef

2018-07-09 Thread Pedro F. Giffuni
Author: pfg Date: Mon Jul 9 20:38:47 2018 New Revision: 336145 URL: https://svnweb.freebsd.org/changeset/base/336145 Log: localedef(1): remove duplicated includes. Hinted by:DragonFlyBSD Modified: head/usr.bin/localedef/charmap.c head/usr.bin/localedef/localedef.c Modified:

svn commit: r336143 - head/usr.bin/sed

2018-07-09 Thread Pedro F. Giffuni
Author: pfg Date: Mon Jul 9 20:27:31 2018 New Revision: 336143 URL: https://svnweb.freebsd.org/changeset/base/336143 Log: sed(1): Suppress implicit-fallthrough. Apparently some tools are not able to determine if all the cases of a switch are covered. Make use of the attribute for cases

svn commit: r336115 - head/lib/libiconv_modules/mapper_std

2018-07-08 Thread Pedro F. Giffuni
Author: pfg Date: Sun Jul 8 23:22:04 2018 New Revision: 336115 URL: https://svnweb.freebsd.org/changeset/base/336115 Log: libiconv: correct undefined behavior. Detected on NetBSD: # nm /usr/lib/libc.so|grep sanit /public/src.git/lib/libc/citrus/modules/citrus_mapper_std.c:173:8:

svn commit: r336113 - head/usr.bin/gzip

2018-07-08 Thread Pedro F. Giffuni
Author: pfg Date: Sun Jul 8 22:39:33 2018 New Revision: 336113 URL: https://svnweb.freebsd.org/changeset/base/336113 Log: gzip: fix for undefined behavior. Unportable left shift reported with MKSANITIZER=yes USE_SANITIZER=undefined: # progress -zf ./games.tgz tar -xp -C "./" -f -

svn commit: r334950 - head/usr.sbin/bhyve

2018-06-11 Thread Pedro F. Giffuni
Author: pfg Date: Mon Jun 11 14:45:34 2018 New Revision: 334950 URL: https://svnweb.freebsd.org/changeset/base/334950 Log: style(9): Fix tabs after #define. No functional change intended. Modified: head/usr.sbin/bhyve/pci_virtio_scsi.c Modified: head/usr.sbin/bhyve/pci_virtio_scsi.c

svn commit: r333311 - head/sys/fs/msdosfs

2018-05-06 Thread Pedro F. Giffuni
Author: pfg Date: Sun May 6 21:29:29 2018 New Revision: 11 URL: https://svnweb.freebsd.org/changeset/base/11 Log: msdosfs: use vfs_timestamp() to generate timestamps instead of getnanotime(). Most filesystems, with the notable exceptions of msdosfs and autofs use only

svn commit: r333239 - head/sys/fs/msdosfs

2018-05-03 Thread Pedro F. Giffuni
Author: pfg Date: Fri May 4 03:44:12 2018 New Revision: 333239 URL: https://svnweb.freebsd.org/changeset/base/333239 Log: msdosfs: long names of files are created incorrectly. This fixes a regression that happened in r120492 (2003) where libkiconv was introduced and we went from

svn commit: r332986 - head/usr.sbin/makefs

2018-04-24 Thread Pedro F. Giffuni
Author: pfg Date: Wed Apr 25 02:43:53 2018 New Revision: 332986 URL: https://svnweb.freebsd.org/changeset/base/332986 Log: makefs: Use ENODATA instead of ENOMSG as a translation for missing ENOATTR. This is consistent with what some linux filesystems do and has been adopted in our

svn commit: r332035 - head/include

2018-04-04 Thread Pedro F. Giffuni
Author: pfg Date: Wed Apr 4 15:16:04 2018 New Revision: 332035 URL: https://svnweb.freebsd.org/changeset/base/332035 Log: pthread.h: minor indentation cleanups. No functional change. X-MFC with: r331969 Modified: head/include/pthread.h Modified: head/include/pthread.h

svn commit: r331969 - head/include

2018-04-03 Thread Pedro F. Giffuni
Author: pfg Date: Wed Apr 4 02:00:10 2018 New Revision: 331969 URL: https://svnweb.freebsd.org/changeset/base/331969 Log: pthread.h: drop nullability attributes. These have been found to be practically useless. We were actually following the Android bionic library and had some interest

svn commit: r329848 - head/lib/libc/stdio

2018-02-22 Thread Pedro F. Giffuni
Author: pfg Date: Fri Feb 23 01:11:57 2018 New Revision: 329848 URL: https://svnweb.freebsd.org/changeset/base/329848 Log: __printf_render_int(): small type change to match use. Variable l is consistently used as an int rather than a char. Sort names while here. Obtained from:

svn commit: r329846 - head/lib/libc/gen

2018-02-22 Thread Pedro F. Giffuni
Author: pfg Date: Fri Feb 23 00:28:00 2018 New Revision: 329846 URL: https://svnweb.freebsd.org/changeset/base/329846 Log: getpeereid(3): Fix behavior on failure to match documentation. According to the getpeereid(3) documentation, on failure the value -1 is returned and the global

svn commit: r329102 - head/lib/libcompat/4.3

2018-02-10 Thread Pedro F. Giffuni
Author: pfg Date: Sat Feb 10 14:45:29 2018 New Revision: 329102 URL: https://svnweb.freebsd.org/changeset/base/329102 Log: libcompat: Use %hu for unsigned shorts. Obtained from:DragonFlyBSD (git 82e1476a) Modified: head/lib/libcompat/4.3/rexec.c Modified:

svn commit: r329018 - in head: lib/libc/rpc usr.sbin/ypserv

2018-02-08 Thread Pedro F. Giffuni
Author: pfg Date: Thu Feb 8 14:53:34 2018 New Revision: 329018 URL: https://svnweb.freebsd.org/changeset/base/329018 Log: su_data: correct macro expansion. Protect su_data() users from strange macro expansion. Obtained from:linux libtirpc Modified:

svn commit: r328957 - in head/sys: fs/ext2fs ufs/ufs

2018-02-06 Thread Pedro F. Giffuni
Author: pfg Date: Tue Feb 6 22:38:19 2018 New Revision: 328957 URL: https://svnweb.freebsd.org/changeset/base/328957 Log: {ext2|ufs}_readdir: Avoid setting negative ncookies. ncookies cannot be negative or the allocator will fail. This should only happen if a caller is very broken but

svn commit: r328885 - head/sys/fs/ext2fs

2018-02-05 Thread Pedro F. Giffuni
Author: pfg Date: Mon Feb 5 15:14:01 2018 New Revision: 328885 URL: https://svnweb.freebsd.org/changeset/base/328885 Log: ext2fs: remove EXT4F_RO_INCOMPAT_SUPP This was a hack to be able to mount ext4 filesystems read-only while not supporting all the features. We now support all those

svn commit: r328882 - head/sys/fs/ext2fs

2018-02-05 Thread Pedro F. Giffuni
Author: pfg Date: Mon Feb 5 14:30:27 2018 New Revision: 328882 URL: https://svnweb.freebsd.org/changeset/base/328882 Log: ext2fs: Cleanup variable assignments for extents. Delay the initialization of variables until the are needed. In the case of ext4_ext_rm_leaf(), make sure 'error'

svn commit: r328567 - head/lib/libedit

2018-01-29 Thread Pedro F. Giffuni
Author: pfg Date: Mon Jan 29 22:38:23 2018 New Revision: 328567 URL: https://svnweb.freebsd.org/changeset/base/328567 Log: libedit: sort the Makefile in line with NetBSD's version. NetBSD's libedit has been been cleaned-up considerably so the non--widecharacter version is no longer an

svn commit: r328551 - head/usr.sbin/pppctl

2018-01-29 Thread Pedro F. Giffuni
Author: pfg Date: Mon Jan 29 14:23:44 2018 New Revision: 328551 URL: https://svnweb.freebsd.org/changeset/base/328551 Log: pppctl88) Avoid strcpy() copies on overlapping string. This may lead to unpredicatable behaviour on different platforms or C library implementations. Use an

svn commit: r328525 - head/contrib/tnftp/src

2018-01-28 Thread Pedro F. Giffuni
Author: pfg Date: Mon Jan 29 01:05:57 2018 New Revision: 328525 URL: https://svnweb.freebsd.org/changeset/base/328525 Log: ftp(1): Use closefrom() instead of individual close()s. Use closefrom(3) instead of manually closing all file descriptors between 3 and 19. Obtained from:

svn commit: r328517 - head/include

2018-01-28 Thread Pedro F. Giffuni
Author: pfg Date: Sun Jan 28 19:37:30 2018 New Revision: 328517 URL: https://svnweb.freebsd.org/changeset/base/328517 Log: Avoid implicit gcc nonnull attribute in vwarnx(). We removed the nonnull attributes from our headers long ago, but still __printflike() includes it implicitly. This

svn commit: r328506 - head/contrib/opie/libopie

2018-01-27 Thread Pedro F. Giffuni
Author: pfg Date: Sun Jan 28 03:16:54 2018 New Revision: 328506 URL: https://svnweb.freebsd.org/changeset/base/328506 Log: Revert r328492: "Fix gcc80 -Wsizeof-pointer-memaccess warning." The warning is bogus: GCC8 only looks at the size of the destination. We shouldn't be fixing

svn commit: r328497 - head/sbin/pfctl

2018-01-27 Thread Pedro F. Giffuni
Author: pfg Date: Sat Jan 27 22:57:01 2018 New Revision: 328497 URL: https://svnweb.freebsd.org/changeset/base/328497 Log: pfctl(8): Fix two wrong conditions. Caught by gcc80's -Wtautological-compare option. MFC after:5 days Approved by: kp Obtained from:DragonFlyBSD

svn commit: r328493 - head/lib/libthr/thread

2018-01-27 Thread Pedro F. Giffuni
Author: pfg Date: Sat Jan 27 22:27:55 2018 New Revision: 328493 URL: https://svnweb.freebsd.org/changeset/base/328493 Log: libthr: Fix missing break in switch. This is also a warning in recent GCC with -Wimplicit-fallthrough. CID: 1356262 Obtained from:DragonFly (git

svn commit: r328492 - head/contrib/opie/libopie

2018-01-27 Thread Pedro F. Giffuni
Author: pfg Date: Sat Jan 27 22:16:19 2018 New Revision: 328492 URL: https://svnweb.freebsd.org/changeset/base/328492 Log: Fix gcc80 -Wsizeof-pointer-memaccess warning. Obtained from:DragonFlyBSD (git 56267d362d5769c8df07bf26d5e322610e0d24b4) Modified:

svn commit: r328487 - head/bin/pax

2018-01-27 Thread Pedro F. Giffuni
Author: pfg Date: Sat Jan 27 18:24:13 2018 New Revision: 328487 URL: https://svnweb.freebsd.org/changeset/base/328487 Log: pax(1): Honour the restrict in sigaction(). Use a setup_sig() helper and make it fail when either of sigaction fails. While there, do not leak fds for "." + minor

svn commit: r328486 - head/usr.bin/fortune/fortune

2018-01-27 Thread Pedro F. Giffuni
Author: pfg Date: Sat Jan 27 17:43:09 2018 New Revision: 328486 URL: https://svnweb.freebsd.org/changeset/base/328486 Log: fortune(6): Fix gcc80 -Wbool-operation warnings. Hinted by:Dragonfly (git 4d1086765752f0569497d06460d95117c74f33ac) Modified:

svn commit: r328480 - in head/sys: fs/ext2fs ufs/ufs

2018-01-27 Thread Pedro F. Giffuni
Author: pfg Date: Sat Jan 27 16:34:00 2018 New Revision: 328480 URL: https://svnweb.freebsd.org/changeset/base/328480 Log: Revert r328479: {ext2|ufs}_readdir: Set limit on valid ncookies values. We aren't allowed to set resid like this. Pointed out by: kib, imp Modified:

svn commit: r328479 - in head/sys: fs/ext2fs ufs/ufs

2018-01-27 Thread Pedro F. Giffuni
Author: pfg Date: Sat Jan 27 15:33:52 2018 New Revision: 328479 URL: https://svnweb.freebsd.org/changeset/base/328479 Log: {ext2|ufs}_readdir: Set limit on valid ncookies values. Sanitize the values that will be assigned to ncookies so that we ensure they are sane and we can handle them.

svn commit: r328406 - head/sys/fs/ext2fs

2018-01-25 Thread Pedro F. Giffuni
Author: pfg Date: Thu Jan 25 18:01:46 2018 New Revision: 328406 URL: https://svnweb.freebsd.org/changeset/base/328406 Log: Minor style issue introduced in r328346. Pointed by: bde Modified: head/sys/fs/ext2fs/ext2_lookup.c Modified: head/sys/fs/ext2fs/ext2_lookup.c

svn commit: r328346 - in head/sys: fs/ext2fs ufs/ffs ufs/ufs

2018-01-24 Thread Pedro F. Giffuni
Author: pfg Date: Wed Jan 24 17:58:48 2018 New Revision: 328346 URL: https://svnweb.freebsd.org/changeset/base/328346 Log: ext2fs|ufs:Unsign some values related to allocation. When allocating memory through malloc(9), we always expect the amount of memory requested to be unsigned as a

svn commit: r328340 - in head/sys: fs/ext2fs ufs/ffs ufs/ufs

2018-01-24 Thread Pedro F. Giffuni
Author: pfg Date: Wed Jan 24 16:44:57 2018 New Revision: 328340 URL: https://svnweb.freebsd.org/changeset/base/328340 Log: Revert r327781, r328093, r328056: ufs|ext2fs: Revert uses of mallocarray(9). These aren't really useful: drop them. Variable unsigning will be brought again

svn commit: r328280 - head/sys/fs/ext2fs

2018-01-23 Thread Pedro F. Giffuni
Author: pfg Date: Tue Jan 23 14:17:04 2018 New Revision: 328280 URL: https://svnweb.freebsd.org/changeset/base/328280 Log: extfs: Remove unused variables. Found by: scan-build Reviewed by: fsu Differential Revision:https://reviews.freebsd.org/D14017 Modified:

svn commit: r328261 - head/sys/dev/drm2

2018-01-22 Thread Pedro F. Giffuni
Author: pfg Date: Mon Jan 22 15:55:51 2018 New Revision: 328261 URL: https://svnweb.freebsd.org/changeset/base/328261 Log: drm2: Basic use of mallocarray(9). These functions deal the same type of overflows we do with mallocarray(9). Using our mallocarray will panic, which different from

svn commit: r328239 - head/sys/kern

2018-01-21 Thread Pedro F. Giffuni
Author: pfg Date: Mon Jan 22 02:26:10 2018 New Revision: 328239 URL: https://svnweb.freebsd.org/changeset/base/328239 Log: Forgot to sort here in r328238. Modified: head/sys/kern/uipc_usrreq.c Modified: head/sys/kern/uipc_usrreq.c

svn commit: r328238 - in head/sys: cam/scsi dev/mps fs/cd9660 fs/nandfs fs/nfsclient kern netpfil/ipfw netsmb x86/x86

2018-01-21 Thread Pedro F. Giffuni
Author: pfg Date: Mon Jan 22 02:08:10 2018 New Revision: 328238 URL: https://svnweb.freebsd.org/changeset/base/328238 Log: Unsign some values related to allocation. When allocating memory through malloc(9), we always expect the amount of memory requested to be unsigned as a negative

  1   2   3   4   5   6   7   8   9   10   >