search for: stdio

Displaying 20 results from an estimated 3619 matches for "stdio".

2013 Jun 06
2
[LLVMdev] llvm-gcc errors
Hi, I'm trying to compile a simple program that only printf("hello") using llvm-gcc with -emit-llvm flag, but I'm getting the following error stream. Any ideas what could be the problem? Thanks, Tal In file included from /usr/include/stdio.h:28, from simple.c:1: /usr/include/features.h:324:26: error: bits/predefs.h: No such file or directory /usr/include/features.h:357:25: error: sys/cdefs.h: No such file or directory /usr/include/features.h:389:23: error: gnu/stubs.h: No such file or directory In file included from...
2013 Jun 07
0
[LLVMdev] llvm-gcc errors
...) using llvm-gcc > with –emit-llvm flag, but I’m getting the following error stream. Any ideas what > could be the problem? llvm-gcc is dead (long dead), please use dragonegg or clang instead. Best wishes, Duncan. > > Thanks, > > Tal > > In file included from /usr/include/stdio.h:28, > > from simple.c:1: > > /usr/include/features.h:324:26: error: bits/predefs.h: No such file or directory > > /usr/include/features.h:357:25: error: sys/cdefs.h: No such file or directory > > /usr/include/features.h:389:23: error: gnu/stubs.h: No such...
2020 Jul 25
0
[klibc:master] stdio: Define all the _unlocked functions and macros
...t.kernel.org/?p=libs/klibc/klibc.git;a=commit;h=8c056cab6c8cce0b5dbc2c3141060f89a6ffc905 Author: Ben Hutchings <ben at decadent.org.uk> AuthorDate: Sat, 25 Jul 2020 21:18:30 +0100 Committer: Ben Hutchings <ben at decadent.org.uk> CommitDate: Sat, 25 Jul 2020 21:44:14 +0100 [klibc] stdio: Define all the _unlocked functions and macros Clang 9.0 can optimise stdio function calls to use the _unlocked variants, presumably based on escape analysis. We don't define many of them, and adding a lot of -fno-builtin-* options to inhibit this seems like a losing battle. Since we don'...
2020 Jul 25
0
[klibc:master] stdio: Add extern definition of clearerr()
...t.kernel.org/?p=libs/klibc/klibc.git;a=commit;h=1aacafeba630135c2d8377887486f5e369b598f9 Author: Ben Hutchings <ben at decadent.org.uk> AuthorDate: Sat, 25 Jul 2020 18:14:41 +0100 Committer: Ben Hutchings <ben at decadent.org.uk> CommitDate: Sat, 25 Jul 2020 21:43:01 +0100 [klibc] stdio: Add extern definition of clearerr() We have an inline definition, but need an extern definition too. Signed-off-by: Ben Hutchings <ben at decadent.org.uk> --- usr/klibc/Kbuild | 2 +- usr/klibc/stdio/clearerr.c | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff...
2020 Apr 14
0
[nbdkit PATCH v2 3/3] server: More tests of stdin/out handling
Enhance the testsuite to ensure we don't regress with recent changes to stdin/out handling. This adds: - test-single-sh.sh: prove that 'nbdkit -s sh script' is viable - test-stdio.sh: create plugin that checks stdin/out match /dev/null, then run it with -s, --run, -f Signed-off-by: Eric Blake <eblake@redhat.com> --- tests/Makefile.am | 23 ++++++ tests/test-single-sh.sh | 78 +++++++++++++++++ tests/test-stdio.sh | 95 +++++++++++++++++++++ tests/t...
2008 Sep 10
1
Xen-3.3 Etch amd64 compil error
...or ''...'' before ''size_t'' Dans le fichier inclus à partir de ../../../../../newlib-1.16.0/newlib/libc/stdlib/std.h:2, à partir de ../../../../../newlib-1.16.0/newlib/libc/stdlib/__adjust.c:7: /usr/src/xen-3.3.0/stubdom/newlib-1.16.0/newlib/libc/include/stdio.h:37:20: erreur: stdarg.h : Aucun fichier ou répertoire de ce type In file included from ../../../../../newlib-1.16.0/newlib/libc/stdlib/std.h:2, from ../../../../../newlib-1.16.0/newlib/libc/stdlib/__adjust.c:7: /usr/src/xen-3.3.0/stubdom/newlib-1.16.0/newlib/libc/include/stdio...
2001 Jul 18
2
winelib and msvcrt/stdio.h
Hi, I am using Winelib and no mfc to get a company app to run on Linux. It is a cuiexe as well. However, I get a lot of errors when I include <msvcrt/io.h>. e.g., /usr/include/wine/msvcrt/stdio.h:66: syntax error before '(' This line is: typedef struct MSVCRT(_iobuf) Is it possible to do this with C/C++? I am assuming it is a Windows thing. My version of wine is: wine-20010510-1. I have attached an edited portion of compile errors and my version of msvcrt/stdio.h. Brian __...
2012 May 31
1
klibc 2.0 release
The stdio klibc branch got merged into klibc properly, meaning the I/O being buffered. klibc gained with it support for several stream functions. This massive work got authored by hpa. ipconfig saw several note worthy enhancement allowing the generation of a proper lease file. kinit added fs mount accordin...
2007 Aug 16
1
stdio
Hi, I have experimentally done a branch of klibc with buffered stdio support. It seems to add about 1.5K of code (for x86-64), which isn't so bad, except that it means that *every* program now pulls in stdio, which in turn depends on malloc() and some other pieces of code. I have not yet implemented fscanf(), however, which may cause additional bloat. As of t...
2013 May 13
0
[klibc:sysconf] Framework and trivial implementation of sysconf(3)
...This #include must be at the end */ +#include <sys/sysconf.h> + #endif /* _UNISTD_H */ diff --git a/usr/klibc/Kbuild b/usr/klibc/Kbuild index 2bef9ca..da1dce0 100644 --- a/usr/klibc/Kbuild +++ b/usr/klibc/Kbuild @@ -70,7 +70,8 @@ klib-y += vsnprintf.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...
2010 May 20
3
Install eventmachine on Debian Lenny
...from /usr/include/c++/4.3/iosfwd:47, from /usr/include/c++/4.3/ios:44, from /usr/include/c++/4.3/ostream:45, from /usr/include/c++/4.3/iostream:45, from project.h:29, from files.cpp:20: /usr/include/stdio.h:49: error: expected constructor, destructor, or type conversion before ‘typedef’ /usr/include/stdio.h:50: error: ‘__END_NAMESPACE_STD’ does not name a type In file included from /usr/include/c++/4.3/cwchar:52, from /usr/include/c++/4.3/bits/postypes.h:47, from /u...
2012 May 22
0
[klibc:master] include: [stdio.h] add clearerr() prototype
...kernel.org/?p=libs/klibc/klibc.git;a=commit;h=bf526ecf1bb5c36c7f86464ed33dde836c2d8c04 Author: maximilian attems <max at stro.at> AuthorDate: Tue, 22 May 2012 22:04:05 +0200 Committer: maximilian attems <max at stro.at> CommitDate: Tue, 22 May 2012 22:04:05 +0200 [klibc] include: [stdio.h] add clearerr() prototype Seen on kmod compiling: /usr/lib/klibc/include/stdio.h:130:22: warning: no previous prototype for 'clearerr' [-Wmissing-prototypes] Signed-off-by: maximilian attems <max at stro.at> --- usr/include/stdio.h | 1 + 1 files changed, 1 insertions(+), 0 d...
2020 Apr 14
6
[nbdkit PATCH v2 0/3] more consistent stdin/out handling
In v2: - use int instead of bool in the public header - split the tests from the code - don't overload test-layers; instead, add new tests - add a missing fflush exposed by the new tests - other minor cleanups Eric Blake (3): server: Add nbdkit_stdio_safe server: Sanitize stdin/out before running plugin code server: More tests of stdin/out handling docs/nbdkit-plugin.pod | 23 ++++- plugins/sh/nbdkit-sh-plugin.pod | 4 +- include/nbdkit-common.h | 1 + tests/Makefile.am | 23 +++++ server/internal.h...
2011 Jan 13
2
[PATCH] mux: update PROTOCOL.mux and fix error messages on client side
...request id - uint32 forwarding type string listen host string listen port string connect host string connect port -forwarding type may be MUX_FWD_LOCAL, MUX_FWD_REMOTE, MUX_FWD_DYNAMIC. - A server may reply with a MUX_S_OK, a MUX_S_PERMISSION_DENIED or a MUX_S_FAILURE. -6. Requesting stdio forwarding +7. Requesting stdio forwarding A client may request the master to establish a stdio forwarding: @@ -153,7 +152,7 @@ The contents of "reserved" are currently ignored. A server may reply with a MUX_S_SESSION_OPEED, a MUX_S_PERMISSION_DENIED or a MUX_S_FAILURE. -7. Statu...
2010 Feb 02
0
build failures with 2.6.33-rc
...klibc/vsnprintf.o In file included from usr/include/arch/i386/klibc/archsignal.h:99, from usr/klibc/../include/signal.h:14, from usr/klibc/../include/sys/select.h:11, from usr/klibc/../include/unistd.h:12, from usr/klibc/../include/stdio.h:11, from usr/klibc/vsnprintf.c:13: linux/include/asm-generic/signal.h:7:1: warning: "_NSIG_BPW" redefined In file included from usr/klibc/../include/signal.h:14, from usr/klibc/../include/sys/select.h:11, from usr/klibc/../include/unist...
2012 Jan 20
1
Building R on RHEL 5
...sysutils.o unique.o util.o version.o vfonts.o xxxpr.o?? libs/*o ranlib libR.a gcc -std=gnu99 -Wl,--export-dynamic?? -L/usr/local/lib64 -o R.bin Rmain.o libR.a -L../../lib -lRblas -lgfortran -lm?? -lreadline -lncurses? -lrt -ldl -lm libR.a(main.o): In function `feof_unlocked': /usr/include/bits/stdio.h:123: multiple definition of `feof_unlocked' Rmain.o:/usr/include/bits/stdio.h:123: first defined here libR.a(main.o): In function `ferror_unlocked': /usr/include/bits/stdio.h:130: multiple definition of `ferror_unlocked' Rmain.o:/usr/include/bits/stdio.h:130: first defined here libR.a...
2010 Mar 23
0
[LLVMdev] Cygwin llvm-gcc-4.2 regression
...'(' before string constant /home/ang/build/llvm-gcc-4.2-2.7/./gcc/include/stddef.h:326: error: expected ide ntifier or '(' before string constant In file included from /usr/include/sys/_types.h:63, from /usr/include/sys/reent.h:14, from /usr/include/stdio.h:45, from /home/ang/src/llvm-gcc4.2-2.7.source/gcc/tsystem.h:90, from /home/ang/src/llvm-gcc4.2-2.7.source/gcc/config/i386/cygmi ng-crtbegin.c:37: /home/ang/build/llvm-gcc-4.2-2.7/./gcc/include/stddef.h:355: error: expected ide ntifier or '(' before string...
2004 Jan 27
4
Re: udevinfo output broken
.../dev/ > > > > > > Seems like a klibc feature :) > > > libc works as expected. > > > > _fwrite gets 0x1 as f, calls fileno() which decrements it and passes it > > to write(). > > No idea if this is correct: > > --- klibc-0.98/klibc/include/stdio.h 2004-01-22 21:56:49.000000000 +0100 > +++ klibc/klibc/include/stdio.h 2004-01-27 22:50:27.000000000 +0100 > @@ -15,9 +15,9 @@ > struct _IO_file; > typedef struct _IO_file FILE; > > -#define stdin ((FILE *)0) > -#define stdout ((FILE *)1) > -#define stderr ((FILE...
2019 Aug 07
1
#include_next <stdio.h> not found
...culty building my packages. The current symptom is: /usr/local/clang7/bin/clang -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I/usr/local/clang7/include/c++/v1 -fPIC -Wall -g -O2 -c mcmb.c -o mcmb.o In file included from mcmb.c:11: /usr/local/clang7/include/c++/v1/stdio.h:108:15: fatal error: 'stdio.h' file not found #include_next <stdio.h> ^~~~~~~~~ My first thought was I should install Simon?s clang-7.0.0 and gfortran-6.1 packages which I dutifully did. The next thought was to update my ~/.R/Makevars file to: CC=/usr/local/clang7/b...
2006 Jul 13
0
[vorbis-tools] Some patches coming from Debian bugs
...=================================================================== --- vcut/vcut.c (revision 11702) +++ vcut/vcut.c (working copy) @@ -10,6 +10,10 @@ * last modified: $Id: vcut.c,v 1.9 2003/09/03 07:58:05 calc Exp $ */ +#ifdef HAVE_CONFIG_H +#include <config.h> +#endif + #include <stdio.h> #include <stdlib.h> #include <ogg/ogg.h> Index: vorbiscomment/vcedit.c =================================================================== --- vorbiscomment/vcedit.c (revision 11702) +++ vorbiscomment/vcedit.c (working copy) @@ -9,6 +9,10 @@ * last modified: $Id: vcedit.c,v 1....