Displaying 1 50 of 33,728 commits (0.009s)

DragonFlyBSD — etc/mtree BSD.usr.dist BSD.local.dist, share/colldef se_NO.UTF-8.src es_ES.UTF-8.src

Add 17 new locales and really remove Latin

Now that locale defintions are generates, it's easy to add more.
I've added the following new locale defintions:

  * en_HK ISO-8859-1  (Hong Kong/English)
  * en_HK UTF-8
  * en_PH ISO-8859-1  (Phillipines/English)
  * en_PH UTF-8
  * en_SG ISO-8859-1  (Singapore/English)
  * en_SG UTF-8
  * es_AR ISO-8859-1  (Argentina/Spanish)
  * es_AR UTF-8
  * es_CR ISO-8859-1  (Costa Rica/Spanish)
  * es_CR UTF-8
  * es_MX ISO-8859-1  (Mexico/Spanish)
  * es_MX UTF-8
  * se_FI UTF-8       (Finland/Northern Sami)
  * se_NO UTF-8       (Norway/Northern Sami)
  * sv_FI ISO-8859-1  (Finland/Swedish)
  * sv_FI ISO-8859-15
  * sv_FI UTF-8

There were a few places la_LN (Latin) was hidden so I've really
removed it now.

DragonFlyBSD — . Makefile_upgrade.inc, etc/mtree BSD.usr.dist BSD.local.dist

Remove kk_KZ.PT154 and all latin locales

Latin, strangely enough, is not covered by CLDR POSIX files.  Thus,
it is impossible to completely load the locales.  Both LC_CTYPE and
LC_COLLATE need updated files.  Thus, all version of the Latin
locales needs to go.

The kk_KZ locale just came back with the UTF-8 codeset, but there are
character maps for PT154, so it's impossible to continue to have this
locale.

DragonFlyBSD — share/colldef lv_LV.UTF-8.src kk_KZ.UTF-8.src, share/ctypedef Makefile lt_LT.ISO8859-13.src

locales: also update lv_LV, pt_BR and kk_KZ

These were stuck with old definitions due to the cldr2def's configure
file missing these three locales.

DragonFlyBSD — tools/tools/locale Makefile, tools/tools/locale/etc charmaps.xml

Activate kk_KZ, lv_LV, and pt_BR locales

These three locales already existed, but they weren't being updated.
I've adjusted the xml configuration to get them building (minus the
kk_KZ.PT154 locale which will be removed).

While here, update the tools/tools/locale Makefile to replace all
six LC categories in /usr/src/share with the "make install" target,
and then install them on a live system with "make post-install" target.

DragonFlyBSD — share/colldef map.UTF-8 Makefile, share/ctypedef Makefile

Fix cldr2def tool and regenerate 2 makefiles as a result

I accidently changed the wrong makefile so both colldef and ctype makefiles
wrong wrong.  I adjusted the tool and regenerated the makefiles.

While here, remove the unused map.UTF-8 that should have been removed
earlier but wasn't due to a git misuse.

DragonFlyBSD — share/colldef Makefile

Unbreak world

I didn't mean to update the share/colldef Makefile yet, and an
incorrect version got committed.  This should fix world.
Delta File
+2 -1 share/colldef/Makefile
+2 -1 1 file

DragonFlyBSD — include setjmp.h unistd.h

buildworld - Fix bootstrapping from older worlds

* __returns_twice doesn't exist in older sys/cdefs.h, fix bootstrapping by
  shoehorning a default if it does not exist.
Delta File
+4 -0 include/setjmp.h
+4 -0 include/unistd.h
+8 -0 2 files

DragonFlyBSD — share/mklocale zh_Hans_CN.GB18030.src UTF-8.src

Remove obsolete mklocale directory and its old src files

DragonFlyBSD — . Makefile.inc1 Makefile_upgrade.inc, share Makefile

Use localedef(1) to generate LC_CTYPE, switch off mklocale

Active the new share/ctypedef directory and deactivate share/mklocale.
This means the LC_CTYPE files will be generated by localedef(1) now.
As a result, remove mklocale from bootstrap tools and remove it via
"make upgrade"
Delta File
+1 -1 Makefile.inc1
+2 -0 Makefile_upgrade.inc
+1 -1 share/Makefile
+4 -2 3 files

DragonFlyBSD — lib/libc/locale euc.c ascii.c

libc/locale: Revamp CTYPE support (from Illumos)

The LC_CTYPE format didn't change, but libc stills needs a revamp
to properly use the new LC_CTYPE files that localedef(2) generates.
Delta File
+308 -129 lib/libc/locale/euc.c
+0 -192 lib/libc/locale/ascii.c
+41 -78 lib/libc/locale/rune.c
+19 -30 lib/libc/locale/setrunelocale.c
+22 -24 lib/libc/locale/utf8.c
+33 -8 lib/libc/locale/mskanji.c
+156 -68 10 files not shown
+579 -529 16 files

DragonFlyBSD — lib/libc/locale ascii.c

libc/locale: Replace ascii.c, it was removed too soon

I am not sure what happened, I limited the commit commit but somehow
this deleted file got included in a recent commit.  It will be removed
again shortly.
Delta File
+192 -0 lib/libc/locale/ascii.c
+192 -0 1 file

DragonFlyBSD — sys/kern/dsched/bfq bfq.c

kernel/dsched: Use <machine/inttypes.h>, not <inttypes.h>.
Delta File
+1 -1 sys/kern/dsched/bfq/bfq.c
+1 -1 1 file

DragonFlyBSD — sys/kern vfs_quota.c

kernel/vfs_quota: Remove unneeded <inttypes.h> inclusion.
Delta File
+0 -1 sys/kern/vfs_quota.c
+0 -1 1 file

DragonFlyBSD — share/ctypedef ja_JP.UTF-8.src ko_KR.UTF-8.src

Add share/ctypedef directory (it will replace mklocale)

This directory will generate new LC_CTYPE files.  They require a
significant update to libc/locale so it is not hooked into the
build yet.  This the the produce of the clr2def tool upgrade
and the generated codeset maps at tools/tools/locale/etc/final-maps.

DragonFlyBSD — lib/libc/locale ascii.c, share/colldef widths.txt

Pregenerate maps for LC_CTYPE generation

These are the products of the new convert_map.pl which localedef
will use to generate LC_CTYPE.  To avoid duplication, these maps
will be used where they are (in tools/tools/locale/etc/final-maps)

It turns out that the widths.txt file is only used for LC_CTYPE,
so it's being moved as well as being removed from share/colldef.

DragonFlyBSD — sys/dev/drm/include/linux ww_mutex.h, sys/kern sys_mqueue.c

kernel: Use <sys/stdbool.h> in kernel code, not <stdbool.h>.

DragonFlyBSD — tools/tools/locale/etc/charmaps Big5HKSCS.TXT ARMSCII-8.TXT

Fix three clr2def2 character maps

The localedef(1) tool does not allow two symbols to be mapped to
the same unicode character.  I actually don't know if this is really
"wrong", but I had to adjust a couple of character sets that
violated this rule: ARMSCII-8 and Big5HKSCS.  Neither are present
on Illumos so that may explain why localedef(1) wasn't prepared
to do anything except throw an error.

The CP866 charset had a trailing garbage at the end of the file that
localedef didn't like, so I removed it.

DragonFlyBSD — tools/tools/locale Makefile, tools/tools/locale/tools convert_map.pl cldr2def.pl

clr2def: Add LC_CTYPE source file generation support

I added the capability to generate LC_CTYPE source files (really this is
basically extracting a section from the POSIX files) but there was some
logic to figure out how to use the least amount of files because some of
them are large.

I compromised on a scheme that makes two reductions.  The first eliminates
true duplicates and uses the SAME+= mechanism to create symlinks.  However,
this leaves still some duplicates because while the output is distinct,
the source files are the same (e.g. en_US.ISO8859* uses the same input file
as en_US.UTF-8 locale, but the LC_CTYPE products differ.  The script
identifies those are replaces them with symlinks.  So it looks like a lot
of files but really it's only about 12 or so.

During the actual LC_CTYPE generating, character maps are needed.  I added
a Illumos tool to do this, which I had to modify.  Unlike Illumos, we will
pregenerate the maps that the tool (convert_map.pl) produces.  I had to
spend hours troubleshooting various "invalid" inputs so this is definitely
something that should not be repeated in the build.

DragonFlyBSD — sys/dev/disk/iscsi/initiator isc_soc.c

kernel/iscsi: Remove unneeded <signal.h> inclusion.

DragonFlyBSD — share/colldef Makefile, share/monetdef hy_AM.ARMSCII-8.src Makefile

Fix zh_Hans_CN.GB2312 locale

It turns out that using a commented source file for LC_* file generation
really isn't a good idea.  In the cldr2def tool's charmap.xls, the
low ASCII is transformed to the "Full width" versions, but the first
byte just happens to be "#".  Yes, that's right, the comment character.

Since all comments are either "#" or or followed by a space, I can fix
the resulting broken zh_Hans_CN.GB2312 by alterning the grep instruction.
However, if we ever have a legitimate single "#" character as input, then
this won't work anymore.

The Armenian changes are a result to a tool correction that will be
commited shortly.

DragonFlyBSD — sys/kern subr_unit.c, sys/netgraph7/bluetooth/socket ng_btsocket.c ng_btsocket_hci_raw.c

kernel: Use <sys/bitstring.h> instead of <bitstring.h>.

DragonFlyBSD — include bitstring.h, sys/sys bitstring.h

<bitstring.h>: Move it to /usr/src/sys/sys so kernel files can use it too.

To avoid using userspace headers in the kernel.
Delta File
+21 -183 include/bitstring.h
+199 -0 sys/sys/bitstring.h
+220 -183 2 files

DragonFlyBSD — sys/dev/agp agp_i810.c

agp: Remove some debugging printfs
Delta File
+0 -2 sys/dev/agp/agp_i810.c
+0 -2 1 file

DragonFlyBSD — sys/dev/drm/include/linux hashtable.h

drm: Add linux/hashtable.h

DragonFlyBSD — sys/bus/u4b Makefile, sys/bus/u4b/gadget g_audio.c g_modem.c

kernel/usb4bsd: Install gadget example drivers and fix usbtest.

Taken-from: FreeBSD

DragonFlyBSD — sys/bus/u4b usb_dragonfly.h

kernel/usb4bsd: Set USB_HAVE_MSCTEST_DETACH and adjust include guard.
Delta File
+4 -3 sys/bus/u4b/usb_dragonfly.h
+4 -3 1 file

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