Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
compat.c File Reference
#include <linux/compat.h>
#include <linux/errno.h>
#include <linux/highuid.h>
#include <linux/init.h>
#include <linux/msg.h>
#include <linux/shm.h>
#include <linux/syscalls.h>
#include <linux/ptrace.h>
#include <linux/mutex.h>
#include <asm/uaccess.h>
#include "util.h"

Go to the source code of this file.

Data Structures

struct  compat_msgbuf
 
struct  compat_ipc_perm
 
struct  compat_semid_ds
 
struct  compat_msqid_ds
 
struct  compat_shmid_ds
 
struct  compat_ipc_kludge
 
struct  compat_shminfo64
 
struct  compat_shm_info
 

Macros

#define sc_semopm   (sem_ctls[2])
 
#define COMPAT_SHMLBA   SHMLBA
 

Functions

long compat_sys_semctl (int semid, int semnum, int cmd, int arg)
 
long compat_sys_msgsnd (int msqid, struct compat_msgbuf __user *msgp, compat_ssize_t msgsz, int msgflg)
 
long compat_sys_msgrcv (int msqid, struct compat_msgbuf __user *msgp, compat_ssize_t msgsz, long msgtyp, int msgflg)
 
long compat_sys_msgctl (int first, int second, void __user *uptr)
 
long compat_sys_shmat (int shmid, compat_uptr_t shmaddr, int shmflg)
 
long compat_sys_shmctl (int first, int second, void __user *uptr)
 
long compat_sys_semtimedop (int semid, struct sembuf __user *tsems, unsigned nsops, const struct compat_timespec __user *timeout)
 

Variables

int sem_ctls []
 

Macro Definition Documentation

#define COMPAT_SHMLBA   SHMLBA

Definition at line 518 of file compat.c.

#define sc_semopm   (sem_ctls[2])

Definition at line 117 of file compat.c.

Function Documentation

long compat_sys_msgctl ( int  first,
int  second,
void __user uptr 
)

Definition at line 463 of file compat.c.

long compat_sys_msgrcv ( int  msqid,
struct compat_msgbuf __user msgp,
compat_ssize_t  msgsz,
long  msgtyp,
int  msgflg 
)

Definition at line 385 of file compat.c.

long compat_sys_msgsnd ( int  msqid,
struct compat_msgbuf __user msgp,
compat_ssize_t  msgsz,
int  msgflg 
)

Definition at line 375 of file compat.c.

long compat_sys_semctl ( int  semid,
int  semnum,
int  cmd,
int  arg 
)

Definition at line 370 of file compat.c.

long compat_sys_semtimedop ( int  semid,
struct sembuf __user tsems,
unsigned  nsops,
const struct compat_timespec __user timeout 
)

Definition at line 736 of file compat.c.

long compat_sys_shmat ( int  shmid,
compat_uptr_t  shmaddr,
int  shmflg 
)

Definition at line 538 of file compat.c.

long compat_sys_shmctl ( int  first,
int  second,
void __user uptr 
)

Definition at line 655 of file compat.c.

Variable Documentation

int sem_ctls[]