mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-01 00:38:31 +00:00
Make improvements
- Polyfill readlink("foo/") dir check on Windows - Support asynchronous signal delivery on Windows - Restore Windows Console from execve() daisy chain - Work around bug in AARCH64 Optimized Routines memcmp() - Disable unbourne.com shell completion on Windows for now - Don't always set virtual terminal input state on console - Remove Musl Libc's unusual preservation of realpath("//") - Make realpath() strongly link malloc() to pass configure test - Delete cosh.com shell, now that unbourne.com works on Windows!
This commit is contained in:
parent
f9c9a323fe
commit
425c055116
40 changed files with 581 additions and 706 deletions
|
@ -47,6 +47,8 @@ TEST(readlink, enoent) {
|
|||
TEST(readlink, enotdir) {
|
||||
char buf[32];
|
||||
ASSERT_SYS(0, 0, touch("o", 0644));
|
||||
ASSERT_SYS(ENOTDIR, -1, readlink("o/", buf, 32));
|
||||
ASSERT_SYS(ENOTDIR, -1, readlink("o/o/..", buf, 32));
|
||||
ASSERT_SYS(ENOTDIR, -1, readlink("o/doesnotexist", buf, 32));
|
||||
}
|
||||
|
||||
|
@ -95,7 +97,7 @@ TEST(readlinkat, frootloop) {
|
|||
}
|
||||
}
|
||||
|
||||
TEST(readlinkat, statReadsNameLength) {
|
||||
TEST(readlinkat, statReadsNameLength_countsUtf8Bytes) {
|
||||
struct stat st;
|
||||
ASSERT_SYS(0, 0, symlink("froÒt", "froÒt"));
|
||||
ASSERT_SYS(0, 0, fstatat(AT_FDCWD, "froÒt", &st, AT_SYMLINK_NOFOLLOW));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue