Displaying 20 results from an estimated 7000 matches similar to: "[PATCH] library functions"
2007 Apr 12
2
[PATCH] Make com32 printf obey width-restriction on %s
Hi,
The following patch is against 3.36. It lets the width-modifier to the
%s conversion specifier restrict the length of the formatted string as
well as expand it. In addition, it adds the strnlen function, which
only exists as a prototype today.
--
Arne.
--- syslinux-3.36/com32/lib/Makefile.orig 2007-02-10 21:47:07.000000000
+0100
+++ syslinux-3.36/com32/lib/Makefile 2007-04-12
2011 Aug 29
0
[PATCH] Add mempcpy() as wrapper around memcpy
Newer udev versions asks for it:
libudev/libudev-util.c:168:12: warning: incompatible implicit declaration of built-in function 'mempcpy' [enabled by default]
Signed-off-by: maximilian attems <max at stro.at>
---
usr/include/string.h | 1 +
usr/klibc/Kbuild | 2 +-
usr/klibc/mempcpy.c | 7 +++++++
3 files changed, 9 insertions(+), 1 deletions(-)
create mode 100644
2007 Aug 24
2
[git patch] klibc bzero, mount fixes + random stuff
hello hpa,
please pull for the latest
git pull git://brane.itp.tuwien.ac.at/~mattems/klibc.git maks
with the following shortlog:
maximilian attems (9):
mount: add nodev, noexec and nosuid options
mount: add -n option
cpio: small cleanups
readlink: s/link/link_name/
kinit, mknod: s/(major|minor)/\1_num/
klibc: strcspn, strpbrk, strspn include string.h
2004 Aug 06
2
icecast 2 compatibility with older clients
I've attached a small patch against icecast 2 which converts ice-
headers to icy- headers for clients that include icy- headers in their
request. This allows a few clients (notably xmms) to pick up stream
info they otherwise miss.
-b
-------------- next part --------------
Index: src/format.c
===================================================================
RCS file:
2005 Jan 06
0
[PATCH] memchr and memrchr
- memchr() needs to increment pointer or it's just a busy loop (unless c
matches the first character in s)
- add memrchr.c
--- klibc-0.194/klibc/memchr.c.orig 2005-01-06 23:08:33.703355840 -0700
+++ klibc-0.194/klibc/memchr.c 2005-01-06 23:04:26.436946048 -0700
@@ -12,6 +12,7 @@
while ( n-- ) {
if ( *sp == (unsigned char)c )
return (void *)sp;
+ sp++;
}
return NULL;
2009 Nov 09
1
use STREQ(a,b), not strcmp(a,b) == 0
The series below makes changes like these mechanically,
one class of change per change-set:
strcmp(...) == 0 to STREQ(...)
strcmp(...) != 0 to STRNEQ(...)
strncmp(...) == 0 to STREQLEN(...)
strncmp(...) != 0 to STRNEQLEN(...)
strcasecmp(...) == 0 to STRCASEEQ(...)
strcasecmp(...) != 0 to STRCASENEQ(...)
strncasecmp(...) == 0 to STRCASEEQLEN(...)
2020 May 19
1
[PATCH nbdkit] common/include: Add locale-safe ascii_strcasecmp and ascii_strncasecmp.
These are derived from the FreeBSD functions here:
https://github.com/freebsd/freebsd/blob/master/sys/libkern/strcasecmp.c
Thanks: Eric Blake.
---
common/include/Makefile.am | 6 +++
common/include/ascii-ctype.h | 6 +++
common/include/ascii-string.h | 77 ++++++++++++++++++++++++++++
common/include/test-ascii-string.c | 79 +++++++++++++++++++++++++++++
server/main.c
2007 Aug 15
0
[git patch] fstype support + minor stuff
hello hpa,
rebased my branch, please pull latest
git pull git://brane.itp.tuwien.ac.at/~mattems/klibc.git maks
for the following shortlog
maximilian attems (6):
fstype: add squashfs v3 support
reiser4_fs.h: add attribute packed to reiser4_master_sb
fstype: add ext4 support
.gitignore: add subdir specific entries
usr/klibc/Kbuild: beautify klibc build
fstype:
2008 Aug 16
1
Minimal COM32 Root Module
Greetings!
As I have presented in the announcement about the ELF dynamic linker
preview earlier this week, one of my tasks now is to reduce the size
of the root COM32 module to a minimum, and make the rest of the klibc
available as dynamic loadable content. After I studied the linker map
output and saw what are the minimal requirements of the dynamic linker
itself from the C library (the object
2009 Jan 26
4
Error while building wine 1.1.13 on Mac Os X
As in subject, when I try building wine 1.1.13 using Mac OS X 10.5.6 using both the latest developer tools and fink packages (for libjpeg, libpng, libxml2, etc) it gives an error on "make && make depend" with the following message:
--
rm -f libwine_port.a
ar rc libwine_port.a ffs.o fstatvfs.o futimes.o getopt.o getopt1.o getpagesize.o gettid.o interlocked.o isinf.o isnan.o
2011 Jan 28
2
klibc 1.5.21-1 and mksh
tags 516774 = patch
tags 516294 = upstream
thanks
Hi!
Please find attached a diff closing #516774 by adding mkstemp(3),
again with a minimalistic pseudo-arc4random(3) behind it. I?ve
revisited the code. An mkstemp testsuite from the ?net shows it
works, except for not caring how many ?X?en are in the template.
Addressing #516294, it allows compiling and linking an mksh from
today?s CVS against
2004 Mar 23
2
A question on Compilation errors...
Hello
I am attempting to build on a LynxOS platform and am using a old
version of zlib and OpenSSL-0.9.6a. I get past the configure stage by
ignoring the zlib version check. However, at make stage I run into the
following undefineds. Any idea what may be causing this. I am using
version 3.8p1 of OpenSSH.
Thank you in advance for your response
Amba
(cd openbsd-compat && make)
2011 Jun 24
4
[PATCH 0/2] Correct various strndup() problems
The current implementation of strndup() has some shortcomings that can
lead to a fatal error.
- If we pass a maximum string length larger than the copied length, we
will corrupt some data beyond the end of the newly allocated buffer.
- The maximum length does not prevent access to memory beyond the
maximum length, which can lead to unexpectd errors with strings not
terminated by 0.
2009 Jul 14
4
error on solaris please help interlocked*functions
i install the wine 1.1.25 but after awhile installation stops
and heres some detail in terminal
> configure: libcapi20 development files not found, ISDN won't be supported.
> configure: libldap (OpenLDAP) development files not found, LDAP won't be supported.
>
> configure: Finished. Do 'make depend && make' to compile Wine.
>
> cc -c -I. -I.
2019 Apr 12
0
Wine release 4.6
The Wine development release 4.6 is now available.
What's new in this release (see below for details):
- Beginnings of a Vulkan backend for WineD3D.
- Support for loading Mono libraries from a shared location.
- Libwine.dll no longer needed when using Wine DLLs on Windows.
- Regression tests compiled directly to PE format.
- Support for the Split Button Common Control.
- Complex
2019 Jan 25
0
[klibc:update-dash] dash: Fix some cosmetic differences from upstream dash
Commit-ID: 3722d88daf36c22e86e85b56a2aba70a0e059581
Gitweb: http://git.kernel.org/?p=libs/klibc/klibc.git;a=commit;h=3722d88daf36c22e86e85b56a2aba70a0e059581
Author: Ben Hutchings <ben at decadent.org.uk>
AuthorDate: Fri, 25 Jan 2019 00:04:40 +0000
Committer: Ben Hutchings <ben at decadent.org.uk>
CommitDate: Fri, 25 Jan 2019 02:57:21 +0000
[klibc] dash: Fix some cosmetic
2020 Mar 28
0
[klibc:update-dash] dash: Fix some cosmetic differences from upstream dash
Commit-ID: da8aee4bf2577ec47037705dd09a8ab3e7d5c666
Gitweb: http://git.kernel.org/?p=libs/klibc/klibc.git;a=commit;h=da8aee4bf2577ec47037705dd09a8ab3e7d5c666
Author: Ben Hutchings <ben at decadent.org.uk>
AuthorDate: Fri, 25 Jan 2019 00:04:40 +0000
Committer: Ben Hutchings <ben at decadent.org.uk>
CommitDate: Sat, 28 Mar 2020 20:29:23 +0000
[klibc] dash: Fix some cosmetic
2012 Feb 07
2
[PATCH] Remove even more CPP hackery
This commit will break OS/2's EMX 0.9d library (GCC 2.8.1) which has been
been replaced by klibc. Considering the age of EMX and lack of testing
and that klibc contains so many improvements I think this is exceptable.
---
include/FLAC/ordinals.h | 17 +++++++++--------
src/flac/main.c | 2 +-
src/libFLAC/metadata_iterators.c | 2 +-
2005 Mar 07
0
gcc4 warnings
Below is a patch to get rid of several warnings which occur while
building syslinux 3.07 with the current gcc 4 snapshot. This fixes all
the warnings except one unused variable.
Take them or leave them as you see fit. They're all com32 stuff that's
pulled in from external sources.
--- syslinux-3.07/memdisk/unzip.c.gcc4 2004-12-07 23:29:22.000000000 -0500
+++
2014 Aug 07
4
[PATCH 0/2] Fix errors found by Clang static analyzer
Hi,
Here is one trivial initialization fix and another patch to convert a huge macro
to an inline function. The result of the expansion would show up in an assertion
which triggered a -Woverlength-strings warning.
Peter Wu (2):
Fix garbage return value on error
Fix overly long assertion string
lib/hivex-internal.h | 28 ++++++++++++++++------------
lib/node.c | 18