chore: docs & missing include errno.h

This commit is contained in:
d0p1 🏳️‍⚧️ 2024-04-24 08:06:36 +02:00
parent e5fa803eb0
commit fe5fc658b3
3 changed files with 14 additions and 5 deletions

View file

@ -1,8 +1,9 @@
#+TITLE: Common Object File Format (COFF) File: Common Object File Format (COFF)
** COFF File Structure About: COFF File Structure
(start code)
#+begin_src
+-----------------------+ +-----------------------+
| | | |
| File Header | | File Header |
@ -54,9 +55,10 @@
| | | |
+-----------------------+ +-----------------------+
#+end_src (end)
*** File Header
About: File Header
| Type | Description | | Type | Description |
|----------+---------------------------------| |----------+---------------------------------|

View file

@ -47,6 +47,7 @@ File: Introduction (docs/intro.txt)
Link: Source Code (https://git.cute.engineering/d0p1/StupidOS) Link: Source Code (https://git.cute.engineering/d0p1/StupidOS)
File: Coding Style (docs/coding-style.txt) File: Coding Style (docs/coding-style.txt)
File: FAQ (docs/faq.txt) File: FAQ (docs/faq.txt)
Link: StupidFS (https://stupidfs.d0p1.eu/)
Group: BootLoader { Group: BootLoader {
@ -60,12 +61,14 @@ Group: BootLoader {
Group: Loader { Group: Loader {
File: loader.asm (boot/loader/loader.asm) File: loader.asm (boot/loader/loader.asm)
File: memory.inc (boot/loader/memory.inc)
} # Group: Loader } # Group: Loader
Group: Common { Group: Common {
File: bios.inc (boot/common/bios.inc) File: bios.inc (boot/common/bios.inc)
File: fat12.inc (boot/common/fat12.inc) File: fat12.inc (boot/common/fat12.inc)
File: mbr.inc (boot/common/mbr.inc)
} # Group: Common } # Group: Common
Group: EFI { Group: EFI {
@ -115,5 +118,6 @@ Group: Index {
Constant Index: Constants Constant Index: Constants
File Index: Files File Index: Files
Function Index: Functions Function Index: Functions
Property Index: Properties
} # Group: Index } # Group: Index

View file

@ -2,6 +2,7 @@
#include <stdio.h> #include <stdio.h>
#include <stdint.h> #include <stdint.h>
#include <string.h> #include <string.h>
#include <errno.h>
#define MBR_MAGIC0 0x55 #define MBR_MAGIC0 0x55
#define MBR_MAGIC1 0xAA #define MBR_MAGIC1 0xAA
@ -88,6 +89,8 @@ usage(int retcode)
printf("\t-V\toutput version information.\n"); printf("\t-V\toutput version information.\n");
printf("\t-d\tdump disk information\n"); printf("\t-d\tdump disk information\n");
printf("\t-o out\twrite to file 'out'\n"); printf("\t-o out\twrite to file 'out'\n");
printf("\t-e\textract parts\n");
printf("\t-i img\t\n");
printf("\nReport bugs to <%s>\n", MK_BUGREPORT); printf("\nReport bugs to <%s>\n", MK_BUGREPORT);
} }