* gdb.base/bigcore.c (main): Add missing mode argument in open
call.
This commit is contained in:
parent
a507073b25
commit
f3fb768d95
2 changed files with 7 additions and 1 deletions
|
@ -178,7 +178,8 @@ main ()
|
|||
int fd;
|
||||
large_off_t tmp;
|
||||
unlink ("bigcore.corefile");
|
||||
fd = open ("bigcore.corefile", O_RDWR | O_CREAT | O_TRUNC | O_LARGEFILE);
|
||||
fd = open ("bigcore.corefile", O_RDWR | O_CREAT | O_TRUNC | O_LARGEFILE,
|
||||
0666);
|
||||
for (tmp = 1; tmp > 0; tmp <<= 1)
|
||||
{
|
||||
if (large_lseek (fd, tmp, SEEK_SET) > 0)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue