search for: __klibc__

Displaying 20 results from an estimated 22 matches for "__klibc__".

Did you mean: d__klibc__
2011 Jul 08
1
[PATCH] [SHELL] Fix klibc DEBUG compilation v3
...me. Now it only fails at link stage for not having setlinebuf(3) and freopen(3). Fixes: usr/dash/show.o: In function `opentrace': show.c:(.text+0x36): undefined reference to `freopen' show.c:(.text+0x86): undefined reference to `setlinebuf' Skip setlinebuf and use fclose/fopen inside __KLIBC__ Compile tested with debug in klibc and against glibc in dash repo. Signed-off-by: maximilian attems <max at stro.at> --- src/show.c | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/src/show.c b/src/show.c index 14dbef3..4a049e9 100644 --- a/src/show.c +++ b/src/...
2012 Jul 02
0
[klibc:master] [SHELL] Fix klibc DEBUG compilation
...me. Now it only fails at link stage for not having setlinebuf(3) and freopen(3). Fixes: usr/dash/show.o: In function `opentrace': show.c:(.text+0x36): undefined reference to `freopen' show.c:(.text+0x86): undefined reference to `setlinebuf' Skip setlinebuf and use fclose/fopen inside __KLIBC__ Compile tested with debug in klibc and against glibc in dash repo. Signed-off-by: maximilian attems <max at stro.at> Signed-off-by: Herbert Xu <herbert at gondor.apana.org.au> Signed-off-by: maximilian attems <max at stro.at> --- usr/dash/show.c | 6 ++++++ 1 files changed,...
2010 Nov 20
1
[PATCH 1/2] cat cleanup ugly ifdefery
...s changed, 1 insertions(+), 21 deletions(-) diff --git a/usr/utils/cat.c b/usr/utils/cat.c index 1108d2e..7465148 100644 --- a/usr/utils/cat.c +++ b/usr/utils/cat.c @@ -39,13 +39,6 @@ #define __RCSID(arg) #endif -#if HAVE_NBTOOL_CONFIG_H -#include "nbtool_config.h" -#endif - -#ifndef __KLIBC__ -#include <sys/cdefs.h> -#endif #if !defined(lint) __COPYRIGHT("@(#) Copyright (c) 1989, 1993\n\ The Regents of the University of California. All rights reserved.\n"); @@ -60,14 +53,8 @@ __RCSID("$NetBSD: cat.c,v 1.43 2004/01/04 03:31:28 jschauma Exp $"); #include &l...
2005 May 23
3
module-init-tools ported to klibc
...ule-init-tools/depmod.c --- module-init-tools-3.2-pre5/depmod.c 2005-04-30 15:38:46.000000000 +0300 +++ module-init-tools/depmod.c 2005-05-22 01:19:06.000000000 +0300 @@ -6,7 +6,11 @@ #include <stdarg.h> #include <stdio.h> #include <stdlib.h> -#include <getopt.h> +#ifndef __KLIBC__ +# include <getopt.h> +#else +# include "mod_libc_wrapper.h" +#endif #include <string.h> #include <errno.h> #include <unistd.h> diff -ur module-init-tools-3.2-pre5/Makefile.am module-init-tools/Makefile.am --- module-init-tools-3.2-pre5/Makefile.am 2005-05-12...
2015 Sep 10
2
[PATCH v2 1/1] extlinux: fix memory leak
...ntel.com> --- extlinux/main.c | 44 ++++++++++++++++++++++++++++++-------------- 1 file changed, 30 insertions(+), 14 deletions(-) diff --git a/extlinux/main.c b/extlinux/main.c index 55a1495..b7cdf92 100644 --- a/extlinux/main.c +++ b/extlinux/main.c @@ -1044,12 +1044,12 @@ err: } #ifndef __KLIBC__ -static const char *find_device(const char *mtab_file, dev_t dev) +static char *find_device(const char *mtab_file, dev_t dev) { struct mntent *mnt; struct stat dst; FILE *mtab; - const char *devname = NULL; + char *devname = NULL; bool done; mtab = setmntent(mtab_f...
2015 Sep 09
1
[PATCH v1 1/1] extlinux: fix memory leak
....com> --- extlinux/main.c | 48 ++++++++++++++++++++++++++++++++---------------- 1 file changed, 32 insertions(+), 16 deletions(-) diff --git a/extlinux/main.c b/extlinux/main.c index 55a1495..7bb7443 100644 --- a/extlinux/main.c +++ b/extlinux/main.c @@ -1044,12 +1044,12 @@ err: } #ifndef __KLIBC__ -static const char *find_device(const char *mtab_file, dev_t dev) +static char *find_device(const char *mtab_file, dev_t dev) { struct mntent *mnt; struct stat dst; FILE *mtab; - const char *devname = NULL; + char *devname = NULL; bool done; mtab = setmntent(mtab_f...
2004 Aug 13
1
[PATCH] make spotless update
make spotless leaves 2 generated files. diff -purN klibc-0.159.orig/klibc/Makefile klibc-0.159/klibc/Makefile --- klibc-0.159.orig/klibc/Makefile 2004-08-03 23:07:05.000000000 +0200 +++ klibc-0.159/klibc/Makefile 2004-08-13 22:23:35.696699671 +0200 @@ -156,6 +156,7 @@ clean: archclean rm -f sha1hash errlist.c spotless: clean + rm -f include/klibc/havesyscall.h syscalls.nrs find . \( -name
2015 Jul 11
0
EXTLINUX - GCC 5
...defined(SWD_BEST_OFF) if (s->best_pos[2] == 0) s->best_pos[2] = key + 1; #endif Shall the index be [SWD_BEST_OFF - 1] ? Shall this be done only if SWD_BEST_OFF > 2 ? ----------------------------------------------------------------- Checking linux/syslinux.c: __KLIBC__... [linux/syslinux.c:123]: (error) Uninitialized variable: loop_fd Valid complaint: /* * If DO_DIRECT_MOUNT is 0, call mount(8) * If DO_DIRECT_MOUNT is 1, call mount(2) */ #ifdef __KLIBC__ # define DO_DIRECT_MOUNT 1 #else # define DO_DIRECT_MOUNT 0 /* glibc has broken lo...
2005 Dec 28
1
Problems with klibc 1.1.8
...fs libsysfs/sysfs_class.c -o libsysfs/sysfs_class.o In file included from /usr/lib/klibc/include/sys/types.h:9, from /usr/src/initramfs-2.6.15-rc7-paldo1/udev-079/libsysfs/sysfs/libsysfs.h:26, from libsysfs/sysfs_class.c:23: /usr/lib/klibc/include/stddef.h:9:3: error: #error "__KLIBC__ not defined, compiler invocation error!" I assume that klcc should define it but I don't know why it doesn't... Regards, J?rg -- J?rg Billeter <j@bitron.ch>
2015 Sep 11
0
[PATCH v2 1/1] extlinux: fix memory leak
...+++++++++++++++++++-------------- > 1 file changed, 30 insertions(+), 14 deletions(-) > > diff --git a/extlinux/main.c b/extlinux/main.c > index 55a1495..b7cdf92 100644 > --- a/extlinux/main.c > +++ b/extlinux/main.c > @@ -1044,12 +1044,12 @@ err: > } > > #ifndef __KLIBC__ > -static const char *find_device(const char *mtab_file, dev_t dev) > +static char *find_device(const char *mtab_file, dev_t dev) > { > struct mntent *mnt; > struct stat dst; > FILE *mtab; > - const char *devname = NULL; > + char *devname = NULL; >...
2015 Sep 09
0
[PATCH v1 1/1] extlinux: fix memory leak
...* subvol) struct btrfs_ioctl_search_key *sk = &args.key; struct btrfs_ioctl_search_header *sh; int ret, i; - int fd; + int fd = -1; struct btrfs_root_ref *ref; struct btrfs_dir_item *dir_item; unsigned long off = 0; @@ -1044,12 +1044,12 @@ err: } #ifndef __KLIBC__ -static const char *find_device(const char *mtab_file, dev_t dev) +static char *find_device(const char *mtab_file, dev_t dev) { struct mntent *mnt; struct stat dst; FILE *mtab; - const char *devname = NULL; + char *devname = NULL; bool done; mtab = setmntent(mtab_f...
2015 Jul 11
3
EXTLINUX - GCC 5
> On Jul 10, 2015 5:29 PM, "poma via Syslinux" <syslinux at zytor.com> wrote: > > > The same as with the ISOLINUX, stable and git. > > Only this time has nothing to do with the menu. > > 1) EXTLINUX is no longer a discrete variant. The installer extlinux now > installs SYSLINUX. > 2) William Kensington already saw a similar behavior wherein an
2005 Mar 11
1
select.h not working on ia64
__FD_SET, __FD_CLR, __FD_ISSET, __FD_ZERO are inside of __KERNEL__ in: include/asm-ia64/posix_types.h and therefore not available. I've added stuff like this to our code: #ifndef __FD_SET #define __FD_SET(d, set) ((set)->fds_bits[__FDELT(d)] |= __FDMASK(d)) #endif but it would be nice if this can be solved in klibc. Thanks, Kay
2005 Oct 16
1
getting dmraid to use klibc
...#39; undeclared (first use in this function) after investigating a little I found out that <features.h> is being included (is this right?) and defines __GLIBC__ and thus S_IFMT is not being defined from /usr/include/linux/stat.h:10 of course this fixes the problem in features.h:291 #ifndef __KLIBC__ #define __GLIBC__ 2 #define __GLIBC_MINOR__ 3 #endif but I'm not sure whether this is the right approach and/or something should be changed in klibc/glibc/dmraid thanks in advance, filippo [0] http://people.redhat.com/~heinzm/sw/dmraid/src/dmraid-1.0.0.rc9.tar.bz2 -- Filippo Giunchedi PGP...
2011 Apr 15
0
[GIT PULL] syslinux command-line
...Earlier versions - * would install the string "EXTLINUX" instead, handle both. - */ -int already_installed(int devfd) -{ - char buffer[8]; - - xpread(devfd, buffer, 8, 3); - return !memcmp(buffer, "SYSLINUX", 8) || !memcmp(buffer, "EXTLINUX", 8); -} - #ifdef __KLIBC__ static char devname_buf[64]; @@ -766,7 +753,7 @@ int install_loader(const char *path, int update_only) if (devfd < 0) return 1; - if (update_only && !already_installed(devfd)) { + if (update_only && !syslinux_already_installed(devfd)) { fprintf(stderr, "%s:...
2005 Mar 02
2
[PATCH] klcc compatibility with gcc
Here's a patch to klcc.in from klibc-0.202. The context: I have an application, managed with GNU automake/autoconf. Packagers should be able to build the application with klibc if available, with plain gcc otherwise, as follows: $ cd ~/klibc-0.202 $ ... make linux symlink $ make bindir=$HOME/local/bin \ mandir=$HOME/local/man \ INSTALLDIR=$HOME/local \ SHLIBDIR=$HOME/local/shlib \
2006 Aug 14
2
klibc and udev
...it to build udev. > i.e. If I were to send a patch which doesn't change anything on the > gcc side, but fixes something with klibc, would it be responded to > with "klibc isn't supported" or not? Depends on how intrusive they are, simple stuff should be fine. But ifdef __KLIBC__, or code that implements standard stuff that klibc doesn't support is no longer accepted. I'm tired of not using basic stuff like long options, fnmatch(), fgets(), ... cause of klibc's limitations, and I don't make any promises not to start using these standard interfaces some day....
2014 Dec 24
0
[PATCH 1/8] extlinux/main.c: support unmounted ext2/3/4 filesystem
...e <ext2fs/ext2fs.h> #include "linuxioctl.h" @@ -991,6 +992,12 @@ static int install_file(const char *path, int devfd, struct stat *rst) return 1; } + +static int install_file_to_device(const char *device_path, int devfd, + int update_only) +{ +} + #ifdef __KLIBC__ static char devname_buf[64]; @@ -1452,15 +1459,26 @@ static int ext_write_adv(const char *path, const char *cfg, int devfd) return write_adv(path, cfg); } -static int install_loader(const char *path, int update_only) +static int install_loader(const char *path, int update_only, struct st...
2011 Jul 12
0
[PATCH]: Use a general way to get the default subvolume for btrfs
...#include <inttypes.h> /* This is needed to deal with the kernel headers imported into glibc 3.3.3. */ -typedef uint64_t u64; #include <alloca.h> #include <errno.h> #include <fcntl.h> #include <stdio.h> #include <unistd.h> +#include <dirent.h> #ifndef __KLIBC__ #include <mntent.h> #endif @@ -65,7 +65,6 @@ typedef uint64_t u64; boot image, the boot sector is from 0~512, the boot image starts after */ #define BTRFS_BOOTSECT_AREA 65536 #define BTRFS_EXTLINUX_OFFSET SECTOR_SIZE -#define BTRFS_SUBVOL_OPT "subvol=" #define BTRFS_SUBVOL_...
2014 Dec 24
14
[PATCH 0/8] extlinux: support unmounted ext2/3/4 filesystem
Hello syslinux, Merry Christmas! These patches will make extlinux work with umounted ext2/3/4 filesystem, for example: $ extlinux -i /dev/sdXN or $ extlinux -i file_block Also it can work with something like: $ extlinux /dev/sdXN --reset-adv or $ extlinux file_block --reset-adv We don't use a new option (I planed to use "-d" but it is already in use), it will check whether the