mirror of
https://github.com/systemd/systemd.git
synced 2025-03-19 22:50:17 +03:00
[PATCH] klibc: update to version 0.198
This commit is contained in:
parent
6142386306
commit
43ca395e49
@ -1,6 +1,6 @@
|
||||
Summary: A minimal libc subset for use with initramfs.
|
||||
Name: klibc
|
||||
Version: 0.194
|
||||
Version: 0.198
|
||||
Release: 1
|
||||
License: BSD/GPL
|
||||
Group: Development/Libraries
|
||||
|
@ -59,7 +59,7 @@ LIB = libc.a
|
||||
|
||||
INTERP_O = interp.o
|
||||
|
||||
all: tests $(CRT0) $(LIB) $(SOLIB) klibc.so
|
||||
all: tests $(CRT0) $(LIB) $(SOLIB) $(SOHASH) $(INTERP_O)
|
||||
|
||||
# Add any architecture-specific rules
|
||||
include arch/$(ARCH)/Makefile.inc
|
||||
|
@ -15,9 +15,10 @@ size_t _fread(void *buf, size_t count, FILE *f)
|
||||
while ( count ) {
|
||||
rv = read(fileno(f), p, count);
|
||||
if ( rv == -1 ) {
|
||||
if ( errno == EINTR )
|
||||
if ( errno == EINTR ) {
|
||||
errno = 0;
|
||||
continue;
|
||||
else
|
||||
} else
|
||||
break;
|
||||
} else if ( rv == 0 ) {
|
||||
break;
|
||||
|
@ -15,9 +15,10 @@ size_t _fwrite(const void *buf, size_t count, FILE *f)
|
||||
while ( count ) {
|
||||
rv = write(fileno(f), p, count);
|
||||
if ( rv == -1 ) {
|
||||
if ( errno == EINTR )
|
||||
continue;
|
||||
else
|
||||
if ( errno == EINTR ) {
|
||||
errno = 0;
|
||||
continue;
|
||||
} else
|
||||
break;
|
||||
} else if ( rv == 0 ) {
|
||||
break;
|
||||
|
@ -263,7 +263,7 @@ unsigned char finalcount[8];
|
||||
char *mybase64(uint8_t digest[20])
|
||||
{
|
||||
static const char charz[] =
|
||||
"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+_";
|
||||
"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_";
|
||||
uint8_t input[21];
|
||||
static char output[28];
|
||||
int i, j;
|
||||
|
@ -12,14 +12,12 @@ char *strncat(char *dst, const char *src, size_t n)
|
||||
char ch;
|
||||
size_t nn = q-dst;
|
||||
|
||||
if ( __likely(nn <= n) )
|
||||
n -= nn;
|
||||
|
||||
while (n--) {
|
||||
*q++ = ch = *p++;
|
||||
if ( !ch )
|
||||
break;
|
||||
return dst;
|
||||
}
|
||||
*q = '\0';
|
||||
|
||||
return dst;
|
||||
}
|
||||
|
@ -1 +1 @@
|
||||
0.196
|
||||
0.198
|
||||
|
Loading…
x
Reference in New Issue
Block a user