summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2014-10-29Remove workaround for Mac OS X kqueue bug.Alexander Bluhm
OK nicm@
2014-10-29Do not cast a (const void *) pointer to (void *) to avoid a warning.Alexander Bluhm
OK nicm@
2014-10-29dial down the direness of the warning; vnd isn't going anywhere yetTed Unangst
2014-10-29Add a test the checks the syslogd !prog !!prog !* feature.Alexander Bluhm
2014-10-29Calling a function to htonl() a constant 32-bit value into a stackKenneth R Westerback
variable and memcpy() that value into 4 bytes of malloc()'d space seems roundabout. Just memcpy() a four byte constant string into the malloc()'d space as required and kill putULong(). No functional change.
2014-10-29Update test outputs to reflect the fact that routes to loopback addressesMartin Pieuchot
are plain local routes.
2014-10-29remove ugly return value castsTheo de Raadt
2014-10-29convert simple cases of select() to poll()Theo de Raadt
ok doug
2014-10-29delete obscure workaround for a bug in SunOS.Theo de Raadt
(But leave the VMS workaround intact)
2014-10-29use poll() instead of the select malloc/free dance which was used toTheo de Raadt
avoid fd_set overflows. Back when I was young, I fixed these throughout the tree, and the world continued on ignoring the issue... The malloc/free dance was used because poll() was not very portable yet. Now poll() is commonplace, and we should use this safer API. ok guenther millert
2014-10-29Add prototypes for xdr_{accepted,rejected}_reply() and svcudp_enablecache()Philip Guenther
(Both NetBSD and FreeBSD provide these prototypes) ok millert@
2014-10-29use poll() instead of select(), thereby removing the fd_set malloc/freeTheo de Raadt
dance which was used to avoid fd_set overflow with high file descriptor values. ok doug
2014-10-29test various recent improvements of special character renderingIngo Schwarze
2014-10-29Some fine tuning of console rendering of named special characters.Ingo Schwarze
Correct ASCII rendering: \(lb \(<> \(sd Make ASCII rendering agree with groff, using backspace overstrike: \(da \(ua \(dA \(uA \(fa \(c* \(c+ \(ib \(ip \(/_ \(pp \(is \(dd \(dg
2014-10-29replace the use of select and hand rolled deferral of signal handlingDavid Gwynne
with libevent. this has been in snaps for a while without any negative (or positive) feedback. review and tweaks by bluhm@ nicm@ ok bluhm@ deraadt@
2014-10-29In terminal output, unify handling of Unicode and numbered characterIngo Schwarze
escape sequences just like it was earlier implemented for -Thtml. Do not let control characters other than ASCII 9 (horizontal tab) propagate to the output, even though groff allows them; but that really doesn't look like a great idea. Let mchars_num2char() return int such that we can distinguish invalid \N syntax from \N'0'. This also reduces the danger of signed char issues popping up.
2014-10-28add a regression test for the pfctl parser bug recently fixed bySebastian Benoit
mikeb@ in pfctl/parse.y rev 1.641. with feedback from mikeb sthen and henning
2014-10-28In -Tascii mode, print "<?>" only for Unicode escapes of unknownIngo Schwarze
representation, not for character escapes with unknown names. According to groff, the latter produce no output, and we now warn about them.
2014-10-28Make the character table available to libroff so it can check theIngo Schwarze
validity of character escape names and warn about unknown ones. This requires mchars_spec2cp() to report unknown names again. Fortunately, that doesn't require changing the calling code because according to groff, invalid character escapes should not produce output anyway, and now that we warn about them, that's fine.
2014-10-28Tighten Unicode escape name parsing.Ingo Schwarze
Accept only 0xXXXX, 0xYXXXX, 0x10XXXX with Y != 0. This simplifies mchars_num2uc().
2014-10-28Select a proper source address when the bound address isYASUOKA Masahiko
INADDR_BROADCAST the same as INADDR_ANY. ok mpi
2014-10-28Fix pipex(4) to return multicast packets to the caller so that npppd canYASUOKA Masahiko
handle them. Also use M_NOWAIT for copying a multicast packet.
2014-10-28Initialize the lists of the hash tables and the virtual pipexYASUOKA Masahiko
sesssion for multicast in proper way.
2014-10-28Fix pipex(4) to initialize DF bit in IP header for L2TP message.YASUOKA Masahiko
Without this, the packets larger than the minimum MTU on the routes to the L2TP peer had been dropped.
2014-10-28deregister; no binary changeJonathan Gray
ok jsing@ miod@
2014-10-28Remove now useless definesDavid Coppa
ok tedu@
2014-10-28use nanosleep() instead of hackish select(); ok dlgTheo de Raadt
2014-10-28Check the result of sk_*_push() operations for failure.Miod Vallat
ok doug@ jsing@
2014-10-28some new and/or updated regression tests for -Tascii, -Tutf8Ingo Schwarze
and -Thtml rendering of character escape sequences
2014-10-28Refine -Tascii rendering of Unicode characters, mostly to better agreeIngo Schwarze
with groff, in particular in cases where groff uses backspace overstrike. In two cases, agreement is impossible because groff clobbers the previous line: \(*G \(*S In a number of cases, groff rendering is so misleading that i chose to render differently: \(Sd \(TP \(Tp \(Po \(ps \(sc \(r! \(r? \(de While here, also correct the \(la and \(ra Unicode code points.
2014-10-28the if_rxring accounting would get screwed up if the first mbuf toDavid Gwynne
be put on the ring couldnt be allocated. this pulls the code that puts the mbufs on the ring out of myx_rx_fill so it can return early if firstmb cant be allocated, which puts it in the right place to return unused slots to the if_rxring. this means myx rx wont lock up if you're DoSsed to the point where you exhaust your mbuf pools and cant allocate mbufs for the ring. ok jmatthew@
2014-10-27fixup REGRESS_DEPENDS->TEST_DEPENDSGleydson Soares
REGRESS_* idiom died a while ago OK naddy@ sthen@
2014-10-27Merge linkw and movew which are virtually identical.Nicholas Marriott
2014-10-27Move cfg_causes local into cfg.c and remove struct causelist.Nicholas Marriott
2014-10-27Remove the spilling code for IBAT register and set up the first IBAT registerMark Kettenis
to cover the first 8 MB of memory such that it covers kernel .text and not much else. This is a first step towards W^X in the kernel for machines with G4 and older processors. ok mpi@
2014-10-27Fixup incorrect expansion of the networking mask for dynamic interfaceMike Belopuhov
specifications under certain circumstances resulting in potentially elevated access permissions for IPv6 traffic. Reported by sthen@; ok henning benno sthen
2014-10-27Ensure proper separation of grep's options and rcctl options thatRobert Peichaer
may end up in ${svc} by mistake. OK ajacoutot@
2014-10-27Support overstriking by backspace in PostScript and PDF output.Ingo Schwarze
Of course, this is only a minor improvement; it would be much better to support non-ASCII characters in these output modes, but that would require major changes that i'm not going to work on right now. The main reason for doing this is that it allows to get ASCII output closer to groff.
2014-10-27Compare with/use UINT16_MAX rather than 65535. Less magic is more.Kenneth R Westerback
2014-10-27Remove execute permission from most pages in the kernel pmap. This is a firstMark Kettenis
step towards W^X in the kernel, even though it is only effective on machines with a G5 processor. ok mpi@
2014-10-27allow to separately skip groff-mandoc comparisons in -Tascii and -Tutf8 modeIngo Schwarze
2014-10-27Nuke getLong(), getShort(), getUShort(). Two line functions (memcpy();Kenneth R Westerback
ntoh[ls]()) obscure rather than simplify things. Especially when they are used only once. Just use the expansion.
2014-10-27Handle output encoding for unicode, numbered and named escape sequencesIngo Schwarze
in one common, safe way instead of three different ways. In particular, * skip NUL, it is used to mean "no output desired" * deny 0x01-0x1F and 0x7F-0x9F, print REPLACEMENT CHARACTER instead * print 0x20-0x7E literally or name-encoded, as required * print characters above 0x9F numerically
2014-10-27Infrastructure for testing HTML output;Ingo Schwarze
this is relevant because we use the HTML output module for man.cgi(8), where broken output can cause security issues.
2014-10-27htonl(ntohl(memcpy'd buf)) seems like the long way around to copyKenneth R Westerback
an IPv4 address. Just memcpy() it.
2014-10-27Stop supporting wsmoused and X in parallel. This code is racy andMartin Pieuchot
known to break mice upon resume. ok shadchin@
2014-10-27Zap extraneous whitespace and a stuttered extra 'break;'.Kenneth R Westerback
2014-10-27Fix a regression in term.c rev. 1.89 reported by bentley@:Ingo Schwarze
In UTF-8 output, do not print anything if mchars_spec2cp() returns 0. In particular, this repairs handling of zero-width spaces (\&). While here, let mchars_spec2cp() return 0xFFFD instead of -1 if the character is not found, simplifying the using code. In HTML output, do not print obfuscated ASCII characters and do not test for one-char escapes, mchars_spec2cp() already does that.
2014-10-27use #ifdef DDB for Debugger()Jonathan Gray
2014-10-26Allow the current lease to expire without causing dhclient to segKenneth R Westerback
fault when it tries to get a new one. Problem spotted by weerd@