mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-24 11:30:29 +00:00
Bump support up to FreeBSD 13 and NetBSD 9.2
These releases are really exciting since they contained the patches we worked to get upstreamed. It means that their /bin/sh interpreters all work fine with Actually Portable Executable now.
This commit is contained in:
parent
1ae6cfc198
commit
e96aceae41
14 changed files with 512 additions and 11 deletions
|
@ -96,6 +96,7 @@ static textwindows bool IsDirectorySymlink(const char16_t *path) {
|
|||
|
||||
static textwindows int sys_rmdir_nt(const char16_t *path) {
|
||||
int e, ms;
|
||||
e = errno;
|
||||
for (ms = 1;; ms *= 2) {
|
||||
if (RemoveDirectory(path)) {
|
||||
return 0;
|
||||
|
@ -108,6 +109,7 @@ static textwindows int sys_rmdir_nt(const char16_t *path) {
|
|||
* Never could have imagined it'd be this bad.
|
||||
*/
|
||||
if (GetLastError() == kNtErrorDirNotEmpty && ms <= 2048) {
|
||||
errno = e;
|
||||
Sleep(ms);
|
||||
continue;
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue