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

Go to the source code of this file.

Data Structures

struct  compat_timespec
 
struct  compat_timeval
 
struct  compat_sysctl
 
struct  compat_flock
 
struct  compat_flock64
 
union  compat_sigval
 
struct  compat_siginfo
 
struct  compat_ipc64_perm
 
struct  compat_semid64_ds
 
struct  compat_msqid64_ds
 
struct  compat_shmid64_ds
 

Macros

#define COMPAT_USER_HZ   100
 
#define COMPAT_ELF_NGREG   (sizeof(struct pt_regs) / sizeof(compat_elf_greg_t))
 
#define compat_stat   stat
 
#define compat_statfs   statfs
 
#define F_GETLK64   12 /* using 'struct flock64' */
 
#define F_SETLK64   13
 
#define F_SETLKW64   14
 
#define COMPAT_RLIM_INFINITY   0xffffffff
 
#define _COMPAT_NSIG   64
 
#define _COMPAT_NSIG_BPW   32
 
#define COMPAT_SI_PAD_SIZE   (128/sizeof(int) - 3)
 
#define COMPAT_OFF_T_MAX   0x7fffffff
 
#define COMPAT_LOFF_T_MAX   0x7fffffffffffffffL
 

Typedefs

typedef s32 compat_long_t
 
typedef u32 compat_ulong_t
 
typedef u32 compat_size_t
 
typedef s32 compat_ssize_t
 
typedef s32 compat_off_t
 
typedef s32 compat_time_t
 
typedef s32 compat_clock_t
 
typedef u32 compat_ino_t
 
typedef u32 compat_caddr_t
 
typedef u32 compat_uptr_t
 
typedef __kernel_pid_t compat_pid_t
 
typedef __kernel_uid_t __compat_uid_t
 
typedef __kernel_gid_t __compat_gid_t
 
typedef __kernel_uid32_t __compat_uid32_t
 
typedef __kernel_uid32_t __compat_gid32_t
 
typedef __kernel_mode_t compat_mode_t
 
typedef __kernel_dev_t compat_dev_t
 
typedef __kernel_loff_t compat_loff_t
 
typedef __kernel_ipc_pid_t compat_ipc_pid_t
 
typedef __kernel_daddr_t compat_daddr_t
 
typedef __kernel_fsid_t compat_fsid_t
 
typedef __kernel_timer_t compat_timer_t
 
typedef __kernel_key_t compat_key_t
 
typedef int compat_int_t
 
typedef s64 compat_s64
 
typedef uint compat_uint_t
 
typedef u64 compat_u64
 
typedef unsigned long compat_elf_greg_t
 
typedef compat_elf_greg_t compat_elf_gregset_t [COMPAT_ELF_NGREG]
 
typedef u32 compat_sigset_word
 
typedef union compat_sigval compat_sigval_t
 
typedef struct compat_siginfo compat_siginfo_t
 

Functions

int compat_setup_rt_frame (int sig, struct k_sigaction *ka, siginfo_t *info, sigset_t *set, struct pt_regs *regs)
 
long compat_sys_execve (const char __user *path, compat_uptr_t __user *argv, compat_uptr_t __user *envp, struct pt_regs *)
 
long compat_sys_rt_sigaction (int sig, struct compat_sigaction __user *act, struct compat_sigaction __user *oact, size_t sigsetsize)
 
long compat_sys_rt_sigqueueinfo (int pid, int sig, struct compat_siginfo __user *uinfo)
 
long compat_sys_rt_sigreturn (struct pt_regs *)
 
long compat_sys_sigaltstack (const struct compat_sigaltstack __user *uss_ptr, struct compat_sigaltstack __user *uoss_ptr, struct pt_regs *)
 
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)
 
long _compat_sys_execve (const char __user *path, const compat_uptr_t __user *argv, const compat_uptr_t __user *envp)
 
long _compat_sys_sigaltstack (const struct compat_sigaltstack __user *uss_ptr, struct compat_sigaltstack __user *uoss_ptr)
 
long _compat_sys_rt_sigreturn (void)
 

Macro Definition Documentation

#define _COMPAT_NSIG   64

Definition at line 108 of file compat.h.

#define _COMPAT_NSIG_BPW   32

Definition at line 109 of file compat.h.

#define COMPAT_ELF_NGREG   (sizeof(struct pt_regs) / sizeof(compat_elf_greg_t))

Definition at line 59 of file compat.h.

#define COMPAT_LOFF_T_MAX   0x7fffffffffffffffL

Definition at line 176 of file compat.h.

#define COMPAT_OFF_T_MAX   0x7fffffff

Definition at line 175 of file compat.h.

#define COMPAT_RLIM_INFINITY   0xffffffff

Definition at line 106 of file compat.h.

#define COMPAT_SI_PAD_SIZE   (128/sizeof(int) - 3)

Definition at line 118 of file compat.h.

#define compat_stat   stat

Definition at line 72 of file compat.h.

#define compat_statfs   statfs

Definition at line 73 of file compat.h.

#define COMPAT_USER_HZ   100

Definition at line 24 of file compat.h.

#define F_GETLK64   12 /* using 'struct flock64' */

Definition at line 94 of file compat.h.

#define F_SETLK64   13

Definition at line 95 of file compat.h.

#define F_SETLKW64   14

Definition at line 96 of file compat.h.

Typedef Documentation

Definition at line 43 of file compat.h.

Definition at line 41 of file compat.h.

Definition at line 42 of file compat.h.

Definition at line 40 of file compat.h.

Definition at line 35 of file compat.h.

Definition at line 33 of file compat.h.

Definition at line 48 of file compat.h.

Definition at line 45 of file compat.h.

typedef unsigned long compat_elf_greg_t

Definition at line 58 of file compat.h.

Definition at line 60 of file compat.h.

Definition at line 49 of file compat.h.

typedef u32 compat_ino_t

Definition at line 34 of file compat.h.

typedef int compat_int_t

Definition at line 52 of file compat.h.

Definition at line 47 of file compat.h.

Definition at line 51 of file compat.h.

Definition at line 46 of file compat.h.

typedef s32 compat_long_t

Definition at line 27 of file compat.h.

Definition at line 44 of file compat.h.

typedef s32 compat_off_t

Definition at line 31 of file compat.h.

Definition at line 39 of file compat.h.

typedef s64 compat_s64

Definition at line 53 of file compat.h.

Definition at line 111 of file compat.h.

typedef u32 compat_size_t

Definition at line 29 of file compat.h.

Definition at line 30 of file compat.h.

typedef s32 compat_time_t

Definition at line 32 of file compat.h.

Definition at line 50 of file compat.h.

typedef u64 compat_u64

Definition at line 55 of file compat.h.

Definition at line 54 of file compat.h.

Definition at line 28 of file compat.h.

typedef u32 compat_uptr_t

Definition at line 36 of file compat.h.

Function Documentation

long _compat_sys_execve ( const char __user path,
const compat_uptr_t __user argv,
const compat_uptr_t __user envp 
)
long _compat_sys_rt_sigreturn ( void  )
long _compat_sys_sigaltstack ( const struct compat_sigaltstack __user uss_ptr,
struct compat_sigaltstack __user uoss_ptr 
)
int compat_setup_rt_frame ( int  sig,
struct k_sigaction ka,
siginfo_t info,
sigset_t set,
struct pt_regs regs 
)

Definition at line 693 of file signal32.c.

long compat_sys_execve ( const char __user path,
compat_uptr_t __user argv,
compat_uptr_t __user envp,
struct pt_regs  
)
long compat_sys_fallocate ( int  fd,
int  mode,
u32  offset_lo,
u32  offset_hi,
u32  len_lo,
u32  len_hi 
)

Definition at line 225 of file sys_parisc32.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_rt_sigaction ( int  sig,
struct compat_sigaction __user act,
struct compat_sigaction __user oact,
size_t  sigsetsize 
)

Definition at line 64 of file compat_signal.c.

long compat_sys_rt_sigqueueinfo ( int  pid,
int  sig,
struct compat_siginfo __user uinfo 
)

Definition at line 800 of file signal32.c.

long compat_sys_rt_sigreturn ( struct pt_regs )

Definition at line 542 of file signal32.c.

long compat_sys_sched_rr_get_interval ( compat_pid_t  pid,
struct compat_timespec __user interval 
)

Definition at line 70 of file sys_compat.c.

long compat_sys_sigaltstack ( const struct compat_sigaltstack __user uss_ptr,
struct compat_sigaltstack __user uoss_ptr,
struct pt_regs  
)

Definition at line 199 of file compat_signal.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.