search for: strcpy

Displaying 20 results from an estimated 887 matches for "strcpy".

2010 Dec 07
0
[PATCH]: A daemon to support HyperV KVP functionality
...truct sockaddr_nl addr; + +static char os_name[100]; +static char os_major[50]; +static char os_minor[50]; +static char processor_arch[50]; +static char os_build[100]; +static char *lic_version; + +void kvp_get_os_info(void) +{ + FILE *file; + char *eol; + struct utsname buf; + + uname(&buf); + strcpy(os_build, buf.release); + strcpy(processor_arch, buf.machine); + + file = fopen("/etc/SuSE-release", "r"); + if (file != NULL) + goto kvp_osinfo_found; + file = fopen("/etc/redhat-release", "r"); + if (file != NULL) + goto kvp_osinfo_found; + /* + * Add c...
2010 Dec 07
0
[PATCH]: A daemon to support HyperV KVP functionality
...truct sockaddr_nl addr; + +static char os_name[100]; +static char os_major[50]; +static char os_minor[50]; +static char processor_arch[50]; +static char os_build[100]; +static char *lic_version; + +void kvp_get_os_info(void) +{ + FILE *file; + char *eol; + struct utsname buf; + + uname(&buf); + strcpy(os_build, buf.release); + strcpy(processor_arch, buf.machine); + + file = fopen("/etc/SuSE-release", "r"); + if (file != NULL) + goto kvp_osinfo_found; + file = fopen("/etc/redhat-release", "r"); + if (file != NULL) + goto kvp_osinfo_found; + /* + * Add c...
2010 Dec 08
0
No subject
...truct sockaddr_nl addr; + +static char os_name[100]; +static char os_major[50]; +static char os_minor[50]; +static char processor_arch[50]; +static char os_build[100]; +static char *lic_version; + +void kvp_get_os_info(void) +{ + FILE *file; + char *eol; + struct utsname buf; + + uname(&buf); + strcpy(os_build, buf.release); + strcpy(processor_arch, buf.machine); + + file =3D fopen("/etc/SuSE-release", "r"); + if (file !=3D NULL) + goto kvp_osinfo_found; + file =3D fopen("/etc/redhat-release", "r"); + if (file !=3D NULL) + goto kvp_osinfo_found; + /* +...
2010 Dec 08
0
No subject
...truct sockaddr_nl addr; + +static char os_name[100]; +static char os_major[50]; +static char os_minor[50]; +static char processor_arch[50]; +static char os_build[100]; +static char *lic_version; + +void kvp_get_os_info(void) +{ + FILE *file; + char *eol; + struct utsname buf; + + uname(&buf); + strcpy(os_build, buf.release); + strcpy(processor_arch, buf.machine); + + file =3D fopen("/etc/SuSE-release", "r"); + if (file !=3D NULL) + goto kvp_osinfo_found; + file =3D fopen("/etc/redhat-release", "r"); + if (file !=3D NULL) + goto kvp_osinfo_found; + /* +...
2010 Dec 17
0
[PATCH 4/4] Staging: hv: Add a user-space daemon to support key/value pair (KVP)
...truct sockaddr_nl addr; + +static char os_name[100]; +static char os_major[50]; +static char os_minor[50]; +static char processor_arch[50]; +static char os_build[100]; +static char *lic_version; + +void kvp_get_os_info(void) +{ + FILE *file; + char *eol; + struct utsname buf; + + uname(&buf); + strcpy(os_build, buf.release); + strcpy(processor_arch, buf.machine); + + file = fopen("/etc/SuSE-release", "r"); + if (file != NULL) + goto kvp_osinfo_found; + file = fopen("/etc/redhat-release", "r"); + if (file != NULL) + goto kvp_osinfo_found; + /* + * Add c...
2010 Dec 17
0
[PATCH 4/4] Staging: hv: Add a user-space daemon to support key/value pair (KVP)
...truct sockaddr_nl addr; + +static char os_name[100]; +static char os_major[50]; +static char os_minor[50]; +static char processor_arch[50]; +static char os_build[100]; +static char *lic_version; + +void kvp_get_os_info(void) +{ + FILE *file; + char *eol; + struct utsname buf; + + uname(&buf); + strcpy(os_build, buf.release); + strcpy(processor_arch, buf.machine); + + file = fopen("/etc/SuSE-release", "r"); + if (file != NULL) + goto kvp_osinfo_found; + file = fopen("/etc/redhat-release", "r"); + if (file != NULL) + goto kvp_osinfo_found; + /* + * Add c...
2011 Aug 25
2
strcpy declaration
In windows-pr strcpy is declared with a prototype of "PL". However, I can''t make that work: require ''win32/api'' include Win32 Strcpy_p = Win32::API.new(''strcpy'', ''PP'', ''L'', ''msvcrt'') Strcpy_l = Win32::API.new(...
2009 Apr 14
3
[LLVMdev] InstVisitor Example
...t; I just read the LLVM Programmer's Manual, which mentions (but >> specifically does not include any details of) the InstVisitor >> template. Could someone please provide an example of how to use this >> template to find (as an example) all CallSites for the function >> strcpy? > > If this is really what you want to do, then the easiest method is to > just get the declaration of the strcpy function, and iterate over its > uses. I guess I should note that the "use iteration" will only work for direct calls. If you are concerned with indirect calls...
2009 Apr 14
2
[LLVMdev] InstVisitor Example
I just read the LLVM Programmer's Manual, which mentions (but specifically does not include any details of) the InstVisitor template. Could someone please provide an example of how to use this template to find (as an example) all CallSites for the function strcpy? Thanks, Brice Lin
2009 Apr 14
0
[LLVMdev] InstVisitor Example
...e Lin wrote: > I just read the LLVM Programmer's Manual, which mentions (but > specifically does not include any details of) the InstVisitor > template. Could someone please provide an example of how to use this > template to find (as an example) all CallSites for the function > strcpy? If this is really what you want to do, then the easiest method is to just get the declaration of the strcpy function, and iterate over its uses. Function* const strcpy = m.getFunction("strcpy"); for (Value::use_iterator i = strcpy->use_begin(), e = strcpy- >use_end();...
2011 Feb 07
18
[PATCH] Btrfs-progs use safe string manipulation functions
Please find the attached patch which replace unsafe strcpy(3) by strncpy(3) functions. regards, Eduardo Silva
2009 Apr 14
0
[LLVMdev] InstVisitor Example
Thanks for providing me with those examples. My rather inefficient pass, which inherits from ModulePass, currently iterates through the Module, Functions, and BasicBlocks multiple times (once to find strcpy, another to find strcat, and so on for various other functions). If I only care about the direct calls, would I benefit more from switching to multiple use_iterators or the InstVisitor template? - Brice On Tue, Apr 14, 2009 at 1:13 PM, Luke Dalessandro <luked at cs.rochester.edu> wrote: &gt...
2006 Feb 02
5
Fwd: win32-clipboard and Unicode zero bytes
Hi all, I''m forwarding this message from Brian Marick. If you run this test script and then paste the results into a Unicode aware text editor, you''ll notice that it only prints one character instead of three. I tried changing the strlen to _tcslen and strcpy to _tcscpy, but that didn''t help. I mucked around a bit with the MultiByteToWideChar function, too, but didn''t have any luck. Any ideas? Thanks, Dan # test.rb $:.unshift Dir.pwd require ''clipboard'' def unicopy(hex_name_array) Win32::Clipboard.set_data(wi...
2013 Dec 03
1
[LLVMdev] Help needed with creating new and replacing an old instruction
Hi,I have the following instruction in my IR-%call2 = call i8* @strcpy(i8* %1, i8* %2) #2I intend to change call to strcpy with strncpy. I have included the following code in runOnFunction, so that when it is strcpy's turn to be invoked, strncpy is invoked instead.Assuming I* is the strcpy instruction,CallInst* x=new CallInst::CreateCall3(strncpy,1,2,ConstantInt(1...
2001 May 13
1
Dynamic C Symbols and Embedding Suggestion
...st before entering the do1-loop--- though perhaps this should be integrated into some part of the setup procedure for embedding apps. DllInfo* R_RegisterEmbeddedExecutable(HINSTANCE handle,char* path) { char* dpath,*name,DLLname[PATH_MAX], *p; DeleteDLL(path); if(CountDLL == MAX_NUM_DLLS) { strcpy(DLLerror,"unable to register embedded executable. too many libraries"); return 0; } dpath = malloc(strlen(path)+1); if(dpath == NULL) { strcpy(DLLerror,"Couldn't allocate space for 'path'"); return 0; } strcpy(dpath, path); if(R_osDynSy...
2004 Aug 10
1
/minus or /hyphen in PS output
...ecause encoding vector in ps output got "corrected" and /hyphen (or any other name I have selected for 45'th character) is replaced with /minus. I have tried this patch and it works for me. ------------------------------------------------ 449,450c449 < // if(c == 45) strcpy(dest, "/minus"); else < strcpy(dest, state->p0); --- > if(c == 45) strcpy(dest, "/minus"); else strcpy(dest, state->p0);
2004 Aug 10
1
/minus or /hyphen in PS output
...ecause encoding vector in ps output got "corrected" and /hyphen (or any other name I have selected for 45'th character) is replaced with /minus. I have tried this patch and it works for me. ------------------------------------------------ 449,450c449 < // if(c == 45) strcpy(dest, "/minus"); else < strcpy(dest, state->p0); --- > if(c == 45) strcpy(dest, "/minus"); else strcpy(dest, state->p0);
2012 Feb 29
15
[RFC] [PATCH] Add btrfs autosnap feature
From: anand jain <anand.jain@oracle.com> Anand Jain (1): [RFC] Add btrfs autosnap feature Makefile | 6 +- autosnap.c | 1553 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ autosnap.h | 81 +++ btrfs-list.c | 140 +++++- btrfs.c | 46 ++- btrfs_cmds.c | 186 +++++++- btrfs_cmds.h | 3 +- scrub.c | 1 + 8 files changed, 1982 insertions(+), 34
2006 Jun 21
4
Yet another data structure + pack/unpack question (win32-service)
Hi all, If you take a look at the service.rb file in the win32-service repository (the new one in the toplevel repository path), I''ve got this bit of code, which succeeds, but I can''t seem to unpack the data structure properly. Did I pack it wrong to begin with? I should know this but I''m spacing out. proc_status =
2012 Jan 19
4
[LLVMdev] What happened to "malloc" in LLVM 3.0 IR?
...%_lenR = call i32 @strlen(i8* %1) ; <i32> [#uses=1] %_totallen = add i32 %_lenL, 1 ; <i32> [#uses=1] %2 = add i32 %_totallen, %_lenR ; <i32> [#uses=1] %_malloc = malloc i8, i32 %2 ; <i8*> [#uses=1] %_strcpy = call i8* @strcpy(i8* %_malloc, i8* getelementptr inbounds ([2 x i8]* @_stringexpr4, i32 0, i32 0)) ; <i8*> [#uses=1] %_strcat = call i8* @strcat(i8* %_strcpy, i8* %1) ; <i8*> [#uses=2] %_lenL5 = call i32 @strlen(i8* %_strcat) ; <i32> [#uses=1] %_lenR6 = call i32 @st...