summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/asm-sparc/unistd.h7
-rw-r--r--include/asm-sparc64/compat.h3
-rw-r--r--include/asm-sparc64/unistd.h9
3 files changed, 16 insertions, 3 deletions
diff --git a/include/asm-sparc/unistd.h b/include/asm-sparc/unistd.h
index b778e356823c..7924bcee54c2 100644
--- a/include/asm-sparc/unistd.h
+++ b/include/asm-sparc/unistd.h
@@ -250,6 +250,8 @@
#define __NR_time 231 /* Linux Specific */
/* #define __NR_oldstat 232 Linux Specific */
#define __NR_stime 233 /* Linux Specific */
+#define __NR_statfs64 234 /* Linux Specific */
+#define __NR_fstatfs64 235 /* Linux Specific */
#define __NR__llseek 236 /* Linux Specific */
#define __NR_mlock 237
#define __NR_munlock 238
@@ -270,6 +272,11 @@
#define __NR_fdatasync 253
#define __NR_nfsservctl 254
#define __NR_aplib 255
+/* WARNING: You MAY NOT add syscall numbers larger than 255, since
+ * all of the syscall tables in the Sparc kernel are
+ * sized to have 256 entries (starting at zero). Therefore
+ * find a free slot in the 0-255 range.
+ */
#define _syscall0(type,name) \
type name(void) \
diff --git a/include/asm-sparc64/compat.h b/include/asm-sparc64/compat.h
index 19fe2635d188..02af9130ad1d 100644
--- a/include/asm-sparc64/compat.h
+++ b/include/asm-sparc64/compat.h
@@ -92,7 +92,8 @@ struct compat_statfs {
int f_ffree;
compat_fsid_t f_fsid;
int f_namelen; /* SunOS ignores this field. */
- int f_spare[6];
+ int f_frsize;
+ int f_spare[5];
};
#define COMPAT_RLIM_INFINITY 0x7fffffff
diff --git a/include/asm-sparc64/unistd.h b/include/asm-sparc64/unistd.h
index 33808908dfa9..c16067e9b7c3 100644
--- a/include/asm-sparc64/unistd.h
+++ b/include/asm-sparc64/unistd.h
@@ -252,8 +252,8 @@
#endif
/* #define __NR_oldstat 232 Linux Specific */
#define __NR_stime 233 /* Linux Specific */
-/* #define __NR_UNUSED 234 */
-/* #define __NR_UNUSED 235 */
+#define __NR_statfs64 234 /* Linux Specific */
+#define __NR_fstatfs64 235 /* Linux Specific */
#define __NR__llseek 236 /* Linux Specific */
#define __NR_mlock 237
#define __NR_munlock 238
@@ -274,6 +274,11 @@
#define __NR_fdatasync 253
#define __NR_nfsservctl 254
#define __NR_aplib 255
+/* WARNING: You MAY NOT add syscall numbers larger than 255, since
+ * all of the syscall tables in the Sparc64 kernel are
+ * sized to have 256 entries (starting at zero). Therefore
+ * find a free slot in the 0-255 range.
+ */
#define _syscall0(type,name) \
type name(void) \