search for: config_klibc_errlist

Displaying 12 results from an estimated 12 matches for "config_klibc_errlist".

2013 May 09
2
Klibc 2.0.2 build vs -j 30-ish
...ly building the 'syscalls' +# subdirectory. There is unfortunately no way I can find to be more +# specific than relying on the recursive make for the entire subdirectory +# to have already completed before we attempt to compile sigsuspend.o. +$(obj)/sigsuspend.o: $(obj)/syscalls + klib-$(CONFIG_KLIBC_ERRLIST) += errlist.o ifeq ($(CONFIG_KLIBC_ERRLIST),y)
2019 Oct 07
0
[klibc:master] Fix missing header dependency for sigsuspend.o
.../klibc/+bug/1843743 Signed-off-by: Ben Hutchings <ben at decadent.org.uk> --- usr/klibc/Kbuild | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/usr/klibc/Kbuild b/usr/klibc/Kbuild index 526442dc..b462fbec 100644 --- a/usr/klibc/Kbuild +++ b/usr/klibc/Kbuild @@ -83,6 +83,10 @@ ifeq ($(CONFIG_KLIBC_ERRLIST),y) KLIBCCFLAGS_strerror.o += -DWITH_ERRLIST endif +# sigsuspend.c includes <klibc/havesyscall.h> generated by syscalls/ +# build, so require that to build first +$(obj)/sigsuspend.o: $(obj)/syscalls/klib.list + ##### # Shared definitions LIBC := libc.a
2020 Mar 28
0
[klibc:master] Suppress format truncation warnings for sprintf() and vsprintf()
...ess the warnings. Signed-off-by: Ben Hutchings <ben at decadent.org.uk> --- usr/klibc/Kbuild | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/usr/klibc/Kbuild b/usr/klibc/Kbuild index 19ccfbec..24bad07d 100644 --- a/usr/klibc/Kbuild +++ b/usr/klibc/Kbuild @@ -83,6 +83,11 @@ ifeq ($(CONFIG_KLIBC_ERRLIST),y) KLIBCCFLAGS_strerror.o += -DWITH_ERRLIST endif +# These pass a huge maximum length to the corresponding length-limiting +# functions +KLIBCCFLAGS_sprintf.o += -Wno-format-truncation +KLIBCCFLAGS_vsprintf.o += -Wno-format-truncation + # sigsuspend.c includes <klibc/havesyscall.h> gene...
2020 Jul 25
0
[klibc:master] stdio: Add extern definition of clearerr()
...snprintf.o snprintf.o vsprintf.o sprintf.o \ stdio/fread.o stdio/fwrite.o stdio/fflush.o \ stdio/ungetc.o stdio/fgetc.o \ stdio/fseek.o stdio/ftell.o stdio/rewind.o \ - stdio/fileno.o stdio/feof.o stdio/ferror.o + stdio/fileno.o stdio/feof.o stdio/ferror.o stdio/clearerr.o klib-$(CONFIG_KLIBC_ERRLIST) += errlist.o diff --git a/usr/klibc/stdio/clearerr.c b/usr/klibc/stdio/clearerr.c new file mode 100644 index 00000000..fb565144 --- /dev/null +++ b/usr/klibc/stdio/clearerr.c @@ -0,0 +1,8 @@ +#define __NO_STDIO_INLINES +#include "stdioint.h" + +void clearerr(FILE *__f) +{ + __f->_IO...
2013 Dec 03
0
[PATCH] gzip: Fix typo CONFIG_KLIB_ZIP -> CONFIG_KLIBC_ZIP
...onfig. Signed-off-by: Anton Blanchard <anton at samba.org> --- defconfig | 1 + usr/gzip/Kbuild | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/defconfig b/defconfig index c10a4f5..04b98e9 100644 --- a/defconfig +++ b/defconfig @@ -1,6 +1,7 @@ CONFIG_KLIBC=y CONFIG_KLIBC_ERRLIST=y CONFIG_KLIBC_ZLIB=y +# CONFIG_KLIBC_ZIP is not set # i386 option CONFIG_REGPARM=y # ARM options diff --git a/usr/gzip/Kbuild b/usr/gzip/Kbuild index 64fae04..9bbf0a4 100644 --- a/usr/gzip/Kbuild +++ b/usr/gzip/Kbuild @@ -10,8 +10,8 @@ gzip-y := gzip.o util.o unzip.o inflate.o always := gun...
2013 Dec 03
0
[klibc:master] gzip: Fix typo CONFIG_KLIB_ZIP -> CONFIG_KLIBC_ZIP
...a.org> Signed-off-by: H. Peter Anvin <hpa at zytor.com> --- defconfig | 1 + usr/gzip/Kbuild | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/defconfig b/defconfig index c10a4f5..04b98e9 100644 --- a/defconfig +++ b/defconfig @@ -1,6 +1,7 @@ CONFIG_KLIBC=y CONFIG_KLIBC_ERRLIST=y CONFIG_KLIBC_ZLIB=y +# CONFIG_KLIBC_ZIP is not set # i386 option CONFIG_REGPARM=y # ARM options diff --git a/usr/gzip/Kbuild b/usr/gzip/Kbuild index 64fae04..9bbf0a4 100644 --- a/usr/gzip/Kbuild +++ b/usr/gzip/Kbuild @@ -10,8 +10,8 @@ gzip-y := gzip.o util.o unzip.o inflate.o always := gun...
2019 Feb 01
0
[klibc:master] README.klibc: Document most of the build options
...t;source-dir> + +Build configuration +------------------- + +The build configuration is defined in a ".config" file in the +build directory. If this file does not already exist, it is +created as a copy of the "defconfig" source file. + +The configuration variables are: + +* CONFIG_KLIBC_ERRLIST (bool): Include standard error strings for + strerror(). If disabled, strerror() returns the error number as a + string. +* CONFIG_KLIBC_ZLIB (bool): Include zlib decompression functions. If + disabled, kinit can only load uncompressed ramdisk images. +* CONFIG_KLIBC_ZIP (bool): Include compre...
2013 May 13
0
[klibc:sysconf] Framework and trivial implementation of sysconf(3)
...f.o snprintf.o vsprintf.o sprintf.o \ stdio/fread.o stdio/fwrite.o stdio/fflush.o \ stdio/ungetc.o stdio/fgetc.o \ stdio/fseek.o stdio/ftell.o stdio/rewind.o \ - stdio/fileno.o stdio/feof.o stdio/ferror.o + stdio/fileno.o stdio/feof.o stdio/ferror.o \ + sysconf/sysconf.o klib-$(CONFIG_KLIBC_ERRLIST) += errlist.o diff --git a/usr/klibc/sysconf/sysconf.c b/usr/klibc/sysconf/sysconf.c new file mode 100644 index 0000000..0e21beb --- /dev/null +++ b/usr/klibc/sysconf/sysconf.c @@ -0,0 +1,8 @@ +#include <sys/sysconf.h> + +#undef sysconf + +long sysconf(int val) +{ + return __sysconf_inline(...
2008 Sep 05
0
initial mntent.h, mount features, ipconfig fixes
...nprintf.o snprintf.o vsprintf.o sprintf.o \ ctype/isxdigit.o ctype/tolower.o ctype/toupper.o \ userdb/getgrgid.o userdb/getgrnam.o userdb/getpwnam.o \ userdb/getpwuid.o userdb/root_group.o userdb/root_user.o \ - setmntent.o endmntent.o + setmntent.o endmntent.o getmntent.o klib-$(CONFIG_KLIBC_ERRLIST) += errlist.o diff --git a/usr/klibc/getmntent.c b/usr/klibc/getmntent.c new file mode 100644 index 0000000..c84f1ce --- /dev/null +++ b/usr/klibc/getmntent.c @@ -0,0 +1,60 @@ +#include <stdio.h> +#include <stdlib.h> +#include <string.h> +#include <mntent.h> + +#define BUF...
2008 Sep 07
1
[git pull v2] initial mntent.h, mount features, ipconfig fixes
...nprintf.o snprintf.o vsprintf.o sprintf.o \ ctype/isxdigit.o ctype/tolower.o ctype/toupper.o \ userdb/getgrgid.o userdb/getgrnam.o userdb/getpwnam.o \ userdb/getpwuid.o userdb/root_group.o userdb/root_user.o \ - setmntent.o endmntent.o + setmntent.o endmntent.o getmntent.o klib-$(CONFIG_KLIBC_ERRLIST) += errlist.o diff --git a/usr/klibc/getmntent.c b/usr/klibc/getmntent.c new file mode 100644 index 0000000..8af27f3 --- /dev/null +++ b/usr/klibc/getmntent.c @@ -0,0 +1,61 @@ +#include <stdio.h> +#include <stdlib.h> +#include <string.h> +#include <mntent.h> + +#define BUF...
2006 Jul 09
6
[PATCH/RFC] klibc/kbuild: use separate kbuild files for each klibc subdirectory
...f.o vsprintf.o sprintf.o \ asprintf.o vasprintf.o \ vsscanf.o sscanf.o ctypes.o \ strntoumax.o strntoimax.o \ @@ -52,19 +52,15 @@ libc-y := vsnprintf.o snprintf.o vsprint ctype/ispunct.o ctype/isspace.o ctype/isupper.o \ ctype/isxdigit.o ctype/tolower.o ctype/toupper.o -libc-$(CONFIG_KLIBC_ERRLIST) += errlist.o +klib-$(CONFIG_KLIBC_ERRLIST) += errlist.o ifeq ($(CONFIG_KLIBC_ERRLIST),y) KLIBCCFLAGS_strerror.o += -DWITH_ERRLIST endif -libc-$(CONFIG_KLIBC_ZLIB) += \ - zlib/adler32.o zlib/compress.o zlib/crc32.o zlib/gzio.o \ - zlib/uncompr.o zlib/deflate.o zlib/trees.o zlib/zutil.o \...
2007 Aug 15
0
[git patch] fstype support + minor stuff
...umount.o unsetenv.o \ + userdb/getgrgid.o userdb/getgrnam.o \ + userdb/getpwnam.o userdb/getpwuid.o \ + userdb/root_group.o userdb/root_user.o \ + usleep.o utime.o vasprintf.o vfork.o \ + vfprintf.o vprintf.o vsnprintf.o \ + vsprintf.o vsscanf.o wait3.o wait.o \ + waitpid.o klib-$(CONFIG_KLIBC_ERRLIST) += errlist.o commit d8db398b3f0b893522bf12605e3095789eede748 Author: maximilian attems <max at stro.at> Date: Wed Aug 15 10:58:13 2007 +0200 .gitignore: add subdir specific entries ignore * toplevel: generated *.g and .*.cmd files * .S autognerated files in klibc/{...