summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Fix the handle locking in stdio to use flockfile/funlockfileguenther2009-10-2148-158/+302
| | | | | | | | | | | | internally when and where required. Macros in <stdio.h> are updated to automatically call the underlying functions when the process is threaded to obtain the necessary locking. A private mutex is added to protect __sglue, the internal list of FILE handles, and another to protect the one-time initialization. Some routines in libc that use getc() change to use getc_unlocked() as they're either protected by their own lock or aren't thread-safe routines anyway. ok kurt@, earlier version tested by sthen@ and jj@
* "usage:" is lowercase; spacing.sobrado2009-10-211-3/+3
|
* After forking, the child is single threaded, so tell libc that. Thisguenther2009-10-212-2/+8
| | | | | | is needed to avoid deadlocks in popen() on FILE locking. ok kurt@
* sort options; synchronize argument names with synopsis;sobrado2009-10-211-4/+5
| | | | | | split the usage's output in two lines to fit on standard displays. ok millert@
* Tweak descriptions for up/down pane to be clearer.nicm2009-10-211-4/+4
|
* Don't redraw the scroll region on linefeed/reverse index unless it is necessarynicm2009-10-211-17/+19
| | | | | (the cursor is at the bottom/top). Should fix slow cursor movement when using vi in a pane spotted by pirofti@.
* catch signals when we start doing stuff... so that cleaning up at theespie2009-10-211-1/+7
| | | | end always occur, unless you insist on ^C.
* minor bug-fix: partial_install is not print.espie2009-10-211-6/+6
| | | | remove arguments that are no longer used.
* Some terminals don't correctly clear their let's-wrap flag after changing thenicm2009-10-211-1/+10
| | | | | | | scroll region (which moves the cursor to 0,0). This means that if the cursor was at the edge of the screen, any further output after scroll region change incorrectly causes a line wrap. Add a workaround to move the cursor to position 0 if it is at the screen edge before changing scroll region.
* Getting the read and write ends of the pipe the right way round is usuallynicm2009-10-211-8/+8
| | | | recommended. DOH.
* when freeing buffers (i.e. when sio_stop() is called on client side),ratchov2009-10-211-1/+2
| | | | | | clear the ``tickpending'' flag to avoid sending ticks corresponding to non existent buffers (which in turn confuses clients). found and analysed by jakemsr@
* %zu not %u, doh.nicm2009-10-202-4/+4
|
* Sort out stdout before stdin/stderr in case the stdout side of the pipe got onenicm2009-10-201-7/+7
| | | | of their fds.
* Correctly nuke the EOL $ marker when scrolling, reported by martynas@, thanks.nicm2009-10-201-4/+7
|
* Check mmap return value against MAP_FAILED not NULL.pirofti2009-10-201-2/+2
| | | | Okay deraadt@, otto@.
* Try to reduce the UTF-8 mess.nicm2009-10-205-185/+200
| | | | | | | | | | | | Get rid of passing around u_char[4]s and define a struct utf8_data which has character data, size (sequence length) and width. Move UTF-8 character collection into two functions utf8_open/utf8_append in utf8.c which fill in this struct and use these functions from input.c and the various functions in screen-write.c. Space for rather more data than is necessary for one UTF-8 sequence is in the utf8_data struct because screen_write_copy is still nasty and needs to reinject the character (after combining) into screen_write_cell.
* UTF-8 combined character fixes.nicm2009-10-203-39/+76
| | | | | | | | | | Thai can have treble combinations (1 x width=1 then 2 x width=0) so bump the UTF-8 cell data size to 9 and alter the code to allow this. Also break off the combining code into a separate function, handle any further combining beyond the buffer size by replacing the character with _s, and when redrawing the UTF-8 character don't assume the first part has just been printed, redraw the entire line.
* Move the check for whether to force a line wrapper lower down into the tty codenicm2009-10-202-23/+17
| | | | where it has access to the tty width, which is what should have been checked.
* Nuke stray blank line.nicm2009-10-201-2/+1
|
* the flags -h and -u are mutually exclusive; we do not need enclosingsobrado2009-10-202-19/+14
| | | | | | | | | | -f in brackets in the list of options; while here, sort the options in the manual page. jmc@ greatly improved the diff fixing a few additional bits on the manual page. ok jmc@
* sync to 1.9.7: use .In instead of .Fd #includeschwarze2009-10-202-6/+6
|
* ex(1) and vi(1) are different editors. diff based on the originalsobrado2009-10-201-3/+3
| | | | | | | | | | | printed edition of the User's Reference Manual from USENIX and O'Reilly. 4.4BSD had exactly this, that is much more accurate than our current description (while here, Jason observed that both FreeBSD and NetBSD do the same). tweaked by jmc@ ok jmc@
* improve the synopsis of mkalias(8) and sort the list of flags onsobrado2009-10-202-27/+26
| | | | | | the manual page. ok jmc@
* describe a bit more about High Definition Audio architecturejakemsr2009-10-201-7/+227
| | | | as well as how the mixer item names are derived.
* recognize the VIA VT1702 codeckevlo2009-10-201-1/+11
| | | | ok jakemsr@
* "active" is an unused member of the scsi_link structure. i couldnt find anydlg2009-10-201-2/+1
| | | | | | uses of it in our tree. ok krw@ deraadt@
* antsyjsg2009-10-199-550/+217
| | | | | | no binary change apart from nfsm_reqhead() which is clearly correct. ok thib@
* sync to 1.9.7: consolidate some -man -Tascii functions,schwarze2009-10-191-66/+32
| | | | and use a static buffer for the footer
* sync to 1.9.7: kristaps@ renamed part of the DECL_ARGS :-(schwarze2009-10-191-244/+216
| | | | intricately mixed with three minor .Bd fixes
* update man pagesgilles2009-10-192-6/+6
|
* change virtual rule so that it reads: accept for virtual "mapname", insteadgilles2009-10-191-6/+6
| | | | | | of: accept for virtual map "mapname" ... discussed with jacekm@
* sync to 1.9.7: the same function was declared in two different headers;schwarze2009-10-191-2/+1
| | | | spotted by Ulrich Spoerlein, uqs at spoerlein dot net
* sync to 1.9.7: avoid using the same identifier for a static functionschwarze2009-10-191-31/+31
| | | | | and for a local variable in another function in the same compilation unit; suggested by Ulrich Spoerlein, uqs at spoerlein dot net
* currently, smtpd is capable of having multiple listeners with differentgilles2009-10-195-41/+99
| | | | | | | | | | | | | | | | options but they will all share the same ruleset. this means that there is no way to have a rule apply to a session established on one listener but not applied on another. this commit brings initial support for tagging listeners and having the rules able to match these specific listeners. The following will define a rule which will only apply to interfaces tagged as "mynet": listen on lo0 # implicit lo0 tag listen on fxp0 tag mynet listen on fxp1 tag mynet accept on mynet for domain "example.org" deliver to mbox
* sync to 1.9.7: compatibility fix; from joerg at netbsd dot orgschwarze2009-10-191-4/+4
|
* sync to 1.9.7: typo; from Alan Bueno, alan dot bsd at gmail dot comschwarze2009-10-191-2/+2
|
* users within virtual domains do not necessarily map to a real user account,gilles2009-10-193-12/+42
| | | | | | | | | | teach smtpd how to deliver using specific user permissions: accept for virtual map "foo" deliver to maildir "/m/%d/%u" user foo will deliver mail under /m/domain/user as user foo idea and initial diff discussed with jacekm@
* fix compile time warning due to missing castgilles2009-10-191-2/+2
|
* Correct a target name so that we don't rebuild vers.o (and thenguenther2009-10-1927-60/+56
| | | | | | | bsd) unless some other object has changed. Rebuild and reinstall in /usr/src/usr.sbin/config/ after updating! "I like it" deraadt@
* sync to 1.9.6: minor fixes:schwarze2009-10-191-6/+3
| | | | | * avoid blank character before the closing ">" of .In * .Bt can not have children
* sync to 1.9.6: multiple improvements to references (.Rs)schwarze2009-10-195-21/+170
| | | | | | | * validate and order .Rs child nodes * underline book title (.%B) and issuer (.%I) * enclose title of article (.%T) in quotes * avoid calling mdoc_verr directly, use a proper error code instead
* sync to 1.9.6: do not die from .Bd -literal -offset w/o arg (and similar)schwarze2009-10-192-15/+56
| | | | | Actually, our ancient groff behaves slightly differently than this fix, but not to die is already an improvement. Needs a closer look later.
* update to tzdata2009o from elsie.nci.nih.govmillert2009-10-192-13/+104
|
* remove almost all references to set->handle, iterate over newer in mostespie2009-10-192-9/+11
| | | | cases (todo: rebuild dependency headers for the complex case...)
* iterate over newer instead of 1 single handleespie2009-10-191-28/+38
|
* basic routines to handle the merging of updatesets: mark updatesets asespie2009-10-193-5/+39
| | | | | already done, separate remove/mark_installed in tracker, create a merge method that allows the merging of updatesets.
* cleanup method that does more or less what's neededespie2009-10-192-11/+20
|
* sync to 1.9.6: two newline fixes:schwarze2009-10-191-2/+5
| | | | | * newline before .Rs only below SEE ALSO * newline after .Lb only below LIBRARY
* Stop updating the screen when not in output mode, stops copy mode gettingnicm2009-10-191-1/+4
| | | | confused.
* sync to 1.9.6: u_char lives in <sys/types.h>schwarze2009-10-193-3/+9
| | | | | noticed by uqs at spoerlein dot net on FreeBSD, where <stdlib.h> does not include <sys/types.h>