linux32.c (df260e21e6cd5d2dfc1fe9b6a3bbf747e72b3bed) | linux32.c (36028d5dd71175c332ab634e089e16dbdfe3812b) |
---|---|
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> --- 91 unchanged lines hidden (view full) --- 100 101/* From the Single Unix Spec: pread & pwrite act like lseek to pos + op + 102 lseek back to original location. They fail just like lseek does on 103 non-seekable files. */ 104 105SYSCALL_DEFINE6(32_pread, unsigned long, fd, char __user *, buf, size_t, count, 106 unsigned long, unused, unsigned long, a4, unsigned long, a5) 107{ | 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> --- 91 unchanged lines hidden (view full) --- 100 101/* From the Single Unix Spec: pread & pwrite act like lseek to pos + op + 102 lseek back to original location. They fail just like lseek does on 103 non-seekable files. */ 104 105SYSCALL_DEFINE6(32_pread, unsigned long, fd, char __user *, buf, size_t, count, 106 unsigned long, unused, unsigned long, a4, unsigned long, a5) 107{ |
108 return sys_pread64(fd, buf, count, merge_64(a4, a5)); | 108 return ksys_pread64(fd, buf, count, merge_64(a4, a5)); |
109} 110 111SYSCALL_DEFINE6(32_pwrite, unsigned int, fd, const char __user *, buf, 112 size_t, count, u32, unused, u64, a4, u64, a5) 113{ | 109} 110 111SYSCALL_DEFINE6(32_pwrite, unsigned int, fd, const char __user *, buf, 112 size_t, count, u32, unused, u64, a4, u64, a5) 113{ |
114 return sys_pwrite64(fd, buf, count, merge_64(a4, a5)); | 114 return ksys_pwrite64(fd, buf, count, merge_64(a4, a5)); |
115} 116 117SYSCALL_DEFINE1(32_personality, unsigned long, personality) 118{ 119 unsigned int p = personality & 0xffffffff; 120 int ret; 121 122 if (personality(current->personality) == PER_LINUX32 && --- 40 unchanged lines hidden --- | 115} 116 117SYSCALL_DEFINE1(32_personality, unsigned long, personality) 118{ 119 unsigned int p = personality & 0xffffffff; 120 int ret; 121 122 if (personality(current->personality) == PER_LINUX32 && --- 40 unchanged lines hidden --- |