Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Commits on Jul 5, 2015
  1. <net/bpf.h>: Include <sys/param.h> for roundup2().

    Sascha Wildner authored
    Reported-by: marino
  2. kernel/uaudio: Fix weird indent.

    Sascha Wildner authored
Commits on Jul 4, 2015
  1. <sys/socket.h>: Whitespace cleanup.

    Sascha Wildner authored
  2. drm/linux: Fix WARN_ONCE()

    François Tigeot authored
  3. Use roundup2() from <sys/param.h> in a number of places.

    Sascha Wildner authored
  4. Makefile.inc: Add kernel install complete message

    John Marino authored
    All the targets that have an "starting" message also have a corresponding
    "complete" message except the installkernel target.  This is particularly
    obvious when checking logs to see if kernel successfully installed, so
    I'm adding that message here.
  5. i386 removal, part 12/x: Remove sys/platform/pc32.

    Sascha Wildner authored
  6. i386 removal, part 11/x: Remove wrong machine/ setup in the boot Make…

    Sascha Wildner authored
    …files.
    
    Several of the link targets were pointing to ${.CURDIR}/../../i386/...
    which doesn't exist. This is from times when our platform-specific
    headers were differently laid out and it was never noticed that after
    some point, it was no longer needed.
    
    In fact, sys/boot builds properly without all this, because:
    
    * -m32 ensures that the i386 platform is targeted by the compiler
    
    * Various (needed) __i386__ checks in sys/cpu/x86_64/include ensure that
      even on x86_64, the basic types have the right sizes.
    
    Confirmed by binary compare of /boot without and with the patch.
  7. i386 removal, part 10/x: Fixes in sys/boot to compile without platfor…

    Sascha Wildner authored
    …m/pc32.
  8. iconv sync 10/x: FreeBSD SVN 258316 + 283406 + 283418

    John Marino authored
    SVN 258316: Bug fixes in iconv(3) UTF-7 support.
    
    - Add ' to the list of directly encoded characters and * to the list of
      optionally directly encoded characters as per RFC 2152.
    
    - In _citrus_UTF7_mbtoutf16 on end of input when the next output character
      has only been partially decoded, save a copy of the buffer of input
      characters (not just its length).  On the next call with more input
      characters this buffer is reprocessed together with the new input to
      form a fully decoded output character.
    
    - At the end of a base64 encoded sequence fully discard '-' (BASE64_OUT)
      by decrementing psenc->chlen and i.  This is needed to make room in
      psenc->ch (input buffer) in case the next input character starts a new
      base64 encoded sequence.  And also, if this is the end of input and no
      output character can be returned, this brings the encoder in the initial
      state as indicated by _citrus_UTF7_stdenc_get_state_desc_generic which
      is used by the caller to distinguish between no output and partial
      output.
    
    - In _citrus_UTF7_mbrtowc_priv pass the s parameter (input pointer)
      directly to _citrus_UTF7_mbtoutf16 instead of a copy (s0).  This way s
      is updated correctly in case of errors.
    
    - In _citrus_UTF7_mbrtowc_priv when called with psenc->surrogate set
      (previous call did not have enough input), retrieve the previously
      decoded UTF-16 character fr
    
    SVN 283406: Fix decoding of UTF-7 when a base64 encoded chunk appears at
                the end of the input buffer.
    
    _citrus_UTF7_mbtoutf16 stored the decoder state at the beginning so it
    could restore this state on an incomplete character such that the next
    call would restart the decoding.  The problem was that "-" (end of base64
    mode) at the end of a string was also treated as an incomplete character
    but was also removed from the state buffer.  So the initial state would be
    restored (with base64 mode) and the next call would no longer see the "-"
    so it continued in base64 mode.
    
    This state saving/restoring isn't needed here.  It's already handled
    elsewhere (citrus_iconv_std.c:_citrus_iconv_std_iconv_convert) so just
    remove it.
    
    Also initialise *nresult.
    
    SVN 283418: (continued)
    
    When only 2 bytes can be read from a 4 byte UTF-16 character in a base64
    encoded chunk of a UTF-7 string, treat that as an incomplete character and
    return an error instead of a shift sequence and no error.
    
    Also check that the low 2 bytes have a valid value.
  9. iconv sync 9/x: FreeBSD SVN 260003

    John Marino authored
    In libiconv i18n modules, surround the unused static
    _citrus_xxx_pack_state() and _citrus_xxx_unpack_state() functions
    with #if 0 blocks for now
  10. iconv sync 8/x: FreeBSD SVN 281550

    John Marino authored
    Remove the const qualifier from iconv(3) to comply with POSIX:
    http://pubs.opengroup.org/onlinepubs/9699919799/functions/iconv.html
    Adjust all code that calls iconv
    
    Note: The libcpp Makefile cflag was added because the host iconv.h
          header was getting pulled in.  This always should have been the
          src version of iconv.h, but the error wasn't exposed until now.
  11. iconv sync 7/x: FreeBSD SVN 281798

    John Marino authored
    Fix improbable memory leak in _citrus_prop_read_str()
  12. iconv sync 6/x: FreeBSD SVN 279404

    John Marino authored
    Avoid lookup of CODESET aliases using unitialized path.  We do not use
    iconv.alias file so avoid using the vestiges of the code that do.
  13. iconv sync 5/x: FreeBSD SVN 269529 + 269530 + 275805

    John Marino authored
    - Add xrefs for other functions (in man page, then fix ordering)
    - Fix incorrect type of "invalids" argument in __iconv() prototype
  14. iconv sync 4/x: FreeBSD SVN 267438

    John Marino authored
    iconv_open: initialize ci_ilseq_invalid field of _citrus_iconv_shared
                struct after allocation with malloc
    
    iconv_list: reduce a memory leak by copying strings only once
  15. iconv sync 3/x: FreeBSD SVN 267437

    John Marino authored
    Replace malloc+memset with calloc
  16. iconv sync 2/x: FreeBSD SVN 263986

    John Marino authored
    - In the libiconv module for ISO 2022, restore the original order of the
      fields of a private struct such that variables of this type are
      initialized correctly.  This fixes conversion from ISO 2022
    - In the libiconv module for EUC-TW, replace 2^cs with 1<<cs.  This fixes
      conversion from EUC-TW
    - Synchronize iconv code from NetBSD.  In most cases this only updates the
      RCS id because the changes are already there or are NetBSD specific.
      * citris_csmapper.c   : Add a comment
      * citrus_db_factory.c : Remove put16()
      * citrus_iconv.c      : Return EINVAL on error
      * citrus_mapper.c     : Return EINVAL on error
      * citrus_stdenc.c     : Return EINVAL on error
      * citrus_memstream.c  : Fix type of variable
      * citrus_prop.h       : Sync definition of _CITRUS_PROP_HINT_END
      * citrus_mapper_std.c : Plug memory leak
    
    Obtained from: NetBSD
  17. iconv sync 1/x: FreeBSD SVN 262441

    John Marino authored
    Consistently pass around context information using a simple pointer.
    This fixes some dereferencing bugs in Chinese character set conversions.
  18. tmpfs - Fix write-append/mmap-read race

    Matthew Dillon authored
    * tmpfs_write() was not extending the target file atomically with the
      write via a file node lock.  Although the vnode is locked exclusively,
      this only prevents read() and write() related races.  lseek() and memory
      mapped reads could still race.
    
    * Adjust the NODE LOCK to cover the entire tmpfs_write() operation.  This
      fixes races against lseek() or stat() which would otherwise allow the
      new post-append file size to be returned before the write completes.
    
    						-Matt
    
    Reported-by: Ben Woolley <tautolog@gmail.com>
Commits on Jul 3, 2015
  1. drm/i915: Sync with Linux 3.14 a tiny bit

    François Tigeot authored
    The get_page() and set_pages_uc() Linux functions have been
    implemented, we can use them.
  2. @kusumi
  3. @kusumi

    sys/vfs/hammer: Change "xxx-map" to "xxxmap"

    kusumi authored
    - "xxxmap"s seem to be canonical terms rather than "xxx-map"s
      where "xxx"s are name of zones.
    
    - This commit only changes comments. Variable names and other
      comments, etc already have "xxxmap".
  4. <sys/lock.h>: Fix comment typo.

    Sascha Wildner authored
    Submitted-by:  Yellow Rabbit <yrabbit@sdf.lonestar.org>
Commits on Jul 2, 2015
  1. @kusumi

    sys/vfs/hammer: Change "bigblock" to "big-block"

    kusumi authored
    - There are(or were) several terms for 8MB chunk, for example
      "big-block", "bigblock", "big block", "large-block", etc but
      "big-block" seems to be the canonical term.
    
    - Changes are mostly comments and some in printf and hammer(8).
      Variable names (e.g. xxx_bigblock_xxx) remain unchanged.
    
    - The official design document as well as much of the existing
      code (excluding variable and macro names) use "big-block".
      https://www.dragonflybsd.org/hammer/hammer.pdf
    
    - Also see e04ee2d and the previous commit.
  2. @kusumi

    sys/vfs/hammer: Change "big block" to "big-block"

    kusumi authored
    - This word refers to 8MB chunk in hammer's blockmap layers,
      not literally "big" "block".
    
    - Changes are mostly comments and some in printf and hammer(8).
    
    - The official design document as well as much of the existing
      code (excluding variable and macro names) use "big-block".
      https://www.dragonflybsd.org/hammer/hammer.pdf
    
    - Also see e04ee2d.
  3. @kusumi

    sys/vfs/hammer: Revert one line from ccdea23

    kusumi authored
    - This needed to be kept with "btree" zone.
    
    - No binary diff since these two macros are the same,
      and also this code has been #if0'd.
Commits on Jul 1, 2015
  1. kernel - Improve basic entropy collector

    Matthew Dillon authored
    * Faster time-buffered period in first 120 seconds after boot to help seed
      the generator.  This helps when other sources such as RDRAND are not available.
    
    * Use a systimer instead of tsleep to make the 'random' loop delay more random.
    
    * Do a better job incorporating interrupt randomness with a combination of
      counter and low TSC bits.
    
    * Get rid of the double-time-buffering restrictions (one in the thread, one in
      NANOUP_EVENT().  Also incorporate the low TSC bits in different bit positions
      to try to avoid XOR deconstruction against tv_nsec.
    
    Reported-by: tuxillo
  2. kernel/acpi_thermal: Fix comment typo.

    Sascha Wildner authored
  3. bsd-family-tree: Sync with FreeBSD (for DragonFly 4.2.0).

    Sascha Wildner authored
Commits on Jun 30, 2015
  1. syscons - reenable cursor

    Matthew Dillon authored
    * Cursor was accidently disabled in a prior commit,
      reenable it.
    
    Reported-by: swildner
  2. drm - Used fixed start address instead of vm_map_hint() in i915_gem_m…

    Matthew Dillon authored
    …map_ioctl()
    
    * We tried to fix i915_gem_mmap_ioctl() returning a valid 'NULL' address for
      the requested mapping by passing the vm_map_hint() address into it.  This
      worked, but for reasons unknown wound up destabilizing X11 itself.
    
    * So, instead of using 0, and instead of using vm_map_hint(), the 'hint'
      starting address is now fixed at PAGE_SIZE (0x0000000000001000).  And this
      seems to solve the destabilization.
Something went wrong with that request. Please try again.