diff options
author | Ian McFarlane <i.mcfarlane2002@gmail.com> | 2025-04-22 14:51:47 -0400 |
---|---|---|
committer | Ian McFarlane <i.mcfarlane2002@gmail.com> | 2025-04-22 14:51:47 -0400 |
commit | 325e2ea9aef0723645b86bdc773f02293747c495 (patch) | |
tree | 2d844c3e30a27eaf463fed851620221f3ad7d540 /user/include/unistd.h | |
parent | try to find mcfg (diff) | |
parent | force rebuild on header change (diff) | |
download | comus-325e2ea9aef0723645b86bdc773f02293747c495.tar.gz comus-325e2ea9aef0723645b86bdc773f02293747c495.tar.bz2 comus-325e2ea9aef0723645b86bdc773f02293747c495.zip |
Merge branch 'main' into pciepcie
Diffstat (limited to 'user/include/unistd.h')
-rw-r--r-- | user/include/unistd.h | 23 |
1 files changed, 4 insertions, 19 deletions
diff --git a/user/include/unistd.h b/user/include/unistd.h index 1f83abc..a815914 100644 --- a/user/include/unistd.h +++ b/user/include/unistd.h @@ -147,33 +147,18 @@ extern int kill(pid_t pid); extern int sleep(unsigned long ms); /** - * Wait for any child to exit + * Set the heap break to addr * - * @param status - pointer to int32_t into which the child's status is placed, - * or NULL - * @return The pid of the terminated child, or an error code - * - * Analogous to waitpid(0,status) - */ -extern int wait(int *status); - -/** - * Spawn a new process running a different program - * - * @param prog - program table index of the program to spawn - * @param args - the command-line argument vector for the process - * @return the pid of the child, or an error code - * - * Analogous to calling fork and exec + * @param addr - sets the programs break to addr + * @return the previos program break on success, or NULL on failure */ -extern int spawn(pid_t prog, char **args); +extern void *brk(const void *addr); /** * Increment the program's data space by increment bytes. * * @param increment - the amount in bytes to increment the heap * @return the previos program break on success, or NULL on failure - * */ extern void *sbrk(intptr_t increment); |