Squash commits for public release

This commit is contained in:
2025-02-12 09:54:05 -05:00
commit 7118adc514
1108 changed files with 80873 additions and 0 deletions

View File

@@ -0,0 +1,39 @@
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
char buf[512];
int main(int argc, char** argv)
{
int fd;
fd = open("dirfile", 0);
if (fd >= 0) {
TestErr("opened dirfile which does not exist");
}
fd = open("dirfile", O_CREAT);
if (fd < 0) {
TestErr("cannot create dirfile");
}
if (chdir("dirfile") == 0) {
TestErr("chdir dirfile succeeded");
}
if (unlink("dirfile") != 0) {
TestErr("unlink dirfile succeeded");
}
fd = open(".", O_RDWR);
if (fd >= 0) {
TestErr("open . for writing succeeded");
}
fd = open(".", O_RDONLY);
if (write(fd, "x", 1) > 0) {
TestErr("write . succeeded");
}
close(fd);
return 0;
}