Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions | Variables
osf_sys.c File Reference
#include <linux/errno.h>
#include <linux/sched.h>
#include <linux/kernel.h>
#include <linux/mm.h>
#include <linux/smp.h>
#include <linux/stddef.h>
#include <linux/syscalls.h>
#include <linux/unistd.h>
#include <linux/ptrace.h>
#include <linux/user.h>
#include <linux/utsname.h>
#include <linux/time.h>
#include <linux/timex.h>
#include <linux/major.h>
#include <linux/stat.h>
#include <linux/mman.h>
#include <linux/shm.h>
#include <linux/poll.h>
#include <linux/file.h>
#include <linux/types.h>
#include <linux/ipc.h>
#include <linux/namei.h>
#include <linux/uio.h>
#include <linux/vfs.h>
#include <linux/rcupdate.h>
#include <linux/slab.h>
#include <asm/fpu.h>
#include <asm/io.h>
#include <asm/uaccess.h>
#include <asm/sysinfo.h>
#include <asm/thread_info.h>
#include <asm/hwrpb.h>
#include <asm/processor.h>

Go to the source code of this file.

Data Structures

struct  osf_dirent
 
struct  osf_dirent_callback
 
struct  osf_stat
 
struct  osf_statfs
 
struct  osf_statfs64
 
struct  ufs_args
 
struct  cdfs_args
 
struct  procfs_args
 
struct  proplistname_args
 
union  pl_args
 
struct  pl_args::setargs
 
struct  pl_args::fsetargs
 
struct  pl_args::getargs
 
struct  pl_args::fgetargs
 
struct  pl_args::delargs
 
struct  pl_args::fdelargs
 
struct  timeval32
 
struct  itimerval32
 
struct  rusage32
 
struct  timex32
 

Macros

#define NAME_OFFSET   offsetof (struct osf_dirent, d_name)
 
#define PLE_PROPAGATE_ON_COPY
 
#define PLE_FLAG_MASK   0x1 /* Valid flag values */
 
#define PLE_FLAG_ALL   -1 /* All flag value */
 

Enumerations

enum  pl_code {
  PL_SET = 1, PL_FSET = 2, PL_GET = 3, PL_FGET = 4,
  PL_DEL = 5, PL_FDEL = 6
}
 

Functions

 SYSCALL_DEFINE1 (osf_brk, unsigned long, brk)
 
 SYSCALL_DEFINE4 (osf_set_program_attributes, unsigned long, text_start, unsigned long, text_len, unsigned long, bss_start, unsigned long, bss_len)
 
 SYSCALL_DEFINE4 (osf_getdirentries, unsigned int, fd, struct osf_dirent __user *, dirent, unsigned int, count, long __user *, basep)
 
 SYSCALL_DEFINE6 (osf_mmap, unsigned long, addr, unsigned long, len, unsigned long, prot, unsigned long, flags, unsigned long, fd, unsigned long, off)
 
 SYSCALL_DEFINE3 (osf_statfs, const char __user *, pathname, struct osf_statfs __user *, buffer, unsigned long, bufsiz)
 
 SYSCALL_DEFINE2 (osf_stat, char __user *, name, struct osf_stat __user *, buf)
 
 SYSCALL_DEFINE2 (osf_lstat, char __user *, name, struct osf_stat __user *, buf)
 
 SYSCALL_DEFINE2 (osf_fstat, int, fd, struct osf_stat __user *, buf)
 
 SYSCALL_DEFINE3 (osf_fstatfs, unsigned long, fd, struct osf_statfs __user *, buffer, unsigned long, bufsiz)
 
 SYSCALL_DEFINE3 (osf_statfs64, char __user *, pathname, struct osf_statfs64 __user *, buffer, unsigned long, bufsiz)
 
 SYSCALL_DEFINE3 (osf_fstatfs64, unsigned long, fd, struct osf_statfs64 __user *, buffer, unsigned long, bufsiz)
 
 SYSCALL_DEFINE4 (osf_mount, unsigned long, typenr, const char __user *, path, int, flag, void __user *, data)
 
 SYSCALL_DEFINE1 (osf_utsname, char __user *, name)
 
 SYSCALL_DEFINE0 (getpagesize)
 
 SYSCALL_DEFINE0 (getdtablesize)
 
 SYSCALL_DEFINE2 (osf_getdomainname, char __user *, name, int, namelen)
 
 SYSCALL_DEFINE2 (osf_proplist_syscall, enum pl_code, code, union pl_args __user *, args)
 
 SYSCALL_DEFINE2 (osf_sigstack, struct sigstack __user *, uss, struct sigstack __user *, uoss)
 
 SYSCALL_DEFINE3 (osf_sysinfo, int, command, char __user *, buf, long, count)
 
 SYSCALL_DEFINE5 (osf_getsysinfo, unsigned long, op, void __user *, buffer, unsigned long, nbytes, int __user *, start, void __user *, arg)
 
 SYSCALL_DEFINE5 (osf_setsysinfo, unsigned long, op, void __user *, buffer, unsigned long, nbytes, int __user *, start, void __user *, arg)
 
 SYSCALL_DEFINE2 (osf_gettimeofday, struct timeval32 __user *, tv, struct timezone __user *, tz)
 
 SYSCALL_DEFINE2 (osf_settimeofday, struct timeval32 __user *, tv, struct timezone __user *, tz)
 
 SYSCALL_DEFINE2 (osf_getitimer, int, which, struct itimerval32 __user *, it)
 
 SYSCALL_DEFINE3 (osf_setitimer, int, which, struct itimerval32 __user *, in, struct itimerval32 __user *, out)
 
 SYSCALL_DEFINE2 (osf_utimes, const char __user *, filename, struct timeval32 __user *, tvs)
 
 SYSCALL_DEFINE5 (osf_select, int, n, fd_set __user *, inp, fd_set __user *, outp, fd_set __user *, exp, struct timeval32 __user *, tvp)
 
 SYSCALL_DEFINE2 (osf_getrusage, int, who, struct rusage32 __user *, ru)
 
 SYSCALL_DEFINE4 (osf_wait4, pid_t, pid, int __user *, ustatus, int, options, struct rusage32 __user *, ur)
 
 SYSCALL_DEFINE2 (osf_usleep_thread, struct timeval32 __user *, sleep, struct timeval32 __user *, remain)
 
 SYSCALL_DEFINE1 (old_adjtimex, struct timex32 __user *, txc_p)
 
unsigned long arch_get_unmapped_area (struct file *filp, unsigned long addr, unsigned long len, unsigned long pgoff, unsigned long flags)
 
 SYSCALL_DEFINE2 (osf_getpriority, int, which, int, who)
 
 SYSCALL_DEFINE0 (getxuid)
 
 SYSCALL_DEFINE0 (getxgid)
 
 SYSCALL_DEFINE0 (getxpid)
 
 SYSCALL_DEFINE0 (alpha_pipe)
 
 SYSCALL_DEFINE1 (sethae, unsigned long, val)
 

Variables

struct timezone sys_tz
 

Macro Definition Documentation

#define NAME_OFFSET   offsetof (struct osf_dirent, d_name)

Definition at line 89 of file osf_sys.c.

#define PLE_FLAG_ALL   -1 /* All flag value */

Definition at line 598 of file osf_sys.c.

#define PLE_FLAG_MASK   0x1 /* Valid flag values */

Definition at line 597 of file osf_sys.c.

#define PLE_PROPAGATE_ON_COPY
Value:
0x1 /* cp(1) will copy entry
by default */

Definition at line 596 of file osf_sys.c.

Enumeration Type Documentation

enum pl_code
Enumerator:
PL_SET 
PL_FSET 
PL_GET 
PL_FGET 
PL_DEL 
PL_FDEL 

Definition at line 644 of file osf_sys.c.

Function Documentation

unsigned long arch_get_unmapped_area ( struct file filp,
unsigned long  addr,
unsigned long  len,
unsigned long  pgoff,
unsigned long  flags 
)

Definition at line 1314 of file osf_sys.c.

SYSCALL_DEFINE0 ( getpagesize  )

Definition at line 550 of file osf_sys.c.

SYSCALL_DEFINE0 ( getdtablesize  )

Definition at line 555 of file osf_sys.c.

SYSCALL_DEFINE0 ( getxuid  )

Definition at line 1412 of file osf_sys.c.

SYSCALL_DEFINE0 ( getxgid  )

Definition at line 1418 of file osf_sys.c.

SYSCALL_DEFINE0 ( getxpid  )

Definition at line 1424 of file osf_sys.c.

SYSCALL_DEFINE0 ( alpha_pipe  )

Definition at line 1430 of file osf_sys.c.

SYSCALL_DEFINE1 ( osf_brk  ,
unsigned  long,
brk   
)

Definition at line 54 of file osf_sys.c.

SYSCALL_DEFINE1 ( osf_utsname  ,
char __user ,
name   
)

Definition at line 527 of file osf_sys.c.

SYSCALL_DEFINE1 ( old_adjtimex  ,
struct timex32 __user ,
txc_p   
)

Definition at line 1268 of file osf_sys.c.

SYSCALL_DEFINE1 ( sethae  ,
unsigned  long,
val   
)

Definition at line 1442 of file osf_sys.c.

SYSCALL_DEFINE2 ( osf_stat  ,
char __user ,
name  ,
struct osf_stat __user ,
buf   
)

Definition at line 347 of file osf_sys.c.

SYSCALL_DEFINE2 ( osf_lstat  ,
char __user ,
name  ,
struct osf_stat __user ,
buf   
)

Definition at line 359 of file osf_sys.c.

SYSCALL_DEFINE2 ( osf_fstat  ,
int  ,
fd  ,
struct osf_stat __user ,
buf   
)

Definition at line 371 of file osf_sys.c.

SYSCALL_DEFINE2 ( osf_getdomainname  ,
char __user ,
name  ,
int  ,
namelen   
)

Definition at line 563 of file osf_sys.c.

SYSCALL_DEFINE2 ( osf_proplist_syscall  ,
enum  pl_code,
code  ,
union pl_args __user ,
args   
)

Definition at line 650 of file osf_sys.c.

SYSCALL_DEFINE2 ( osf_sigstack  ,
struct sigstack __user ,
uss  ,
struct sigstack __user ,
uoss   
)

Definition at line 688 of file osf_sys.c.

SYSCALL_DEFINE2 ( osf_gettimeofday  ,
struct timeval32 __user ,
tv  ,
struct timezone __user ,
tz   
)

Definition at line 997 of file osf_sys.c.

SYSCALL_DEFINE2 ( osf_settimeofday  ,
struct timeval32 __user ,
tv  ,
struct timezone __user ,
tz   
)

Definition at line 1013 of file osf_sys.c.

SYSCALL_DEFINE2 ( osf_getitimer  ,
int  ,
which  ,
struct itimerval32 __user ,
it   
)

Definition at line 1033 of file osf_sys.c.

SYSCALL_DEFINE2 ( osf_utimes  ,
const char __user ,
filename  ,
struct timeval32 __user ,
tvs   
)

Definition at line 1068 of file osf_sys.c.

SYSCALL_DEFINE2 ( osf_getrusage  ,
int  ,
who  ,
struct rusage32 __user ,
ru   
)

Definition at line 1138 of file osf_sys.c.

SYSCALL_DEFINE2 ( osf_usleep_thread  ,
struct timeval32 __user ,
sleep  ,
struct timeval32 __user ,
remain   
)

Definition at line 1214 of file osf_sys.c.

SYSCALL_DEFINE2 ( osf_getpriority  ,
int  ,
which  ,
int  ,
who   
)

Definition at line 1399 of file osf_sys.c.

SYSCALL_DEFINE3 ( osf_statfs  ,
const char __user ,
pathname  ,
struct osf_statfs __user ,
buffer  ,
unsigned  long,
bufsiz   
)

Definition at line 337 of file osf_sys.c.

SYSCALL_DEFINE3 ( osf_fstatfs  ,
unsigned  long,
fd  ,
struct osf_statfs __user ,
buffer  ,
unsigned  long,
bufsiz   
)

Definition at line 383 of file osf_sys.c.

SYSCALL_DEFINE3 ( osf_statfs64  ,
char __user ,
pathname  ,
struct osf_statfs64 __user ,
buffer  ,
unsigned  long,
bufsiz   
)

Definition at line 393 of file osf_sys.c.

SYSCALL_DEFINE3 ( osf_fstatfs64  ,
unsigned  long,
fd  ,
struct osf_statfs64 __user ,
buffer  ,
unsigned  long,
bufsiz   
)

Definition at line 403 of file osf_sys.c.

SYSCALL_DEFINE3 ( osf_sysinfo  ,
int  ,
command  ,
char __user ,
buf  ,
long  ,
count   
)

Definition at line 729 of file osf_sys.c.

SYSCALL_DEFINE3 ( osf_setitimer  ,
int  ,
which  ,
struct itimerval32 __user ,
in  ,
struct itimerval32 __user ,
out   
)

Definition at line 1045 of file osf_sys.c.

SYSCALL_DEFINE4 ( osf_set_program_attributes  ,
unsigned  long,
text_start  ,
unsigned  long,
text_len  ,
unsigned  long,
bss_start  ,
unsigned  long,
bss_len   
)

Definition at line 65 of file osf_sys.c.

SYSCALL_DEFINE4 ( osf_getdirentries  ,
unsigned  int,
fd  ,
struct osf_dirent __user ,
dirent  ,
unsigned  int,
count  ,
long __user ,
basep   
)

Definition at line 143 of file osf_sys.c.

SYSCALL_DEFINE4 ( osf_mount  ,
unsigned  long,
typenr  ,
const char __user ,
path  ,
int  ,
flag  ,
void __user ,
data   
)

Definition at line 498 of file osf_sys.c.

SYSCALL_DEFINE4 ( osf_wait4  ,
pid_t  ,
pid  ,
int __user ,
ustatus  ,
int  ,
options  ,
struct rusage32 __user ,
ur   
)

Definition at line 1164 of file osf_sys.c.

SYSCALL_DEFINE5 ( osf_getsysinfo  ,
unsigned  long,
op  ,
void __user ,
buffer  ,
unsigned  long,
nbytes  ,
int __user ,
start  ,
void __user ,
arg   
)

Definition at line 767 of file osf_sys.c.

SYSCALL_DEFINE5 ( osf_setsysinfo  ,
unsigned  long,
op  ,
void __user ,
buffer  ,
unsigned  long,
nbytes  ,
int __user ,
start  ,
void __user ,
arg   
)

Definition at line 824 of file osf_sys.c.

SYSCALL_DEFINE5 ( osf_select  ,
int  ,
n  ,
fd_set __user ,
inp  ,
fd_set __user ,
outp  ,
fd_set __user ,
exp  ,
struct timeval32 __user ,
tvp   
)

Definition at line 1092 of file osf_sys.c.

SYSCALL_DEFINE6 ( osf_mmap  ,
unsigned  long,
addr  ,
unsigned  long,
len  ,
unsigned  long,
prot  ,
unsigned  long,
flags  ,
unsigned  long,
fd  ,
unsigned  long,
off   
)

Definition at line 171 of file osf_sys.c.

Variable Documentation

struct timezone sys_tz

Definition at line 50 of file time.c.