libc: update kernel library references

This commit is contained in:
2026-05-28 20:39:54 +01:00
parent daca537875
commit a5d99ca248
34 changed files with 60 additions and 59 deletions
+2 -2
View File
@@ -41,6 +41,6 @@ bsp_add_library(
NAME libpthread
LIB_DIR /usr/lib)
target_link_libraries(libc-pthread PRIVATE libc-io libmango)
target_link_libraries(libpthread PRIVATE libmango)
target_link_libraries(libc-pthread PRIVATE libc-io libmagenta)
target_link_libraries(libpthread PRIVATE libmagenta)
target_link_libraries(libpthread PUBLIC libc)
+1 -1
View File
@@ -1,7 +1,7 @@
#ifndef PTHREAD_H_
#define PTHREAD_H_
#include <mango/types.h>
#include <magenta/types.h>
#define __PTHREAD_ATTR_SIZE__ 32
@@ -1,6 +1,6 @@
.code64
#include "mango/syscall.h"
#include "magenta/syscall.h"
.global __pthread_unmap_exit
.type __pthread_unmap_exit, @function
+1 -1
View File
@@ -1,7 +1,7 @@
#ifndef _THREAD_PTHREAD_H_
#define _THREAD_PTHREAD_H_
#include <mango/types.h>
#include <magenta/types.h>
enum pthread_flags {
THREAD_DETACHED = 0x01u,
+2 -2
View File
@@ -1,8 +1,8 @@
#include "pthread.h"
#include <errno.h>
#include <mango/status.h>
#include <mango/task.h>
#include <magenta/status.h>
#include <magenta/task.h>
#include <pthread.h>
#include <string.h>
#include <sys/mman.h>
+4 -4
View File
@@ -1,10 +1,10 @@
#include "pthread.h"
#include <errno.h>
#include <mango/handle.h>
#include <mango/object.h>
#include <mango/signal.h>
#include <mango/task.h>
#include <magenta/handle.h>
#include <magenta/object.h>
#include <magenta/signal.h>
#include <magenta/task.h>
#include <pthread.h>
#include <sys/mman.h>
+2 -2
View File
@@ -1,7 +1,7 @@
#include "pthread.h"
#include <mango/handle.h>
#include <mango/task.h>
#include <magenta/handle.h>
#include <magenta/task.h>
#include <pthread.h>
#include <stdlib.h>
+4 -4
View File
@@ -1,10 +1,10 @@
#include "pthread.h"
#include <errno.h>
#include <mango/handle.h>
#include <mango/object.h>
#include <mango/signal.h>
#include <mango/task.h>
#include <magenta/handle.h>
#include <magenta/object.h>
#include <magenta/signal.h>
#include <magenta/task.h>
#include <pthread.h>
#include <sys/mman.h>
+2 -2
View File
@@ -1,7 +1,7 @@
#include "pthread.h"
#include <mango/task.h>
#include <mango/types.h>
#include <magenta/task.h>
#include <magenta/types.h>
#include <string.h>
#include <sys/mman.h>