mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-28 13:30:29 +00:00
Make improvements
- Add GetCpuCount() API to redbean - Add unix.gmtime() API to redbean - Add unix.readlink() API to redbean - Add unix.localtime() API to redbean - Perfect the new redbean UNIX module APIs - Integrate with Linux clock_gettime() vDSO - Run Lua garbage collector when malloc() fails - Fix another regression quirk with linenoise repl - Fix GetProgramExecutableName() for systemwide installs - Fix a build flake with test/libc/mem/test.mk SRCS list
This commit is contained in:
parent
860ea18a87
commit
d57b81aac7
51 changed files with 3096 additions and 1395 deletions
1
third_party/linenoise/linenoise.c
vendored
1
third_party/linenoise/linenoise.c
vendored
|
@ -1810,6 +1810,7 @@ struct linenoiseState *linenoiseBegin(const char *prompt, int ifd, int ofd) {
|
|||
}
|
||||
|
||||
void linenoiseReset(struct linenoiseState *l) {
|
||||
l->buf[0] = 0;
|
||||
l->dirty = true;
|
||||
l->final = 0;
|
||||
l->hindex = 0;
|
||||
|
|
1
third_party/lua/llimits.h
vendored
1
third_party/lua/llimits.h
vendored
|
@ -1,6 +1,7 @@
|
|||
#ifndef llimits_h
|
||||
#define llimits_h
|
||||
|
||||
#include "libc/limits.h"
|
||||
#include "libc/math.h"
|
||||
#include "third_party/lua/lua.h"
|
||||
|
||||
|
|
2
third_party/mbedtls/test/lib.c
vendored
2
third_party/mbedtls/test/lib.c
vendored
|
@ -1011,7 +1011,7 @@ int execute_tests(int argc, const char **argv, const char *default_filename) {
|
|||
file = fopen(test_filename, "r");
|
||||
if (file == NULL) {
|
||||
WRITE("%s (%s) failed to open test file: %s %m\n",
|
||||
program_invocation_short_name, program_executable_name,
|
||||
program_invocation_short_name, GetProgramExecutableName(),
|
||||
test_filename);
|
||||
if (outcome_file != NULL) fclose(outcome_file);
|
||||
return 1;
|
||||
|
|
2
third_party/python/Modules/getpath.c
vendored
2
third_party/python/Modules/getpath.c
vendored
|
@ -663,7 +663,7 @@ Py_GetProgramFullPath(void)
|
|||
{
|
||||
static bool once;
|
||||
if (_cmpxchg(&once, false, true)) {
|
||||
progpath = utf8toutf32(program_executable_name, -1, 0);
|
||||
progpath = utf8toutf32(GetProgramExecutableName(), -1, 0);
|
||||
__cxa_atexit(free, progpath, 0);
|
||||
}
|
||||
return progpath;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue