Skip to content

Commit

Permalink
[BZ #3040]
Browse files Browse the repository at this point in the history
2006-08-21  Ulrich Drepper  <drepper@redhat.com>
	[BZ #3040]
	* sysdeps/unix/sysv/linux/openat.c: Fix compilation if
	__ASSUME_ATFCTS is defined.
  • Loading branch information
Ulrich Drepper committed Aug 21, 2006
1 parent 2b34af0 commit 3997b7c
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 7 deletions.
6 changes: 6 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -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>

* malloc/malloc.c (_int_malloc): Limit number of unsorted blocks
Expand Down
12 changes: 6 additions & 6 deletions malloc/malloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
victim->bk = bck;
victim->fd = fwd;
fwd->bk = victim;
bck->fd = victim;

if (size >= nb)
any_larger = true;
#define MAX_ITERS 10000
if (++iters >= MAX_ITERS)
break;
}

/*
Expand Down
4 changes: 3 additions & 1 deletion sysdeps/unix/sysv/linux/openat.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,10 @@
#include <not-cancel.h>


#if !defined OPENAT && !defined __ASSUME_ATFCTS
#ifndef OPENAT
# define OPENAT openat

# ifndef __ASSUME_ATFCTS
/* Set errno after a failed call. If BUF is not null,
it is a /proc/self/fd/ path name we just tried to use. */
void
Expand Down Expand Up @@ -61,6 +62,7 @@ __atfct_seterrno (int errval, int fd, const char *buf)
}

int __have_atfcts;
# endif
#endif


Expand Down

0 comments on commit 3997b7c

Please sign in to comment.