Main Page | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals

sys_sparc32.c File Reference

#include <linux/config.h>
#include <linux/kernel.h>
#include <linux/sched.h>
#include <linux/fs.h>
#include <linux/file.h>
#include <linux/signal.h>
#include <linux/utime.h>
#include <linux/resource.h>
#include <linux/times.h>
#include <linux/utsname.h>
#include <linux/timex.h>
#include <linux/smp.h>
#include <linux/smp_lock.h>
#include <linux/sem.h>
#include <linux/msg.h>
#include <linux/shm.h>
#include <linux/malloc.h>
#include <linux/uio.h>
#include <linux/nfs_fs.h>
#include <linux/smb_fs.h>
#include <linux/smb_mount.h>
#include <linux/ncp_fs.h>
#include <linux/quota.h>
#include <linux/module.h>
#include <linux/sunrpc/svc.h>
#include <linux/nfsd/nfsd.h>
#include <linux/nfsd/cache.h>
#include <linux/nfsd/xdr.h>
#include <linux/nfsd/syscall.h>
#include <linux/poll.h>
#include <linux/personality.h>
#include <linux/stat.h>
#include <linux/filter.h>
#include <linux/in6.h>
#include <linux/ipv6.h>
#include <linux/icmpv6.h>
#include <asm/types.h>
#include <asm/ipc.h>
#include <asm/uaccess.h>
#include <asm/fpumacro.h>
#include <asm/semaphore.h>
#include <net/scm.h>

Include dependency graph for sys_sparc32.c:

Go to the source code of this file.

Data Structures

struct  timeval32
struct  itimerval32
struct  rusage32
struct  timex32

Defines

#define A(__x)   ((unsigned long)(__x))
#define AA(__x)
#define IPCOP_MASK(__x)   (1UL << (__x))
#define NAME_OFFSET(de)   ((int) ((de)->d_name - (char *) (de)))
#define ROUND_UP(x)   (((x)+sizeof(u32)-1) & ~(sizeof(u32)-1))
#define MAX_SELECT_SECONDS   ((unsigned long) (MAX_SCHEDULE_TIMEOUT / HZ)-1)
#define D_B   7
#define I_B   (BLOCK_SIZE / sizeof(unsigned short))
#define SMBFS_NAME   "smbfs"
#define NCPFS_NAME   "ncpfs"
#define low2highuid(uid)   ((uid) == (u16)-1) ? (uid_t)-1 : (uid_t)(uid)
#define low2highgid(gid)   ((gid) == (u16)-1) ? (gid_t)-1 : (gid_t)(gid)
#define RLIM_INFINITY32   0x7fffffff
#define RESOURCE32(x)   ((x > RLIM_INFINITY32) ? RLIM_INFINITY32 : x)
#define MAX_SOCK_ADDR   128
#define __CMSG32_NXTHDR(ctl, len, cmsg, cmsglen)   __cmsg32_nxthdr((ctl),(len),(cmsg),(cmsglen))
#define CMSG32_NXTHDR(mhdr, cmsg, cmsglen)   cmsg32_nxthdr((mhdr), (cmsg), (cmsglen))
#define CMSG32_ALIGN(len)   ( ((len)+sizeof(int)-1) & ~(sizeof(int)-1) )
#define CMSG32_DATA(cmsg)   ((void *)((char *)(cmsg) + CMSG32_ALIGN(sizeof(struct cmsghdr32))))
#define CMSG32_SPACE(len)   (CMSG32_ALIGN(sizeof(struct cmsghdr32)) + CMSG32_ALIGN(len))
#define CMSG32_LEN(len)   (CMSG32_ALIGN(sizeof(struct cmsghdr32)) + (len))
#define __CMSG32_FIRSTHDR(ctl, len)
#define CMSG32_FIRSTHDR(msg)   __CMSG32_FIRSTHDR((msg)->msg_control, (msg)->msg_controllen)
#define AL(x)   ((x) * sizeof(u32))
#define ca32_svc   u.u32_svc
#define ca32_client   u.u32_client
#define ca32_export   u.u32_export
#define ca32_umap   u.u32_umap
#define ca32_getfh   u.u32_getfh
#define ca32_authd   u.u32_authd
#define ca32_getfd   u.u32_getfd
#define ca32_debug   u.u32_debug

Typedefs

typedef ssize_t(* IO_fn_t )(struct file *, char *, size_t, loff_t *)
typedef __kernel_ssize_t32 ssize_t32

Functions

static int do_getname32 (const char *filename, char *page)
char * getname32 (const char *filename)
static long get_tv32 (struct timeval *o, struct timeval32 *i)
static long put_tv32 (struct timeval32 *o, struct timeval *i)
static long get_it32 (struct itimerval *o, struct itimerval32 *i)
static long put_it32 (struct itimerval32 *o, struct itimerval *i)
asmlinkage int sys_ioperm (unsigned long from, unsigned long num, int on)
asmlinkage int sys32_ioperm (u32 from, u32 num, int on)
static int do_sys32_semctl (int first, int second, int third, void *uptr)
static int do_sys32_msgsnd (int first, int second, int third, void *uptr)
static int do_sys32_msgrcv (int first, int second, int msgtyp, int third, int version, void *uptr)
static int do_sys32_msgctl (int first, int second, void *uptr)
static int do_sys32_shmat (int first, int second, int third, int version, void *uptr)
static int do_sys32_shmctl (int first, int second, void *uptr)
asmlinkage int sys32_ipc (u32 call, int first, int second, int third, u32 ptr, u32 fifth)
static int get_flock (struct flock *kfl, struct flock32 *ufl)
static int put_flock (struct flock *kfl, struct flock32 *ufl)
asmlinkage long sys_fcntl (unsigned int fd, unsigned int cmd, unsigned long arg)
asmlinkage long sys32_fcntl (unsigned int fd, unsigned int cmd, unsigned long arg)
asmlinkage int sys_quotactl (int cmd, const char *special, int id, caddr_t addr)
asmlinkage int sys32_quotactl (int cmd, const char *special, int id, unsigned long addr)
static int put_statfs (struct statfs32 *ubuf, struct statfs *kbuf)
asmlinkage int sys_statfs (const char *path, struct statfs *buf)
asmlinkage int sys32_statfs (const char *path, struct statfs32 *buf)
asmlinkage int sys_fstatfs (unsigned int fd, struct statfs *buf)
asmlinkage int sys32_fstatfs (unsigned int fd, struct statfs32 *buf)
asmlinkage int sys_utime (char *filename, struct utimbuf *times)
asmlinkage int sys32_utime (char *filename, struct utimbuf32 *times)
static long do_readv_writev32 (int type, struct file *file, const struct iovec32 *vector, u32 count)
asmlinkage long sys32_readv (int fd, struct iovec32 *vector, u32 count)
asmlinkage long sys32_writev (int fd, struct iovec32 *vector, u32 count)
static int fillonedir (void *__buf, const char *name, int namlen, off_t offset, ino_t ino)
asmlinkage int old32_readdir (unsigned int fd, struct old_linux_dirent32 *dirent, unsigned int count)
static int filldir (void *__buf, const char *name, int namlen, off_t offset, ino_t ino)
asmlinkage int sys32_getdents (unsigned int fd, struct linux_dirent32 *dirent, unsigned int count)
static int get_fd_set32 (unsigned long n, unsigned long *fdset, u32 *ufdset)
static void set_fd_set32 (unsigned long n, u32 *ufdset, unsigned long *fdset)
asmlinkage int sys32_select (int n, u32 *inp, u32 *outp, u32 *exp, u32 tvp_x)
static int cp_new_stat32 (struct inode *inode, struct stat32 *statbuf)
asmlinkage int sys32_newstat (char *filename, struct stat32 *statbuf)
asmlinkage int sys32_newlstat (char *filename, struct stat32 *statbuf)
asmlinkage int sys32_newfstat (unsigned int fd, struct stat32 *statbuf)
asmlinkage int sys_sysfs (int option, unsigned long arg1, unsigned long arg2)
asmlinkage int sys32_sysfs (int option, u32 arg1, u32 arg2)
static void * do_ncp_super_data_conv (void *raw_data)
static void * do_smb_super_data_conv (void *raw_data)
static int copy_mount_stuff_to_kernel (const void *user, unsigned long *kernel)
asmlinkage int sys_mount (char *dev_name, char *dir_name, char *type, unsigned long new_flags, void *data)
asmlinkage int sys32_mount (char *dev_name, char *dir_name, char *type, unsigned long new_flags, u32 data)
static int put_rusage (struct rusage32 *ru, struct rusage *r)
asmlinkage int sys_wait4 (pid_t pid, unsigned int *stat_addr, int options, struct rusage *ru)
asmlinkage int sys32_wait4 (__kernel_pid_t32 pid, unsigned int *stat_addr, int options, struct rusage32 *ru)
asmlinkage int sys_sysinfo (struct sysinfo *info)
asmlinkage int sys32_sysinfo (struct sysinfo32 *info)
asmlinkage int sys_sched_rr_get_interval (pid_t pid, struct timespec *interval)
asmlinkage int sys32_sched_rr_get_interval (__kernel_pid_t32 pid, struct timespec32 *interval)
asmlinkage int sys_nanosleep (struct timespec *rqtp, struct timespec *rmtp)
asmlinkage int sys32_nanosleep (struct timespec32 *rqtp, struct timespec32 *rmtp)
asmlinkage int sys_sigprocmask (int how, old_sigset_t *set, old_sigset_t *oset)
asmlinkage int sys32_sigprocmask (int how, old_sigset_t32 *set, old_sigset_t32 *oset)
asmlinkage int sys_rt_sigprocmask (int how, sigset_t *set, sigset_t *oset, size_t sigsetsize)
asmlinkage int sys32_rt_sigprocmask (int how, sigset_t32 *set, sigset_t32 *oset, __kernel_size_t32 sigsetsize)
asmlinkage int sys_sigpending (old_sigset_t *set)
asmlinkage int sys32_sigpending (old_sigset_t32 *set)
asmlinkage int sys_rt_sigpending (sigset_t *set, size_t sigsetsize)
asmlinkage int sys32_rt_sigpending (sigset_t32 *set, __kernel_size_t32 sigsetsize)
siginfo_t32 * siginfo64to32 (siginfo_t32 *d, siginfo_t *s)
siginfo_tsiginfo32to64 (siginfo_t *d, siginfo_t32 *s)
asmlinkage int sys_rt_sigtimedwait (const sigset_t *uthese, siginfo_t *uinfo, const struct timespec *uts, size_t sigsetsize)
asmlinkage int sys32_rt_sigtimedwait (sigset_t32 *uthese, siginfo_t32 *uinfo, struct timespec32 *uts, __kernel_size_t32 sigsetsize)
asmlinkage int sys_rt_sigqueueinfo (int pid, int sig, siginfo_t *uinfo)
asmlinkage int sys32_rt_sigqueueinfo (int pid, int sig, siginfo_t32 *uinfo)
asmlinkage int sys_setreuid (uid_t ruid, uid_t euid)
asmlinkage int sys32_setreuid (__kernel_uid_t32 ruid, __kernel_uid_t32 euid)
asmlinkage int sys_setresuid (uid_t ruid, uid_t euid, uid_t suid)
asmlinkage int sys32_setresuid (__kernel_uid_t32 ruid, __kernel_uid_t32 euid, __kernel_uid_t32 suid)
asmlinkage int sys_getresuid (uid_t *ruid, uid_t *euid, uid_t *suid)
asmlinkage int sys32_getresuid (__kernel_uid_t32 *ruid, __kernel_uid_t32 *euid, __kernel_uid_t32 *suid)
asmlinkage int sys_setregid (gid_t rgid, gid_t egid)
asmlinkage int sys32_setregid (__kernel_gid_t32 rgid, __kernel_gid_t32 egid)
asmlinkage int sys_setresgid (gid_t rgid, gid_t egid, gid_t sgid)
asmlinkage int sys32_setresgid (__kernel_gid_t32 rgid, __kernel_gid_t32 egid, __kernel_gid_t32 sgid)
asmlinkage int sys_getresgid (gid_t *rgid, gid_t *egid, gid_t *sgid)
asmlinkage int sys32_getresgid (__kernel_gid_t32 *rgid, __kernel_gid_t32 *egid, __kernel_gid_t32 *sgid)
asmlinkage long sys_chown (const char *, uid_t, gid_t)
asmlinkage long sys_lchown (const char *, uid_t, gid_t)
asmlinkage long sys_fchown (unsigned int, uid_t, gid_t)
asmlinkage long sys32_chown16 (const char *filename, u16 user, u16 group)
asmlinkage long sys32_lchown16 (const char *filename, u16 user, u16 group)
asmlinkage long sys32_fchown16 (unsigned int fd, u16 user, u16 group)
asmlinkage long sys_times (struct tms *tbuf)
asmlinkage long sys32_times (struct tms32 *tbuf)
asmlinkage int sys_getgroups (int gidsetsize, gid_t *grouplist)
asmlinkage int sys32_getgroups (int gidsetsize, __kernel_gid_t32 *grouplist)
asmlinkage int sys_setgroups (int gidsetsize, gid_t *grouplist)
asmlinkage int sys32_setgroups (int gidsetsize, __kernel_gid_t32 *grouplist)
asmlinkage int sys_getrlimit (unsigned int resource, struct rlimit *rlim)
asmlinkage int sys32_getrlimit (unsigned int resource, struct rlimit32 *rlim)
asmlinkage int sys_setrlimit (unsigned int resource, struct rlimit *rlim)
asmlinkage int sys32_setrlimit (unsigned int resource, struct rlimit32 *rlim)
asmlinkage int sys_getrusage (int who, struct rusage *ru)
asmlinkage int sys32_getrusage (int who, struct rusage32 *ru)
__inline__ struct socket * socki_lookup (struct inode *inode)
__inline__ struct socket * sockfd_lookup (int fd, int *err)
__inline__ void sockfd_put (struct socket *sock)
__inline__ struct cmsghdr32__cmsg32_nxthdr (void *__ctl, __kernel_size_t __size, struct cmsghdr32 *__cmsg, int __cmsg_len)
__inline__ struct cmsghdr32cmsg32_nxthdr (struct msghdr *__msg, struct cmsghdr32 *__cmsg, int __cmsg_len)
static int iov_from_user32_to_kern (struct iovec *kiov, struct iovec32 *uiov32, int niov)
static int msghdr_from_user32_to_kern (struct msghdr *kmsg, struct msghdr32 *umsg)
static int verify_iovec32 (struct msghdr *kern_msg, struct iovec *kern_iov, char *kern_address, int mode)
static int cmsghdr_from_user32_to_kern (struct msghdr *kmsg, unsigned char *stackbuf, int stackbuf_size)
static void put_cmsg32 (struct msghdr *kmsg, int level, int type, int len, void *data)
static void scm_detach_fds32 (struct msghdr *kmsg, struct scm_cookie *scm)
static void cmsg32_recvmsg_fixup (struct msghdr *kmsg, unsigned long orig_cmsg_uptr)
asmlinkage int sys32_sendmsg (int fd, struct msghdr32 *user_msg, unsigned user_flags)
asmlinkage int sys32_recvmsg (int fd, struct msghdr32 *user_msg, unsigned int user_flags)
asmlinkage int sys_setsockopt (int fd, int level, int optname, char *optval, int optlen)
static int do_set_attach_filter (int fd, int level, int optname, char *optval, int optlen)
static int do_set_icmpv6_filter (int fd, int level, int optname, char *optval, int optlen)
asmlinkage int sys32_setsockopt (int fd, int level, int optname, char *optval, int optlen)
asmlinkage int sys_bind (int fd, struct sockaddr *umyaddr, int addrlen)
asmlinkage int sys_connect (int fd, struct sockaddr *uservaddr, int addrlen)
asmlinkage int sys_accept (int fd, struct sockaddr *upeer_sockaddr, int *upeer_addrlen)
asmlinkage int sys_getsockname (int fd, struct sockaddr *usockaddr, int *usockaddr_len)
asmlinkage int sys_getpeername (int fd, struct sockaddr *usockaddr, int *usockaddr_len)
asmlinkage int sys_send (int fd, void *buff, size_t len, unsigned flags)
asmlinkage int sys32_sendto (int fd, u32 buff, __kernel_size_t32 len, unsigned flags, u32 addr, int addr_len)
asmlinkage int sys_recv (int fd, void *ubuf, size_t size, unsigned flags)
asmlinkage int sys32_recvfrom (int fd, u32 ubuf, __kernel_size_t32 size, unsigned flags, u32 addr, u32 addr_len)
asmlinkage int sys32_getsockopt (int fd, int level, int optname, u32 optval, u32 optlen)
asmlinkage int sys_socket (int family, int type, int protocol)
asmlinkage int sys_socketpair (int family, int type, int protocol, int usockvec[2])
asmlinkage int sys_shutdown (int fd, int how)
asmlinkage int sys_listen (int fd, int backlog)
asmlinkage int sys32_socketcall (int call, u32 *args)
void check_pending (int signum)
asmlinkage int sys32_sigaction (int sig, struct old_sigaction32 *act, struct old_sigaction32 *oact)
asmlinkage int sys32_rt_sigaction (int sig, struct sigaction32 *act, struct sigaction32 *oact, void *restorer, __kernel_size_t32 sigsetsize)
static int count32 (u32 *argv, int max)
static unsigned long copy_strings32 (int argc, u32 *argv, unsigned long *page, unsigned long p)
static int do_execve32 (char *filename, u32 *argv, u32 *envp, struct pt_regs *regs)
asmlinkage int sparc32_execve (struct pt_regs *regs)
asmlinkage unsigned long sys32_create_module (const char *name_user, size_t size)
asmlinkage int sys32_init_module (const char *name_user, struct module *mod_user)
asmlinkage int sys32_delete_module (const char *name_user)
asmlinkage int sys32_query_module (const char *name_user, int which, char *buf, size_t bufsize, size_t *ret)
asmlinkage int sys32_get_kernel_syms (struct kernel_sym *table)
static int nfs_svc32_trans (struct nfsctl_arg *karg, struct nfsctl_arg32 *arg32)
static int nfs_clnt32_trans (struct nfsctl_arg *karg, struct nfsctl_arg32 *arg32)
static int nfs_exp32_trans (struct nfsctl_arg *karg, struct nfsctl_arg32 *arg32)
static int nfs_uud32_trans (struct nfsctl_arg *karg, struct nfsctl_arg32 *arg32)
static int nfs_getfh32_trans (struct nfsctl_arg *karg, struct nfsctl_arg32 *arg32)
static int nfs_getfd32_trans (struct nfsctl_arg *karg, struct nfsctl_arg32 *arg32)
static int nfs_getfh32_res_trans (union nfsctl_res *kres, union nfsctl_res32 *res32)
asmlinkage int sys_nfsservctl (int cmd, void *arg, void *resp)
int asmlinkage sys32_nfsservctl (int cmd, struct nfsctl_arg32 *arg32, union nfsctl_res32 *res32)
int do_sys_settimeofday (struct timeval *tv, struct timezone *tz)
asmlinkage int sys32_gettimeofday (struct timeval32 *tv, struct timezone *tz)
asmlinkage int sys32_settimeofday (struct timeval32 *tv, struct timezone *tz)
int do_getitimer (int which, struct itimerval *value)
asmlinkage int sys32_getitimer (int which, struct itimerval32 *it)
int do_setitimer (int which, struct itimerval *, struct itimerval *)
asmlinkage int sys32_setitimer (int which, struct itimerval32 *in, struct itimerval32 *out)
asmlinkage int sys_utimes (char *, struct timeval *)
asmlinkage int sys32_utimes (char *filename, struct timeval32 *tvs)
asmlinkage int sys32_pause (void)
asmlinkage int sys_pciconfig_read (unsigned long bus, unsigned long dfn, unsigned long off, unsigned long len, unsigned char *buf)
asmlinkage int sys_pciconfig_write (unsigned long bus, unsigned long dfn, unsigned long off, unsigned long len, unsigned char *buf)
asmlinkage int sys32_pciconfig_read (u32 bus, u32 dfn, u32 off, u32 len, u32 ubuf)
asmlinkage int sys32_pciconfig_write (u32 bus, u32 dfn, u32 off, u32 len, u32 ubuf)
asmlinkage int sys_prctl (int option, unsigned long arg2, unsigned long arg3, unsigned long arg4, unsigned long arg5)
asmlinkage int sys32_prctl (int option, u32 arg2, u32 arg3, u32 arg4, u32 arg5)
asmlinkage int sys_newuname (struct new_utsname *name)
asmlinkage int sys32_newuname (struct new_utsname *name)
asmlinkage ssize_t sys_pread (unsigned int fd, char *buf, size_t count, loff_t pos)
asmlinkage ssize_t sys_pwrite (unsigned int fd, const char *buf, size_t count, loff_t pos)
asmlinkage ssize_t32 sys32_pread (unsigned int fd, char *ubuf, __kernel_size_t32 count, u32 poshi, u32 poslo)
asmlinkage ssize_t32 sys32_pwrite (unsigned int fd, char *ubuf, __kernel_size_t32 count, u32 poshi, u32 poslo)
asmlinkage int sys_personality (unsigned long)
asmlinkage int sys32_personality (unsigned long personality)
asmlinkage ssize_t sys_sendfile (int out_fd, int in_fd, off_t *offset, size_t count)
asmlinkage int sys32_sendfile (int out_fd, int in_fd, __kernel_off_t32 *offset, s32 count)
int do_adjtimex (struct timex *)
asmlinkage int sys32_adjtimex (struct timex32 *utp)
int do_sysctl (int *name, int nlen, void *oldval, size_t *oldlenp, void *newval, size_t newlen)
asmlinkage long sys32_sysctl (struct __sysctl_args32 *args)

Variables

static unsigned char nargs [18]
timezone sys_tz


Define Documentation

#define __CMSG32_FIRSTHDR ctl,
len   ) 
 

Value:

((len) >= sizeof(struct cmsghdr32) ? \
                                    (struct cmsghdr32 *)(ctl) : \
                                    (struct cmsghdr32 *)NULL)

Definition at line 2182 of file sys_sparc32.c.

#define __CMSG32_NXTHDR ctl,
len,
cmsg,
cmsglen   )     __cmsg32_nxthdr((ctl),(len),(cmsg),(cmsglen))
 

Definition at line 2173 of file sys_sparc32.c.

#define A __x   )     ((unsigned long)(__x))
 

Definition at line 75 of file sys_sparc32.c.

#define AA __x   ) 
 

Value:

({      unsigned long __ret;            \
        __asm__ ("srl   %0, 0, %0"      \
                 : "=r" (__ret)         \
                 : "0" (__x));          \
        __ret;                          \
})

Definition at line 76 of file sys_sparc32.c.

#define AL x   )     ((x) * sizeof(u32))
 

Definition at line 2757 of file sys_sparc32.c.

#define ca32_authd   u.u32_authd
 

Definition at line 3588 of file sys_sparc32.c.

#define ca32_client   u.u32_client
 

Definition at line 3584 of file sys_sparc32.c.

#define ca32_debug   u.u32_debug
 

Definition at line 3590 of file sys_sparc32.c.

#define ca32_export   u.u32_export
 

Definition at line 3585 of file sys_sparc32.c.

#define ca32_getfd   u.u32_getfd
 

Definition at line 3589 of file sys_sparc32.c.

#define ca32_getfh   u.u32_getfh
 

Definition at line 3587 of file sys_sparc32.c.

#define ca32_svc   u.u32_svc
 

Definition at line 3583 of file sys_sparc32.c.

#define ca32_umap   u.u32_umap
 

Definition at line 3586 of file sys_sparc32.c.

#define CMSG32_ALIGN len   )     ( ((len)+sizeof(int)-1) & ~(sizeof(int)-1) )
 

Definition at line 2176 of file sys_sparc32.c.

Referenced by __cmsg32_nxthdr(), cmsg32_recvmsg_fixup(), and cmsghdr_from_user32_to_kern().

#define CMSG32_DATA cmsg   )     ((void *)((char *)(cmsg) + CMSG32_ALIGN(sizeof(struct cmsghdr32))))
 

Definition at line 2178 of file sys_sparc32.c.

Referenced by cmsg32_recvmsg_fixup(), cmsghdr_from_user32_to_kern(), put_cmsg32(), and scm_detach_fds32().

#define CMSG32_FIRSTHDR msg   )     __CMSG32_FIRSTHDR((msg)->msg_control, (msg)->msg_controllen)
 

Definition at line 2185 of file sys_sparc32.c.

Referenced by cmsghdr_from_user32_to_kern().

#define CMSG32_LEN len   )     (CMSG32_ALIGN(sizeof(struct cmsghdr32)) + (len))
 

Definition at line 2180 of file sys_sparc32.c.

Referenced by put_cmsg32(), and scm_detach_fds32().

#define CMSG32_NXTHDR mhdr,
cmsg,
cmsglen   )     cmsg32_nxthdr((mhdr), (cmsg), (cmsglen))
 

Definition at line 2174 of file sys_sparc32.c.

Referenced by cmsghdr_from_user32_to_kern().

#define CMSG32_SPACE len   )     (CMSG32_ALIGN(sizeof(struct cmsghdr32)) + CMSG32_ALIGN(len))
 

Definition at line 2179 of file sys_sparc32.c.

Referenced by put_cmsg32(), and scm_detach_fds32().

#define D_B   7
 

Referenced by cp_new_stat(), and cp_new_stat32().

#define I_B   (BLOCK_SIZE / sizeof(unsigned short))
 

Referenced by cp_new_stat(), and cp_new_stat32().

#define IPCOP_MASK __x   )     (1UL << (__x))
 

Definition at line 232 of file sys_sparc32.c.

Referenced by do_sys32_msgctl(), do_sys32_semctl(), and do_sys32_shmctl().

#define low2highgid gid   )     ((gid) == (u16)-1) ? (gid_t)-1 : (gid_t)(gid)
 

Definition at line 1899 of file sys_sparc32.c.

Referenced by sys32_chown16(), sys32_fchown16(), sys32_lchown16(), sys32_setregid(), and sys32_setresgid().

#define low2highuid uid   )     ((uid) == (u16)-1) ? (uid_t)-1 : (uid_t)(uid)
 

Definition at line 1898 of file sys_sparc32.c.

Referenced by sys32_chown16(), sys32_fchown16(), sys32_lchown16(), sys32_setresuid(), and sys32_setreuid().

#define MAX_SELECT_SECONDS   ((unsigned long) (MAX_SCHEDULE_TIMEOUT / HZ)-1)
 

Definition at line 1111 of file sys_sparc32.c.

#define MAX_SOCK_ADDR   128
 

Definition at line 2118 of file sys_sparc32.c.

Referenced by move_addr_to_kernel(), move_addr_to_user(), solaris_recvmsg(), solaris_sendmsg(), sys32_recvmsg(), sys32_sendmsg(), sys_accept(), sys_bind(), sys_connect(), sys_getpeername(), sys_getsockname(), sys_recvfrom(), sys_recvmsg(), sys_sendmsg(), and sys_sendto().

#define NAME_OFFSET de   )     ((int) ((de)->d_name - (char *) (de)))
 

Definition at line 904 of file sys_sparc32.c.

#define NCPFS_NAME   "ncpfs"
 

Definition at line 1452 of file sys_sparc32.c.

Referenced by sys32_mount().

#define RESOURCE32 x   )     ((x > RLIM_INFINITY32) ? RLIM_INFINITY32 : x)
 

Definition at line 2055 of file sys_sparc32.c.

Referenced by sys32_getrlimit().

#define RLIM_INFINITY32   0x7fffffff
 

Definition at line 2054 of file sys_sparc32.c.

Referenced by sys32_setrlimit().

#define ROUND_UP x   )     (((x)+sizeof(u32)-1) & ~(sizeof(u32)-1))
 

Definition at line 905 of file sys_sparc32.c.

#define SMBFS_NAME   "smbfs"
 

Definition at line 1451 of file sys_sparc32.c.

Referenced by sys32_mount().


Typedef Documentation

typedef ssize_t(* IO_fn_t)(struct file *, char *, size_t, loff_t *)
 

Definition at line 755 of file sys_sparc32.c.

typedef __kernel_ssize_t32 ssize_t32
 

Definition at line 4003 of file sys_sparc32.c.


Function Documentation

__inline__ struct cmsghdr32* __cmsg32_nxthdr void *  __ctl,
__kernel_size_t  __size,
struct cmsghdr32 __cmsg,
int  __cmsg_len
 

Definition at line 2187 of file sys_sparc32.c.

References CMSG32_ALIGN, and NULL.

Referenced by cmsg32_nxthdr().

void check_pending int  signum  ) 
 

__inline__ struct cmsghdr32* cmsg32_nxthdr struct msghdr __msg,
struct cmsghdr32 __cmsg,
int  __cmsg_len
 

Definition at line 2200 of file sys_sparc32.c.

References __cmsg32_nxthdr().

Here is the call graph for this function: