mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-22 19:00:07 +00:00
* io/test-lfs.c (do_prepare): Call setrlimit64, in case the user
has a limit set---for instance, a limit of 2^31 bytes, which can't easily be reset by non-LFS-aware shells. 2000-10-24 Geoffrey Keating <geoffk@cygnus.com> * io/test-lfs.c (do_prepare): Call setrlimit64, in case the user has a limit set---for instance, a limit of 2^31 bytes, which can't easily be reset by non-LFS-aware shells.
This commit is contained in:
parent
0a1e7f70eb
commit
feb2789332
@ -1,4 +1,8 @@
|
||||
2000-10-21 Geoffrey Keating <geoffk@cygnus.com>
|
||||
2000-10-24 Geoffrey Keating <geoffk@cygnus.com>
|
||||
|
||||
* io/test-lfs.c (do_prepare): Call setrlimit64, in case the user
|
||||
has a limit set---for instance, a limit of 2^31 bytes, which can't
|
||||
easily be reset by non-LFS-aware shells.
|
||||
|
||||
* sysdeps/unix/sysv/linux/powerpc/mmap64.c: Define PAGE_SHIFT
|
||||
explicitly rather than getting it from <asm/page.h>.
|
||||
|
@ -24,6 +24,7 @@
|
||||
#include <fcntl.h>
|
||||
#include <error.h>
|
||||
#include <errno.h>
|
||||
#include <sys/resource.h>
|
||||
|
||||
/* Prototype for our test function. */
|
||||
extern void do_prepare (int argc, char *argv[]);
|
||||
@ -70,6 +71,11 @@ do_prepare (int argc, char *argv[])
|
||||
|
||||
if (fd == -1)
|
||||
error (EXIT_FAILURE, errno, "cannot open test file `%s'", name);
|
||||
|
||||
if (setrlimit64 (RLIMIT_FSIZE, &((const struct rlimit64)
|
||||
{ RLIM_INFINITY, RLIM_INFINITY }))
|
||||
== -1)
|
||||
error (EXIT_FAILURE, errno, "cannot reset file size limits");
|
||||
}
|
||||
|
||||
int
|
||||
|
Loading…
Reference in New Issue
Block a user