Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
compat_linux.h File Reference
#include <linux/compat.h>
#include <linux/socket.h>
#include <linux/syscalls.h>

Go to the source code of this file.

Data Structures

struct  ipc_kludge_32
 
struct  old_sigaction32
 
union  freg_t32
 
struct  _s390_fp_regs32
 
struct  _psw_t32
 
struct  _s390_regs_common32
 
struct  _sigregs32
 
struct  sigcontext32
 
struct  sigaction32
 
struct  stack_t32
 
struct  ucontext32
 

Macros

#define A(__x)   ((unsigned long)((__x) & 0x7FFFFFFFUL))
 
#define AA(__x)   ((unsigned long)(__x))
 
#define _SIGCONTEXT_NSIG32   64
 
#define _SIGCONTEXT_NSIG_BPW32   32
 
#define __SIGNAL_FRAMESIZE32   96
 
#define _SIGMASK_COPY_SIZE32   (sizeof(u32)*2)
 

Functions

long sys32_chown16 (const char __user *filename, u16 user, u16 group)
 
long sys32_lchown16 (const char __user *filename, u16 user, u16 group)
 
long sys32_fchown16 (unsigned int fd, u16 user, u16 group)
 
long sys32_setregid16 (u16 rgid, u16 egid)
 
long sys32_setgid16 (u16 gid)
 
long sys32_setreuid16 (u16 ruid, u16 euid)
 
long sys32_setuid16 (u16 uid)
 
long sys32_setresuid16 (u16 ruid, u16 euid, u16 suid)
 
long sys32_getresuid16 (u16 __user *ruid, u16 __user *euid, u16 __user *suid)
 
long sys32_setresgid16 (u16 rgid, u16 egid, u16 sgid)
 
long sys32_getresgid16 (u16 __user *rgid, u16 __user *egid, u16 __user *sgid)
 
long sys32_setfsuid16 (u16 uid)
 
long sys32_setfsgid16 (u16 gid)
 
long sys32_getgroups16 (int gidsetsize, u16 __user *grouplist)
 
long sys32_setgroups16 (int gidsetsize, u16 __user *grouplist)
 
long sys32_getuid16 (void)
 
long sys32_geteuid16 (void)
 
long sys32_getgid16 (void)
 
long sys32_getegid16 (void)
 
long sys32_ipc (u32 call, int first, int second, int third, u32 ptr)
 
long sys32_truncate64 (const char __user *path, unsigned long high, unsigned long low)
 
long sys32_ftruncate64 (unsigned int fd, unsigned long high, unsigned long low)
 
long sys32_sched_rr_get_interval (compat_pid_t pid, struct compat_timespec __user *interval)
 
long sys32_rt_sigprocmask (int how, compat_sigset_t __user *set, compat_sigset_t __user *oset, size_t sigsetsize)
 
long sys32_rt_sigpending (compat_sigset_t __user *set, size_t sigsetsize)
 
long sys32_rt_sigqueueinfo (int pid, int sig, compat_siginfo_t __user *uinfo)
 
long sys32_init_module (void __user *umod, unsigned long len, const char __user *uargs)
 
long sys32_delete_module (const char __user *name_user, unsigned int flags)
 
long sys32_pread64 (unsigned int fd, char __user *ubuf, size_t count, u32 poshi, u32 poslo)
 
long sys32_pwrite64 (unsigned int fd, const char __user *ubuf, size_t count, u32 poshi, u32 poslo)
 
compat_ssize_t sys32_readahead (int fd, u32 offhi, u32 offlo, s32 count)
 
long sys32_sendfile (int out_fd, int in_fd, compat_off_t __user *offset, size_t count)
 
long sys32_sendfile64 (int out_fd, int in_fd, compat_loff_t __user *offset, s32 count)
 
long sys32_stat64 (const char __user *filename, struct stat64_emu31 __user *statbuf)
 
long sys32_lstat64 (const char __user *filename, struct stat64_emu31 __user *statbuf)
 
long sys32_fstat64 (unsigned long fd, struct stat64_emu31 __user *statbuf)
 
long sys32_fstatat64 (unsigned int dfd, const char __user *filename, struct stat64_emu31 __user *statbuf, int flag)
 
unsigned long old32_mmap (struct mmap_arg_struct_emu31 __user *arg)
 
long sys32_mmap2 (struct mmap_arg_struct_emu31 __user *arg)
 
long sys32_read (unsigned int fd, char __user *buf, size_t count)
 
long sys32_write (unsigned int fd, const char __user *buf, size_t count)
 
long sys32_fadvise64 (int fd, loff_t offset, size_t len, int advise)
 
long sys32_fadvise64_64 (struct fadvise64_64_args __user *args)
 
long sys32_sigaction (int sig, const struct old_sigaction32 __user *act, struct old_sigaction32 __user *oact)
 
long sys32_rt_sigaction (int sig, const struct sigaction32 __user *act, struct sigaction32 __user *oact, size_t sigsetsize)
 
long sys32_sigaltstack (const stack_t32 __user *uss, stack_t32 __user *uoss)
 

Macro Definition Documentation

#define __SIGNAL_FRAMESIZE32   96

Definition at line 61 of file compat_linux.h.

#define _SIGCONTEXT_NSIG32   64

Definition at line 59 of file compat_linux.h.

#define _SIGCONTEXT_NSIG_BPW32   32

Definition at line 60 of file compat_linux.h.

#define _SIGMASK_COPY_SIZE32   (sizeof(u32)*2)

Definition at line 62 of file compat_linux.h.

#define A (   __x)    ((unsigned long)((__x) & 0x7FFFFFFFUL))

Definition at line 10 of file compat_linux.h.

#define AA (   __x)    ((unsigned long)(__x))

Definition at line 11 of file compat_linux.h.

Function Documentation

unsigned long old32_mmap ( struct mmap_arg_struct_emu31 __user arg)

Definition at line 601 of file compat_linux.c.

long sys32_chown16 ( const char __user filename,
u16  user,
u16  group 
)

Definition at line 93 of file compat_linux.c.

long sys32_delete_module ( const char __user name_user,
unsigned int  flags 
)
long sys32_fadvise64 ( int  fd,
loff_t  offset,
size_t  len,
int  advise 
)

Definition at line 645 of file compat_linux.c.

long sys32_fadvise64_64 ( struct fadvise64_64_args __user args)

Definition at line 662 of file compat_linux.c.

long sys32_fchown16 ( unsigned int  fd,
u16  user,
u16  group 
)

Definition at line 103 of file compat_linux.c.

long sys32_fstat64 ( unsigned long  fd,
struct stat64_emu31 __user statbuf 
)

Definition at line 565 of file compat_linux.c.

long sys32_fstatat64 ( unsigned int  dfd,
const char __user filename,
struct stat64_emu31 __user statbuf,
int  flag 
)

Definition at line 574 of file compat_linux.c.

long sys32_ftruncate64 ( unsigned int  fd,
unsigned long  high,
unsigned long  low 
)

Definition at line 347 of file compat_linux.c.

long sys32_getegid16 ( void  )

Definition at line 286 of file compat_linux.c.

long sys32_geteuid16 ( void  )

Definition at line 276 of file compat_linux.c.

long sys32_getgid16 ( void  )

Definition at line 281 of file compat_linux.c.

long sys32_getgroups16 ( int  gidsetsize,
u16 __user grouplist 
)

Definition at line 222 of file compat_linux.c.

long sys32_getresgid16 ( u16 __user rgid,
u16 __user egid,
u16 __user sgid 
)

Definition at line 157 of file compat_linux.c.

long sys32_getresuid16 ( u16 __user ruid,
u16 __user euid,
u16 __user suid 
)

Definition at line 134 of file compat_linux.c.

long sys32_getuid16 ( void  )

Definition at line 271 of file compat_linux.c.

long sys32_init_module ( void __user umod,
unsigned long  len,
const char __user uargs 
)
long sys32_ipc ( u32  call,
int  first,
int  second,
int  third,
u32  ptr 
)
long sys32_lchown16 ( const char __user filename,
u16  user,
u16  group 
)

Definition at line 98 of file compat_linux.c.

long sys32_lstat64 ( const char __user filename,
struct stat64_emu31 __user statbuf 
)

Definition at line 556 of file compat_linux.c.

long sys32_mmap2 ( struct mmap_arg_struct_emu31 __user arg)

Definition at line 613 of file compat_linux.c.

long sys32_pread64 ( unsigned int  fd,
char __user ubuf,
size_t  count,
u32  poshi,
u32  poslo 
)

Definition at line 435 of file compat_linux.c.

long sys32_pwrite64 ( unsigned int  fd,
const char __user ubuf,
size_t  count,
u32  poshi,
u32  poslo 
)

Definition at line 443 of file compat_linux.c.

long sys32_read ( unsigned int  fd,
char __user buf,
size_t  count 
)

Definition at line 622 of file compat_linux.c.

compat_ssize_t sys32_readahead ( int  fd,
u32  offhi,
u32  offlo,
s32  count 
)

Definition at line 451 of file compat_linux.c.

long sys32_rt_sigaction ( int  sig,
const struct sigaction32 __user act,
struct sigaction32 __user oact,
size_t  sigsetsize 
)

Definition at line 124 of file signal32.c.

long sys32_rt_sigpending ( compat_sigset_t __user set,
size_t  sigsetsize 
)

Definition at line 400 of file compat_linux.c.

long sys32_rt_sigprocmask ( int  how,
compat_sigset_t __user set,
compat_sigset_t __user oset,
size_t  sigsetsize 
)

Definition at line 371 of file compat_linux.c.

long sys32_rt_sigqueueinfo ( int  pid,
int  sig,
compat_siginfo_t __user uinfo 
)

Definition at line 421 of file compat_linux.c.

long sys32_sched_rr_get_interval ( compat_pid_t  pid,
struct compat_timespec __user interval 
)

Definition at line 86 of file sys_parisc32.c.

long sys32_sendfile ( int  out_fd,
int  in_fd,
compat_off_t __user offset,
size_t  count 
)

Definition at line 456 of file compat_linux.c.

long sys32_sendfile64 ( int  out_fd,
int  in_fd,
compat_loff_t __user offset,
s32  count 
)

Definition at line 174 of file sys_parisc32.c.

long sys32_setfsgid16 ( u16  gid)

Definition at line 179 of file compat_linux.c.

long sys32_setfsuid16 ( u16  uid)

Definition at line 174 of file compat_linux.c.

long sys32_setgid16 ( u16  gid)

Definition at line 113 of file compat_linux.c.

long sys32_setgroups16 ( int  gidsetsize,
u16 __user grouplist 
)

Definition at line 246 of file compat_linux.c.

long sys32_setregid16 ( u16  rgid,
u16  egid 
)

Definition at line 108 of file compat_linux.c.

long sys32_setresgid16 ( u16  rgid,
u16  egid,
u16  sgid 
)

Definition at line 151 of file compat_linux.c.

long sys32_setresuid16 ( u16  ruid,
u16  euid,
u16  suid 
)

Definition at line 128 of file compat_linux.c.

long sys32_setreuid16 ( u16  ruid,
u16  euid 
)

Definition at line 118 of file compat_linux.c.

long sys32_setuid16 ( u16  uid)

Definition at line 123 of file compat_linux.c.

long sys32_sigaction ( int  sig,
const struct old_sigaction32 __user act,
struct old_sigaction32 __user oact 
)

Definition at line 161 of file compat_signal.c.

long sys32_sigaltstack ( const stack_t32 __user uss,
stack_t32 __user uoss 
)

Definition at line 238 of file compat_signal.c.

long sys32_stat64 ( const char __user filename,
struct stat64_emu31 __user statbuf 
)

Definition at line 547 of file compat_linux.c.

long sys32_truncate64 ( const char __user path,
unsigned long  high,
unsigned long  low 
)

Definition at line 339 of file compat_linux.c.

long sys32_write ( unsigned int  fd,
const char __user buf,
size_t  count 
)

Definition at line 630 of file compat_linux.c.