mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-29 11:41:21 +03:00
[BZ #3040]
2006-08-21 Ulrich Drepper <drepper@redhat.com> [BZ #3040] * sysdeps/unix/sysv/linux/openat.c: Fix compilation if __ASSUME_ATFCTS is defined.
This commit is contained in:
@ -1,3 +1,9 @@
|
|||||||
|
2006-08-21 Ulrich Drepper <drepper@redhat.com>
|
||||||
|
|
||||||
|
[BZ #3040]
|
||||||
|
* sysdeps/unix/sysv/linux/openat.c: Fix compilation if
|
||||||
|
__ASSUME_ATFCTS is defined.
|
||||||
|
|
||||||
2006-08-19 Ulrich Drepper <drepper@redhat.com>
|
2006-08-19 Ulrich Drepper <drepper@redhat.com>
|
||||||
|
|
||||||
* malloc/malloc.c (_int_malloc): Limit number of unsorted blocks
|
* malloc/malloc.c (_int_malloc): Limit number of unsorted blocks
|
||||||
|
@ -4147,17 +4147,17 @@ _int_malloc(mstate av, size_t bytes)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (size >= nb)
|
|
||||||
any_larger = true;
|
|
||||||
#define MAX_ITERS 10000
|
|
||||||
if (++iters == MAX_ITERS)
|
|
||||||
break;
|
|
||||||
|
|
||||||
mark_bin(av, victim_index);
|
mark_bin(av, victim_index);
|
||||||
victim->bk = bck;
|
victim->bk = bck;
|
||||||
victim->fd = fwd;
|
victim->fd = fwd;
|
||||||
fwd->bk = victim;
|
fwd->bk = victim;
|
||||||
bck->fd = victim;
|
bck->fd = victim;
|
||||||
|
|
||||||
|
if (size >= nb)
|
||||||
|
any_larger = true;
|
||||||
|
#define MAX_ITERS 10000
|
||||||
|
if (++iters >= MAX_ITERS)
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -28,9 +28,10 @@
|
|||||||
#include <not-cancel.h>
|
#include <not-cancel.h>
|
||||||
|
|
||||||
|
|
||||||
#if !defined OPENAT && !defined __ASSUME_ATFCTS
|
#ifndef OPENAT
|
||||||
# define OPENAT openat
|
# define OPENAT openat
|
||||||
|
|
||||||
|
# ifndef __ASSUME_ATFCTS
|
||||||
/* Set errno after a failed call. If BUF is not null,
|
/* Set errno after a failed call. If BUF is not null,
|
||||||
it is a /proc/self/fd/ path name we just tried to use. */
|
it is a /proc/self/fd/ path name we just tried to use. */
|
||||||
void
|
void
|
||||||
@ -61,6 +62,7 @@ __atfct_seterrno (int errval, int fd, const char *buf)
|
|||||||
}
|
}
|
||||||
|
|
||||||
int __have_atfcts;
|
int __have_atfcts;
|
||||||
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user