search for: fputs_unlock

Displaying 10 results from an estimated 10 matches for "fputs_unlock".

Did you mean: fputs_unlocked
2017 Oct 27
2
Why does LLVm 3.8.0 recognize fputs_unlocked as a vararg function?
Considering F represents the function fputs_unlocked() in an LLVM pass, => F->isVarArg() returns true => F->getNumParams() returns 0 => *F returns declare i32 @fputs_unlocked(...) The signature of fputs_unlocked from man page is: int fputs_unlocked(const char *s, FILE *stream); Can anybody explain why fputs_unlocked() is recogn...
2018 May 29
2
LLVM IR source line error
...ing in such case. Below is the IR. The first IR's source line if 614. %call = call i8* @gettext(i8* getelementptr inbounds ([221 x i8], [221 x i8]* @.str.42, i32 0 , i32 0)) #12, !dbg !1295 %0 = load %struct._IO_FILE*, %struct._IO_FILE** @stdout, align 4, !dbg !1295 %call1 = call i32 @fputs_unlocked(i8* %call, %struct._IO_FILE* %0), !dbg !1295 %call2 = call i8* @gettext(i8* getelementptr inbounds ([222 x i8], [222 x i8]* @.str.43, i32 0, i32 0)) #12, !dbg !1296 %1 = load %struct._IO_FILE*, %struct._IO_FILE** @stdout, align 4, !dbg !1296 %call3 = call i32 @fputs_unlocked(i8* %call2,...
2018 May 29
0
LLVM IR source line error
...> The first IR's source line if 614. > > %call = call i8* @gettext(i8* getelementptr inbounds ([221 x i8], [221 x > i8]* @.str.42, i32 0 , i32 0)) #12, !dbg !1295 > %0 = load %struct._IO_FILE*, %struct._IO_FILE** @stdout, align 4, !dbg > !1295 > %call1 = call i32 @fputs_unlocked(i8* %call, %struct._IO_FILE* %0), !dbg > !1295 > %call2 = call i8* @gettext(i8* getelementptr inbounds ([222 x i8], [222 > x i8]* @.str.43, i32 0, i32 0)) #12, !dbg !1296 > %1 = load %struct._IO_FILE*, %struct._IO_FILE** @stdout, align 4, !dbg > !1296 > %call3 = call i...
2018 May 30
1
LLVM IR source line error
...source line if 614. >> >> %call = call i8* @gettext(i8* getelementptr inbounds ([221 x i8], [221 >> x i8]* @.str.42, i32 0 , i32 0)) #12, !dbg !1295 >> %0 = load %struct._IO_FILE*, %struct._IO_FILE** @stdout, align 4, !dbg >> !1295 >> %call1 = call i32 @fputs_unlocked(i8* %call, %struct._IO_FILE* %0), >> !dbg !1295 >> %call2 = call i8* @gettext(i8* getelementptr inbounds ([222 x i8], [222 >> x i8]* @.str.43, i32 0, i32 0)) #12, !dbg !1296 >> %1 = load %struct._IO_FILE*, %struct._IO_FILE** @stdout, align 4, !dbg >> !1296 &g...
2010 Jan 15
5
[LLVMdev] LLVM-gcc for ARM
...-target=arm-eabi >> and then >> make target_alias=arm-eabi >> And then I obtain the following error: In file included from ../../gcc/config/arm/arm.c:59: ../../../libcpp/internal.h: In function ‘ufputs’: ../../../libcpp/internal.h:693: warning: implicit declaration of function ‘fputs_unlocked’ .../../gcc/config/arm/arm.c: At top level: .../../gcc/config/arm/arm.c:514: error: ‘MASK_INTERWORK’ undeclared here (not in a function) .../../gcc/config/arm/arm.c: In function ‘optimization_options’: .../../gcc/config/arm/arm.c:23444: warning: unused parameter ‘level’ What would be the problem...
2010 Jan 18
0
[LLVMdev] LLVM-gcc for ARM
...e-checking --target=arm-eabi>> and then>> make target_alias=arm-eabi>>And then I obtain the following error:In file included from ../../gcc/config/arm/arm.c:59:./../../libcpp/internal.h: In function ‘ufputs’:./../../libcpp/internal.h:693: warning: implicit declaration of function ‘fputs_unlocked’../../gcc/config/arm/arm.c: At top level:../../gcc/config/arm/arm.c:514: error: ‘MASK_INTERWORK’ undeclared here (not in a function)../../gcc/config/arm/arm.c: In function ‘optimization_options’:../../gcc/config/arm/arm.c:23444: warning: unused parameter ‘level’What would be the problem?It is OK...
2010 May 20
2
[LLVMdev] trying to build llvm-gcc for arm, error: 'V1DI_pointer_node' undeclared (first use in this function)
...uded from ../../llvm-gcc-4.2-2.7.source/gcc/config/arm/arm.c:59: ../../llvm-gcc-4.2-2.7.source/gcc/../libcpp/include/../../libcpp/internal.h: In function 'ufputs': ../../llvm-gcc-4.2-2.7.source/gcc/../libcpp/include/../../libcpp/internal.h:693: warning: implicit declaration of function 'fputs_unlocked' ../../llvm-gcc-4.2-2.7.source/gcc/config/arm/arm.c: In function 'arm_init_neon_builtins': ../../llvm-gcc-4.2-2.7.source/gcc/config/arm/arm.c:17355: error: 'V1DI_pointer_node' undeclared (first use in this function) ../../llvm-gcc-4.2-2.7.source/gcc/config/arm/arm.c:17355: err...
2010 Jan 28
1
[LLVMdev] LLVM-gcc for ARM
...arm-eabi>> and then>> > make target_alias=arm-eabi>>And then I obtain the following error:In file > included from ../../gcc/config/arm/arm.c:59:./../../libcpp/internal.h: In > function ‘ufputs’:./../../libcpp/internal.h:693: warning: implicit > declaration of function ‘fputs_unlocked’../../gcc/config/arm/arm.c: At top > level:../../gcc/config/arm/arm.c:514: error: ‘MASK_INTERWORK’ undeclared > here (not in a function)../../gcc/config/arm/arm.c: In function > ‘optimization_options’:../../gcc/config/arm/arm.c:23444: warning: unused > parameter ‘level’What would be t...
2010 May 20
0
[LLVMdev] trying to build llvm-gcc for arm, error: 'V1DI_pointer_node' undeclared (first use in this function)
...-gcc-4.2-2.7.source/gcc/config/arm/arm.c:59: > ../../llvm-gcc-4.2-2.7.source/gcc/../libcpp/include/../../libcpp/internal.h: > In function 'ufputs': > ../../llvm-gcc-4.2-2.7.source/gcc/../libcpp/include/../../libcpp/internal.h:693: > warning: implicit declaration of function 'fputs_unlocked' > ../../llvm-gcc-4.2-2.7.source/gcc/config/arm/arm.c: In function > 'arm_init_neon_builtins': > ../../llvm-gcc-4.2-2.7.source/gcc/config/arm/arm.c:17355: error: > 'V1DI_pointer_node' undeclared (first use in this function) > ../../llvm-gcc-4.2-2.7.source/gcc/co...
2020 Jul 25
0
[klibc:master] stdio: Define all the _unlocked functions and macros
...t a/usr/include/stdio.h b/usr/include/stdio.h index 1d45fe1a..521213df 100644 --- a/usr/include/stdio.h +++ b/usr/include/stdio.h @@ -48,17 +48,24 @@ __extern int fseek(FILE *, off_t, int); #define fseeko fseek __extern void rewind(FILE *); __extern int fputs(const char *, FILE *); +__extern int fputs_unlocked(const char *, FILE *); __extern int puts(const char *); __extern int fputc(int, FILE *); +__extern int fputc_unlocked(int, FILE *); #define putc(c,f) fputc((c),(f)) +#define putc_unlocked(c,f) putc((c),(f)) #define putchar(c) fputc((c),stdout) +#define putchar_unlocked(c) putchar(c) __ex...