Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
compat.c File Reference
#include <linux/compat.h>
#include <linux/syscalls.h>
#include <linux/kdev_t.h>
#include <linux/fs.h>
#include <linux/fcntl.h>
#include <linux/uaccess.h>
#include <linux/signal.h>
#include <asm/syscalls.h>
#include <asm/unistd.h>

Go to the source code of this file.

Macros

#define __SYSCALL_COMPAT
 
#define __SYSCALL(nr, call)   [nr] = (call),
 
#define compat_sys_fadvise64_64   sys32_fadvise64_64
 
#define compat_sys_readahead   sys32_readahead
 
#define compat_sys_execve   _compat_sys_execve
 
#define compat_sys_sigaltstack   _compat_sys_sigaltstack
 
#define compat_sys_rt_sigreturn   _compat_sys_rt_sigreturn
 
#define sys_clone   _sys_clone
 

Functions

long compat_sys_truncate64 (char __user *filename, u32 dummy, u32 low, u32 high)
 
long compat_sys_ftruncate64 (unsigned int fd, u32 dummy, u32 low, u32 high)
 
long compat_sys_pread64 (unsigned int fd, char __user *ubuf, size_t count, u32 dummy, u32 low, u32 high)
 
long compat_sys_pwrite64 (unsigned int fd, char __user *ubuf, size_t count, u32 dummy, u32 low, u32 high)
 
long compat_sys_lookup_dcookie (u32 low, u32 high, char __user *buf, size_t len)
 
long compat_sys_sync_file_range2 (int fd, unsigned int flags, u32 offset_lo, u32 offset_hi, u32 nbytes_lo, u32 nbytes_hi)
 
long compat_sys_fallocate (int fd, int mode, u32 offset_lo, u32 offset_hi, u32 len_lo, u32 len_hi)
 
long compat_sys_sched_rr_get_interval (compat_pid_t pid, struct compat_timespec __user *interval)
 

Variables

voidcompat_sys_call_table [__NR_syscalls]
 

Macro Definition Documentation

#define __SYSCALL (   nr,
  call 
)    [nr] = (call),

Definition at line 99 of file compat.c.

#define __SYSCALL_COMPAT

Definition at line 16 of file compat.c.

#define compat_sys_execve   _compat_sys_execve

Definition at line 106 of file compat.c.

#define compat_sys_fadvise64_64   sys32_fadvise64_64

Definition at line 102 of file compat.c.

#define compat_sys_readahead   sys32_readahead

Definition at line 103 of file compat.c.

#define compat_sys_rt_sigreturn   _compat_sys_rt_sigreturn

Definition at line 108 of file compat.c.

#define compat_sys_sigaltstack   _compat_sys_sigaltstack

Definition at line 107 of file compat.c.

#define sys_clone   _sys_clone

Definition at line 109 of file compat.c.

Function Documentation

long compat_sys_fallocate ( int  fd,
int  mode,
u32  offset_lo,
u32  offset_hi,
u32  len_lo,
u32  len_hi 
)

Definition at line 71 of file compat.c.

long compat_sys_ftruncate64 ( unsigned int  fd,
u32  dummy,
u32  low,
u32  high 
)

Definition at line 40 of file compat.c.

long compat_sys_lookup_dcookie ( u32  low,
u32  high,
char __user buf,
size_t  len 
)

Definition at line 57 of file compat.c.

long compat_sys_pread64 ( unsigned int  fd,
char __user ubuf,
size_t  count,
u32  dummy,
u32  low,
u32  high 
)

Definition at line 45 of file compat.c.

long compat_sys_pwrite64 ( unsigned int  fd,
char __user ubuf,
size_t  count,
u32  dummy,
u32  low,
u32  high 
)

Definition at line 51 of file compat.c.

long compat_sys_sched_rr_get_interval ( compat_pid_t  pid,
struct compat_timespec __user interval 
)

Definition at line 81 of file compat.c.

long compat_sys_sync_file_range2 ( int  fd,
unsigned int  flags,
u32  offset_lo,
u32  offset_hi,
u32  nbytes_lo,
u32  nbytes_hi 
)

Definition at line 62 of file compat.c.

long compat_sys_truncate64 ( char __user filename,
u32  dummy,
u32  low,
u32  high 
)

Definition at line 35 of file compat.c.

Variable Documentation

void* compat_sys_call_table[__NR_syscalls]
Initial value:
= {
}

Definition at line 115 of file compat.c.