Commit Graph

14803 Commits

Author SHA1 Message Date
matt 14d704c9e9 Add a workaround for older crt0.o that overwrite r2 (tcb pointer).
(save tcb pointer using _lwp_setprivate in ld.elf_so and retrieve the tcb
via _lwp_getprivate in libc and use it to restore the value in r2).
2011-04-07 02:19:28 +00:00
christos 962e9ad63f fix long double infinity. 2011-04-06 21:55:36 +00:00
jruoho 6e3ec5b1a3 Fix PR # 41894. 2011-04-06 08:38:43 +00:00
plunky c5f754b958 inc pointer, so we store the value in the correct place 2011-04-05 18:58:43 +00:00
plunky 63f86cb4b8 Don't add the passed in 'len' value while testing if the data
space is large enough, to handle the edge case where len is
large (up to SSIZE_MAX may be valid on some machines) causing
pointers to wrap around and the fail condition to be missed.
2011-04-05 18:19:04 +00:00
plunky 354f9cc3c3 correct inverted logic (if sdp_put_data fails, sdp_put_attr should fail) 2011-04-04 19:51:33 +00:00
plunky 0d74ee67d3 remove compile time guard from previous commit, it is not needed
(C99 guarantees [u]intmax types are at least 64-bits)
2011-04-04 18:29:47 +00:00
plunky a468cfe851 handle overflowed values correctly,
also put a compile time guard to warn if INTMAX won't fit in INT64
(all our ports currently have INTMAX = INT64)
2011-04-04 16:19:25 +00:00
blymn eff7afe2e8 Add man page link for define_key 2011-04-04 10:32:04 +00:00
jruoho cbe6dc2e1c Use .Fn for functions. 2011-04-04 08:00:53 +00:00
christos 8056bccd98 Protect against stack smashes (Maksymilian Arciemowicz) 2011-04-03 22:14:15 +00:00
jruoho dc9fc4f125 .Xr uvm_map_protect, not .Fn. 2011-04-03 06:54:30 +00:00
jruoho f364f2ef05 Offset indent. 2011-04-03 06:05:21 +00:00
mbalmer 8ac2ff5d25 Fix misplaced parenthesis, from henning.petersen@t-online.de, thanks. 2011-04-02 10:22:09 +00:00
jruoho 132da5fb56 Offset indent. 2011-03-31 07:52:34 +00:00
jruoho 88d19f0f7c .Li -> .Em. 2011-03-30 16:41:00 +00:00
jruoho d1a07d838a + .Pp. 2011-03-30 16:37:09 +00:00
jruoho 423f8d7704 Improve -width. 2011-03-30 16:29:26 +00:00
blymn 3da4a766de fflush the outfd after setting the cursor visibility so it takes effect
immediately.
2011-03-30 09:47:02 +00:00
jruoho 29a43bf561 From Henning Petersen in PR # 44641: C99 primitive type 'bool' used
as a variable name. Also small KNF, as in FreeBSD.
2011-03-30 08:22:01 +00:00
joerg 928f301be9 Rework TLS initialisation:
- Update TCB for the initial thread in pthread__initthread, not
  pthread__init to get it valid as soon as possible.
- Don't overwrite the pt_tls field in pthread__initthread.
- Don't deallocate pt_tls in pthread__scrubthread. This worked more by
  chance than by design.
- Handle freeing the TLS area in pthread_create after removing the
  thread instance from the dead queue.
2011-03-30 00:03:26 +00:00
jruoho cb0f983e60 Improve -width. 2011-03-29 18:54:54 +00:00
jmmv 255271589f Extend pidfile(3) to support creating pid files in arbitrary locations.
If the argument provided to pidfile(3) contains a '/', then the value is
considered to be an absolute/relative path and the pid file is created
in the given location.

Otherwise, pidfile(3) behaves as before and treats the provided value as
a basename to construct a pid file in /var/run/<basename>.pid.  This means
that to create a pid file named "foo.pid" in the current directory, one
must specify "./foo.pid".
2011-03-29 13:55:37 +00:00
martin ecf8c9b0f0 ABI police: avoid cluttering global registers %g2 and %g7. Not quite there
yet for %g2, but the target is not very well defined. %g7 should be clean
now.
2011-03-28 11:19:12 +00:00
wiz 7091eebfa9 Whitespace and punctuation. 2011-03-27 22:55:07 +00:00
wiz 971b386cde Oh no -- a space! get rid of it, quick. 2011-03-27 22:51:35 +00:00
njoly 119aff4da3 Fix sigprocmask section (3 -> 2). 2011-03-27 12:53:16 +00:00
njoly 63adbe29fb Fix xref, arm32_sync_icache -> arm_sync_icache. 2011-03-27 12:48:41 +00:00
he 08a8bf5254 Fix this so that it builds for vax; where the compiler balks at the
mixture of a union and a double in an expression (imagine that!)
I see other similar uses, and how they pass through for other ports
is beyond me, but I have not touched them in this round.

OK'ed by christos@
2011-03-27 11:21:54 +00:00
christos 2587e6e437 add fpgetprec/fpsetprec 2011-03-26 19:51:41 +00:00
njoly 82815469fb Add quotes for multi-words width string. 2011-03-25 17:15:26 +00:00
pooka 9fdb8e5eff mention rumphijack 2011-03-25 16:13:05 +00:00
pooka 0446c4bc83 add paragraph about kernel clients 2011-03-25 16:07:43 +00:00
joerg 6c7179c5fb Remove support for the old BSDCTYPE format. 2011-03-25 00:45:24 +00:00
bouyer d9210c2405 Add a new libquota library, which contains some blocks to build and/or
parse quota plists; as well as a getfsquota() function to retrieve quotas
for a single id from a single filesystem (whatever filesystem this is:
a local quota-enabled fs or NFS). This is build on functions getufsquota()
(for local filesystems with UFS-like quotas) and getnfsquota();
which are also available to userland programs.
move functions from quota2_subr.c to libquota or libprop as appropriate,
and ajust in-tree quota tools.
move some declarations from kernel headers to either sys/quota.h or
quota/quota.h as appropriate. ufs/ufs/quota.h still installed because
it's needed by other installed ufs headers.
ufs/ufs/quota1.h still installed as a quick&dirty way to get a code
using the old quotactl() to compile (just include ufs/ufs/quota1.h instead of
ufs/ufs/quota.h - old code won't compile without this change and this is
on purpose).
Discussed on tech-kern@ and tech-net@ (long thread, but not much about
libquota itself ...)
2011-03-24 17:05:39 +00:00
dholland 8ba9dddb47 Eliminate dead store. From Henning Petersen in PR 42776. Doesn't change
the output .o file.
2011-03-24 02:29:33 +00:00
martin d2c615416b Avoid using %g7 2011-03-23 20:54:35 +00:00
pooka f347b4496a make work on nb5 again 2011-03-22 22:27:33 +00:00
martin 0c3a269fd8 Remove the sparc-v7 compatibility wrapper functions (.div, .mul, ... .urem),
the compiler never generates (or did generate in the past) 64bit code to call
them, and they are still present in our 32bit compat library.
2011-03-22 12:24:53 +00:00
jruoho a8287d0554 * As is customary, append the parameter names from
SYNOPSIS to the description of the functions.

* Use .Ss for non-standard subtitles.

* Fix two identical subtitles.

* Add missing .It's, fix few .Ft's.

* Use a little more markup.

* Improve offsets.
2011-03-22 07:28:41 +00:00
enami df36fea7b7 Don't use #endif where #else is expected. 2011-03-21 23:37:42 +00:00
christos 2b13247b7f pacify lint. 2011-03-21 22:33:46 +00:00
christos a9f77bad7a Add Emin for the vax. Need to check 2011-03-21 22:33:29 +00:00
christos ab9f1e36c8 fix vax typo. 2011-03-21 19:46:41 +00:00
pooka dc8b381a32 update copyright 2011-03-21 16:41:27 +00:00
christos 374ecd4b4c more de-linting. 2011-03-21 12:53:50 +00:00
christos a23ced05b4 fix some lint on i386 2011-03-21 04:52:09 +00:00
jruoho e1897fd6ba Fix xref; security(8) -> security(7). 2011-03-21 04:42:50 +00:00
christos a46656e6ee Add ld formats for the unit-tests. 2011-03-20 23:16:07 +00:00
christos 61e56760bc Merge the new gdtoa: Note that the built-in tests fail the same way as with
the old gdtoa.
2011-03-20 23:15:35 +00:00