dragonfly.git
10 years agocdefs.h: ignore known rcs id macros
Franco Fichtner [Fri, 3 Jan 2014 10:47:08 +0000 (11:47 +0100)]
cdefs.h: ignore known rcs id macros

This helps to retain history, reduces FreeBSD porting diffs
slightly and won't introduce binary changes.  Adjust the
porting doc accordingly.

Discussed-with: swildner
Taken-from:     FreeBSD

10 years agokernel - Fix keyboard probe for chromebooks (2)
Matthew Dillon [Fri, 3 Jan 2014 02:11:26 +0000 (18:11 -0800)]
kernel - Fix keyboard probe for chromebooks (2)

* Chromebooks (Acer C720 at least) appear to be using a BIOS emulator
  for the i8042 which gets really unhappy if the keyboard port is disabled,
  even temporarily.

* The original FreeBSD code disables and enables the keyboard port all the
  time, and even sends discrete disable commands (instead of just trusting
  that the command register flags will do the job).

  In addition, the PSM probe code may also disable the keyboard port
  temporarily while enabling and messing with the AUX port.

* Remove these actions.  The keyboard probe will now only disable the
  keyboard port during the probe and init_keyboard() call, which then
  proceeds to issue sufficient commands to the keyboard to wake it up
  again.

  The PSM probe now no longer touches the keyboard port disable/interrupt
  bits.  At all.  Theoetically it should not be necessary to disable the
  keyboard port while probing the aux port.

* The saved command_mask in the softc is no longer used, remove it.

* It is unclear whether the controller properly prioritizes data returned
  from controller commands in-front of the data returned from the keyboard
  or aux ports.  However, as it stands now, we cannot safely disable the
  data from the ports while issuing controller commands and waiting for
  controller command responses so...

10 years agokernel - Fix keyboard probe for chromebooks
Matthew Dillon [Fri, 3 Jan 2014 01:14:08 +0000 (17:14 -0800)]
kernel - Fix keyboard probe for chromebooks

* Fix a broken conditional that was preventing init_keyboard() from
  ever being called.

* Reorder the sequence of code in init_keyboard(), placing the soft-reset
  command first and adding a SETLEDS command later on.

* My chromebook (Acer C720) required that a SETLEDS command be sent to
  the keyboard before it will send any keystrokes to us, for some reason.

10 years agoUpdate ath.4 and ath_hal.4 manual pages from FreeBSD.
Sascha Wildner [Fri, 3 Jan 2014 01:55:53 +0000 (02:55 +0100)]
Update ath.4 and ath_hal.4 manual pages from FreeBSD.

10 years agonetmap: reduce upstream diff output; bring back __FBSDIDs
Franco Fichtner [Fri, 3 Jan 2014 00:38:38 +0000 (01:38 +0100)]
netmap: reduce upstream diff output; bring back __FBSDIDs

10 years agokernel/ath: Make it compile into the kernel again and re-add to GENERIC.
Sascha Wildner [Fri, 3 Jan 2014 00:22:08 +0000 (01:22 +0100)]
kernel/ath: Make it compile into the kernel again and re-add to GENERIC.

Full list of changes:

* Adjust the 'files' file for changed ath_hal path and additional
  source.

* Add options from FreeBSD and comment those out which are not
  compiling/used. Add the remaining ones to the LINT kernels for
  additional build checking.

* Fix some typos in the ar9300 code.

* Use ath_hal_ether_sprintf() where needed.

* Add some casts to work around -Wenum-compare and -Wformat breakage.

* Comment out some unused struct ifp's and FreeBSD's ktr.

* Slightly readjust ATH_RXBUF and ATH_TXBUF handling to let the kernel
  options of the same name override the defaults. In the GENERIC kernel
  and module everything stays the same.

* Use the (slightly better structured) FreeBSD Makefile for ath_hal.

All kernels compile with ath(4) as of this commit.

10 years agonetmap: properly store private device data
Franco Fichtner [Fri, 3 Jan 2014 00:02:10 +0000 (01:02 +0100)]
netmap: properly store private device data

Yes, one could go through the trouble of redefining the cdevpriv
functions as macros returning wild errors, but it looks a lot
cleaner in native code.

10 years agonetmap: change header includes
Franco Fichtner [Thu, 2 Jan 2014 22:17:46 +0000 (23:17 +0100)]
netmap: change header includes

Suggested-by: sephe
FWIW, kqfilter() port is not really going well as poll() is doing
a bunch of loosely related drive-by actions that somehow form the
API.  The best approach would be to thin out the implementation to
at least get the bare core functionality working.  That'll also
include writing new userland glue.  Feels more like a fork than a
port that way.  :(

10 years agosyscall.9: Add a rough explanation of how a syscall ends up in the kernel.
Sascha Wildner [Thu, 2 Jan 2014 20:30:09 +0000 (21:30 +0100)]
syscall.9: Add a rough explanation of how a syscall ends up in the kernel.

10 years agoix: Import Intel ixgbe-2.5.15
Sepherosa Ziehau [Sun, 24 Nov 2013 13:41:57 +0000 (21:41 +0800)]
ix: Import Intel ixgbe-2.5.15

MSI and legacy interrupt (line based interrupt) are working as of this
commit.  polling(4) will be supported and MSI-X will be brought back in
the later commits.

ixgbe is renamed to ix, which is consistent w/ the interface name, and
this makes 'ifconfig ix0' work as expected.

Local changes:
- Reorganize RX and TX ring data structure; nuke useless 'queue'.
- Rework RX and TX ring creation, destroy, initialization and cleanup.
- Reorganize interrupt related data structure.  This also prepares for
  bringing MSI-X back.
- Rework interrupt allocation.
- Rework MSI and legacy interrupt handler.
- Enable RSS (2 RX rings) even if MSI or legacy interrupt is used.
- Apply DragonFly specific RSS configuration.
- Partially rework RX code path.
- Enable TX header write-back.
- Rework TX code path and TX watchdog mechanism.
- Rework busdma(9) related bits.
- Rework ifnet.if_ioctl method.
- Reorganize initialize and stop code.
- Reorganize attach and detach code.
- Code clean up.

10 years agoath - Temporarily remove ath from kernel build
Matthew Dillon [Thu, 2 Jan 2014 07:03:46 +0000 (23:03 -0800)]
ath - Temporarily remove ath from kernel build

* ATH is currently a module only, until we can fix conf/files and such
  again.

* Remove unneeded -I PATH

10 years agoath - Basic report - Additional DragonFly compatibility work
Matthew Dillon [Thu, 2 Jan 2014 06:51:33 +0000 (22:51 -0800)]
ath - Basic report - Additional DragonFly compatibility work

* Implement a quick and dirty if_start() as our ifp API is somewhat
  different.  FreeBSD has a ath_transmit() (per packet), which we do
  not have (and do not really want).

* The FreeBSD OACTIVE mechanics are completely different from ours.  Rip it
  out and add in DFly mechanics.  DFly uses OACTIVE for queue control.
  (not perfect but...)

* Add some more wlan_serialize_*() calls that I had forgotten.

* Fix a m_getcl() and several other instances where M_* flags were
  being used for mbuf operations (DragonFly renamed those to MB_* flags).

* Fix a m_getm() call in ath_edma_rxbuf_init() to use m_getjcl().

* Fix a bug in my previous TAILQ_FOREACH_SAFE() fix, in
  ath_edma_recv_proc_deferred_queue(), that I introduced,
  and another in ath_txfrag_cleanup().

* Fix the mbuf DMA segment defragmentation code in
  ath_tx_dmasetup().  DragonFly has a neat call that does all the work
  for us.

* Fix an apparent bug in ath_txq_sched() (-> adrian)

* Change ATH_TXBUF and ATH_RXBUF defaults to 256.

* Add missing MODULE directives in ath_dfs (null.c).

* Add AR9300* support from contrib, taken from FreeBSD

10 years agoath - AR9300 Basic re-port, base code compile
Matthew Dillon [Thu, 2 Jan 2014 02:40:37 +0000 (18:40 -0800)]
ath - AR9300 Basic re-port, base code compile

* printf->kprintf.

* Minor compile fixes.

10 years agoath - Reimport fresh from FreeBSD 01-Jan-2014 for re-port
Matthew Dillon [Thu, 2 Jan 2014 02:29:26 +0000 (18:29 -0800)]
ath - Reimport fresh from FreeBSD 01-Jan-2014 for re-port

* Bring in ar9300 contrib files

10 years agoieee80211 - Sync support for atheros
Matthew Dillon [Thu, 2 Jan 2014 01:40:54 +0000 (17:40 -0800)]
ieee80211 - Sync support for atheros

* Add some stuff from FreeBSD to support the atheros refresh.

10 years agoath - Basic re-port, base code compile
Matthew Dillon [Thu, 2 Jan 2014 01:31:41 +0000 (17:31 -0800)]
ath - Basic re-port, base code compile

* First re-port pass, make base code modifications to work with DragonFly.

* Remove ath locks (mostly using #define's).

* Protect entry points with our global wlan_serializer.  This includes:
- callout functions
- PCI entry/exit
- ifnet access (typically already protected from the DFly kernel).
- taskqueue functions
- sysctl functions

* Rework the sysctl hierarchy a little.

* Fixup malloc->kmalloc, free->kfree, snprintf->ksnprintf.
* Fixup ether_sprintf() use cases.

* Fixup bad M_NOWAIT semantics from FreeBSD.  Convert all such to
  M_INTWAIT.

* IFF_RUNNING and IFF_OACTIVE adjustments.

* Temporarily #if 0 out code that our wlan infrastructure does not
  yet support.

* Add appropriate DRIVER and MODULE declarations for module handling.

* #include path adjustments

* API differences in bus_dma_tag_create(), bus_dmamap_load_mbuf_sg(),
  and related interactions.

* Several TAILQ_FOREACH_SAFE() interactions were broken (pushed to Adrian).

* Revert field name for now (tap->txa_tid -> tap_txa_ac).  We need to fixup
  our wlan infrastructure to rename txa_ac to txa_tid.

* va_list/va_start/va_end -> __va_list/__va_start/__va_end.

10 years agoath - Basic #include adjustments
Matthew Dillon [Wed, 1 Jan 2014 19:18:27 +0000 (11:18 -0800)]
ath - Basic #include adjustments

* Basic include adjustments

10 years agoath - Remove __FBSDID
Matthew Dillon [Wed, 1 Jan 2014 19:05:39 +0000 (11:05 -0800)]
ath - Remove __FBSDID

* Remove __FBSDID

10 years agoath - Basic Makefile infrastructure
Matthew Dillon [Wed, 1 Jan 2014 19:04:09 +0000 (11:04 -0800)]
ath - Basic Makefile infrastructure

10 years agoath - Reimport fresh from FreeBSD 01-Jan-2014 for re-port
Matthew Dillon [Wed, 1 Jan 2014 18:28:42 +0000 (10:28 -0800)]
ath - Reimport fresh from FreeBSD 01-Jan-2014 for re-port

* Bring the FreeBSD files in verbatim for the atheros driver.  Create
  a sub-directory "ath", move if_ath* and ah_* into ath/

* as-of (fbsd) git commitid 843c1c95adbb59b90772ccb36241906ccf1923ed

10 years agonetmap: d_poll -> d_kqfilter
Franco Fichtner [Wed, 1 Jan 2014 21:44:26 +0000 (22:44 +0100)]
netmap: d_poll -> d_kqfilter

netmap_poll() is a monster.  No clue how to move it over
to the kqfilter API just yet.

10 years agonetmap: fix all the cdev prototypes
Franco Fichtner [Wed, 1 Jan 2014 20:08:08 +0000 (21:08 +0100)]
netmap: fix all the cdev prototypes

While there, reduce diff noise against vanilla sources.

10 years agonetmap: more porting; undo some mistakes
Franco Fichtner [Wed, 1 Jan 2014 18:30:34 +0000 (19:30 +0100)]
netmap: more porting; undo some mistakes

Probably adds new issues, too.  There's some VM magic,
cdev_t adaption and a couple of network internals left.

10 years agokernel - if_rue (old usb stack) fixes
Matthew Dillon [Wed, 1 Jan 2014 17:41:07 +0000 (09:41 -0800)]
kernel - if_rue (old usb stack) fixes

* Fix the more obvious lockups and locking issues with if_rue (a usb
  ethernet device).

* Still breaks when you run ifconfig sometimes (locks up).

10 years agoboot - Hack workarounds for chromebook 'SeaBIOS' issues
Matthew Dillon [Wed, 1 Jan 2014 17:34:50 +0000 (09:34 -0800)]
boot - Hack workarounds for chromebook 'SeaBIOS' issues

* The google seabios hack to boot legacy-mode only reports 16MB of extended
  memory.  For now, enforce a minimum of 64MB.

  This was preventing the loader from being able to load the kernel+modules.

* Fix a bug in biosdisk.c to force bounce buffers if the target buffer
  is beyond the segment address limit, in addition to checking for
  64KB boundary crossings.

10 years agonetmap: revamped documentation
Franco Fichtner [Wed, 1 Jan 2014 10:40:18 +0000 (11:40 +0100)]
netmap: revamped documentation

10 years agonetmap: lock(9), k*() foo, no ifdefs
Franco Fichtner [Sat, 28 Dec 2013 13:01:23 +0000 (14:01 +0100)]
netmap: lock(9), k*() foo, no ifdefs

The ifdef glue is a bit hard to see through.  Remove it now to
bring it back later with appropriate ifdefs for DragonFly.

10 years agonetmap: initial import of netmap core
Franco Fichtner [Tue, 24 Dec 2013 11:27:47 +0000 (12:27 +0100)]
netmap: initial import of netmap core

Vanilla sources; not hooked up to the build.

Taken-from: https://code.google.com/p/netmap/ (3b385fe7854d)

10 years agoBump copyrights.
Sascha Wildner [Tue, 31 Dec 2013 23:51:08 +0000 (00:51 +0100)]
Bump copyrights.

10 years agoacpi_sony(4): Free the sysctl_ctx upon detaching.
Sascha Wildner [Tue, 31 Dec 2013 23:41:17 +0000 (00:41 +0100)]
acpi_sony(4): Free the sysctl_ctx upon detaching.

Fixes crashes when unloading the module.

10 years agolibc: use literal parens in signal.3
Franco Fichtner [Tue, 31 Dec 2013 14:46:03 +0000 (15:46 +0100)]
libc: use literal parens in signal.3

2550 -> 2528.

10 years agolibc: sprinkle previous fairy dust around here as well
Franco Fichtner [Tue, 31 Dec 2013 14:06:42 +0000 (15:06 +0100)]
libc: sprinkle previous fairy dust around here as well

Last remaining offender is signal.3, but that needs more tinkering.

10 years agomdocml: adjust local files; fix small merge glitch
Franco Fichtner [Tue, 31 Dec 2013 13:52:26 +0000 (14:52 +0100)]
mdocml: adjust local files; fix small merge glitch

10 years agoMerge branch 'vendor/MDOCML'
Franco Fichtner [Tue, 31 Dec 2013 13:38:23 +0000 (14:38 +0100)]
Merge branch 'vendor/MDOCML'

Conflicts:
contrib/mdocml/index.sgml
contrib/mdocml/lib.in
contrib/mdocml/mandoc.3
contrib/mdocml/mandoc.c
contrib/mdocml/mandoc.h
contrib/mdocml/mdoc.7
contrib/mdocml/roff.c

10 years agoImport mdocml-1.12.3
Franco Fichtner [Tue, 31 Dec 2013 13:10:20 +0000 (14:10 +0100)]
Import mdocml-1.12.3

10 years agokernel/vmx: Fix typo in a message.
Sascha Wildner [Tue, 31 Dec 2013 00:58:44 +0000 (01:58 +0100)]
kernel/vmx: Fix typo in a message.

10 years agoBring in FreeBSD's perror(1) utility.
Sascha Wildner [Mon, 30 Dec 2013 23:05:28 +0000 (00:05 +0100)]
Bring in FreeBSD's perror(1) utility.

10 years agopkill.1: Re-adjust the manual page a bit.
Sascha Wildner [Mon, 30 Dec 2013 22:53:06 +0000 (23:53 +0100)]
pkill.1: Re-adjust the manual page a bit.

10 years agopaste(1): Sync with FreeBSD (mainly for multibyte char support).
Sascha Wildner [Mon, 30 Dec 2013 22:30:54 +0000 (23:30 +0100)]
paste(1): Sync with FreeBSD (mainly for multibyte char support).

While here, also mention the affecting environment variables in the
manual page.

10 years agorev(1): Add multibyte char support.
Sascha Wildner [Mon, 30 Dec 2013 21:20:59 +0000 (22:20 +0100)]
rev(1): Add multibyte char support.

Taken-from: FreeBSD

10 years agoul(1): Sync with FreeBSD (mainly for multibyte char support).
Sascha Wildner [Mon, 30 Dec 2013 21:10:28 +0000 (22:10 +0100)]
ul(1): Sync with FreeBSD (mainly for multibyte char support).

10 years agolibdevinfo|libnetgraph7: simplify parens usage in function arguments
Franco Fichtner [Mon, 30 Dec 2013 13:26:57 +0000 (14:26 +0100)]
libdevinfo|libnetgraph7: simplify parens usage in function arguments

10 years agoshare/man: simplify parens usage in function names
Franco Fichtner [Mon, 30 Dec 2013 13:15:25 +0000 (14:15 +0100)]
share/man: simplify parens usage in function names

10 years agocolumn(1): Sync with FreeBSD (mainly for multibyte char support).
Sascha Wildner [Mon, 30 Dec 2013 03:26:44 +0000 (04:26 +0100)]
column(1): Sync with FreeBSD (mainly for multibyte char support).

10 years agoRemove main() prototypes.
Sascha Wildner [Mon, 30 Dec 2013 03:03:31 +0000 (04:03 +0100)]
Remove main() prototypes.

10 years agocolrm(1): Sync with FreeBSD (mainly for multibyte char support).
Sascha Wildner [Mon, 30 Dec 2013 01:54:49 +0000 (02:54 +0100)]
colrm(1): Sync with FreeBSD (mainly for multibyte char support).

10 years agocolcrt(1): Sync with FreeBSD (mainly for multibyte char support).
Sascha Wildner [Mon, 30 Dec 2013 01:49:40 +0000 (02:49 +0100)]
colcrt(1): Sync with FreeBSD (mainly for multibyte char support).

10 years agomem.4: Change RETURN VALUES -> ERRORS.
Sascha Wildner [Sun, 29 Dec 2013 22:55:37 +0000 (23:55 +0100)]
mem.4: Change RETURN VALUES -> ERRORS.

10 years agomandoc(1): Allow ERRORS section headers in section 4 manual pages.
Sascha Wildner [Sun, 29 Dec 2013 22:55:25 +0000 (23:55 +0100)]
mandoc(1): Allow ERRORS section headers in section 4 manual pages.

They are useful for various purposes and used currently.

10 years agolibpthread: simplify parens usage in function arguments
Franco Fichtner [Sun, 29 Dec 2013 21:30:03 +0000 (22:30 +0100)]
libpthread: simplify parens usage in function arguments

10 years ago<monetary.h>: Expose strfmon_l()'s prototype properly.
Sascha Wildner [Sun, 29 Dec 2013 18:01:36 +0000 (19:01 +0100)]
<monetary.h>: Expose strfmon_l()'s prototype properly.

10 years agogetwc.3: Fix typo.
Sascha Wildner [Sun, 29 Dec 2013 18:00:23 +0000 (19:00 +0100)]
getwc.3: Fix typo.

10 years agombsrtowcs.3: Add missing type.
Sascha Wildner [Sun, 29 Dec 2013 18:00:10 +0000 (19:00 +0100)]
mbsrtowcs.3: Add missing type.

10 years agoRemove various manual pages which have newer copies in libc/locale.
Sascha Wildner [Sun, 29 Dec 2013 14:42:08 +0000 (15:42 +0100)]
Remove various manual pages which have newer copies in libc/locale.

Also, remove the obsolete utf2.5.

10 years agokernel - Attempt to fix a rare vm_page_queues panic (2)
Matthew Dillon [Sat, 28 Dec 2013 21:00:51 +0000 (13:00 -0800)]
kernel - Attempt to fix a rare vm_page_queues panic (2)

* Fix 32-bit compiles, add missing cast in kprintf().

Reported-by: jh32
10 years agomdocml: upstream sync
Franco Fichtner [Sat, 28 Dec 2013 15:36:25 +0000 (16:36 +0100)]
mdocml: upstream sync

Minor tweaks and a follow-up for .Fo/.Fa.  2565 -> 2550.

Taken-from: mdocml.bsd.lv

10 years agokernel - Attempt to fix a rare vm_page_queues panic
Matthew Dillon [Sat, 28 Dec 2013 05:37:42 +0000 (21:37 -0800)]
kernel - Attempt to fix a rare vm_page_queues panic

* Change the way the vm_page_t markers are used in the pageout daemon.
  The structures are not stable because they are declared on the stack,
  but the vm pageout scan functions were assuming that a TAILQ_NEXT()
  call would yield a stable vm_page_t structure that could then be locked
  with vm_page_and_queue_spin_lock().

* Fix the problem by holding the appropriate vm_page_queues[] spinlock
  across the TAILQ_NEXT() lookup.

* The panic could not be definitively traced to this issue so we will have
  to see if it reoccurs.

* This also fixes a potential infinite marker hop-over case when multiple
  cpus are trying to scan the same queue at the same time.  However, it
  would be exceedingly rare for this case to actually occur since only
  the pageout and swapcache daemons could compete in this way.

Reported-by: swildner
10 years agokernel - Correct edge-case for machdep.pmap_mmu_optimize
Matthew Dillon [Sat, 28 Dec 2013 05:33:39 +0000 (21:33 -0800)]
kernel - Correct edge-case for machdep.pmap_mmu_optimize

* machdep.pmap_mmu_optimize defaults to disabled and is still highly
  experimental.

* Fix an edge case where the segment optimization was incorrectly being
  allowed for the segment straddling the end of the mapping, when the
  end was not segment-aligned.

* Fixes an endless loop which can occur with the following test case
  (only when machdep.pmap_mmu_optimize is enabled).

rm /var/db/pkg/repo-*
pkg update

10 years agobsd.man.mk: change `mandiff' from groff to nroff
Franco Fichtner [Fri, 27 Dec 2013 17:05:20 +0000 (18:05 +0100)]
bsd.man.mk: change `mandiff' from groff to nroff

The cacos(3) incident showed that groff(1) output is not to
be trusted.  Use nroff(1) instead.  2575 -> 2565.

10 years agolibm: cacos(3) character magic zapped
Franco Fichtner [Fri, 27 Dec 2013 16:44:20 +0000 (17:44 +0100)]
libm: cacos(3) character magic zapped

Assisted-by: swildner
10 years agolibc: Remove documentation for strtoq_l() and strtouq_l().
Sascha Wildner [Fri, 27 Dec 2013 15:32:02 +0000 (16:32 +0100)]
libc: Remove documentation for strtoq_l() and strtouq_l().

They are not provided and I was misled by xlocale.3 listing them.
Fix this too.

10 years agolibc: Document some more *_l() functions.
Sascha Wildner [Fri, 27 Dec 2013 15:15:13 +0000 (16:15 +0100)]
libc: Document some more *_l() functions.

mbrtowc_l()
mbsinit_l()
mbstowcs_l()
mbtowc_l()
ungetwc_l()
wcrtomb_l()
wcsftime_l()
wcstombs_l()
wcswidth_l()
wctomb_l()
wcwidth_l()

10 years agolibc: Document some more *_l() functions.
Sascha Wildner [Thu, 26 Dec 2013 02:34:40 +0000 (03:34 +0100)]
libc: Document some more *_l() functions.

mbsnrtowcs_l()
mbsrtowcs_l()
wcsnrtombs_l()
wcsrtombs_l()

10 years agolibc: Document some more *_l() functions.
Sascha Wildner [Thu, 26 Dec 2013 00:38:28 +0000 (01:38 +0100)]
libc: Document some more *_l() functions.

fgetws_l()
fputws_l()
mblen_l()
mbrlen_l()

10 years agolibc: Add xlocale(3) references to some manual pages.
Sascha Wildner [Thu, 26 Dec 2013 00:20:56 +0000 (01:20 +0100)]
libc: Add xlocale(3) references to some manual pages.

10 years agolibc: Document some more *_l() functions.
Sascha Wildner [Thu, 26 Dec 2013 00:09:46 +0000 (01:09 +0100)]
libc: Document some more *_l() functions.

wcstod_l()
wcstof_l()
wcstoimax_l()
wcstol_l()
wcstold_l()
wcstoll_l()
wcstoul_l()
wcstoull_l()
wcstoumax_l()

10 years agolibc: Document some more *_l() functions.
Sascha Wildner [Wed, 25 Dec 2013 23:27:29 +0000 (00:27 +0100)]
libc: Document some more *_l() functions.

strtod_l()
strtof_l()
strtoimax_l()
strtol_l()
strtold_l()
strtoll_l()
strtoq_l()
strtoul_l()
strtoull_l()
strtoumax_l()
strtouq_l()

10 years agolibc: Document some more *_l() functions.
Sascha Wildner [Wed, 25 Dec 2013 22:44:25 +0000 (23:44 +0100)]
libc: Document some more *_l() functions.

fgetwc_l()
getwc_l()
getwchar_l()

fputwc_l()
putwc_l()
putwchar_l()

10 years agomdocml: mark lib.in as locally modified
Franco Fichtner [Wed, 25 Dec 2013 16:46:38 +0000 (17:46 +0100)]
mdocml: mark lib.in as locally modified

DragonFly, FreeBSD, and groff all disagree on the name of
libbluetooth.  Treat the previous commit as a DragonFly
modification then.  Thanks to Ingo Schwarze for pointing
out this fact.

10 years agozic.8: Fix section in .Xr macro.
Sascha Wildner [Wed, 25 Dec 2013 16:03:26 +0000 (17:03 +0100)]
zic.8: Fix section in .Xr macro.

10 years agomdocml: adjust libbluetooth name
Franco Fichtner [Wed, 25 Dec 2013 14:06:19 +0000 (15:06 +0100)]
mdocml: adjust libbluetooth name

10 years agomdocml: fix .Fo/.Fa output
Franco Fichtner [Wed, 25 Dec 2013 13:14:31 +0000 (14:14 +0100)]
mdocml: fix .Fo/.Fa output

`mandiff' differences reduced from 2686 to 2575.

10 years agoSome improvements to *_l.3 manual pages (all part of 1003.1-2008).
Sascha Wildner [Wed, 25 Dec 2013 15:01:28 +0000 (16:01 +0100)]
Some improvements to *_l.3 manual pages (all part of 1003.1-2008).

* Fix the SYNOPSIS to show that for these functions, <xlocale.h> need
  not be included.

* Better markup for the locale argument.

* Additional mentioning of the *_l() function in descriptions, return
  value, etc.

10 years agosmrsh: silence patching
Franco Fichtner [Wed, 25 Dec 2013 12:01:41 +0000 (13:01 +0100)]
smrsh: silence patching

10 years agomdocml: most recent stable fixes; especially .Fn indent fix
Franco Fichtner [Wed, 25 Dec 2013 11:37:44 +0000 (12:37 +0100)]
mdocml: most recent stable fixes; especially .Fn indent fix

Reduces `make mandiff | grep "^@@" | wc -l' run from 2921 to 2682.

Taken-from: mdocml.bsd.lv

10 years agomdocml: update to stable snapshot as per 12/23/13
Franco Fichtner [Wed, 25 Dec 2013 10:53:40 +0000 (11:53 +0100)]
mdocml: update to stable snapshot as per 12/23/13

Courtesy-of: Ingo Schwarze <schwarze at mdocml dot bsd dot lv>

10 years agozoneinfo: Add the NEWS file from tzcode.
Sascha Wildner [Wed, 25 Dec 2013 12:13:10 +0000 (13:13 +0100)]
zoneinfo: Add the NEWS file from tzcode.

10 years agostrcasecmp.3: Mention _l() functions better, add to STANDARDS.
Sascha Wildner [Wed, 25 Dec 2013 02:11:50 +0000 (03:11 +0100)]
strcasecmp.3: Mention _l() functions better, add to STANDARDS.

10 years ago<xlocale.h>: strcasecmp_l() and strncasecmp_l() are in 1003.1-2008.
Sascha Wildner [Wed, 25 Dec 2013 02:10:39 +0000 (03:10 +0100)]
<xlocale.h>: strcasecmp_l() and strncasecmp_l() are in 1003.1-2008.

10 years agoImprove various ctype.h manual pages.
Sascha Wildner [Wed, 25 Dec 2013 01:52:00 +0000 (02:52 +0100)]
Improve various ctype.h manual pages.

Mention the *_l() functions in descriptions, return type information etc.,
and additional other improvements.

10 years agoWe don't have wcscasecmp_l() and wcsncasecmp_l(), so #if 0 prototypes.
Sascha Wildner [Wed, 25 Dec 2013 00:52:43 +0000 (01:52 +0100)]
We don't have wcscasecmp_l() and wcsncasecmp_l(), so #if 0 prototypes.

10 years agoDocument wcscoll_l() and wcsxfrm_l().
Sascha Wildner [Wed, 25 Dec 2013 00:51:23 +0000 (01:51 +0100)]
Document wcscoll_l() and wcsxfrm_l().

10 years agoiswalnum_l: iswnumber_l() isn't in 1003.1-2008 either.
Sascha Wildner [Tue, 24 Dec 2013 23:46:05 +0000 (00:46 +0100)]
iswalnum_l: iswnumber_l() isn't in 1003.1-2008 either.

10 years agomdocml: revert local test changes to apropos/mandocdb
Franco Fichtner [Mon, 23 Dec 2013 09:12:46 +0000 (10:12 +0100)]
mdocml: revert local test changes to apropos/mandocdb

Our makewhatis(8) got fixed.  No need to replace it then.

10 years agomdocml: end-of-sentence spacing for man(7) macros
Franco Fichtner [Mon, 23 Dec 2013 09:05:03 +0000 (10:05 +0100)]
mdocml: end-of-sentence spacing for man(7) macros

This patch needed upstream confirmation.  It got merged yesterday,
so it's safe to pull this in now.

10 years agoRemove America/Shiprock and Antarctica/South_Pole zones via 'make upgrade'.
Sascha Wildner [Mon, 23 Dec 2013 13:21:49 +0000 (14:21 +0100)]
Remove America/Shiprock and Antarctica/South_Pole zones via 'make upgrade'.

They are equivalent to existing same-country-code zones for post-1970
time stamps.

10 years agomount_msdos(8): Adjust usage() and the manual page SYNOPSIS.
Sascha Wildner [Sun, 22 Dec 2013 15:59:46 +0000 (16:59 +0100)]
mount_msdos(8): Adjust usage() and the manual page SYNOPSIS.

10 years agoSync zoneinfo database with tzdata2013i from ftp://ftp.iana.org/tz/releases
Sascha Wildner [Sun, 22 Dec 2013 10:47:01 +0000 (11:47 +0100)]
Sync zoneinfo database with tzdata2013i from ftp://ftp.iana.org/tz/releases

See https://github.com/eggert/tz/blob/master/NEWS for a list of
what changed. We were previously in sync with tzdata2013d.

10 years agozic(8): Sync with tzcode2013i from ftp://ftp.iana.org/tz/releases
Sascha Wildner [Sun, 22 Dec 2013 09:29:33 +0000 (10:29 +0100)]
zic(8): Sync with tzcode2013i from ftp://ftp.iana.org/tz/releases

See https://github.com/eggert/tz/blob/master/NEWS for a list of
what changed. We were previously in sync with tzcode2012c.

10 years agolibc/stdtime: Sync with tzcode2013i from ftp://ftp.iana.org/tz/releases
Sascha Wildner [Sun, 22 Dec 2013 08:21:36 +0000 (09:21 +0100)]
libc/stdtime: Sync with tzcode2013i from ftp://ftp.iana.org/tz/releases

The compile-time flag NOSOLAR has been removed, as nowadays the
benefit of slightly shrinking runtime table size is outweighed by the
cost of disallowing potential future updates that exceed old limits.

10 years agolibhammer - Gather additional information about PFSes.
Antonio Huete Jimenez [Thu, 19 Dec 2013 13:20:15 +0000 (05:20 -0800)]
libhammer - Gather additional information about PFSes.

* Add transaction information to libhammer_pfsinfo.
* Add reserved field for future expansion.

Note that the TID numbers gathered can become outdated for slave PFSes
that are the target of mirroring operations.

10 years agomandoc(1): Add XSH4.2 to the list of known standards (for .St).
Sascha Wildner [Thu, 19 Dec 2013 07:27:36 +0000 (08:27 +0100)]
mandoc(1): Add XSH4.2 to the list of known standards (for .St).

10 years agokgdb(1): Mention -w in the usage().
Sascha Wildner [Thu, 19 Dec 2013 06:36:07 +0000 (07:36 +0100)]
kgdb(1): Mention -w in the usage().

10 years agokernel: forbid ptrace on system processes
Nicolas Thery [Wed, 18 Dec 2013 09:40:37 +0000 (10:40 +0100)]
kernel: forbid ptrace on system processes

The scenario that triggered this change is the GDB test suite which
tries to attach to process 0 (the swapper).  This dereferenced a NULL
pointer while reparenting the swapper to GDB as the former has no
parent.

ptrace(2) is intended for debugging user processes so prevent it
altogether on system processes as this is deadlock prone.

There were already calls to procfs for preventing accesses to registers
of system processes.  Remove the now superfluous comments but leave
these calls as they may be extended someday to check for more
conditions.

Dragonfly-bug: <http://bugs.dragonflybsd.org/issue2615>

10 years agoMark up some email addresses in various manual pages.
Sascha Wildner [Tue, 17 Dec 2013 12:59:21 +0000 (13:59 +0100)]
Mark up some email addresses in various manual pages.

10 years agonsdispatch.3: Use lists instead of displays to better handle nesting.
Sascha Wildner [Tue, 17 Dec 2013 12:46:20 +0000 (13:46 +0100)]
nsdispatch.3: Use lists instead of displays to better handle nesting.

While here, properly use .Vt and .Fa instead of .Va everywhere.

10 years agolibalias.3: Remove nested displays, we can live without them here.
Sascha Wildner [Tue, 17 Dec 2013 12:44:53 +0000 (13:44 +0100)]
libalias.3: Remove nested displays, we can live without them here.

10 years agodfregress.8: fix typo
Nicolas Thery [Mon, 16 Dec 2013 11:28:20 +0000 (12:28 +0100)]
dfregress.8: fix typo

10 years agoppp.8: Fix the last mandoc(1) warnings.
Sascha Wildner [Mon, 16 Dec 2013 10:55:23 +0000 (11:55 +0100)]
ppp.8: Fix the last mandoc(1) warnings.

Taken-from: OpenBSD

10 years agoUpdate the pciconf(8) database.
Sascha Wildner [Sun, 15 Dec 2013 22:26:41 +0000 (23:26 +0100)]
Update the pciconf(8) database.

December 10, 2013 snapshot from http://pciids.sourceforge.net/