Commits
- Commit:
0b6b451b71bc116c8b98cdbbfbec3fbca6c8fc17
- From:
- Russ Cox <rsc@swtch.com>
- Date:
libdraw: fix "mk"
Should default to building the library, not getsubfont.o.
- Commit:
0158bceec78c7891a7ef672770bf42e65fd064dd
- From:
- Russ Cox <rsc@swtch.com>
- Date:
libthread: run first thread in proc on system stack
For pthread systems that are fussy about which stack is used,
this makes sure that threadmain runs on a system stack.
If you only use proccreate (never threadcreate), all threads run
on system stacks.
- Commit:
e0c4896ed41faa71445d9e0b1751aba5157343c9
- From:
- Russ Cox <rsc@swtch.com>
- Date:
lib9: make a p9frexp function wrapping system frexp
Under certain conditions it looks like frexp gets #defined
to something else on macOS during system headers,
which then breaks the declaration in libc.h.
- Commit:
fafa622a5bdf71adfbb4334541c3b65f29c89ca9
- From:
- Russ Cox <rsc@golang.org>
- Via:
- Russ Cox <rsc@swtch.com>
- Date:
all: fix or silence various gcc warnings
As usual, gcc finds some real problems but also reports a ton
of noise. Fix the problems and quiet the noise.
- Commit:
fa325e9b42b0bdfb48857d1958d9fb7ceac55151
- From:
- Dan Cross <cross@gajendra.net>
- Date:
Trivial changes: whitespace and modes.
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>
- Commit:
77a0a5b5194d4441c86de097f2aae297cb75e2c2
- From:
- Russ Cox <rsc@swtch.com>
- Date:
src: mv ../buildEnvironmentVariables mkhdr
Also note that the file must be valid shell and mk input.
For #321.
- Commit:
5aad8f3d6d24ee109ea23514862fa579191cb5e4
- From:
- Russ Cox <rsc@swtch.com>
- Date:
mkfile, mkmk.sh: update for new asm-free getcallerpc
- Commit:
323e1a8fac276f008e6d5146a83cbc88edeabc87
- From:
- Russ Cox <rsc@swtch.com>
- Date:
lib9: add getcallerpc.c (fixes build)
- Commit:
a18741729cc1460088d1ddaa365dfa6455a459ec
- From:
- Neven Sajko <nsajko@gmail.com>
- Via:
- Dan Cross <crossd@gmail.com>
- Date:
libhtml: plug a memory leak in addtext
Change-Id: I9b8a4430e7d26008ba9508095f8eb4b124a93b9b
- Commit:
8241eca986a18d242f52273f76d59f6828e6c859
- From:
- Neven Sajko <nsajko@gmail.com>
- Via:
- Dan Cross <crossd@gmail.com>
- Date:
libhtml: plug quite a few memory leaks
Change-Id: I45bd62a590373669e90183cc2b2ee56570c007f5
- Commit:
2738cc3cfc053a5922aee655405c0ab620beae0f
- From:
- Dan Cross <cross@gajendra.net>
- Date:
mk: plan9 style.
In general, no space after `if` etc, and no
braces for a single statement inside of a loop
or conditional.
Signed-off-by: Dan Cross <cross@gajendra.net>
- Commit:
c65d179354fd3fd6f9719531f3414cf1c9c5280a
- From:
- Neven Sajko <nsajko@gmail.com>
- Via:
- Dan Cross <crossd@gmail.com>
- Date:
mk: fix out of bounds access
A loop is added for each structure field instead of accessing the other
fields through the first one in one loop.
Updates #313
Change-Id: I0e27e15feacb77391bc1decee7cf720d64d14586
- Commit:
194178b5788a09379e01e8ff8bff391b8a8d5c18
- From:
- Martin Kühl <martin.kuehl@posteo.net>
- Via:
- Dan Cross <crossd@gmail.com>
- Date:
9c: Fix case patterns for DragonFly and other BSDs
POSIX does not support grouping in case item patterns.
Installing with a strict POSIX shell fails with:
/usr/local/plan9/bin/9c: line 82: syntax error near unexpected token `('
/usr/local/plan9/bin/9c: line 82: `*(DragonFly|BSD)*gcc*) usegcc ;;'
This change expands the patterns to work around the limitation.
See https://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html#tag_18_10
(and search for case_clause)
- Commit:
e6ed10f25e4b2ea791d8e52253f7d806316420e9
- From:
- Neven Sajko <nsajko@gmail.com>
- Via:
- Dan Cross <crossd@gmail.com>
- Date:
lib9, libndb: exclude terminating null from strncpy bound
GCC pointed this out with some "warning: ‘strncpy’ specified bound NUM
equals destination size [-Wstringop-truncation]" warnings.
Change-Id: Id8408b165f6e4ae82c96a77599d89f658d979b32
- Commit:
540caa5873bcc3bc2a0e1896119f5b53a0e8e630
- From:
- Russ Cox <rsc@swtch.com>
- Date:
lib9: remove getcallerpc implementations
These make no sense and are not really needed at all.
Add a best-effort attempt to get at the gcc/clang macro
in lib9.h, but if it fails, no big deal.
Fixes #324.