1
2008-04-02 Aurelien Jarno <aurelien@aurel32.net>
3
* sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list: Add
4
truncate and ftruncate systems calls.
5
* sysdeps/unix/sysv/linux/mips/mips64/n32/ftruncate64.c: Make an
7
* sysdeps/unix/sysv/linux/mips/mips64/n32/truncate64.c: Ditto.
9
Index: ports/sysdeps/unix/sysv/linux/mips/mips64/n32/ftruncate64.c
10
===================================================================
11
RCS file: /cvs/glibc/ports/sysdeps/unix/sysv/linux/mips/mips64/n32/ftruncate64.c,v
12
retrieving revision 1.1
13
diff -u -d -p -r1.1 ftruncate64.c
14
--- ports/sysdeps/unix/sysv/linux/mips/mips64/n32/ftruncate64.c 5 Apr 2003 19:57:35 -0000 1.1
15
+++ ports/sysdeps/unix/sysv/linux/mips/mips64/n32/ftruncate64.c 2 Apr 2008 08:54:11 -0000
17
-/* Copyright (C) 2003 Free Software Foundation, Inc.
18
- This file is part of the GNU C Library.
20
- The GNU C Library is free software; you can redistribute it and/or
21
- modify it under the terms of the GNU Lesser General Public
22
- License as published by the Free Software Foundation; either
23
- version 2.1 of the License, or (at your option) any later version.
25
- The GNU C Library is distributed in the hope that it will be useful,
26
- but WITHOUT ANY WARRANTY; without even the implied warranty of
27
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
28
- Lesser General Public License for more details.
30
- You should have received a copy of the GNU Lesser General Public
31
- License along with the GNU C Library; if not, write to the Free
32
- Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
35
-#include <sys/types.h>
39
-extern int ftruncate (int fd, off64_t length);
41
-int __ftruncate64 (int fd, off64_t length) {
42
- return ftruncate (fd, length);
44
-weak_alias (__ftruncate64, ftruncate64)
46
Index: ports/sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list
47
===================================================================
48
RCS file: /cvs/glibc/ports/sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list,v
49
retrieving revision 1.1
50
diff -u -d -p -r1.1 syscalls.list
51
--- ports/sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list 23 May 2007 17:26:13 -0000 1.1
52
+++ ports/sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list 2 Apr 2008 08:54:11 -0000
54
readahead - readahead i:iii __readahead readahead
55
sync_file_range - sync_file_range i:iiii sync_file_range
56
posix_fadvise - fadvise64 i:iiii posix_fadvise
57
+ftruncate - ftruncate i:ii __ftruncate ftruncate ftruncate64 __ftruncate64
58
+truncate - truncate i:si truncate truncate64
59
Index: ports/sysdeps/unix/sysv/linux/mips/mips64/n32/truncate64.c
60
===================================================================
61
RCS file: /cvs/glibc/ports/sysdeps/unix/sysv/linux/mips/mips64/n32/truncate64.c,v
62
retrieving revision 1.1
63
diff -u -d -p -r1.1 truncate64.c
64
--- ports/sysdeps/unix/sysv/linux/mips/mips64/n32/truncate64.c 5 Apr 2003 19:57:35 -0000 1.1
65
+++ ports/sysdeps/unix/sysv/linux/mips/mips64/n32/truncate64.c 2 Apr 2008 08:54:11 -0000
67
-/* Copyright (C) 2003 Free Software Foundation, Inc.
68
- This file is part of the GNU C Library.
70
- The GNU C Library is free software; you can redistribute it and/or
71
- modify it under the terms of the GNU Lesser General Public
72
- License as published by the Free Software Foundation; either
73
- version 2.1 of the License, or (at your option) any later version.
75
- The GNU C Library is distributed in the hope that it will be useful,
76
- but WITHOUT ANY WARRANTY; without even the implied warranty of
77
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
78
- Lesser General Public License for more details.
80
- You should have received a copy of the GNU Lesser General Public
81
- License along with the GNU C Library; if not, write to the Free
82
- Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
85
-#include <sys/types.h>
88
-#include <bp-checks.h>
90
-extern int truncate (const char *__unbounded path, int dummy,
93
-int truncate64 (const char *__unbounded path, int dummy,
95
- return truncate (path, dummy, length);