chore: docs & missing include errno.h
This commit is contained in:
		
							parent
							
								
									e5fa803eb0
								
							
						
					
					
						commit
						fe5fc658b3
					
				
					 3 changed files with 14 additions and 5 deletions
				
			
		|  | @ -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           | | ||||
|  | @ -54,9 +55,10 @@ | |||
|          |                       | | ||||
|          +-----------------------+ | ||||
| 
 | ||||
| #+end_src | ||||
| (end) | ||||
| 
 | ||||
| *** File Header | ||||
| 
 | ||||
| About: File Header | ||||
| 
 | ||||
| | Type     | Description                     | | ||||
| |----------+---------------------------------| | ||||
|  | @ -47,6 +47,7 @@ File: Introduction  (docs/intro.txt) | |||
| Link: Source Code  (https://git.cute.engineering/d0p1/StupidOS) | ||||
| File: Coding Style  (docs/coding-style.txt) | ||||
| File: FAQ  (docs/faq.txt) | ||||
| Link: StupidFS  (https://stupidfs.d0p1.eu/) | ||||
| 
 | ||||
| Group: BootLoader  { | ||||
| 
 | ||||
|  | @ -60,12 +61,14 @@ Group: BootLoader  { | |||
|    Group: Loader  { | ||||
| 
 | ||||
|       File: loader.asm  (boot/loader/loader.asm) | ||||
|       File: memory.inc  (boot/loader/memory.inc) | ||||
|       }  # Group: Loader | ||||
| 
 | ||||
|    Group: Common  { | ||||
| 
 | ||||
|       File: bios.inc  (boot/common/bios.inc) | ||||
|       File: fat12.inc  (boot/common/fat12.inc) | ||||
|       File: mbr.inc  (boot/common/mbr.inc) | ||||
|       }  # Group: Common | ||||
| 
 | ||||
|    Group: EFI  { | ||||
|  | @ -115,5 +118,6 @@ Group: Index  { | |||
|    Constant Index: Constants | ||||
|    File Index: Files | ||||
|    Function Index: Functions | ||||
|    Property Index: Properties | ||||
|    }  # Group: Index | ||||
| 
 | ||||
|  |  | |||
|  | @ -2,6 +2,7 @@ | |||
| #include <stdio.h> | ||||
| #include <stdint.h> | ||||
| #include <string.h> | ||||
| #include <errno.h> | ||||
| 
 | ||||
| #define MBR_MAGIC0 0x55 | ||||
| #define MBR_MAGIC1 0xAA | ||||
|  | @ -88,6 +89,8 @@ usage(int retcode) | |||
| 		printf("\t-V\toutput version information.\n"); | ||||
| 		printf("\t-d\tdump disk information\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); | ||||
| 	} | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue