1
0
Fork 0
mirror of https://github.com/tailix/libkernaux.git synced 2025-04-14 17:32:55 -04:00

Main: libc/include/errno.h: Added

This commit is contained in:
Alex Kotov 2022-06-12 13:52:45 +03:00
parent dee94468b1
commit 1e8ab9080b
Signed by: kotovalexarian
GPG key ID: 553C0EBBEB5D5F08
6 changed files with 30 additions and 1 deletions

View file

@ -1,3 +1,7 @@
2022-06-12 Alex Kotov <kotovalexarian@gmail.com>
* libc/include/errno.h: Added
2022-06-10 Alex Kotov <kotovalexarian@gmail.com>
* libc/include/string.h: Add funcs "memchr", "strcat", "strncat", "strchr"

View file

@ -1,4 +1,4 @@
# FIXME: dependencies are not built automatically with --enable-split-*
# FIXME: dependencies are not built automatically without --enable-split-*
include $(top_srcdir)/shared.am

View file

@ -10,5 +10,6 @@ endif
libc_la_SOURCES = \
src/ctype.c \
src/errno.c \
src/stdlib.c \
src/string.c

View file

@ -1,5 +1,6 @@
nobase_include_HEADERS = \
ctype.h \
errno.h \
inttypes.h \
stdlib.h \
string.h \

16
libc/include/errno.h Normal file
View file

@ -0,0 +1,16 @@
#ifndef _ERRNO_H
#define _ERRNO_H 1
#ifdef __cplusplus
extern "C" {
#endif
#define ERANGE 1
extern int errno;
#ifdef __cplusplus
}
#endif
#endif

7
libc/src/errno.c Normal file
View file

@ -0,0 +1,7 @@
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <errno.h>
int errno = 0;