aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/fossil
Commit message (Collapse)AuthorAgeFilesLines
* all: remove need for `-fcommon`Dan Cross2025-07-251-1/+1
| | | | | | | | | | 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.
* all: clean up misleading indentation warningsDan Cross2025-07-251-2/+2
| | | | | | | | | Misleading indentation warnings are actually useful, as they will occasionally reveal actual bugs (cf the apple `goto fail` security bug from a few years ago). Newer versions of clang (at least) are more aggressive about warnings in this regard, which has exposed a few warnings that are annoying. However, they are easy to address.
* fossil: fix EOF detection when reading 9P messageFazlul Shahriar2022-07-261-3/+2
| | | | | | | | | When the 9P connection is closed, reads on the connection will keep returning 0. So, fossil ends up looping forever, trying to read a 9P message, consuming 100% CPU. The fix interprets 0 bytes read as EOF. Reproduce by killing the 9pserve process serving the fossil service, or by listening on tcp and using 9p(1).
* 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-1016-44/+37
| | | | | | | | | 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>
* all: fix or silence all INSTALL warnings on macOSRuss Cox2017-01-061-1/+1
| | | | | | | | Should be a clean build now. Change-Id: Id3460371cb5e8d4071f8faa9c2aec870d213a067 Reviewed-on: https://plan9port-review.googlesource.com/2781 Reviewed-by: Russ Cox <rsc@swtch.com>
* fix clang 3.4 warnings and ignore uninteresting onesDavid du Colombier2014-10-211-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | fixed warnings: src/cmd/fossil/disk.c:37:14: warning: use of GNU 'missing =' extension in designator [-Wgnu-designator] src/cmd/fossil/disk.c:38:14: warning: use of GNU 'missing =' extension in designator [-Wgnu-designator] src/cmd/fossil/disk.c:39:14: warning: use of GNU 'missing =' extension in designator [-Wgnu-designator] src/cmd/fossil/disk.c:40:13: warning: use of GNU 'missing =' extension in designator [-Wgnu-designator] src/cmd/fossil/disk.c:41:14: warning: use of GNU 'missing =' extension in designator [-Wgnu-designator] src/libndb/ndbreorder.c:41:55: warning: for loop has empty body [-Wempty-body] ignored warnings: src/cmd/acid/dbg.y:393:9: warning: array index -1 is before the beginning of the array [-Warray-bounds] src/cmd/bc.y:1327:9: warning: array index -1 is before the beginning of the array [-Warray-bounds] src/cmd/bc.y:1327:9: warning: array index -1 is before the beginning of the array [-Warray-bounds] src/cmd/grep/grep.y:420:9: warning: array index -1 is before the beginning of the array [-Warray-bounds] src/cmd/grep/grep.y:420:9: warning: array index -1 is before the beginning of the array [-Warray-bounds] src/cmd/hoc/hoc.y:692:9: warning: array index -1 is before the beginning of the array [-Warray-bounds] src/cmd/hoc/hoc.y:692:9: warning: array index -1 is before the beginning of the array [-Warray-bounds] src/cmd/lex/parser.y:886:9: warning: array index -1 is before the beginning of the array [-Warray-bounds] src/cmd/rc/syn.y:303:9: warning: array index -1 is before the beginning of the array [-Warray-bounds] src/cmd/units.y:1003:9: warning: array index -1 is before the beginning of the array [-Warray-bounds] src/libregexp/regcomp.c:19:16: warning: variable 'reprog' is not needed and will not be emitted [-Wunneeded-internal-declaration] LGTM=rsc R=rsc https://codereview.appspot.com/158250043
* fossil: fix p9p changes on viewDavid du Colombier2014-03-031-26/+28
| | | | | | LGTM=rsc R=rsc https://codereview.appspot.com/31130043
* fossil: fix remaining warningsDavid du Colombier2013-10-235-13/+13
| | | | | R=rsc https://codereview.appspot.com/15100044
* fossil: cleanup mkfileDavid du Colombier2013-09-261-62/+1
| | | | | R=rsc https://codereview.appspot.com/13988043
* fossil: import conf.rcDavid du Colombier2013-09-261-0/+68
| | | | | R=rsc https://codereview.appspot.com/13983043
* fossil: cast Qid.vers, Dir.mode and Qid.mtime to u32int (thanks Tim Kack)David du Colombier2013-09-261-4/+4
| | | | | R=rsc https://codereview.appspot.com/13981043
* fossil: fix various warningsDavid du Colombier2013-09-265-95/+0
| | | | | R=rsc https://codereview.appspot.com/13980043
* fossil: required p9p changesDavid du Colombier2013-09-2615-67/+156
| | | | | R=rsc https://codereview.appspot.com/13352057
* fossil: move from liboventi to libthread and libventiDavid du Colombier2013-09-2338-1424/+1360
| | | | | R=rsc https://codereview.appspot.com/13504049
* fossil: import from plan 9David du Colombier2013-09-2348-0/+20604
R=rsc https://codereview.appspot.com/7988047