|
PatchworkOS
|
Argument Vector structure. More...
#include <argv.h>
Data Fields | |
| char ** | buffer |
| char * | empty [1] |
| !< Stores both pointers and strings. | |
| uint64_t | size |
| !< Used to avoid allocations for empty argv | |
| uint64_t | amount |
| !< Size of the buffer in bytes. | |
Argument Vector structure.
Stores the arguments passed to a process in a contiguous buffer in the format:
| uint64_t argv_t::amount |
!< Size of the buffer in bytes.
Number of arguments (excluding the NULL terminator).
Definition at line 27 of file argv.h.
Referenced by argv_get_strings(), argv_init(), loader_process_entry(), and loader_setup_argv().
| char** argv_t::buffer |
Definition at line 24 of file argv.h.
Referenced by argv_deinit(), argv_get_strings(), argv_init(), loader_load_program(), loader_process_entry(), and loader_setup_argv().
| char* argv_t::empty[1] |
!< Stores both pointers and strings.
Definition at line 25 of file argv.h.
Referenced by argv_deinit(), and argv_init().
| uint64_t argv_t::size |
!< Used to avoid allocations for empty argv
Definition at line 26 of file argv.h.
Referenced by argv_get_strings(), argv_init(), and loader_setup_argv().