Displaying 1 50 of 33,702 commits (0.008s)

DragonFlyBSD — sys/dev/raid Makefile, sys/dev/raid/asr asr.c Makefile

i386 removal, part 27/x: Remove i386 specific stuff from the RAID drivers.

pst(4) goes completely.

DragonFlyBSD — sys/config LINT64

kernel: Uncomment VINUMDEBUG in LINT64. It compiles now.
Delta File
+1 -1 sys/config/LINT64
+1 -1 1 file

DragonFlyBSD — sys/cpu/x86_64/misc x86_64-gdbstub.c, sys/ddb db_trap.c db_command.c

kernel: Add prototypes for setjmp()/longjmp() to <sys/systm.h>.

Used by ddb and vinum. Remove the inclusion of the <setjmp.h> userspace
header.

DragonFlyBSD — sys/netinet6 nd6_nbr.c

inet6: Simplify nd6_dad_ns_output() interface
Delta File
+6 -6 sys/netinet6/nd6_nbr.c
+6 -6 1 file

DragonFlyBSD — sys/netinet6 nd6_nbr.c nd6.h

inet6: Make DAD lockless MPSAFE
Delta File
+122 -66 sys/netinet6/nd6_nbr.c
+0 -1 sys/netinet6/nd6.h
+122 -67 2 files

DragonFlyBSD — sys/net netisr2.h if_poll.c, sys/net/altq altq_subr.c

net: Factor out ASSERT_IN_NETISR and ASSERT_IS_NETISR
Delta File
+11 -22 sys/netinet/raw_ip.c
+7 -14 sys/netinet/ip_divert.c
+4 -8 sys/netinet/ip_icmp.c
+6 -3 sys/net/netisr2.h
+3 -4 sys/netinet/tcp_subr.c
+2 -4 sys/netinet6/in6_ifattach.c
+22 -37 13 files not shown
+55 -92 19 files

DragonFlyBSD — lib/libc/regex regcomp.c

regcomp: limit comparison to C locale only

The regex code does not work with multibyte codesets like UTF-8.  In fact,
it doesn't even work with single-byte codesets like ISO-8859-1.  The
comparison blows up at index 128 (the range is 0 to UCHAR_MAX (255).

As a temporary workaround, all comparisons will be done in C locale
regardless of the environment setting.  The regex library needs to be
updated to handle all codesets.
Delta File
+9 -1 lib/libc/regex/regcomp.c
+9 -1 1 file

DragonFlyBSD — lib/libc/locale collcmp.c

libc/collcmp: Fix initialization of s2
Delta File
+1 -1 lib/libc/locale/collcmp.c
+1 -1 1 file

DragonFlyBSD — lib/libc/regex regcomp.c engine.c

libc/regex: Sync with FreeBSD

DragonFlyBSD — include/rpc xdr.h, lib/libc/xdr xdr_sizeof.c xdr.3

libc/xdr: Sync xdr_sizeof.c with FreeBSD and add it to the build.

FreeBSD did so too after our last upgrade. Shouldn't hurt.

DragonFlyBSD — gnu/lib/gcc50/libstdcxx/components/libconv_1998 Makefile, gnu/lib/gcc50/libstdcxx/headers Makefile.headers

gcc50: Adjust makefiles for new file locations

DragonFlyBSD — contrib/gcc-5.0 README.DELETED, contrib/gcc-5.0/libstdc++-v3/config/locale/generic codecvt_members.cc time_members.cc

gcc50: Remove generic versions of added files

These files can probably stay in place with .PATH and -I order giving
preference to "dragonfly" over "generic", but let's go ahead and just
remove them from contrib to avoid any possible confusion.

DragonFlyBSD — contrib/gcc-5.0 README.DRAGONFLY, contrib/gcc-5.0/libstdc++-v3/config/locale/dragonfly monetary_members.cc time_members.cc

gcc50: Add proper locale support to libstdc++ (local mod)

These patches will be sent upstream soon.  DragonFly is the only BSD
with c++ local support.  The exception is "messages".  The glibc has
gettext functions incorporated to support it, but we can't used libintl
because that would require linking it to every c++ executable.

DragonFlyBSD — lib/libc/stdlib calloc.c

libc/calloc: Remove calloc.c, which has been unbuilt since 82949828d.

calloc() is part of nmalloc.c as well as of dmalloc.c
Delta File
+0 -49 lib/libc/stdlib/calloc.c
+0 -49 1 file

DragonFlyBSD — . Makefile_upgrade.inc

make upgrade: Stop removing hi_IN.UTF-8 and la_LN.UTF-8

These old upgrade entries were removing newly installed locales.

Reported-by: swildner
Delta File
+0 -2 Makefile_upgrade.inc
+0 -2 1 file

DragonFlyBSD — lib/libc Makefile Makefile.inc, lib/libc/quad qdivrem.c muldi3.c

i386 removal, part 26/x: Remove i386 specific lib/libc/quad.

None of the platforms which lead to it being compiled into FreeBSD's
libc look too interesting, so remove it.

Also remove copies of a number of those functions residing in libkern
and stop compiling one of these files into libstand. Libstand also
has a quad.h header. Shrink it together to what is actually needed
(not much), while here.
Delta File
+0 -274 lib/libc/quad/qdivrem.c
+0 -273 sys/libkern/qdivrem.c
+0 -241 lib/libc/quad/muldi3.c
+0 -240 sys/libkern/muldi3.c
+0 -121 sys/libkern/quad.h
+0 -104 lib/libc/quad/quad.h
+7 -2,597 51 files not shown
+7 -3,850 57 files

DragonFlyBSD — sys/kern uipc_socket.c uipc_syscalls.c, sys/sys socketvar.h

socket: Close the soreference() race against socket owner netisr sofree()

The race is kinda like this:

    Other thread/netisrN         netisrM (so->so_pcb owner)
             :                              :
      getpooltoken(head);                   :
      so->so_head = NULL;                   :
             :                          sofree(so); (*)
      soreference(so);                      :
      relpooltoken(head);                   :

(*)
sofree(so) frees the socket, since so->so_head is NULL and
getpooltoken(head) is not called.

Reported-by: dillon@

DragonFlyBSD — sys/kern uipc_socket.c

socket: Group accept queue operations together
Delta File
+2 -2 sys/kern/uipc_socket.c
+2 -2 1 file

DragonFlyBSD — sys/kern uipc_msg.c, sys/sys socketops.h

socket: Nuke unused so_pru_abort()
Delta File
+1 -15 sys/kern/uipc_msg.c
+0 -1 sys/sys/socketops.h
+1 -16 2 files

DragonFlyBSD — sys/kern uipc_socket.c, sys/sys socketvar.h

socket: Remove unused soabort()
Delta File
+0 -7 sys/kern/uipc_socket.c
+0 -1 sys/sys/socketvar.h
+0 -8 2 files

DragonFlyBSD — share/locale-links Makefile

Create 3 new locales by softlink

This creates aliases to en_US.ISO8859-1, en_US.ISO8859-15 and
ja_JP.eucJP.  These locales are valid on linux and significantly
tested by gcc's libstdc++.

While here, correct an obsolete comment.
Delta File
+8 -6 share/locale-links/Makefile
+8 -6 1 file

DragonFlyBSD — gnu/usr.bin/gdb/kgdb trgt_i386.c, lib/libkvm kvm_i386.c kvm_minidump_i386.c

i386 removal, part 25/x: Remove i386 parts from kgdb, libkvm, crunchide.

DragonFlyBSD — usr.bin/localedef README

Add README to localedef directory (credits, licensing)
Delta File
+15 -0 usr.bin/localedef/README
+15 -0 1 file

DragonFlyBSD — sys/netinet6 nd6_nbr.c

inet6: Use M_INTWAIT for DAD record
Delta File
+1 -8 sys/netinet6/nd6_nbr.c
+1 -8 1 file

DragonFlyBSD — sys/netinet6 nd6_nbr.c

inet6: Use static initializer to initialize DAD queue
Delta File
+1 -9 sys/netinet6/nd6_nbr.c
+1 -9 1 file

DragonFlyBSD — share/locale-links Makefile

locales: Change defaults for territory-only locales

From research, it appears that the default for territory-only locales
(e.g. en_US, de_DE) is to use ISO-8859-X (where X is not 15).  The
@euro modifier is the alias for ISO-8859-15.

Since there is no apparent standard, I am going to switch the defaults
from aliasing to UTF-8 to ISO-8859 where available.  For the non-latin
character sets, I left these at UTF-8 rather than try to decide on a
different default.

Incidentally, this enables a number of gcc libstdc++ tests to pass as
well.
Delta File
+25 -4 share/locale-links/Makefile
+25 -4 1 file

DragonFlyBSD — usr.bin/localedef ctype.c parser.y

    localedef(1): Update license of 12 source files (CDDL => BSD2)
    
    The localdef sources were relicensed to 2-clause BSD by Illumos project
    on 4 July 2014:
    
    
https://github.com/Nexenta/illumos-nexenta/commit/cf17542a37fc83d0ae093777e30d480423858c29
    
    It was done for the benefit of the BSD community.  It is a nice gesture,
    but I don't see this being much of a change.
    
    1) The bundled avl files are still CDDL licensed, so that may spread to
       the entire program.
    
    2) Even as CDDL, I didn't see this being an issue since localedef is
       self-contained so CDDL is limited to it.  (IANAL)

DragonFlyBSD — . Makefile.inc1, lib/libc/locale collate.h

localedef(1): Better bootstrap fix

We don't need to build localedef in ctools as well as bootstrap tools.
Moreover, when I removed from bootstrap tools, it built but segfaulted
on use.  The COLL_WEIGHTS_MAX file needs to be in the header because
it affects the structure definition.  When it's moved there, the build
on older platforms will succeed.

DragonFlyBSD — lib/libc/sys mmap.2

mmap.2: Remove (now) useless BUGS section.
Delta File
+0 -3 lib/libc/sys/mmap.2
+0 -3 1 file

DragonFlyBSD — sys/sys systm.h

<sys/systm.h>: Small indent fix.
Delta File
+1 -1 sys/sys/systm.h
+1 -1 1 file

DragonFlyBSD — sys/emulation/ndis winx32_wrap.S kern_windrv.c, usr.sbin/ndiscvt ndisgen.sh ndiscvt.c

i386 removal, part 24/x: Remove i386 specific parts from NDIS.

DragonFlyBSD — . Makefile.inc1, usr.bin/localedef collate.c

localedef - Fix buildworld bootstrapping issue

* When running buildworld on an older system the localedef built in
  BTOOLS using /usr/include/limits.h will fail building the locales.

* Fix the problem by adding localedef to CTOOLS.

* Also fix a problem where the old limits.h defines COLL_WEIGHTS_MAX as 0
  and breaks the building of localedef itself.  Check for the case in
  collate.c.
Delta File
+9 -0 usr.bin/localedef/collate.c
+1 -0 Makefile.inc1
+10 -0 2 files

DragonFlyBSD — lib/libc/sys mmap.2

manpages - Remove obsolete info

* Remove the BUGS section describing a 2GB limit to individual mmap()
  calls.  This was a limitation on 32-bit systems but no such limit exists
  on 64-bit systems.

Reported-by: Alex Merritt
Delta File
+1 -22 lib/libc/sys/mmap.2
+1 -22 1 file

DragonFlyBSD — tools/tools/locale/tools cldr2def.pl

cldr2def: Fix colldef makefile for full buildworld

The LC_COLLATE file generation will fail with relative paths, so
use ${.CURDIR} in the makefile to fix buildworld.  Also the output
file has to include the object directory, otherwise the files are
all build in /usr/src.

DragonFlyBSD — usr.bin/sort Makefile coll.c

buildworld - Fix stage-1 build breakage

* Conditionalize sort to not use the new isnan() function in the
  bootstrap stage where it might not exist.
Delta File
+5 -1 usr.bin/sort/Makefile
+4 -1 usr.bin/sort/coll.c
+9 -2 2 files

DragonFlyBSD — lib/libc/gen isnan.c

libc.a: Add __isnan and __isnanf

These symbols are not present in libm (the deleted message isn't
correct). Remove the PIC check to put __isnan and __isnanf in the
static c library.  Incidentally, __isnanl is already in static
library because the PIC check was forgotten.
Delta File
+0 -7 lib/libc/gen/isnan.c
+0 -7 1 file

DragonFlyBSD — sbin/hammer cmd_volume.c, sbin/newfs_hammer newfs_hammer.c

sbin/hammer: Use HAMMER_BUFSIZE

- Use HAMMER_BUFSIZE insteaf of 16KiB.

DragonFlyBSD — . Makefile.inc1, usr.bin/colldef parse.y scan.l

collate 4/4: Remove colldef(1) tool from base (swap bootstrap)

It cannot read the new input files and it generates v1.2 LC_COLLATE which
libc can no longer read.  There is no use left for colldef(1).

Colldef was tool required for bootstrap, so replace it with localedef.
The share/colldef makefile must be what requires this built.

DragonFlyBSD — sys/vfs/dirfs dirfs_vnops.c dirfs.h

dirfs - Add kqueue(2) support

- Based on tmpfs work on 80ae59d743
- FIFO ops not added
Delta File
+144 -10 sys/vfs/dirfs/dirfs_vnops.c
+1 -0 sys/vfs/dirfs/dirfs.h
+145 -10 2 files

DragonFlyBSD — share/colldef zh_Hans_CN.UTF-8.src map.UTF-8

collate 3/4: Bring in input files for new LC_COLLATE format

These input files use localedef(1) instead of colldef(1) to generate and
install new LC_COLLATE files.

Only UTF-8 collation will be installed.  All other codesets will symlink to
their UTF-8 counterparts. UTF-8 is the default codeset for every territory.
Delta File
+78,001 -0 share/colldef/zh_Hans_CN.UTF-8.src
+61,104 -0 share/colldef/map.UTF-8
+42,878 -0 share/colldef/widths.txt
+20,791 -0 share/colldef/ko_KR.UTF-8.src
+20,653 -0 share/colldef/ja_JP.UTF-8.src
+0 -3,073 share/colldef/en_DK.example
+55,300 -4,598 88 files not shown
+278,727 -7,671 94 files

DragonFlyBSD — usr.bin Makefile

collate 2/4: Hook localedef to build, unhook colldef
Delta File
+1 -1 usr.bin/Makefile
+1 -1 1 file

DragonFlyBSD — include limits.h, lib/libc/locale collate.c collate.h

collate 1/4: Add support for LC_COLLATE format "DragonFly 4.4" in libc

The collate functions within libc have been using version 1 and 1.2 of the
packed LC_COLLATE binary formats.  These were generated with the colldef
tool, but the new LC_COLLATE files are going to be generated by the new
localedef tool using CLDR POSIX files as input.  The DragonFly-flavored
version of localedef identifies the format as "DragonFly 4.4".  Any
LC_COLLATE file with a different version will simply not be loaded, and
all LC* categories will get set to "C" (aka "POSIX") locale.

This work is based off of Nexenta's contribution to Illumos (successor
to OpenSolaris).  The integration with xlocale is my work though.

The following commits will enable localedef tool, disable the colldef
tool, add generated colldef directory, and finally remove colldef from
base.

DragonFlyBSD — usr.bin/sort file.c sort.c

sort(1): Replace NetBSD version with Free/Open version

With my ongoing collation work, I discovered our sort was not locale
sensitive, but GNU sort was.  I replaced our ancient GNU sort with
NetBSD's version about 4 years ago.  NetBSD hasn't updated that version
since.  However, FreeBSD got rid of their GNU sort fairly recently and
replaced it with another BSD-licensed version.  Four months ago, it was
imported into OpenBSD, they made some corrections which were incorporated
back in FreeBSD in the April timeframe.

This version is locale sensitive and gives the same answers as GNU sort in
my (admittedly) very limited testing.

I fixed some minor issues that GCC5 was squawking about (mainly unused
variables) and I changed the --parallel option PTHREAD_MUTEX_ADAPTIVE_NP
behavior to PTHREAD_MUTEX_ERRORCHECK (the default POSIX behavior).  DF
does not have the former flag implemented.
Delta File
+1,597 -0 usr.bin/sort/file.c
+1,230 -323 usr.bin/sort/sort.c
+1,302 -0 usr.bin/sort/coll.c
+1,143 -0 usr.bin/sort/bwstring.c
+462 -286 usr.bin/sort/sort.1
+691 -0 usr.bin/sort/radixsort.c
+1,007 -2,451 20 files not shown
+7,432 -3,060 26 files

DragonFlyBSD — usr.bin/localedef collate.c avl.c

Add localedef(1), a locale definition generator tool

The localedef tool can read entire (and unmodified) CLDR posix definition
files, and generate all 6 LC categories: LC_COLLATE, LC_CTYPE, LC_TIME,
LC_NUMERIC, LC_MONETARY and LC_MESSAGES.

The last 4 of those aren't needed.  We already have a tool that generates
msgdef, timedef, moneydef and numericdef.  In the immediate future,
localedef will only be used generate LC_COLLATE files in a new format.
This will render colldef files unreadable, thus colldef will be removed
when this happens.

In the future, localedef will be tasked to generate LC_CTYPE files as
well.  When that happens, the mklocale tool will be retired.

While localedef *can* read pristine POSIX files (which causes 6 files
to be generated), it will given files with only the LC_COLLATE part,
which will also have all the white space removed as well.  Remove just
the spaces can save megabytes.

This tool has a long history with Solaris [1].  The Nexenta developers
modified it to read CLDR files and created the much richer collation
formats.  The libc collation functions have to be modified to read the
new format (called "DragonFly-4.4") and to handle the new data structures.


    [12 lines not shown]
Delta File
+1,283 -0 usr.bin/localedef/collate.c
+997 -0 usr.bin/localedef/avl.c
+851 -0 usr.bin/localedef/scanner.c
+693 -0 usr.bin/localedef/parser.y
+652 -0 usr.bin/localedef/wide.c
+448 -0 usr.bin/localedef/ctype.c
+2,260 -0 11 files not shown
+7,184 -0 17 files

DragonFlyBSD — tools/tools/locale Makefile, tools/tools/locale/etc/charmaps widths.txt

cldr2def: Update to generate colldef replacement directory

The new localedef tool needs extracts for CLDR POSIX localization
definition files, and it needs the UTF-8 character map along with
the width definitions (mainly for Asian monitor support).

Since the LC_COLLATE handling is fundamentally different from the
first four groups, new sections to the cldr2def tool had to be
written, thus requiring me to brush up on my perl skills.

The finalize script (which I had previously written) was modified
to copy the widths and charmap files over to the regenerated
colldef directory (a drop-in replacement for share/colldef).

DragonFlyBSD — sys/net if.c, sys/netinet in.c

mcast: Use M_INTWAIT for multicast addresses allocation
Delta File
+4 -4 sys/net/if.c
+1 -1 sys/netinet/in.c
+1 -1 sys/netinet6/in6.c
+6 -6 3 files

DragonFlyBSD — sys/netinet6 nd6_rtr.c

inet6: Use M_INTWAIT for prefix and prefix's router allocation

Suggested-by: dillon@
Delta File
+2 -2 sys/netinet6/nd6_rtr.c
+2 -2 1 file

DragonFlyBSD — sys/net if.c if_var.h, sys/netinet in.c

ifaddr: Use M_INTWAIT for ifaddr allocation

Suggested-by: dillon@
Delta File
+6 -9 sys/net/if.c
+1 -1 sys/netinet/in.c
+1 -1 sys/net/if_var.h
+1 -1 sys/netinet6/in6.c
+9 -12 4 files

DragonFlyBSD — sys/vfs/dirfs dirfs_vnops.c dirfs_subr.c

dirfs - Do not acquire dirfs' mount token

- dirfs is still marked as non mp-safe so the VN ops are protected
  by VFS_MPLOCK()

DragonFlyBSD — sbin/hammer cmd_show.c, sys/vfs/hammer hammer_btree.c hammer_vfsops.c

sys/vfs/hammer: Add HAMMER_BTREE_TYPE_NONE

- No functional changes, but just makes things clearer.

- root_btree_{beg|end} has 0 (not used) for btype.
  Defining a macro for it makes code clearer than
  implicitly taking care of btype by 0 or non-0.