Florian Fischer
2d8350f732
implement dup syscall
2024-02-29 17:43:20 +01:00
Enrico Fraccaroli (Galfurian)
ed7454f1e0
Translate italian text to english.
2024-02-29 11:04:47 -05:00
Enrico Fraccaroli
806664f61c
Merge pull request #32 from fischerling/stopcont-test
...
remove infinite loop in t_stopcont
2024-02-29 11:03:43 -05:00
Enrico Fraccaroli
8852d09693
Merge pull request #31 from fischerling/test-semflg-test
...
fix t_semflg test
2024-02-29 10:59:41 -05:00
Enrico Fraccaroli
8262982e87
Merge pull request #30 from fischerling/cleanup-tests
...
Some miscellaneous cleanups for the included tests
2024-02-29 10:56:34 -05:00
Florian Fischer
43054529d5
add creat test
...
Tesing commit f7e53f9b00 .
2024-02-29 16:12:09 +01:00
Florian Fischer
fe4c4e337e
remove infinite loop in t_stopcont
...
Remove useless preprocessor define.
Terminate the child after 15 seconds.
Since the parent is waiting for the child to terminate it is still
guaranteed that the child was continued.
2024-02-29 16:09:39 +01:00
Florian Fischer
63b8d9420a
fix t_semflg test
...
Remove the double semaphore cleanup in the child and the parent.
Set nops to 1 since there is only one operation not two.
Use a blocking semaphore operation in the parent to wait for the
child increasing the semaphore value.
2024-02-29 16:07:50 +01:00
Florian Fischer
7b54ff8d2a
tests: exit with 0 when the test succeeds.
2024-02-29 16:05:11 +01:00
Florian Fischer
65393843a5
tests: use files that actually exist
...
Commit af79958f1a removed
a lot of files including /home/user/test7.txt used in some tests.
Replace /home/user/test7.txt with /README.
2024-02-29 16:04:56 +01:00
Florian Fischer
afa3d4fb66
tests: remove the not used t_exec_callee
2024-02-29 16:04:49 +01:00
Florian Fischer
f124be1cf7
tests: add simple test for small consecutive writes
...
This test was written for: 4d4504486d .
2024-02-29 16:04:37 +01:00
Florian Fischer
88b1846a43
tests: fix paths to the other periodic tests
2024-02-29 15:58:48 +01:00
Florian Fischer
8e1696d701
add simple stat.1 implementation
2024-02-29 15:52:49 +01:00
Florian Fischer
ebd07576fa
programs: add simple false program
2024-02-29 15:52:34 +01:00
Enrico Fraccaroli
b617fccee4
Merge pull request #25 from fischerling/improve-text-printing
...
Improve text printing
2024-02-26 10:02:01 -05:00
Florian Fischer
beacbde52e
man: use cat as pager to print man pages
...
This reduces the required code in man and additionally,
replaces the old broken read/puts implementation.
Puts expects a null-terminated string, but write does not return
a null-terminted string.
2024-02-13 13:15:58 +01:00
Florian Fischer
cad4804a95
cat: improve exist status
...
Exit with status 1 if one or more arguments could not be printed.
2024-02-13 13:15:36 +01:00
Florian Fischer
e2e608b073
cat: properly output the read data
...
Using puts to output data retrieved through write is broken.
Puts expects a null-terminated string, which is not returned by read.
Use write to exactly output the data previously read.
2024-02-13 13:15:29 +01:00
Florian Fischer
bb1bca458e
ls: improve --long output format
...
Add padding using zeros instead of whitespace to the date values.
2024-02-13 13:11:03 +01:00
Enrico Fraccaroli (Galfurian)
30e01ba560
Update version
2024-01-17 13:49:48 +01:00
Enrico Fraccaroli (Galfurian)
eca55dfed8
Clean up cmake files (Part 2)
...
I've kept just one cmake project, in the root directory. The
subdirectories just set up the targets.
The asm compiler is serached just one time, from the root
directory cmake file.
Global compilation flags are set in the root cmake file, and
each subdirectory cmake file sets specific flags if necessary
(e.g., programs need the -u_start specified)
2024-01-17 13:34:32 +01:00
Enrico Fraccaroli (Galfurian)
0b75cd9c2a
Clean up cmake files (Part 1)
...
I've been cleaning up the way compilation flags are passed to the targets
and there are still some changes that must be made, in the next commit.
I've also done some renaming, all_programs into programs and the same for
tests.
The gdb initialization file now is just one, populated using the find command
and using realpath to get the absolute path to the files. I've tested if the
generated gdb.run file works and it does.
2024-01-17 13:16:50 +01:00
Enrico Fraccaroli
34eeedcbcf
Improve the generation of programs and tests.
2024-01-15 11:26:20 +01:00
Enrico Fraccaroli
5ce583fdd8
Rollback patch for archive creation that broke clang compilation
2024-01-15 11:14:34 +01:00
Enrico Fraccaroli (Galfurian)
290ed59d0b
Try to fix compilation under MacOS
2023-11-30 13:28:09 -05:00
Enrico Fraccaroli (Galfurian)
3e51197ae4
Try to fix compilation under MacOS
2023-11-30 13:16:09 -05:00
Enrico Fraccaroli (Galfurian)
327e29791e
Use gcc@11 under MacOS
2023-11-30 11:47:15 -05:00
Enrico Fraccaroli (Galfurian)
4292149567
Use x86_64-elf-gcc under MacOS
2023-11-29 10:45:27 -05:00
Enrico Fraccaroli (Galfurian)
030c16d29e
Use x86_64-elf-gcc under MacOS
2023-11-29 10:40:27 -05:00
Enrico Fraccaroli (Galfurian)
29e9d2ff11
Use x86_64-elf-gcc under MacOS
2023-11-29 10:38:44 -05:00
Enrico Fraccaroli (Galfurian)
24b2182bec
Use x86_64-elf-gcc under MacOS
2023-11-29 10:37:47 -05:00
Enrico Fraccaroli (Galfurian)
654a3165c0
Use x86_64-elf-gcc under MacOS
2023-11-29 10:34:42 -05:00
Enrico Fraccaroli (Galfurian)
7ce609fddc
Fix compilation with clang 15.0.7
2023-11-28 10:10:28 -05:00
Enrico Fraccaroli (Galfurian)
75abb84f25
Fix procfs inability to set st_mode properly
2023-11-24 15:50:20 -05:00
Enrico Fraccaroli (Galfurian)
f066dd2ad9
Add support for reading symlinks
2023-11-21 14:20:41 -05:00
Enrico Fraccaroli (Galfurian)
c82c13417d
Move the list of programs at the beginning.
2023-08-30 10:57:01 -04:00
Enrico Fraccaroli (Galfurian)
122551ab45
Revert init process changes.
2023-08-23 09:59:34 -04:00
Enrico Fraccaroli (Galfurian)
452aa40770
Properly set exit code for killed processed.
2023-08-22 16:32:43 -04:00
Enrico Fraccaroli (Galfurian)
c37fbf6f40
Add shared memory tests.
2023-08-22 09:23:31 -04:00
Enrico Fraccaroli (Galfurian)
34319442aa
Implement shmat and shmdt
2023-08-16 14:45:04 -04:00
Enrico Fraccaroli (Galfurian)
dde6e6bc9e
First rough implementation of shared memory.
2023-08-16 11:49:52 -04:00
Enrico Fraccaroli (Galfurian)
8578f078c6
Improve formatting and enable FLOATING_POINT_ERR
2023-08-11 13:39:45 -04:00
Enrico Fraccaroli (Galfurian)
63314a8363
Improve cd command output.
2023-08-11 13:29:01 -04:00
Enrico Fraccaroli (Galfurian)
23f2a036e7
Clean ps command code.
2023-08-11 13:28:36 -04:00
Enrico Fraccaroli (Galfurian)
cd6f876fa8
Improve mkdir output
2023-08-11 13:28:19 -04:00
Enrico Fraccaroli (Galfurian)
760667e00f
Show total size in human format in ls command.
2023-06-27 11:15:21 -04:00
Enrico Fraccaroli (Galfurian)
7972ddeac7
- Add missing comments;
...
- Reimplement a more safer dirname;
- Implement a simple and safe tokenize function;
2023-06-23 14:37:24 -04:00
Enrico Fraccaroli (Galfurian)
2cd03ccfe0
Check correctness of the kheap split and merge. Update memory test.
2023-06-22 11:08:39 -04:00
Enrico Fraccaroli (Galfurian)
a872442aa3
Finish reworking the heap.
2023-06-19 17:44:27 -04:00