| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
used.
|
|
|
|
|
|
|
|
|
|
|
|
| |
They are atomic, but return in essence what is in the "time" variable.
gettime() is now a macro front for getmicrotime().
Various patches to use the two new functions instead of the various
hacks used in their absence.
Some puntuation and grammer patches from Bruce.
A couple of XXX comments.
|
| |
|
| |
|
| |
|
|
|
|
| |
Found by: -Wunused
|
|
|
|
|
|
|
|
|
|
|
|
| |
it in struct proc instead.
This fixes a boatload of compiler warning, and removes a lot of cruft
from the sources.
I have not removed the /*ARGSUSED*/, they will require some looking at.
libkvm, ps and other userland struct proc frobbing programs will need
recompiled.
|
|
|
|
|
|
|
|
|
|
|
| |
pointy hat last? :-]
When one is selecting (or polling) for write, it helps if we use the
write side of the pipe when requesting wakeups instead of the read side.
This broke ghostview (at least) - I'm suprised it wasn't noticed for
so long.
Reviewed by: Greg Lehey <grog@lemis.com>
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
a simple, clean zone type allocator. This new allocator will also be
used for machine dependent pmap PV entries.
|
|
|
|
|
| |
supported nameless pipes being indistinguishable from fifos. We're not
going back.
|
|
|
|
|
|
|
|
| |
<sys/ttycom.h> and sometimes <sys/filio.h> instead of <sys/ioctl.h>
in miscellaneous files. Most of these files have nothing to do
with ttys but need to include <sys/ttycom.h> to get the definitions
of TIOC[SG]PGRP which are (ab)used to convert F[SG]ETOWN fcntls into
ioctls.
|
|
|
|
|
| |
Fixed everything that depended on getting fcntl.h stuff from the wrong
place. Most things don't depend on file.h stuff at all.
|
|
|
|
|
|
| |
form `tv = time'. Use a new function gettime(). The current version
just forces atomicicity without fixing precision or efficiency bugs.
Simplified some related valid accesses by using the central function.
|
|
|
|
| |
ready for it yet.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
changes, so don't expect to be able to run the kernel as-is (very well)
without the appropriate Lite/2 userland changes.
The system boots and can mount UFS filesystems.
Untested: ext2fs, msdosfs, NFS
Known problems: Incorrect Berkeley ID strings in some files.
Mount_std mounts will not work until the getfsent
library routine is changed.
Reviewed by: various people
Submitted by: Jeffery Hsu <hsu@freebsd.org>
|
|
|
|
|
|
|
|
| |
This will make a number of things easier in the future, as well as (finally!)
avoiding the Id-smashing problem which has plagued developers for so long.
Boy, I'm glad we're not using sup anymore. This update would have been
insane otherwise.
|
|
|
|
| |
Submitted by: bde
|
|
|
|
|
|
| |
operations for large transfers. There are essentially no differences
for small transfers, but big transfers should perform about 20%
better.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Fixed initialization of pipe_pgid - don't default to pid 0 (swapper) for
SIGIO.
Added comments about other implicit initializations, mostly for struct
stat.
Fixed initialization of st_mode. S_IFSOCK was for when pipes were sockets.
It is probably safe to fix the bogus S_ISFIFO() now that pipes can be
distinguished from sockets in all cases.
Don't return ENOSYS for inappropriate ioctls.
|
|
|
|
| |
Reviewed by: bde
|
| |
|
|
|
|
| |
Reviewed by: bde
|
|
|
|
|
| |
Bruce Evans (of course :-)).
Submitted by: bde
|
|
|
|
|
|
|
| |
deadlock due to mismanagement of busy counters.
Reviewed by: dyson
Submitted by: bde
|
|
|
|
| |
wakeup channels more consistant also.
|
|
|
|
| |
bitches about it..
|
|
|
|
| |
and make the select wakup code a little neater.
|
|
|
|
| |
add some missing wakeups by the write side to the read side.
|
| |
|
|
|
|
|
|
|
|
| |
Only modify times on success.
splhigh() around time variable usage.
Make atomic writes more posix compliant.
Spelling errors.
Submitted by: bde
|
|
|
|
| |
system can panic easily without this patch.
|
|
|
|
| |
new pipe code.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
fixes for previous version of new pipes from Bruce Evans. This
new version:
Supports more properly the semantics of select (BDE).
Supports "OLD_PIPE" correctly (kern_descrip.c, BDE).
Eliminates incorrect EPIPE returns (bash 'pipe broken' messages.)
Much faster yet, currently tuned relatively conservatively -- but now
gives approx 50% more perf than the new pipes code did originally.
(That was about 50% more perf than the original BSD pipe code.)
Known bugs outstanding:
No support for async io (SIGIO). Will be included soon.
Next to do:
Merge support for FIFOs.
Submitted by: bde
|
|
|
|
| |
This one fixes a problem with interactions with signals.
|
|
|
|
| |
found the problems, and this commit will fix the "first batch" :-).
|
|
|
|
|
| |
that DG detected, and promptly found a fix.
Submitted by: davidg
|
|
commits, pipe performance should increase significantly. The pipe(2)
system call is currently supported, while fifofs will be added later.
|