search for: stpcpy

Displaying 20 results from an estimated 141 matches for "stpcpy".

Did you mean: stpncpy
2020 Mar 28
0
[klibc:update-dash] Implement stpcpy() and stpncpy()
...rg/?p=libs/klibc/klibc.git;a=commit;h=89742f0fc6f93a4a748ab783856a9d441511b808 Author: Ben Hutchings <ben at decadent.org.uk> AuthorDate: Sat, 28 Mar 2020 21:04:54 +0000 Committer: Ben Hutchings <ben at decadent.org.uk> CommitDate: Sat, 28 Mar 2020 21:42:12 +0000 [klibc] Implement stpcpy() and stpncpy() These functions are included in POSIX.1-2008, and current upstream dash now uses stpncpy() without providing a fallback definition. Also add tests for these functions. Signed-off-by: Ben Hutchings <ben at decadent.org.uk> --- usr/include/string.h | 2 ++ usr/klibc/Kb...
2020 Mar 28
0
[klibc:update-dash] dash: jobs: Replace some uses of fmtstr with stpcpy/stpncpy
...71087f65f966488d55fc32b53255508d1a5e4c Author: Herbert Xu <herbert at gondor.apana.org.au> AuthorDate: Sat, 19 May 2018 02:39:45 +0800 Committer: Ben Hutchings <ben at decadent.org.uk> CommitDate: Sat, 28 Mar 2020 21:42:55 +0000 [klibc] dash: jobs: Replace some uses of fmtstr with stpcpy/stpncpy [ dash commit 15a60c2357f772ccf953772859e8f9fc124442e2 ] Some uses of fmtstr, particularly the ones without a format string, can be replaced with stpcpy or stpncpy. This patch does that so we don't have to introduce unnecessary format strings in order to silence compiler warnings. S...
2016 Jul 01
1
[PATCH 1/6] lib: string: add function strtolower()
...find and fix the bug. (Also, other str* and mem* functions don't usually check for NULL). - While it's true that strcpy and memcpy by definition return dst, that's mostly useless. If you want it to return anything, please make it something that might be used - for example, having stpcpy semantics (returning a pointer to dst's terminating \0) means a caller might avoid a strlen call. - Maybe do strtoupper while you're at it. Quick grepping didn't find any use for the copy-while-lowercasing, but copy-while-uppercasing can at least be used in drivers/acpi/acpica/...
2010 Jul 20
3
fix byte ordering problem in TFTP/PXE fs access
Hello, When trying out (g)pxelinux using TFTP URLs and the '<host>::<path>' syntax, pxelinux seemed to "hang". Some printf debugging and tcpdump revealed that it looped in the timeout after sending the TFTP RRQ. Further investigation revealed, that if a plain IP address (e.g. "tftp://12.34.56.78/something") is used, the byte order is not converted from host
2008 Aug 16
1
Minimal COM32 Root Module
...o memchr.o memcmp.o \ memcpy.o mempcpy.o memmem.o memmove.o memset.o memswap.o \ exit.o onexit.o \ perror.o qsort.o realloc.o seed48.o snprintf.o \ sprintf.o srand48.o sscanf.o strcasecmp.o \ strdup.o strerror.o strlen.o \ strnlen.o \ strncasecmp.o strncat.o strncmp.o strndup.o \ stpcpy.o stpncpy.o \ strntoimax.o strntoumax.o strrchr.o strstr.o \ strtoimax.o strtol.o strtoll.o strtoul.o strtoull.o \ strtoumax.o vprintf.o vsprintf.o \ asprintf.o vasprintf.o strlcat.o \ vsscanf.o zalloc.o \ \ sys/x86_init_fpu.o math/pow.o math/strtod.o Thank you! Stefan Bucu...
2019 Jan 25
0
[klibc:update-dash] expand: Fix buffer overflow in expandmeta
...ar *enddir, char *name) scopy(dp->d_name, enddir); addfname(expdir); } else { - for (p = enddir, cp = dp->d_name; - (*p++ = *cp++) != '\0';) - continue; - p[-1] = '/'; - expmeta(p, endname); + unsigned offset; + unsigned len; + + p = stpcpy(enddir, dp->d_name); + *p = '/'; + + offset = p - expdir + 1; + len = offset + name_len + NAME_MAX; + if (len > expdir_max) { + len += PATH_MAX; + expdir = ckrealloc(expdir, len); + expdir_max = len; + } + + expmeta(endname, name_len, offset); + enddir...
2020 Mar 28
0
[klibc:update-dash] dash: expand: Fix buffer overflow in expandmeta
...ar *enddir, char *name) scopy(dp->d_name, enddir); addfname(expdir); } else { - for (p = enddir, cp = dp->d_name; - (*p++ = *cp++) != '\0';) - continue; - p[-1] = '/'; - expmeta(p, endname); + unsigned offset; + unsigned len; + + p = stpcpy(enddir, dp->d_name); + *p = '/'; + + offset = p - expdir + 1; + len = offset + name_len + NAME_MAX; + if (len > expdir_max) { + len += PATH_MAX; + expdir = ckrealloc(expdir, len); + expdir_max = len; + } + + expmeta(endname, name_len, offset); + enddir...
2005 Oct 29
3
Re: [PATCH] Avoid using dc in git-count-objects
On Thu, Oct 27, 2005 at 10:22:08PM -0700, H. Peter Anvin wrote: > > >So it looks like as long as dash can link with klibc then: OK, I've got it to build with klibc using klcc: $ size src/dash text data bss dec hex filename 63333 356 5940 69629 10ffd src/dash Unfortunately there seems to be something fishy in parameter expansion as it fails three
2007 Sep 13
5
problem with exec,system,WinExec, C functions
Hi, i'm using openwatcom under wine, all is ok, but next code will not work: #include <windows.h> void main( void ) { system( "foo.exe" ); } same problem for: #include <windows.h> void main( void ) { WinExec( "foo.exe", SW_SHOW ); } where "foo.exe" is a windows console aplication if i try to launch foo.exe with wine in a terminal window
2016 Jun 30
6
[PATCH 0/6] lib: string: add function strtolower()
This series introduces a new generic function strtolower(), which converts strings to lowercase in-place, overwriting the original string. This kind of functionality is needed in several places in the kernel. Right now, everybody seems to be implementing their own copy of this function. So, we replace several custom "strtolower" implementations with this new library function. Another
2015 Jan 20
3
[LLVMdev] strlen in fast-isel
It seems that fast-isel for intel does not handle strlen. It's a general problem in fast-isel . ~/llvmw/build/Deb~/llvmw/build/Debug+Asserts/bin/clang -O0 -mllvm -fast-isel-verbose -mllvm -fast-isel strlen1.c strlen1.c:12:3: warning: implicitly declaring library function 'printf' with type 'int (const char *, ...)' printf("%i\n", len); ^
2013 Jun 29
0
Syslinux 6.00 released
...ux/efi64/com32/lib/memcmp.o /tmp/syslinux/efi64/com32/lib/printf.o /tmp/syslinux/efi64/com32/lib/strncmp.o /tmp/syslinux/efi64/com32/lib/vfprintf.o /tmp/syslinux/efi64/com32/lib/strlen.o /tmp/syslinux/efi64/com32/lib/vsnprintf.o /tmp/syslinux/efi64/com32/lib/snprintf.o /tmp/syslinux/efi64/com32/lib/stpcpy.o /tmp/syslinux/efi64/com32/lib/strcmp.o /tmp/syslinux/efi64/com32/lib/strdup.o /tmp/syslinux/efi64/com32/lib/strcpy.o /tmp/syslinux/efi64/com32/lib/strncpy.o /tmp/syslinux/efi64/com32/lib/setjmp.o /tmp/syslinux/efi64/com32/lib/fopen.o /tmp/syslinux/efi64/com32/lib/fread.o /tmp/syslinux/efi64/com32...
2013 Jun 29
6
Syslinux 6.00 released
On Sat, 29 Jun, at 01:57:58AM, Igor Sverkos wrote: > Hi, > > Matt Fleming wrote: > > On Tue, 25 Jun, at 01:52:00PM, Helmut Hullen wrote: > >> Thanks - now it crashes later ... > > > > What crash are you seeing? > > > >> I don't have the ia64 files which are needed for a complete binary. But > >> maybe that's only my special
2010 Dec 14
8
builder-ubuntu febootstrap success 85db2a664c820e01a02ddc3b33b3da26fe05dc5b
...king for working strerror function... yes checking whether memmem is declared without a macro... yes checking whether mempcpy is declared without a macro... yes checking whether memrchr is declared without a macro... yes checking whether rawmemchr is declared without a macro... yes checking whether stpcpy is declared without a macro... yes checking whether stpncpy is declared without a macro... yes checking whether strchrnul is declared without a macro... yes checking whether strdup is declared without a macro... yes checking whether strncat is declared without a macro... yes checking whether strndu...
2011 Jan 14
7
builder-ubuntu febootstrap success 85db2a664c820e01a02ddc3b33b3da26fe05dc5b
...king for working strerror function... yes checking whether memmem is declared without a macro... yes checking whether mempcpy is declared without a macro... yes checking whether memrchr is declared without a macro... yes checking whether rawmemchr is declared without a macro... yes checking whether stpcpy is declared without a macro... yes checking whether stpncpy is declared without a macro... yes checking whether strchrnul is declared without a macro... yes checking whether strdup is declared without a macro... yes checking whether strncat is declared without a macro... yes checking whether strndu...
2011 Feb 15
7
builder-ubuntu febootstrap success 85db2a664c820e01a02ddc3b33b3da26fe05dc5b
...king for working strerror function... yes checking whether memmem is declared without a macro... yes checking whether mempcpy is declared without a macro... yes checking whether memrchr is declared without a macro... yes checking whether rawmemchr is declared without a macro... yes checking whether stpcpy is declared without a macro... yes checking whether stpncpy is declared without a macro... yes checking whether strchrnul is declared without a macro... yes checking whether strdup is declared without a macro... yes checking whether strncat is declared without a macro... yes checking whether strndu...
2011 Jan 14
7
builder-debian febootstrap success 85db2a664c820e01a02ddc3b33b3da26fe05dc5b
...king for working strerror function... yes checking whether memmem is declared without a macro... yes checking whether mempcpy is declared without a macro... yes checking whether memrchr is declared without a macro... yes checking whether rawmemchr is declared without a macro... yes checking whether stpcpy is declared without a macro... yes checking whether stpncpy is declared without a macro... yes checking whether strchrnul is declared without a macro... yes checking whether strdup is declared without a macro... yes checking whether strncat is declared without a macro... yes checking whether strndu...
2011 Feb 15
7
builder-debian febootstrap success 85db2a664c820e01a02ddc3b33b3da26fe05dc5b
...king for working strerror function... yes checking whether memmem is declared without a macro... yes checking whether mempcpy is declared without a macro... yes checking whether memrchr is declared without a macro... yes checking whether rawmemchr is declared without a macro... yes checking whether stpcpy is declared without a macro... yes checking whether stpncpy is declared without a macro... yes checking whether strchrnul is declared without a macro... yes checking whether strdup is declared without a macro... yes checking whether strncat is declared without a macro... yes checking whether strndu...
2010 Dec 14
7
builder-debian febootstrap success 85db2a664c820e01a02ddc3b33b3da26fe05dc5b
...king for working strerror function... yes checking whether memmem is declared without a macro... yes checking whether mempcpy is declared without a macro... yes checking whether memrchr is declared without a macro... yes checking whether rawmemchr is declared without a macro... yes checking whether stpcpy is declared without a macro... yes checking whether stpncpy is declared without a macro... yes checking whether strchrnul is declared without a macro... yes checking whether strdup is declared without a macro... yes checking whether strncat is declared without a macro... yes checking whether strndu...
2011 May 13
3
builder-debian febootstrap success 6ab9465001dfaa52edc5992ee71f2e9aecc2085d
...king for working strerror function... yes checking whether memmem is declared without a macro... yes checking whether mempcpy is declared without a macro... yes checking whether memrchr is declared without a macro... yes checking whether rawmemchr is declared without a macro... yes checking whether stpcpy is declared without a macro... yes checking whether stpncpy is declared without a macro... yes checking whether strchrnul is declared without a macro... yes checking whether strdup is declared without a macro... yes checking whether strncat is declared without a macro... yes checking whether strndu...