Commit Graph

18646 Commits

Author SHA1 Message Date
blymn
4114d2610d Improve debug information. 2016-12-11 21:25:22 +00:00
christos
3d8a0ad9b3 PR/51706: Amir Plivatsky: Fix memory leak 2016-12-11 15:47:06 +00:00
scole
5e40039f22 Add exect stub so "build.sh distribution" will compile 2016-12-10 21:19:15 +00:00
christos
5467719bc0 use array notation 2016-12-10 21:04:12 +00:00
kamil
4067ec816b Remove outdated note in the PT_DUMPCORE call of the ptrace(2) man-page
Currently the PT_DUMPCORE call requires process to be stopped, therefore it
no longer need to warn about stoped tracee to generate consistent data.

Sponsored by <The NetBSD Foundation>
2016-12-10 20:02:07 +00:00
christos
431fde0e65 update for v18 conn list; more error checks 2016-12-10 19:07:22 +00:00
rin
7edfde5134 Fix typo; ".Lx" should be ".Nx" 2016-12-10 14:13:29 +00:00
kre
c0121372b2 Remove what was probably a left over remnant of a debugging printf
which was incompletely deleted.   Hopefully fix the build.
2016-12-10 08:48:11 +00:00
christos
3d5a430c2b add npf_nat_lookup() 2016-12-10 05:37:55 +00:00
christos
5398e0956f more stuff needs -mfpu=vfp 2016-12-08 18:42:01 +00:00
pgoyette
02a1db30fb Fix comment: s/ACCD/ADDC/ 2016-12-07 10:03:29 +00:00
kre
7a3aec16f6 Actually guarantee that the returned buffer from link_ntoa() is always
NUL terminated, even when called by malicious/broken applications.
2016-12-07 09:52:34 +00:00
pgoyette
d6b064e942 More tweaking... 2016-12-07 03:48:05 +00:00
pgoyette
dfa0a7c726 Update BUGS section to note the possibility of a truncated return value. 2016-12-07 03:22:14 +00:00
christos
2067ca0866 make it always return a NUL terminated string instead of NULL when the address
is truncated for compatibility with others.
2016-12-07 03:16:45 +00:00
christos
7143892b68 Add the terminating NUL as a regular character addition. 2016-12-07 02:48:54 +00:00
dholland
f118bedc12 Leave room for the null terminator. Spotted by DuClare on freenode. 2016-12-07 02:36:41 +00:00
christos
8f4552233c Fix buffer copy without checking the size of input:
https://www.kb.cert.org/vuls/id/548487
2016-12-06 18:41:02 +00:00
christos
d10d9a2322 fix test lib/librumphijack/t_sh/runscript
(handle F_DUPFD_CLOEXEC that the shell is now using)
2016-12-02 20:53:36 +00:00
christos
b293c8a9d7 Add unwind action type and constants 2016-12-02 19:25:19 +00:00
christos
6d100a1021 PR/51673: Carsten Kunze: curses: standend() does not turn off A_BOLD;
according the X/Open it needs to turn off all attributes.
2016-11-29 17:33:48 +00:00
christos
56b8322bcc If we are inserting spaces to account for a tab, move the x position of the
cursor, otherwise this is a no-op (Carsten Kunze)
2016-11-28 18:25:26 +00:00
dholland
aa08bfea54 More of previous. 2016-11-26 21:17:06 +00:00
dholland
a714102aaa fix comment about initialization-time calls; ok joerg 2016-11-26 20:38:20 +00:00
christos
ee97ae6abf off-by-one in memcpy. Found by ASAN (Carsten Kunze)
XXX: pullup 7.
2016-11-24 17:09:55 +00:00
christos
50c795e166 don't coredump if we call endwin when initscr fails. 2016-11-24 14:49:08 +00:00
wiz
fe65e38bd3 Bump date for previous. 2016-11-24 12:19:28 +00:00
wiz
9e3f1ccd88 Various fixes. 2016-11-24 12:18:02 +00:00
kamil
eedb67d83d Remove duplicated PT_DUMPCORE description in machine-specific calls section
This function is part of the general ptrace(2) interface.

Sponsored by <The NetBSD Foundation>
2016-11-24 00:12:52 +00:00
scole
53744582f1 For ski, break into debugger instead of exiting 2016-11-22 22:50:32 +00:00
kamil
f54728af92 Obsolete thread_type in td_thread_info_st in <pthread_dbg.h>
The thread_type is irrelevant as all local POSIX threads are in user-space.

Keep the thread_type member in td_thread_info_st to preserve ABI
compatibility.

Later the remnants from M:N will be refactored in one go with library ABI
version bump.

Sponsored by <The NetBSD Foundation>
2016-11-22 04:51:06 +00:00
kamil
4c8a06b7ee Simplify (pthread_t)pt_magic read in td_map_pth2thr(3)
No functional change. All ATF tests for pthread_dbg(3) still pass.

Sponsored by <The NetBSD Foundation>
2016-11-22 04:17:05 +00:00
kamil
7b8609d5c0 Document td_map_pth2thr(3) from libpthread_dbg(3)
td_map_pth2thr - convert the pthread_t to a thread handle

Sponsored by <The NetBSD Foundation>
2016-11-22 03:52:01 +00:00
kamil
2d6a6aff1c Document td_thr_getname(3) from libpthread_dbg(3)
td_thr_getname - get the user-assigned name of a thread

Sponsored by <The NetBSD Foundation>
2016-11-22 01:49:36 +00:00
kamil
6c74bd40be Add reference in SEE ALSO to pthread_dbg(3)
Sponsored by <The NetBSD Foundation>
2016-11-22 00:32:09 +00:00
kamil
2e8fabe0b7 Document td_thr_iter(3) from libpthread_dbg(3)
td_thr_iter - iterate over the threads in the process

Sponsored by <The NetBSD Foundation>
2016-11-22 00:07:40 +00:00
kamil
7332bc9351 Document td_thr_info(3) from libpthread_dbg(3)
td_thr_info - get information on a thread

Currently a subset of td_thread_info_t is documented. This version
describes thread_addr and thread_state.

Sponsored by <The NetBSD Foundation>
2016-11-21 22:19:03 +00:00
kamil
ba06ccfe95 Add initial documentation (man-pages) for libpthread_dbg
Document libpthread_dbg and basic function calls: td_open() and td_close()

Sponsored by <The NetBSD Foundation>
2016-11-21 20:43:25 +00:00
kamil
2bd33bc337 Kill SA thread states (TD_STATE_*) in pthread_dbg and add TD_STATE_DEAD
Scheduler Activation types were removed in NetBSD 5.0. Old type set is not
matching the new world POSIX threads library.

Only TD_STATE_RUNNING, TD_STATE_ZOMBIE are still applicable - keep it.

Keep TD_STATE_UNKNOWN as generic unrecognized type.

Add new TD_STATE_DEAD one. The TD_STATE_DEAD type is represented by number
6 in the POSIX threads library, but for the sake of compatibility with
older software using pthread_dbg - renumber it to 7, as six was reserved
for TD_STATE_SUSPENDED.

Old removed state types are marked as reserved and unused.

Sponsored by <The NetBSD Foundation>
2016-11-21 03:02:34 +00:00
kamil
c35485043b Always set trailing '\0' in td_thr_getname() to compose valid ASCIIZ string
This fixes threads5 in tests/lib/libpthread_dbg

Sponsored by <The NetBSD Foundation>
2016-11-20 21:49:24 +00:00
pho
82c0423db2 fuse_main(3): Support general fuse options via fuse_parse_cmdline(3)
* Prototypes for fuse_new(3), fuse_mount(3), and fuse_unmount(3) now
  matches to the original fuse interface.

* Add fuse_daemonize(3): needs to have a different prototype,
  otherwise we can't use puffs_daemon(3).

* Remove fuse_setup(3) and fuse_teardown(3). These obsolete functions
  has already been removed from the original interface.

* fuse_main(3) now supports the following command-line options
  compatible with the original fuse:

  -h, --help      print help message
  -V, --version   print library version (currently does nothing)
  -d, -o debug    enable debug output (PUFFS_FLAG_OPDUMP), implies -f
  -f              foreground mode
  -s              single threaded mode (always enabled for now)
  -o fsname=NAME  explicitly set the name of the file system

* fuse_main(3) now daemonizes the process by default. This is for the
  compatibility with the original fuse.
2016-11-20 13:28:32 +00:00
pho
0e4f248f77 fuse_lowlevel.h: new file, currently only contains fuse_parse_cmdline(3) and struct fuse_cmdline_opts 2016-11-20 13:26:28 +00:00
wiz
14feb52a56 Whitespace. 2016-11-20 09:38:37 +00:00
dholland
b6a15c213c Add crossreference to fork(2) per note in PR 9627. 2016-11-20 07:05:20 +00:00
kamil
df6b325f24 Fix pt_magic read in td_map_pth2thr()
The pt_magic field is not the first one in the pthread_t structure.

Sponsored by <The NetBSD Foundation>
2016-11-20 03:53:47 +00:00
kamil
57fc5895ae Catch up with correct pt_magic reads in td_thr_{getname,suspend,resume}
The pt_magic field is not the first one in the pthread_t structure.

Sponsored by <The NetBSD Foundation>
2016-11-20 03:11:32 +00:00
kamil
1d6ebe4f76 Fix pt_magic (part of pthread_t) read in td_thr_info()
The pt_magic field is not the first one in the pthread_t structure.
After this fix, this code is confirmed to work and function td_thr_info()
is functional.

Sponsored by <The NetBSD Foundation>
2016-11-20 02:27:56 +00:00
pho
12a2d5638d Change the way how puffs_fuse_node_create() behaves.
In puffs "create" and "open" are two separate operations with
atomicity achieved by locking the parent vnode. In fuse, on the other
hand, "create" is actually a create-and-open-atomically and the open
flags (O_RDWR, O_APPEND, ...) are passed via fi.flags. So the only way
to emulate the fuse semantics is to open the file with dummy flags and
then immediately close it.

You might think that we could simply use fuse->op.mknod all the time
but no, that's not possible because most file systems nowadays expect
op.mknod to be called only for non-regular files and many don't even
support it.
2016-11-17 14:20:25 +00:00
pho
fd86259521 Major rework of fuse_opt_parse(3) so that it supports all the functionality of the original function 2016-11-16 16:11:42 +00:00
pho
5ae81a5b54 fuse_opt_match(3): Support every form of templates, not just the simple strcmp case
Also it should return 1 for successful matches, not the way around.
2016-11-15 00:34:19 +00:00
pho
8a68fd4cd6 Add missing macros 2016-11-14 17:48:57 +00:00
pho
111da591d5 Implement missing fuse_opt_add_opt(3) and fuse_opt_add_opt_escaped(3) 2016-11-14 17:19:29 +00:00
wiz
f662fdae7e Whitespace. 2016-11-14 10:40:59 +00:00
christos
c231d3fa1b Explain rmtp setting. 2016-11-11 16:07:05 +00:00
christos
50d1e6ecfe Document WNOZOMBIE 2016-11-10 17:08:31 +00:00
riastradh
263e13aeed Use the keywords underflow' and overflow' in ERANGE summary. 2016-11-07 21:52:36 +00:00
riastradh
95f4e015a9 Fix phrasing about out-of-band' and sentinel value'.
Either an out-of-band channel, or an in-band sentinel value, could
indicate an error, but an out-of-band sentinel value is a silly
proposition.

Noted by uwe@.
2016-11-07 21:51:42 +00:00
christos
f09a36d8a1 Change the way the built-in history works; some programs enter history
with the trailing newline, others don't so don't make any assumptions
about it when printing. Also print the correct event number (generated),
separate the event number from the event with a tab, and visually encode
the string (don't encode tabs and spaces though).
2016-11-07 15:30:18 +00:00
kre
edb49bae9b Actually, this problem won't be reported upstream, their code is
just ...

	ptrdiff_t nitems_max = PTRDIFF_MAX - WORK_AROUND_QTBUG_53071;
	ptrdiff_t amax = nitems_max < SIZE_MAX ? nitems_max : SIZE_MAX;

which is just fine if you think about it a little,   Unfortunately,
in our zealous effort to never leave a ggc warning unused, and to
treat all of the warnings as fatal errors, that code falls foul of the
"you must not compare an unsigned value with a signed value" warning.

nitems_max is a (signed) largish positive integer (obviously, by
inspection).  If it is less than SIZE_MAX then amax is just nitems_max.
In the unlikely case that size_t has less bits than ptrdiff_t so
SIZE_MAX is smaller, amax is limited to SIZE_MAX (which in that case
is known to fit in the ptrdiff_t and to remain positive).

To pacify gcc (and the way the build system uses it), casts are
required.   Unfortunately the cast that was installed here was to
convert SIZE_MAX to a ptrdiff_t.  Unfortunately when ptrdiff_t has
the same number of bits (or less) as size_t (ie: the common case)
but is signed, (ptrdiff_t)SIZE_MAX is just a fancy way of writing -1.

Rearrange the casting in a way that keeps the original intent
of the code for us (it is actyaly now incorrect if size_t has less
bits than a ptrdiff_t) and keeps gcc happy, all at the same time.

What a mess.
2016-11-05 23:09:37 +00:00
kre
752944af9d Revert a couple of lines of code from tzcode2016i to their state in 2016h
SIZE_MAX is the max value of a size_t (and is unsigned) so when converted
to a ptrdiff_t  (int) becomes -1.   That's not what the code was attempting
to achieve.

This will be reported upstream to the tzcode maintainers, and we'll see
what variation appears in tzcode2016j ...

Until then, the older code always worked for us, so it will do for now.

This should fix the broken i386 build.
2016-11-05 22:21:48 +00:00
riastradh
2d9978a06e Update strtoul(3) example to reflect clarifications in strtol(3). 2016-11-05 20:57:31 +00:00
christos
375cff8702 lint knows about _Generic 2016-11-05 01:08:58 +00:00
riastradh
02eab895ae Bump date for previous. 2016-11-04 20:19:58 +00:00
riastradh
59495a850c Tidy up the second example too. 2016-11-04 20:18:23 +00:00
riastradh
105424da40 Simplify error condition case.
Add assertions to reflect its implications.
2016-11-04 20:16:18 +00:00
riastradh
e465e7c45b Distinguish invalid syntax from trailing garbage cases. Clarify. 2016-11-04 20:14:31 +00:00
riastradh
3a33a135da Distinguish altogether invalid syntax from trailing garbage. 2016-11-04 20:06:09 +00:00
riastradh
95993320dc EXIT_FAILURE police 2016-11-04 20:04:04 +00:00
christos
aafaa3c48f tzcode2016i 2016-11-04 19:41:53 +00:00
riastradh
fd26083f95 Fix infinity detection with isinf(d), not d == HUGE_VAL.
Negative infinity counts as overflow too.

Simplify.
2016-11-04 19:18:53 +00:00
riastradh
e7962ffd1d Add example for strtod.
This illustrates all the cases you might be interested in and asserts
theorems in those cases.
2016-11-04 19:10:04 +00:00
riastradh
7f81880412 Fix description of ERANGE cases again.
Do use the technical terms `overflow' and `underflow', because strtod
sets ERANGE precisely to indicate either of these two conditions, and
they are the right keywords that one might be looking for.

Note that strtod may set ERANGE even if it returns noninfinity and
nonzero -- specifically, if the result is subnormal.  This part was
wrong before I `fixed' it and remained wrong after I `fixed' it
earlier this year.
2016-11-04 18:46:15 +00:00
pgoyette
bf821edee1 Typo - "a requests" --> "a request" 2016-11-02 03:21:38 +00:00
wiz
f899b3dcea Bump date for previous. 2016-11-01 15:30:47 +00:00
kamil
0144090d24 Document PT_SET_EVENT_MASK, PT_GET_EVENT_MASK and PT_GET_PROCESS_STATE
These descriptions are imported from OpenBSD.

Approved by <christos>

Sponsored by <The NetBSD Foundation>
2016-11-01 13:51:13 +00:00
christos
6e03f6000c Don't spin if we already own the mutex, otherwise we will get stuck spinning
forever, fixes timemutex{1,2} tests.
2016-10-31 23:53:12 +00:00
kamil
3b2abf0b2a Add CHECK_NOT_THREADED() in __libc_mutexattr_settype_stub()
This makes this function consistent with __libc_mutex_catchall_stub()
and others in the same group.

Approved by <christos>.
2016-10-31 18:10:11 +00:00
abhinav
0551ffcf66 Fix file name auto completion in one specific case.
For example if you do
$mkdir -p /tmp/dir1/dir2

Then:
$ls /tmp/di <TAB> auto completes to
$ls /tmp/dir1/

Hitting <TAB> again auto completes to
$ls /tmp/dir1/dir2

Whereas it should auto complete to
$ls /tmp/dir1/dir2/


Essentially, in cases like above where you have to hit <TAB> twice to get
to the match and there is only one match (because only one file/sub-directory) then
auto complete doesn't work correctly. It doesn't append a trailing slash (in case
of directory) or a space (in case of a file) to the match name.

I have tested file name completion in sh(1) and symbol completion in gdb after
this change.
2016-10-31 17:46:32 +00:00
pgoyette
c16bd04c08 Fix markup .Dv --> .Dq
(Thanks, wiz!)
2016-10-31 07:37:10 +00:00
pgoyette
34a71bb24b Typo 2016-10-31 01:31:25 +00:00
kamil
06b9d77598 POSIX harder the pthread_mutex_timedlock(3) prototype
Add missing __restrict keyword to the first pointer parameter.

It was already used for the second argument, should not be a functional
change and generated code should be the same.

This new form is now aligned with POSIX.
2016-10-30 23:26:33 +00:00
christos
931e76f255 export rl_done 2016-10-28 18:32:35 +00:00
christos
1a4590725b pass the stream to the getc function 2016-10-28 18:32:26 +00:00
christos
6c345d9579 PR/51578: Henning Petersen: Fix leak on error. 2016-10-26 15:39:30 +00:00
christos
4384a68ce2 KNF, no real change (except malloc(x * y) -> calloc(x, y)) 2016-10-26 15:36:17 +00:00
christos
59538e7ea4 It is expensive to open and close files for every printf, keep it around. 2016-10-23 21:20:56 +00:00
christos
5b486ace20 PR/51572: calling funopen on each printw call is a tad excessive, but this
is not a reason for funopen to leak. Always call the close function since we
are indirecting through our cookie and we need to free it.
2016-10-23 21:01:52 +00:00
christos
8a48cf6610 remove bogus malloc casts 2016-10-22 21:55:06 +00:00
skrll
11da075cc5 Add multiple inclusion protection and __{BEGIN,END}_DECLS as a native gdb
build uses c++ to build nbsd-thread.c
2016-10-22 18:04:40 +00:00
christos
af580f3ad2 welcome to 2016h 2016-10-20 17:41:34 +00:00
maya
57f1116306 Revert previous. it shouldn't have an effect.
$$ should make it sufficiently unique.
2016-10-19 09:51:38 +00:00
christos
95c12ccdf1 make the env stuff visible. 2016-10-19 01:30:35 +00:00
wiz
90f5b47a4a Sort sections. new sentence, new line. Whitespace. 2016-10-18 22:26:13 +00:00
christos
476dcf2b00 make this compile again, and simplify. 2016-10-18 17:56:31 +00:00
manu
edb96218ee Make FUSE socket buffer tunable
When dealing with high I/O throughput, we could run out of buffer
space if the filesystem was not consuming requests fast enough.
Here we slightly raise the buffer size, and we make it tunable
through the PERFUSE_BUFSIZE environment variable so that we can
cope with higher requirement later.

While there, document PERFUSE_OPTIONS environment variable.
2016-10-18 15:06:17 +00:00
maya
ae394a6300 use mktemp instead of $RANDOM for tmpdir
..$RANDOM won't work with our /bin/sh.

unsure if this script is used, but it is wrong.
might help the spurious build failures that occasionally
show up on autobuilds.
2016-10-17 18:24:42 +00:00
wiz
d42d91aeec Add missing word. 2016-10-16 05:28:33 +00:00
kamil
cc5d581159 Add NetBSD CVS Id on top of the wcsnlen.c file 2016-10-15 14:30:36 +00:00
kamil
6245abaafa Import wcsnlen(3) to libc
The wcsnlen(3) function conforms to POSIX.1-2008 and is an addition to the
ISO C standard.

size_t wcsnlen(const wchar_t *s, size_t maxlen);

The wcsnlen(3) function computes the number of wide-characters in a wide-
-string to which s points, not including NULL terminating wide-character
code and checking no more than maxlen wide-characters. This function never
examines wide-characters beyond a wide-string of maxlen size.


This function is a safer version of wcslen(3):

size_t wcslen(const wchar_t *s);


Update STANDARDS section of wmemchr(3) describing wide-character functions.
2016-10-15 14:21:59 +00:00
macallan
f61977ef47 build libc_fp only on mips64* 2016-10-14 17:29:29 +00:00
christos
6c1a8a7017 add strchrnul 2016-10-12 20:01:12 +00:00
macallan
8baff5f4bf build and install libc_fp on mips
use with LD_PRELOAD=/lib/libc_fp.so for FPU use via softfloat
2016-10-11 17:02:28 +00:00
macallan
8575febebd move shlib_version into the main directory 2016-10-11 16:55:22 +00:00
macallan
8de18d0a37 set MKSOFTFLOAT=no so we don't get another -msoft-float slapped on COPTS
now this actually builds
thanks to mrg for pointing me in the right direction
2016-10-10 18:49:30 +00:00
macallan
f21b7d7f2c fix tpyo 2016-10-09 17:18:32 +00:00
joerg
04b0597d11 Fix syntax for currently not compiled in code. From Henning Petersen in
PR lib/51538.
2016-10-09 11:48:24 +00:00
kre
3a37e001c7 Patch 0001 from upstream to tzcode2016g to restore full functionality
of zic -l
2016-10-07 19:47:16 +00:00
christos
9551d334d2 merge tzcode2016g 2016-10-07 15:29:42 +00:00
christos
1acb507c2d Sync with compat and remove dup implementations of ldexp and modf, switching
mips and m68k to the compat copies.
2016-10-07 11:10:43 +00:00
christos
c7db9c14b4 return 0 on unsupported bases. 2016-10-04 12:48:15 +00:00
wiz
33e9a4f901 Fix xref. 2016-10-04 10:46:40 +00:00
kamil
7f4b5eb156 Add timespec_get(3) in <time.h> and enable unconditionally struct timespec
These changes conforms to the C11 standard
References:
 - 7.27.1/3 Components of time (struct timespec)
 - 7.27.2.5 The timespec_get function

According to ISO/IEC 9899:201x (draft) <time.h> defines the timespec
structure and declares the timespec_get(3) function with TIME_UTC
definition.

According to a C++17 standard draft <ctime> offers the same interface in
the std:: namespace.

The timespec_get function modifies the timespec object pointed by ts
to hold the current calendar time in the given base. The standard notes
only the TIME_UTC base with implementation defined value, set it to 1
as zero is reserved for error handling. Once operation was successful this
function returns passed base, otherwise exits with zero.

The timespec struct was already part of the POSIX standard in <time.h>.

Enable this interface unconditionally in the header to allow to use it
in a code prior C11 and C++17 as an extension.

Review notes from <christos>
2016-10-04 09:41:40 +00:00
christos
beaa4a9608 bump warns 2016-10-03 17:06:58 +00:00
dholland
8536f06c47 Be more careful about preserving errno. Might conceivably be related
to PR 51432.
2016-09-30 06:22:21 +00:00
dholland
48faaeec69 Be consistent about returning -1 on error. Don't return random errnos
instead.
2016-09-30 06:16:47 +00:00
wiz
d6414e373d Remove duplicate Pp. 2016-09-27 11:11:43 +00:00
mrg
62ee7dc27b introduce a better pci_drvname() and PCI_IOC_DRVNAME as pciio_drvnameonbus()
and PCI_IOC_DRVNAMEONBUS.  the new ones also take a (autoconf) PCI bus
number, which allows lookups for any device on any pci bus node.  use this
in pcictl which current reports the wrong values sometimes.

up next: use these in libpciaccess.
2016-09-24 23:12:54 +00:00
christos
aae80e6be7 remove mpool_getf 2016-09-24 21:31:25 +00:00
christos
f3f19d16f2 bump for the flags version of db routines 2016-09-24 20:12:07 +00:00
christos
86147b1c32 Merge the recursive tree traversal changes from the mit kerberos tree. This
Also make the tracefile customizable. Unfortunately we can't merge any of
the hash changes because they have a different on-disk format. That does not
matter really because we've fixed most of the problems...
2016-09-24 20:11:12 +00:00
christos
d42d73761d When writing out pages in the "other endian" format, make a copy instead of
trashing the in-memory one.
2016-09-24 20:08:29 +00:00
christos
a49c1d21d7 move the description of CLOCK_REALTIME in the list. 2016-09-24 01:05:51 +00:00
pgoyette
9a9ece3b27 Since the argument buf is earlier described as a buffer, replace all
references to "the array" with "the buffer" for consistency.

Bump date.
2016-09-22 23:18:10 +00:00
christos
122a9a6480 deal with namespace issues and missing atanhf for vax. 2016-09-21 14:11:40 +00:00
roy
72d40e7cf4 Bump libc version for ifaddrs. 2016-09-21 10:54:36 +00:00
roy
45b7bd08f6 Add ifa_addrflags to ifaddrs. 2016-09-21 10:53:24 +00:00
skrll
46ef072377 Fix for [on]{32,64}
/usr/tests/lib/libc/sys/t_getcontext
/usr/tests/lib/libc/sys/t_swapcontext
/usr/tests/lib/libc/sys/t_ucontext
/usr/tests/lib/libpthread/t_swapcontext

All pass now.

Changes amount to

- saving GP from caller in context for n{32,64}
- performing (the equivalient of) PIC_PROLOGUE for swapcontext and
  __resumecontext
- Call setcontext via the PLT in __resumecontext
2016-09-21 06:49:39 +00:00
skrll
ed78dc9b59 Trailing whitespace. 2016-09-21 06:41:42 +00:00
christos
939877e98c fix VAX! 2016-09-20 18:25:20 +00:00
christos
a4f5c51335 use a define, and cast. 2016-09-20 15:03:07 +00:00
christos
42bfe206ef put back part of the code that determines the smallest of INT_MAX and
SIZE_MAX to avoid llvm truncation warning.
2016-09-20 13:09:08 +00:00
christos
0f266a6ca3 Add the complex trig functions from FreeBSD 2016-09-19 22:05:05 +00:00
christos
5698ccad84 PR/51484: gson@: Fix off by one (wrong merge) 2016-09-19 18:43:23 +00:00
christos
16bd23da7a welcome to tzcond-2016f 2016-09-16 17:12:06 +00:00
joerg
0f37b1b875 gethostbyname_r should die. 2016-09-15 16:23:05 +00:00
njoly
9018f13e85 Fix function name macro. 2016-09-15 07:53:59 +00:00
jakllsch
6b848d5cfa Actually get fma(3) and friends into ARM libm. 2016-09-07 14:41:33 +00:00
martin
832d276ed9 Redo previous by avoiding the casts and using PRIxREGISTER instead 2016-09-06 07:45:41 +00:00
martin
cccccd8360 Can not print register_t with %d, cast to long and use %ld instead. 2016-09-06 07:32:39 +00:00
martin
a4856ef48c Fix DPRINTF format 2016-09-06 07:12:48 +00:00
dholland
7bd425cccf printf functions should be tagged as printf functions. Noticed by
martin, whose build broke for some reason yet to be determined.
2016-09-05 20:41:59 +00:00
joerg
0f183be635 Bump the glob limits to 512KB for total string size and 64K path
entries. The old limits were too small for some important FTP use cases
like a pkgsrc repository.
2016-09-04 18:27:08 +00:00
mbalmer
fc37f15ca1 fix typo 2016-09-01 13:23:44 +00:00
christos
d2f713bbd1 don't shortcut closing if the metadata is dirty (from the krb5 tree) 2016-08-31 06:23:51 +00:00
uwe
2bd409d71f ___start is __dso_hidden, so use CALL_DATUM_LOCAL and drop the PIC
prologue from __start.
2016-08-29 21:27:03 +00:00
tnn
523a6b00a9 mention puffs_node_pathconf and puffs_node_advlock 2016-08-29 01:13:56 +00:00
christos
a0c7fda095 fix pic code; otherwise we generate text relocations. 2016-08-28 13:50:25 +00:00
wiz
0c9a844188 Merge ENOMEM descriptions. 2016-08-28 05:07:50 +00:00
dholland
880009a06c fix broken xrefs 2016-08-28 00:15:01 +00:00
dholland
c959793a57 Rework pursuant to PR 7934: be more clear about the page granularity
behavior and when new memory is zeroed.

Also, strengthen the warning about mixing with calls to malloc (which
is not a bug) and mention that the portable way to fetch the initial
break is to call sbrk(0). There are implementations in the wild where
using _end as the initial break doesn't work.
2016-08-27 23:06:01 +00:00
christos
e222705068 Improvements to fgetwln(3) from Andrey Chernov:
1) Set the stdio error indicator on __slbexpand() failure.

2) fgetwc(3) may succeed even when ferror(3) is already set
   (for example, consider a program using SIG_IGN on SIGTTIN,
   reading from the tty while in the background, getting EIO,
   then coming to the foreground and reading again).
   So do not force fgetwln(3) to fail in such a case either.
   (Yes, the program should probably clearerr(3) before
   reading again, but let's be nicer in case it forgets.)
2016-08-27 13:15:48 +00:00
christos
fac93a1e7a no need for stdio. 2016-08-27 10:03:16 +00:00
christos
c898927fa5 sync with FreeBSD 2016-08-27 10:01:08 +00:00
christos
53b6bfd5c1 correct case 23 for -0.0 2016-08-27 10:00:38 +00:00
christos
bb5114e4e0 remove debugging 2016-08-27 09:35:13 +00:00
christos
394a54cbfc skip buggy assembly for libm_g.a 2016-08-27 09:15:44 +00:00
christos
a66a750e64 detect overflow in oldexp + newexp 2016-08-27 09:11:56 +00:00
dholland
8c87f52cc0 Add MLINKS for atomic_add_nv, atomic_cas_ni, and so forth - otherwise
you have to remember that they're the same page as plain atomic_add and
atomic_cas, or remember one of the types that they're defined on.
PR 51033.
2016-08-27 08:03:13 +00:00
dholland
f3ab3c700b strtod, not strod. 2016-08-27 02:56:26 +00:00
christos
a3fc1936b1 fix double merge. 2016-08-26 08:33:48 +00:00
christos
048f5b6f16 do the FENV test consistently 2016-08-26 08:31:17 +00:00
christos
b1803eb858 fix sun2 build; only IEEE math platform (and coldfire) without fenv 2016-08-26 08:20:31 +00:00
christos
92e958de60 more fenv for sh 2016-08-25 12:15:28 +00:00
christos
78abb1b97e more compatible with readline history functions. 2016-08-24 13:10:59 +00:00
christos
5b36f996f3 fix ilogb* 2016-08-24 10:03:32 +00:00
christos
96936a322e add ilogb. 2016-08-24 09:10:57 +00:00
christos
87691b796d ilogb for the vax 2016-08-24 09:08:50 +00:00
christos
efaac31f0f fenv.h for alpha 2016-08-23 10:00:15 +00:00
christos
8c27d15300 missing _ 2016-08-22 07:41:10 +00:00
maya
47a6662175 BUGS section is no longer correct
FP_ILOGB0 and FP_ILOGBNAN are both defined in math.h
2016-08-22 07:33:30 +00:00
christos
a78f4eaca1 From OpenBSD:
bugfix: when fgetwc(3) fails, fgetwln(3) must fail as well;
2016-08-22 06:11:39 +00:00
christos
c90b9921a5 unbound additions 2016-08-20 11:21:50 +00:00
skrll
97239cd361 Add a NOP_L 2016-08-13 08:09:17 +00:00
skrll
48bbbdf1d5 PIC_TAILCALL on n32/n64 would mess up GP, so just use SYSTRAP to call
setcontext.

Fixes tests/lib/libc/sys/t_getcontext.c:setcontext_link
2016-08-13 07:49:32 +00:00
skrll
24c5917e57 Provide _OFFSETOF_UC_GREGS_GP and use _OFFSETOF_UC_GREGS_* in getcontext 2016-08-12 15:26:04 +00:00
skrll
f820f85434 Trailing whitespace 2016-08-12 15:21:25 +00:00
kre
1ec349e914 Object to dup2() if target fd is in the range of fd's that
librumphijack reserves for rump to use.

This is not normally a problem, as most applications don't attempt
to use very high fds - but /bin/sh does.

This fix is something of a kludge - really the apparent fd resource limit
ought to be lowered as well, but this is sufficient to allow the shell
to work (when its dup2() gets rejected, it just tries again with a smaller
target fd until it eventually succeeds.)   This fixes the librumphijack
shell ATF tests.

A better, more comprehensive, fix would be good...
2016-08-11 09:48:57 +00:00
skrll
21763d8f6e We need to save the GP of the caller in the context for n32/n64 2016-08-10 16:45:24 +00:00
skrll
7241a8c40f Fix comments 2016-08-10 16:40:24 +00:00
dholland
94048eede3 Typo. 2016-08-08 04:16:45 +00:00
scole
21984c24a3 PR port-ia64/51261
Add stubs for ia64 build
2016-08-05 16:40:47 +00:00
christos
f87fbe2f55 add missing stuff for the affinity calls (Rocky Hotas) 2016-08-05 13:03:13 +00:00
wiz
07114cee33 Remove trailing whitespace. 2016-08-05 08:55:28 +00:00
sevan
9d1016b7d6 Grammar 2016-08-04 16:36:45 +00:00
christos
68df3d57d2 Flesh out sched_protect 2016-08-04 07:09:15 +00:00
christos
c10c4abe0f Realtime signal support from GSoC 2016, Charles Cui. 2016-08-04 06:43:43 +00:00
ryoon
e2898a6bda Fix _SC_TIMER_MAX listing, bump date 2016-08-03 12:40:42 +00:00
wiz
6333fb3d2f Sort errors. 2016-07-30 11:31:00 +00:00
njoly
c38e2c9645 Remove obsolete BUGS section. getsockname(2) report sensible values
for bound UNIX domain sockets.
2016-07-30 11:10:40 +00:00
wiz
8cc73798f2 Remove one of the two SEE ALSO sections. 2016-07-25 22:00:36 +00:00
christos
285a8995e1 unnamed unions need special treatment since they need braced initializers
for old style initializations.
2016-07-20 21:02:04 +00:00
christos
353946982c cplusplus does not like complex named initializers... 2016-07-20 20:06:04 +00:00
christos
b826eda4de use named initializers 2016-07-20 19:26:52 +00:00
skrll
3b2c691c07 Use anonymous union for ptm_ceiling and old __pthread_spin_t field to
maintain backward compatibility and fix hppa build.  hppa has an non-
integer type __pthread_spin_t
2016-07-17 13:49:43 +00:00
skrll
d946c609af KNF 2016-07-16 12:58:11 +00:00
skrll
8f5f191a49 No need to define PSW_MBS as machine/psl.h provides it for us 2016-07-16 09:51:13 +00:00
wiz
c94dcc5db3 Fix mdoclint warnings. 2016-07-15 21:19:19 +00:00
riastradh
e37ca7a7a0 Number the properties. Identify the key erasure property by name. 2016-07-15 15:23:43 +00:00
abhinav
83de4e7bb8 Fix grammar. 2016-07-14 18:36:57 +00:00
abhinav
f282f7d15c Fix grammar. 2016-07-14 18:21:31 +00:00