aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/plumb
Commit message (Collapse)AuthorAgeFilesLines
* all: remove need for `-fcommon`Dan Cross2025-07-252-9/+10
| | | | | | | | | | Use `extern` where appropriate so that we can remove `-fcommon` on macOS and others. On macOS, `-fcommon` generates a number of linker warnings. I've tested building on macOS, Linux, FreeBSD, NetBSD, OpenBSD and illumos. I am not in a position to test on AIX or other more esoteric platforms, however.
* plumber: increase NMATCHSUBEXP up to 100Igor Burago2023-03-311-1/+1
| | | | | Thus up to two-digit subexpression match variables are supported ($1 through $99) in addition to the entire expression match ($0).
* plumber: use strtoul to parse subexpression match variable substitutionsIgor Burago2023-03-301-24/+9
|
* plumber: increase NMATCHSUBEXP up to libregexp's NSUBEXPIgor Burago2023-03-301-1/+1
|
* plumber: allow multi-digit subexpression match variable substitutionsIgor Burago2023-03-301-2/+23
|
* plumber: parametrize the number of stored match pattern subexpressionsIgor Burago2023-03-302-9/+15
|
* plumber: allow underscores in variable names in plumbing rulesIgor Burago2022-09-071-10/+19
| | | | Fixes #561.
* plumber: set match variables past the first non-matching subexpressionIgor Burago2022-09-071-6/+6
| | | | Fixes #563.
* plumber: fail on buffer exhaustion or runaway quotes in string expansionIgor Burago2022-09-061-11/+25
|
* libthread: add threadmaybackgroundRuss Cox2020-12-301-0/+6
| | | | | | | | Programs that want to background themselves now need to define threadmaybackground returning 1. This avoids a confusing (to people and debuggers) extra parent process for all the threaded programs that will never want to background themselves.
* Trivial changes: whitespace and modes.Dan Cross2020-01-101-2/+2
| | | | | | | | | Remote whitespace at the ends of lines. Remove blank lines from the ends of files. Change modes on source files so that they are not executable. Signed-off-by: Dan Cross <cross@gajendra.net>
* plumber: add -f (foreground) option (#288)Jason Felice2019-10-293-4/+11
| | | | In MacOS, services run by launchd must run in the foreground, since launchd manages forking and other resources.
* plumber: fix EOF detection on writes to rules file (#257)Fazlul Shahriar2019-09-191-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Instead of checking Fcall.data==nil, check Fcall.count==0. The former check always fails after `gcc -O2` optimizations (gcc version 8.3.0). Also fix an out-of-bound read detected by valgrind: ``` ==31162== Invalid read of size 1 ==31162== at 0x11005E: morerules (rules.c:739) ==31162== by 0x110254: writerules (rules.c:775) ==31162== by 0x10D2FE: fsyswrite (fsys.c:848) ==31162== by 0x10C304: fsysproc (fsys.c:248) ==31162== by 0x112E8C: threadstart (thread.c:96) ==31162== by 0x4A682BF: ??? (in /usr/lib/libc-2.29.so) ==31162== Address 0x4ea984a is 0 bytes after a block of size 250 alloc'd ==31162== at 0x483AD7B: realloc (vg_replace_malloc.c:826) ==31162== by 0x1196F3: p9realloc (malloc.c:53) ==31162== by 0x10BDFD: erealloc (plumber.c:124) ==31162== by 0x10FCD9: concat (rules.c:642) ==31162== by 0x10FCD9: concat (rules.c:635) ==31162== by 0x110230: writerules (rules.c:773) ==31162== by 0x10D2FE: fsyswrite (fsys.c:848) ==31162== by 0x10C304: fsysproc (fsys.c:248) ==31162== by 0x112E8C: threadstart (thread.c:96) ==31162== by 0x4A682BF: ??? (in /usr/lib/libc-2.29.so) ``` Fixes #256
* plumb: remove debugging printRuss Cox2012-05-151-1/+0
| | | | | R=rsc http://codereview.appspot.com/6210059
* plumber: comment out bogus user name checkRuss Cox2010-10-071-0/+2
| | | | | R=rsc http://codereview.appspot.com/2295043
* post9pservice: add extra arg to unmodified callsRuss Cox2008-04-171-1/+1
|
* Use gcc -ansi -pedantic in 9c. Fix many non-C89-isms.rsc2006-04-012-3/+3
|
* NetBSD-macppc ctype needs uchars.rsc2005-09-091-3/+3
|
* add -9 for debuggingrsc2005-03-181-0/+4
|
* Many small edits.rsc2005-01-131-3/+1
|
* add $plan9 variablersc2005-01-111-0/+5
|
* do threading rightrsc2005-01-042-26/+4
|
* exit correctlyrsc2005-01-041-7/+7
|
* Goodbye SHORTLIBrsc2005-01-041-1/+0
|
* be like plan 9 plumberrsc2004-12-281-3/+22
|
* avoid use of an extra procrsc2004-12-281-1/+1
|
* FreeBSD tweaksrsc2004-12-281-1/+2
|
* use threaddaemonizersc2004-12-281-12/+1
|
* update to use new thread libraryrsc2004-12-261-4/+9
|
* Compare function pointers against 0 rather than nil.wkj2004-07-091-1/+1
|
* clean up when finished.rsc2004-04-191-1/+0
| | | | | don't set PLAN9 don't set PLAN9
* SunOS can rot in hell.rsc2004-03-261-16/+20
|
* Today's changes.rsc2004-03-253-4/+6
| | | | More changes.
* Small tweaksrsc2004-03-211-0/+2
| | | | Lots of new code imported.
* Amazingly picky bug fixes from Valgrind.rsc2004-03-052-1/+7
|
* Various little fixes.rsc2004-03-051-1/+1
|
* Pipes cannot use SOCK_DGRAM. Back to SOCK_STREAM.rsc2004-03-051-1/+1
| | | | | | Add debugging to fdwait. Rewrite getcallerpc on PowerMac to be correct.
* Various tweaks.rsc2004-02-291-1/+1
|
* Small tweaks to make things build again.rsc2004-02-295-26/+21
|
* Add support for user-level 9P servers/clients and various bug fixes to go ↵rsc2003-12-116-74/+60
| | | | with them.
* make -> mkrsc2003-11-231-16/+0
|
* Plan 9 version, nothing tweaked yet.rsc2003-11-237-0/+2596
|
* Single-threaded plumber that can run "start" rules.rsc2003-10-141-0/+16
Thanks to Caerwyn Jones.