| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
| | |
|
| | |
|
| |
| |
| |
| | |
Previously, we were relying on <sys/_types.h> to include it implicitly.
|
| | |
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Add two new functions: ttyref() and ttyrel(). ttymalloc() creates a struct
tty with a reference count of one. when ttyrel sees the count go to zero,
struct tty is freed.
Hold references for open ttys and for ttys which are controlling terminal
for sessions.
Until drivers start using ttyrel(), this commit will make no difference.
|
| | |
|
| | |
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
different cards that matched vendor/id, but weren't wi cards. This is
because the vendor foolishly didn't have unique product ids. Symbol
has a serial card that would otherwise match the wi driver, for
example...
Taken from a patch for xe posted by: Carlos Velasco
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
recursive entering of the socket code from the routing code:
- Modify rt_dispatch() to bundle up the sockaddr family, if any,
associated with a pending mbuf to dispatch to routing sockets, in
an m_tag on the mbuf.
- Allocate NETISR_ROUTE for use by routing sockets.
- Introduce rtsintrq, an ifqueue to be used by the netisr, and
introduce rts_input(), a function to unbundle the tagged sockaddr
and inject the mbuf and address into raw_input(), which previously
occurred in rt_dispatch().
- Introduce rts_init() to initialize rtsintrq, its mutex, and
register the netisr. Perform this at the same point in system
initialization as setup of the domains.
This change introduces asynchrony between the generation of a
pending routing socket message and delivery to sockets for use
by userspace. It avoids socket->routing->rtsock->socket use and
helps to avoid lock order reversals between the routing code and
socket code (in particular, raw socket control blocks), as route
locks are held over calls to rt_dispatch().
Reviewed by: "George V.Neville-Neil" <gnn@neville-neil.com>
Conceptual head nod by: sam
|
| |
| |
| |
| | |
This should fix multicast reception.
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
* Replace handrolled crc calculation with ether_crc32_le().
Based on:
PR: 67544
Submitted by: HASHI Hiroaki <hashiz@tomba.cskk-sv.co.jp>
|
| |
| |
| |
| |
| |
| | |
if FreeBSD header files, etc, support it.
Submitted by: Sergey Mokryshev <mokr@mokr.net>
|
| |
| |
| |
| |
| | |
This is one of the few RC scripts that doesn't use rc.subr, and thus
doesn't source rc.conf. :-(
|
| |
| |
| |
| |
| | |
Obtained from: DragonFly BSD
MFC after: 3 days
|
| |
| |
| |
| | |
Approved by: bmilekic (mentor)
|
| | |
|
| |
| |
| |
| |
| | |
Reviewed by: md5
Approved by: das (mentor)
|
| |
| |
| |
| | |
Approved by: das (mentor)
|
| |
| |
| |
| | |
Approved by: das (mentor)
|
| |
| |
| |
| |
| |
| |
| | |
- Cast isdigit's argument to unsigned char.
- Remove the now unused variable i.
Approved by: das (mentor)
|
| |
| |
| |
| | |
Approved by: das (mentor)
|
| | |
|
| |
| |
| |
| | |
Requested by: phk
|
| | |
|
| |
| |
| |
| | |
Reminded by: ru
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
have no entries to print (either due to an empty directory or an
error). This makes the -l and -s options more consistent, like
Solaris and (Debian) Linux. To make this happen, tweak two
optimizations on the second call to display():
- Don't skip display() altogether, even if list == NULL.
- Don't skip the call to the printfn in display() if we
need to print the total.
PR: 45723
|
| |
| |
| |
| |
| | |
if there are no entries, these functions may be called to print the
total number of blocks (0) for consistency's sake.
|
| |
| |
| |
| |
| |
| | |
for the reader's convenience.
Suggested by: ru
|
| |
| |
| |
| | |
Reviewed by: ru
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
permission), try to continue in FTS_DONTCHDIR mode. Of course this
won't work for long paths, but we can't descend more than one pathname
component beyond the directory anyway if we lack search permission.
Here is a transcript demonstrating the change, where oldls is ls(1)
linked with the old fts(3):
das@VARK:~> mkdir t && touch t/{a,b,c} && chmod u-x t
das@VARK:~> oldls t
a b c
das@VARK:~> oldls -l t
das@VARK:~> \ls t
a b c
das@VARK:~> \ls -l t
ls: a: Permission denied
ls: b: Permission denied
ls: c: Permission denied
I had forgotten about this patch until bde reminded me. He reports
using it without problems for over a year.
PR: 45723
|
| |
| |
| |
| |
| |
| | |
since the macro isn't really a predicate, and it has side-effects.
Also, don't set errno if prepwrite() fails, since this is done in
prepwrite() now.
|
| |
| |
| |
| | |
since the macro isn't really a predicate, and it has side-effects.
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
writable. Affected callers include fwrite(), put?(), and *printf().
The issue of whether this is the right errno for funopened streams is
unresolved, but that's an obscure case, and some errno is better than
no errno.
Discussed with: bde, jkh
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
pmap_extract() already does it.
In pmap_enter(), opa has already been masked so don't do it again.
Wrap a long line (recent transgression).
Use trunc_page() in pmap_mapdev() instead of anding with PG_FRAME, since
that is what we really meant.
Submitted by: alc (first item)
|
| | |
|
| | |
|
| |
| |
| |
| | |
Obtained from: das
|
| |
| |
| |
| | |
Submitted by: (argh, I can't find the email)
|
| |
| |
| |
| |
| |
| |
| |
| | |
- export the rest of the cpu features (and amd's features).
- turn on EFER_NXE, depending on the NX amd feature bit
- reorg the identcpu stuff a bit in order to stop treating the
amd features as second class features (since it is now a primary feature
bit set) and make it easier to export.
|
| |
| |
| |
| |
| |
| | |
lives in the top 12 'available' bits. atop() in the PHYS_TO_VM_PAGE()
macro only masks off the lower bits (by accident) and the upper bits
in the 64 bit ptes turn into "interesting" index values.
|
| | |
|
| |
| |
| |
| |
| | |
(which doesn't work all that well when there are bits at the top that are
masked by PG_FRAME)
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
pmap_remove() would be called with a huge range and we'd stride across
it in only 2MB chunks. This would manifest as massive cpu time and a
largely unresponsive system during hard swap. Instead, check the higher
page directories which means we can run pmap_remove() in just a few
hundred loop iterations instead of millions since we can process
address space in chunks of 512GB and 1GB as well as 2MB.
Eternal thanks to: tmm
|
| | |
|
| |
| |
| |
| |
| |
| |
| | |
Windows 95/98/ME FAT32 primary partition ARE supported.
Submitted by: "Ted Mittelstaedt" <tedm@toybox.placo.com>
MFC After: 1 week
|
| |
| |
| |
| |
| | |
don't check for accidental usage of mbuf 'how' flags as
they are the same thing.
|
| |
| |
| |
| |
| |
| |
| | |
using __DECONST() for something, and that reference has been removed.
Noticed by: Helge Oldach
MFC after: 13 days
|
| | |
|