| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
| |
by asking some things that need unpredictable numbers to read
/dev/random instead.
|
|
|
|
|
|
| |
standard.
Requested by: bde
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
serve two purposes: (1) so we can maintain backwards compatibility with
protocols (rwhod, dump, etc...) that either assume time_t is 32 bits or
assume sizeof(time_t) == sizeof(int), or make other similar assumptions.
(2) To tag such routines (by the presence of these calls) for future
cleanup/extension work.
The 32->64 routine, time32_to_time() (when time_t is 64 bits, that is),
is defined specifically to implement temporal locality to properly set the
msb bits of a 64 bit time_t quantity, using the 50 year rule. The locality
code has not been implemented yet (and doesn't need to be for a while),
but that is the intent. This will allow us to maintain backwards protocol
compatibility past 2038.
These routines are intended to be platform and time_t agnostic.
MFC after: 1 week
|
|
|
|
|
|
|
| |
the C99 variable __func__ and never for C++. Provide a more meaningful
example in the assert(3) manual.
Reviewed by: asmodai, bde
|
|
|
|
| |
Reviewed by: asmodai, bde
|
|
|
|
|
|
| |
since that is what we use now and this insulates us from any time_t
tweaks here. We can define a record format that uses 64 bit times if/when
we need to.
|
|
|
|
|
|
| |
which do not match the reality anyway.
Approved by: deischen, bde
|
| |
|
|
|
|
| |
Reviewed by: obrien
|
|
|
|
| |
active.
|
|
|
|
|
|
| |
with <machine/asm.h>.
Reviewed by: bde
|
|
|
|
|
|
| |
Change __assert() function to print failing function name.
#if 0 the sccsid block.
This makes us C99 conforming.
|
|
|
|
|
| |
our pre-check control. Do the same way as refill.c does when it set __SERR,
i.e. clear read and ungetc buffers. Clear EOF flag too.
|
|
|
|
|
| |
It was correct, but not needed because internal buffer cleared on each seek
outside of it.
|
| |
|
|
|
|
|
| |
seek. It means that beginning of read buffer becomes not the same as current
file position.
|
|
|
|
|
|
|
|
|
|
| |
using rcmd directly. This has been in my tree for a long time, but we
may need to sync with OpenBSD before MFC.
Obtained from: openbsd
PR: 15830
MFC after: 2 months
|
|
|
|
|
|
|
| |
manual page), fix capitalization, and remove chflags reference from
SEE ALSO since the only time it's referenced is with an .Xr, anyway.
Submitted by: bde
|
| |
|
| |
|
| |
|
|
|
|
| |
Obtained from: Intel (for the divide code)
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
If the syscall fails, fall back on the old method as a compatability
measure.
|
| |
|
| |
|
|
|
|
|
| |
PR: 31025
Submitted by: Tim Singletary <tsingle@vetinsite.com>
|
| |
|
| |
|
|
|
|
|
|
|
| |
Add a missing word. Bump document date.
Inspired by: IEEE Std 1003.1-200x (Draft 7)
MFC after: 3 days
|
|
|
|
| |
character. Bump document date. Add a missing comma.
|
|
|
|
|
|
|
|
| |
- Mention ``eaccess'' in the NAME section.
- Use intro(2) terminology.
- Markup fixes.
Reviewed by: rwatson
|
|
|
|
|
|
|
|
| |
Updated by peter following KSE and Giant pushdown.
I've running with this patch for two week with no ill side effects.
PR: kern/12014: Fix SysV Semaphore handling
Submitted by: Peter Jeremy <peter.jeremy@alcatel.com.au>
|
| |
|
| |
|
|
|
|
| |
library.
|
| |
|
| |
|
|
|
|
| |
Requested by: brian, gad
|
|
|
|
|
|
| |
id cruft.
Submitted by: bde
|
|
|
|
|
|
|
|
| |
number of characters that are searched. This is especially useful
with file operations and non-NUL terminated strings.
Silence from: -audit, -hackers
MFC after: 5 days
|
|
|
|
| |
shouldn't.
|
| |
|
|
|
|
|
| |
that used to live in RPC 4.0. This is needed for yppasswd and
rpc.yppasswdd to work correctly. Patch supplied by Martin Blapp.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
1) Allow the sending of more than one control message at a time
over a unix domain socket. This should cover the PR 29499.
2) This requires that unp_{ex,in}ternalize and unp_scan understand
mbufs with more than one control message at a time.
3) Internalize and externalize used to work on the mbuf in-place.
This made life quite complicated and the code for sizeof(int) <
sizeof(file *) could end up doing the wrong thing. The patch always
create a new mbuf/cluster now. This resulted in the change of the
prototype for the domain externalise function.
4) You can now send SCM_TIMESTAMP messages.
5) Always use CMSG_DATA(cm) to determine the start where the data
in unp_{ex,in}ternalize. It was using ((struct cmsghdr *)cm + 1)
in some places, which gives the wrong alignment on the alpha.
(NetBSD made this fix some time ago).
This results in an ABI change for discriptor passing and creds
passing on the alpha. (Probably on the IA64 and Spare ports too).
6) Fix userland programs to use CMSG_* macros too.
7) Be more careful about freeing mbufs containing (file *)s.
This is made possible by the prototype change of externalise.
PR: 29499
MFC after: 6 weeks
|
|
|
|
|
|
| |
of the new RCSID macros.
MFC after: 3 days
|