linux32.c (806cbae1228cc1a19b978c4513f6851e9ab7f388) linux32.c (df260e21e6cd5d2dfc1fe9b6a3bbf747e72b3bed)
1// SPDX-License-Identifier: GPL-2.0
2/*
3 * Conversion between 32-bit and 64-bit native system calls.
4 *
5 * Copyright (C) 2000 Silicon Graphics, Inc.
6 * Written by Ulf Carlsson (ulfc@engr.sgi.com)
7 */
8#include <linux/compiler.h>

--- 68 unchanged lines hidden (view full) ---

77struct rlimit32 {
78 int rlim_cur;
79 int rlim_max;
80};
81
82SYSCALL_DEFINE4(32_truncate64, const char __user *, path,
83 unsigned long, __dummy, unsigned long, a2, unsigned long, a3)
84{
1// SPDX-License-Identifier: GPL-2.0
2/*
3 * Conversion between 32-bit and 64-bit native system calls.
4 *
5 * Copyright (C) 2000 Silicon Graphics, Inc.
6 * Written by Ulf Carlsson (ulfc@engr.sgi.com)
7 */
8#include <linux/compiler.h>

--- 68 unchanged lines hidden (view full) ---

77struct rlimit32 {
78 int rlim_cur;
79 int rlim_max;
80};
81
82SYSCALL_DEFINE4(32_truncate64, const char __user *, path,
83 unsigned long, __dummy, unsigned long, a2, unsigned long, a3)
84{
85 return sys_truncate(path, merge_64(a2, a3));
85 return ksys_truncate(path, merge_64(a2, a3));
86}
87
88SYSCALL_DEFINE4(32_ftruncate64, unsigned long, fd, unsigned long, __dummy,
89 unsigned long, a2, unsigned long, a3)
90{
91 return ksys_ftruncate(fd, merge_64(a2, a3));
92}
93

--- 69 unchanged lines hidden ---
86}
87
88SYSCALL_DEFINE4(32_ftruncate64, unsigned long, fd, unsigned long, __dummy,
89 unsigned long, a2, unsigned long, a3)
90{
91 return ksys_ftruncate(fd, merge_64(a2, a3));
92}
93

--- 69 unchanged lines hidden ---