diff options
Diffstat (limited to 'include/user.h')
-rw-r--r-- | include/user.h | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/include/user.h b/include/user.h index 4d9402f..8eef187 100644 --- a/include/user.h +++ b/include/user.h @@ -15,7 +15,7 @@ #include <x86/arch.h> // default value for EFLAGS in new processes -#define DEFAULT_EFLAGS (EFL_MB1 | EFL_IF) +#define DEFAULT_EFLAGS (EFL_MB1 | EFL_IF) /* ** General (C and/or assembly) definitions @@ -61,14 +61,14 @@ typedef struct header_s { } header_t; // length of the file name field -#define NAMELEN 20 +#define NAMELEN 20 // program descriptor typedef struct prog_s { - char name[NAMELEN]; // truncated name (15 chars) - uint32_t offset; // offset from the beginning of the blob - uint32_t size; // size of this ELF module - uint32_t flags; // miscellaneous flags + char name[NAMELEN]; // truncated name (15 chars) + uint32_t offset; // offset from the beginning of the blob + uint32_t size; // size of this ELF module + uint32_t flags; // miscellaneous flags } prog_t; /* @@ -84,7 +84,7 @@ typedef struct prog_s { ** ** Initializes the user support module. */ -void user_init( void ); +void user_init(void); /** ** Name: user_locate @@ -95,7 +95,7 @@ void user_init( void ); ** ** @return pointer to the program table entry in the code archive, or NULL */ -prog_t *user_locate( uint_t what ); +prog_t *user_locate(uint_t what); /** ** Name: user_duplicate @@ -107,7 +107,7 @@ prog_t *user_locate( uint_t what ); ** ** @return the status of the duplicate attempt */ -int user_duplicate( pcb_t *new, pcb_t *old ); +int user_duplicate(pcb_t *new, pcb_t *old); /** ** Name: user_load @@ -121,7 +121,7 @@ int user_duplicate( pcb_t *new, pcb_t *old ); ** ** @return the status of the load attempt */ -int user_load( prog_t *prog, pcb_t *pcb, const char **args ); +int user_load(prog_t *prog, pcb_t *pcb, const char **args); /** ** Name: user_cleanup @@ -131,8 +131,8 @@ int user_load( prog_t *prog, pcb_t *pcb, const char **args ); ** ** @param pcb The PCB of the program to be cleaned up */ -void user_cleanup( pcb_t *pcb ); +void user_cleanup(pcb_t *pcb); -#endif /* !ASM_SRC */ +#endif /* !ASM_SRC */ #endif |