aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2020-08-13tmac: introduce real manual reference macro instead of overloading IRRuss Cox297-1774/+1790
The overloading of IR emits magic \X'...' sequences that turn into HTML manual links. But not all such IR invocations should be manual links; those had to be written to avoid the IR macro before. Worse, the \X'...' ending the IR causes troff to emit only a single space after a period. Defining a new IM macro for manual references fixes both problems. Fixes #441.
2020-08-08touch: fix for OpenBSD.James Cook1-1/+1
This fixes https://github.com/9fans/plan9port/issues/436 This doesn't necessarily address the underlying issue: calling p9create with mode = OREAD should probably be allowed, but currently doesn't work on OpenBSD.
2020-07-22fontsrv(4): update man page for size of fontsrv subfontsRuss Cox1-8/+8
Fixes #432.
2020-07-22devdraw, libdraw: fix memory leaks by freeing getns() malloced string (#431)Igor Böhm2-4/+11
2020-07-18acme: add font control messageRuss Cox2-1/+24
2020-07-18draw: use int for Cacheinfo x fieldRuss Cox1-1/+1
With very large fonts (72pt or so) I see bad cache glyphs, and this fixes it. Not entirely sure exactly which code is overflowing, but something is.
2020-06-22src/cmd: rm dformatRuss Cox1-108/+0
Unclear why it is here (wkj added it long ago). It has never been installed into $PLAN9/bin, so it's doubtful that anyone has ever used it. Arnold Robbins has an alternate version at https://github.com/arnoldrobbins/dformat. Fixes #421.
2020-06-15libthread: use libc functions in ucontext for macOS (#417)Xiao-Yong3-81/+3
2020-06-04fontsrv: fix compilation on X11 (#420)Gregor Best1-0/+1
2020-05-30osxvers: use swvers -productVersion to skip one awk callRuss Cox1-1/+1
Fixes #406. Suggested by nms42.
2020-05-29ed(1): fix documentation for list modeRuss Cox1-36/+36
I changed from 6 to 8 digits but forgot to update the man page.
2020-05-29ed: handle Unicode beyond the BMP correctly in list mode.sean2-11/+42
List mode was constrained to the BMP. This change introduces the following new list mode convention, using Go string literal syntax: Non-printing ASCII characters display as \xhh. Non-ASCII characters in the BMP display as \uhhhh. Characters beyond the BMP display as \Uhhhhhhhh.
2020-05-29devdraw: accept 5- and 6-byte Unicode hex valuesRuss Cox2-15/+45
Alt X 1234 for U+1234 Alt X X 12345 for U+12345 Alt X X X 103456 for U+103456.
2020-05-29fontsrv: scale f->originy to match f->height on x11dzklaim1-1/+1
Co-authored-by: dzklaim <smmoth.rp@gmail.com>
2020-05-29fontsrv: handle non-BMP runes on X11Russ Cox4-43/+44
Have to adjust algorithms to deal with much larger number of subfont files as well.
2020-05-29libdraw: handle larger number of subfontsRuss Cox3-4/+5
2020-05-18man: update man pages to say $HOME when accurateRuss Cox4-33/+37
Fixes #386.
2020-05-18devdraw, libdraw: handle keyboard runes > U+FFFFRuss Cox7-8/+34
Runes in Plan 9 were limited to the 16-bit BMP when I drew up the RPC protocol between graphical programs and devdraw a long time ago. Now that they can be 32-bit, use a 32-bit wire encoding too. A new message number to avoid problems with other clients (like 9fans.net/go). Add keyboard shortcut alt : , for U+1F602, face with tears of joy, to test that it all works.
2020-05-18build: drop _XOPEN_SOURCE in u.h on AIXRuss Cox1-1/+0
2020-05-18build: use installbsd instead of install on AIXRuss Cox6-8/+5
Even in mkmk.sh.
2020-05-189c: fix tabRuss Cox1-1/+1
2020-05-189l: xlc_r automatically adds -lpthread.Ben Huntsman1-1/+0
2020-05-18lib9: use __builtin_return_address on IBM XL/CBen Huntsman1-1/+1
2020-05-18rc: avoid problematic internal names "var", "thread"Russ Cox1-0/+6
For AIX.
2020-05-18acme: avoid global named "class"Russ Cox1-0/+3
For AIX.
2020-05-18libdiskfs: avoid problematic internal constant namesRuss Cox2-0/+66
AIX defines some of these constants in its C header files.
2020-05-18diff: rename class to fix AIXRuss Cox1-0/+3
math.h defines a function named class on AIX.
2020-05-18devdraw: use indirect impl interface in x11Gabriel Diaz1-0/+21
2020-05-18lib9: avoid unportable use of d_namlen in dirreadRuss Cox1-2/+1
Fixes #395.
2020-05-17devdraw: use global drawlk instead of per-clientRuss Cox3-18/+20
Setting up for a real window system.
2020-05-17devdraw: use indirect impl interfaceRuss Cox4-30/+61
Setting up for a real window system.
2020-05-17libthread: handle spurious _procsleep wakeups, fix $LIBTHREAD handlingRuss Cox2-6/+26
2020-05-17libthread: add pthreadperthread mode and use under ASANRuss Cox4-18/+120
ASAN can't deal with the coroutine stacks. In theory we can call into ASAN runtime to let it know about them, but ASAN still has problems with fork or exit happening from a non-system stack. Bypass all possible problems by just having a full OS thread for each libthread thread. The threads are still cooperatively scheduled within a proc (in thos mode, a group of OS threads). Setting the environment variable LIBTHREAD=pthreadperthread will enable the pthreadperthread mode, as will building with CC9FLAGS='-fsanitize=address' in $PLAN9/config. This solution is much more general than ASAN - for example if you are trying to find all the thread stacks in a reproducible crash you can use pthreadperthread mode with any debugger that knows only about OS threads.
2020-05-17INSTALL: build mk all the timeRuss Cox1-4/+3
If mk gets into a bad state, it's not obvious that you can remove the binary to force the rebuild. Also, not rebuilding means that bugs in mkmk.sh are not noticed. Just rebuild from scratch every time. It doesn't take too long compared to the rest of INSTALL.
2020-05-179c, 9l: accept CC9FLAGS from configRuss Cox3-18/+39
Also, if CC9FLAGS includes -fsanitize=address (ASAN), predefine PLAN9PORT_ASAN for use by programs that need to know (mainly libthread). The 9c script used to have a variable called ngflags, which was ccflags except -g (ng stood for "no g"), but nothing needs it split out anymore, so simplify to just ccflags.
2020-05-17mk: replace overlapping strcpy with memmoveRuss Cox1-1/+2
Found by ASAN.
2020-05-17lib9: use opendir/readdir to read directoriesRuss Cox2-186/+187
getdirentries(2) has been deprecated on macOS since 10.5 (ten releases ago). Using it requires disabling 64-bit inodes, but that in turn makes binaries incompatible with some dynamic libraries, most notably ASAN. At some point getdirentries(2) will actually be removed. For both these reasons, switch to opendir/readdir. A little clunky since we have to keep the DIR* hidden away to preserve the int fd interfaces, but it lets us remove a bunch of OS-specific code too.
2020-05-17lib9: move seek into open.cRuss Cox4-12/+7
More preparation for opendir.
2020-05-17lib9: add closeRuss Cox2-1/+10
More preparation for opendir.
2020-05-17lib9: merge create, open, dirread into open.cRuss Cox5-292/+273
Preparation for using opendir.
2020-05-08fmt: adjust GCC version checkKurt H Maier1-2/+2
atomics were added in GCC 4.9: https://gcc.gnu.org/gcc-4.9/changes.html
2020-05-07all: fix #includes for AIX, add a few AIX "implementation" filesBen Huntsman9-0/+25
2020-05-07mk: support Big Archive Format under AIXBen Huntsman1-0/+4
2020-05-07all: update build scripts to fix AIX XL/C compatibilityBen Huntsman6-11/+35
2020-05-07fmt: disable use of stdatomic on AIX XL C and old GCCRuss Cox1-0/+21
C11 is apparently too new for these systems. Fixes #55.
2020-05-059term.app: respect user-set shell instead of forcing bashRuss Cox1-2/+22
2020-05-05rc(1): mention /etc/shells in BUGS sectionRuss Cox1-0/+6
2020-05-05rc: clean up parser levels, disallow free carats on listsRuss Cox4-31/+37
2020-05-04rc: allow unquoted = in command argumentsRuss Cox3-11/+28
dd fans rejoice! Also helps with commands like go test -run=x.
2020-05-04rc: move free carat handling into parserRuss Cox5-97/+106
This fixes at least one shell script (printfont) that expected 'x'`{y}'z' to mean 'x'^`{y}^'z' as it now does. Before it meant: 'x'^`{y} 'z' One surprise is that adjacent lists get a free carat: (x y z)(1 2 3) is (x1 y2 z3) This doesn't affect any rc script in Plan 9 or plan9port.