Age | Commit message (Collapse) | Author | Files | Lines |
|
This brings mk's behavior when using rc in line with Plan 9's.
The existing code is for Unix environment data structures but
also was assuming Unix shell semantics where empty and missing
variables are mostly equivalent.
The Plan 9 code (/sys/src/cmd/mk/plan9.c in the distribution)
explicitly removes /env/name (creating an empty list) when the
value is missing or an empty string.
Fixes #255.
|
|
Fixes #233.
|
|
Fixes #9.
Fixes #219.
Fixes #222.
Fixes #330.
|
|
When a directory has lots of children, vac crashes because it runs out of cache.
Fixes #266.
|
|
f is open, so walk will fail.
The comments say we only need one directory anyway.
Fixes #277.
|
|
|
|
They return 0 on failure, not -1.
Bug introduced in my original libthread-for-Unix code.
Fixes #230.
|
|
Improved error message in case of unexpected open flags. The message
unexpected open flags requested=0100040 unhandled=040
prompted me to clear the FMODE_EXEC flag, although I wonder if I
shouldn't have set OEXEC (0x3) instead.
|
|
Fixes #250.
|
|
Fixes #238.
|
|
Fixes #273.
|
|
Need to think a bit more about locking,
but overall it's a working devdraw.
Multiclient mode may not be working
but nothing is using it yet.
|
|
|
|
|
|
|
|
|
|
Also turn mac-srv.c into a generic srv.c,
so we can remove the duplication with x11-srv.c.
|
|
|
|
|
|
We were using osx- and cocoa- but it's not even OS X anymore.
|
|
|
|
Now that we only have Metal, we can drop the -metal.
Also now that Carbon is gone we can drop the macargv.c,
and then the -objc from object file names.
|
|
We didn't start using Metal until macOS 10.14,
but it was available on 10.13, which is currently
the oldest Apple-supported version of macOS.
Simplify by deleting the old code.
|
|
|
|
This prevents an infinite loop.
Change-Id: I7eda6b9d032ca0daeb24b555954330d07f35c78b
|
|
The functions from <ctype.h> require that their argument be
representable as an unsigned char, anything else is an error.
Change-Id: I9dafc49c431b7a2550b041603f27bac3c0010eea
|
|
Change-Id: I3b41ab3f181080bcff89201d30f0bdf8aa20d55c
|
|
An out of bounds pointer/array index being created is an error in
standard C.
Updates #313
Change-Id: I7108fcde1a8e03017e9ab852adb737940489c827
|
|
|
|
|
|
Fixes #223.
|
|
Some truetype fonts have good manual hinting.
Ignoring hinting makes the font render badly on low resolution screens.
This commit only disables the freetype autohinter, and allows hinting.
|
|
|
|
This splits a certain vtmallocz call in mkihash into two vtmallocz
calls. The first issue this fixes is that the C aliasing rules were not
respected in the code before this commit. The other thing is that this
enables better memory alignment guarantees.
Updates #313
Change-Id: Ia4f3e0fc85facc778193f5e977d4f99a1a9abd23
|
|
Should default to building the library, not getsubfont.o.
|
|
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.
|
|
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.
|
|
As usual, gcc finds some real problems but also reports a ton
of noise. Fix the problems and quiet the noise.
|
|
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>
|
|
Also note that the file must be valid shell and mk input.
For #321.
|
|
|
|
|
|
Change-Id: I9b8a4430e7d26008ba9508095f8eb4b124a93b9b
|
|
Change-Id: I45bd62a590373669e90183cc2b2ee56570c007f5
|
|
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>
|
|
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
|
|
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)
|
|
GCC pointed this out with some "warning: ‘strncpy’ specified bound NUM
equals destination size [-Wstringop-truncation]" warnings.
Change-Id: Id8408b165f6e4ae82c96a77599d89f658d979b32
|
|
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.
|
|
Change-Id: Ia5c888db1f0ded2aa92238d994239e46bf52667a
|