lib: c: remove errno log messages
This commit is contained in:
@@ -1,12 +1,10 @@
|
|||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <mango/log.h>
|
|
||||||
#include <mango/status.h>
|
#include <mango/status.h>
|
||||||
|
|
||||||
static int __errno = 32;
|
static int __errno = 32;
|
||||||
|
|
||||||
int __attribute__((weak)) * __errno_location(void)
|
int __attribute__((weak)) * __errno_location(void)
|
||||||
{
|
{
|
||||||
kern_log("using builtin errno");
|
|
||||||
return &__errno;
|
return &__errno;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,12 +1,9 @@
|
|||||||
#include "pthread.h"
|
#include "pthread.h"
|
||||||
|
|
||||||
#include <mango/log.h>
|
|
||||||
#include <pthread.h>
|
#include <pthread.h>
|
||||||
#include <stdio.h>
|
|
||||||
|
|
||||||
int *__errno_location(void)
|
int *__errno_location(void)
|
||||||
{
|
{
|
||||||
struct __pthread *self = pthread_self();
|
struct __pthread *self = pthread_self();
|
||||||
kern_logf("using pthread errno %p", &self->thr_errno);
|
|
||||||
return &self->thr_errno;
|
return &self->thr_errno;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user