search for: vprintf

Displaying 20 results from an estimated 67 matches for "vprintf".

Did you mean: sprintf
2013 Jun 30
1
locks under printf(9) and WITNESS = panic?
...f9185023940 kdb_backtrace() at kdb_backtrace+0x37/frame 0xffffff9185023a00 panic() at panic+0x1d8/frame 0xffffff9185023b00 _mtx_lock_spin_flags() at _mtx_lock_spin_flags+0x123/frame 0xffffff9185023b40 cnputs() at cnputs+0x7a/frame 0xffffff9185023b60 putbuf() at putbuf+0xbf/frame 0xffffff9185023be0 kvprintf() at kvprintf+0x83/frame 0xffffff9185023d20 vprintf() at vprintf+0x85/frame 0xffffff9185024580 printf() at printf+0x67/frame 0xffffff9185024660 witness_checkorder() at witness_checkorder+0x794/frame 0xffffff9185024720 _mtx_lock_spin_flags() at _mtx_lock_spin_flags+0x94/frame 0xffffff9185024760 uart...
2020 Oct 08
4
__attribute__((apple_abi)): targeting Apple/ARM64 ABI from Linux (and others)
...%s, %s\n", argc, argv[0], argv[1], argv[2]); return 0; } and run it under the combo maloader/qemu-user under Linux/x64, using this wrapper for printf: __attribute__((apple_abi)) int darwin_aarch64_printf(const char* format, ...) { va_list args; va_start(args, format); const int ret = vprintf(format, args); va_end(args); return ret; } The fact that va_start/va_end works by using the Linux ABI from a function whose arguments use the Apple ABI seems completely magical to me, so if someone knows why this work I would also be interested! Is this a terrible idea? =====================...
2011 Aug 15
2
[LLVMdev] llc with -march=mips failed to compile va_start()/va_end()/va_arg()
...a bug so that I could submit the bug on Bugzilla? And any suggestion about how to fix this problem is appreciated. ----------- hello.c -------------------------- #include <stdio.h> #include <stdarg.h> void print_msg( const char *fmt, ... ) { va_list ap; va_start( ap, fmt ); vprintf( fmt, ap ); va_end( ap ); } int main() { print_msg( "hello\n" ); return 0; } ----------------------------------------------- Regards, Leo
2013 Feb 19
0
[LLVMdev] [RFC] NoBuiltin Attribute
...l to printf, even though it only becomes apparent after (trivial) devirtualization. Ha. Good example. What would you expect to happen in this case? --- a.cpp --- (with -fno-builtin-printf) pointer fptr; void foo(bool x) { bar(x); } void set(bool x) { if (x) fptr = printf; else fptr = vprintf; } ------------- --- b.cpp --- (no restrictions) extern pointer fptr; void bar(bool x) { set(x); va_list ap = ... (*fptr)("haha", ap); } ------------- Also, with the options reversed. -Krzysztof -- Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted b...
2013 Feb 19
2
[LLVMdev] [RFC] NoBuiltin Attribute
On Feb 19, 2013, at 7:46 AM, Krzysztof Parzyszek <kparzysz at codeaurora.org> wrote: > On 2/19/2013 12:31 AM, Bill Wendling wrote: >> >> Yeah, that was in the one that I committed. I basically want something like this: >> >> define void @foo() "no-builtin" { >> call void @printf() >> } >> >> And then the `call' to
2011 Aug 15
0
[LLVMdev] llc with -march=mips failed to compile va_start()/va_end()/va_arg()
...la? > And any suggestion about how to fix this problem is appreciated. > > ----------- hello.c -------------------------- > #include <stdio.h> > #include <stdarg.h> > void print_msg( const char *fmt, ... ) > { >    va_list ap; >    va_start( ap, fmt ); >    vprintf( fmt, ap ); >    va_end( ap ); > } > int main() > { >    print_msg( "hello\n" ); >    return 0; > } > ----------------------------------------------- > > > Regards, > Leo > _______________________________________________ > LLVM Developers mailing...
2008 Jul 29
2
[LLVMdev] llvm-gcc linking errors
...irast.o(.text+0x10d0): In function `putchar': : multiple definition of `putchar' main.o(.text+0x1310): first defined here trirast.o(.text+0x10f0): In function `getchar': : multiple definition of `getchar' main.o(.text+0x1330): first defined here trirast.o(.text+0x1110): In function `vprintf': : multiple definition of `vprintf' main.o(.text+0x1350): first defined here trirast.o(.text+0x1140): In function `strtoull': : multiple definition of `strtoull' main.o(.text+0x1380): first defined here trirast.o(.text+0x1170): In function `strtoll': : multiple definition of `s...
2007 Apr 12
2
[PATCH] Make com32 printf obey width-restriction on %s
...strlen.o \ - strncasecmp.o strncat.o strncmp.o strncpy.o strndup.o \ + strncasecmp.o strncat.o strncmp.o strncpy.o strndup.o strnlen.o \ strntoimax.o strntoumax.o strrchr.o strsep.o strspn.o strstr.o \ strtoimax.o strtok.o strtol.o strtoll.o strtoul.o strtoull.o \ strtoumax.o vfprintf.o vprintf.o vsnprintf.o vsprintf.o \ --- syslinux-3.36/com32/lib/vsnprintf.c.orig 2007-02-10 21:47:08.000000000 +0100 +++ syslinux-3.36/com32/lib/vsnprintf.c 2007-04-12 12:08:54.000000000 +0200 @@ -362,7 +362,7 @@ case 's': /* String */ sarg = va_arg(ap, const char *); sarg = sarg ? s...
2008 Feb 16
0
[LLVMdev] linux/x86-64 codegen support
..._OPERAND(exp, 1); 4764├> if (!validate_arglist(arglist, INTEGER_TYPE, VOID_TYPE)) 4765│ return false; 4766│ printf("THERE!!\n") Is there a way to nicely dump arglist? gdb's print *arglist shows too much information.... $ /home/edwin/llvm-svn/obj42/./prev-gcc/cc1 charset.i vprintf getchar fgetc_unlocked getc_unlocked getchar_unlocked putchar fputc_unlocked putc_unlocked putchar_unlocked feof_unlocked ferror_unlocked gnu_dev_major gnu_dev_minor gnu_dev_makedev atof atoi atol atoll stat lstat fstat mknod cpp_in_system_header ustrcmp ustrncmp ustrcspn ustrlen uxstrdup ustrchr u...
2011 Aug 15
1
[LLVMdev] llc with -march=mips failed to compile va_start()/va_end()/va_arg()
...to fix this problem is appreciated. >> >> ----------- hello.c -------------------------- >> #include <stdio.h> >> #include <stdarg.h> >> void print_msg( const char *fmt, ... ) >> { >> va_list ap; >> va_start( ap, fmt ); >> vprintf( fmt, ap ); >> va_end( ap ); >> } >> int main() >> { >> print_msg( "hello\n" ); >> return 0; >> } >> ----------------------------------------------- >> >> >> Regards, >> Leo >> _______________________...
2005 Oct 24
2
Compilation package error
...cessor... gcc -E checking for AIX... no checking for minix/config.h... no checking for POSIXized ISC... no checking for ANSI C header files... yes checking for working const... yes checking whether time.h and sys/time.h may both be included... yes checking for 8-bit clean memcmp... yes checking for vprintf... yes checking for strstr... yes checking for strtod... yes checking for strtol... yes checking for drand48... yes checking for gettimeofday... yes checking whether byte ordering is bigendian... no checking for memory.h... yes checking for ANSI C header files... (cached) yes checking for gcc optio...
2012 May 23
3
[LLVMdev] problem on clang+gold
....o -lm -L /s/gcc-4.3.1/lib -lgcc --as-needed -lgcc_s --no-as-needed -lc -lgcc --as-needed -lgcc_s --no-as-needed /usr/lib/gcc/i386-redhat-linux/4.1.2/crtend.o /usr/lib/gcc/i386-redhat-linux/4.1.2/../../../crtn.o and got errors like: /path/to/my/gold/ld: error: dfa.o: multiple definition of 'vprintf' /path/to/my/gold/ld: ccl.o: previous definition here /path/to/my/gold/ld: error: dfa.o: multiple definition of 'getchar' /path/to/my/gold/ld: ccl.o: previous definition here ... The problem to me is that clang should really pick the library under /s/gcc-4.3.1/lib rather the one under...
2008 Feb 16
2
[LLVMdev] linux/x86-64 codegen support
Interestingly, in the .i file there are 2 __builtin_alloca, and EmitBuiltinAlloca is only being called once. Andrew On 2/16/08, Andrew Lenharth <andrewl at lenharth.org> wrote: > libcpp/charset.c:631 turns into: > > %tmp16 = tail call i64 @strlen( i8* %to ) nounwind readonly > ; <i64> [#uses=1] > %tmp18 = tail call i64 @strlen( i8* %from ) nounwind
2011 Feb 27
4
[PATCH] Add minimal mkstemp(3) implementation.
...devpts is mounted! */ __extern int unlockpt(int); diff --git a/usr/klibc/Kbuild b/usr/klibc/Kbuild index af40367..62a3268 100644 --- a/usr/klibc/Kbuild +++ b/usr/klibc/Kbuild @@ -18,7 +18,7 @@ klib-y := vsnprintf.o snprintf.o vsprintf.o sprintf.o \ setpgrp.o getpgrp.o daemon.o \ printf.o vprintf.o fprintf.o vfprintf.o perror.o \ statfs.o fstatfs.o umount.o \ - creat.o open.o openat.o open_cloexec.o \ + creat.o mkstemp.o open.o openat.o open_cloexec.o \ fopen.o fread.o fread2.o fgetc.o fgets.o \ fwrite.o fwrite2.o fputc.o fputs.o puts.o putchar.o \ sleep.o usleep.o strto...
2010 Oct 29
2
[LLVMdev] "multiple definition of .. " in clang 2.8
...wcstoimax': Hostname.c:(.text+0x550): multiple definition of `wcstoimax' av.o:av.c:(.text+0x550): first defined here Hostname.o: In function `wcstoumax': Hostname.c:(.text+0x560): multiple definition of `wcstoumax' av.o:av.c:(.text+0x560): first defined here Hostname.o: In function `vprintf': Hostname.c:(.text+0x570): multiple definition of `vprintf' av.o:av.c:(.text+0x570): first defined here Hostname.o: In function `getchar': Hostname.c:(.text+0x590): multiple definition of `getchar' av.o:av.c:(.text+0x590): first defined here Hostname.o: In function `fgetc_unlocked&...
2017 Oct 10
2
[PATCH] Support for Channel Mapping 253.
...t; *My understanding is that it's impossible to pass ellipsis to another > function.* Basically, what I mean is that I *think* you should remove the calls to va_end() from _ctl_va_list() calls and instead have the regular _ctl() functions call va_end(). That appears to be how functions like vprintf() are called. > 5) Do you need to expose the "generic" opus_projection_encode() and > opus_projection_encode_float() in the API? > > *I'm confused... How else would people be able to encode a packet of > audio using the projection encoder? * Sorry, I got confused whe...
2013 Feb 19
1
[LLVMdev] [RFC] NoBuiltin Attribute
...r (trivial) devirtualization. > > Ha. Good example. > What would you expect to happen in this case? > > --- a.cpp --- (with -fno-builtin-printf) > pointer fptr; > void foo(bool x) { > bar(x); > } > void set(bool x) { > if (x) fptr = printf; > else fptr = vprintf; > } > ------------- > > --- b.cpp --- (no restrictions) > extern pointer fptr; > void bar(bool x) { > set(x); > va_list ap = ... > (*fptr)("haha", ap); > } > ------------- -fno-builtin applies to the code in foo and set. > Also, with the options...
2006 Apr 14
1
Getting SVM minimized function value
Hello, I have been searching a way to get the resulting optimized function value of a trained SVM model (svm from the package e1071) but I have not succeed. Does anyone knows a way to get that value? Pau
2011 Aug 16
0
[LLVMdev] llc with -march=mips failed to compile va_start()/va_end()/va_arg() (RESOLVED)
...----------- hello.c -------------------------- >>>> #include <stdio.h> >>>> #include <stdarg.h> >>>> void print_msg( const char *fmt, ... ) >>>> { >>>>    va_list ap; >>>>    va_start( ap, fmt ); >>>>    vprintf( fmt, ap ); >>>>    va_end( ap ); >>>> } >>>> int main() >>>> { >>>>    print_msg( "hello\n" ); >>>>    return 0; >>>> } >>>> ----------------------------------------------- >>>> &g...
2016 Jan 15
0
[klibc:master] Remove open_cloexec()
...(root_fd < 0 || old_fd < 0) return -errno; diff --git a/usr/klibc/Kbuild b/usr/klibc/Kbuild index f797166..a0e440d 100644 --- a/usr/klibc/Kbuild +++ b/usr/klibc/Kbuild @@ -27,7 +27,7 @@ klib-y += vsnprintf.o snprintf.o vsprintf.o sprintf.o \ setpgrp.o getpgrp.o daemon.o \ printf.o vprintf.o fprintf.o vfprintf.o perror.o \ statfs.o fstatfs.o umount.o \ - creat.o open.o openat.o open_cloexec.o \ + creat.o open.o openat.o \ fread2.o fwrite2.o fgets.o fputc.o fputs.o puts.o putchar.o \ sleep.o usleep.o strtotimespec.o strtotimeval.o \ raise.o abort.o assert.o alarm.o...