# 2.11BSD#431 - /usr/src/lib/libc/pdp/sys/SYS.h

##### Variables

    _errno            X

##### Macros

    ASENTRY           X
    ENTRY             X
    EXIT_error        X
    EXIT_long         X
    EXIT_noerror      X
    EXIT_norm         X
    PROFCODE          X
    SYS               X
    SYSCALL           X

       1: /*
       2:  * Copyright (c) 1983 Regents of the University of California.
       3:  * All rights reserved.  The Berkeley software License Agreement
       4:  * specifies the terms and conditions for redistribution.
       5:  *
       6:  *	@(#)SYS.h	1.5 (2.11BSD GTE) 1995/05/08
       7:  */
       8:
       9: #include <syscall.h>
      10:
      11: .comm   _errno,2
      12:
      13: #define ENTRY(x)        .globl _/**/x; \
      14:                 _/**/x: \
      15:                         PROFCODE(_/**/x);
      16:
      17: #define ASENTRY(x)      .globl x; \
      18:                 x: \
      19:                         PROFCODE(x);
      20:
      21: #ifdef PROF
      22: #define PROFCODE(x)     .data; \
      23:                 1:      x+1; \
      24:                         .text; \
      25:                         .globl  mcount; \
      26:                         mov     $1b, r0; \
      27:                         jsr     pc,mcount;
      28: #else !PROF
      29: #define PROFCODE(x)     ;
      30: #endif PROF
      31:
      32: #define SYS(s)          sys     SYS_/**/s.
      33:
      34: #define SYSCALL(s, r)   ENTRY(s); \
      35:                         SYS(s); \
      36:                         EXIT_/**/r
      37:
      38:                 .globl  x_norm, x_error
      39:
      40: #define EXIT_norm               jmp     x_norm
      41:
      42: #define EXIT_long               bcc     1f; \
      43:                                 mov     r0,_errno; \
      44:                                 mov     $-1,r1; \
      45:                                 sxt     r0; \
      46:                                 1: rts  pc;
      47:
      48: #define EXIT_error              jmp     x_error
      49:
      50: #define EXIT_noerror            rts     pc;

#### Defined variables

_errno defined in line 11; never used

#### Defined macros

ASENTRY defined in line 17; used 1 times

- in /usr/src/lib/libc/pdp/csu/mcount.s line 57

ENTRY defined in line 13; used 13 times

- in /usr/src/lib/libc/pdp/compat-2.9/fperr.s line 21
- in /usr/src/lib/libc/pdp/sys/_exit.s line 14
- in /usr/src/lib/libc/pdp/sys/brk.s line 19
- in /usr/src/lib/libc/pdp/sys/execl.s line 19
- in /usr/src/lib/libc/pdp/sys/execle.s line 17
- in /usr/src/lib/libc/pdp/sys/execv.s line 19
- in /usr/src/lib/libc/pdp/sys/fork.s line 17
- in /usr/src/lib/libc/pdp/sys/pipe.s line 17
- in /usr/src/lib/libc/pdp/sys/ptrace.s line 14
- in /usr/src/lib/libc/pdp/sys/sbrk.s line 25
- in /usr/src/lib/libc/pdp/sys/setlogin.s line 50
- in /usr/src/lib/libc/pdp/sys/sigaction.s line 30
- in /usr/src/lib/libc/pdp/sys/vfork.s line 30

EXIT_error defined in line 48; never used
EXIT_long defined in line 42; never used
EXIT_noerror defined in line 50; never used
EXIT_norm defined in line 40; used 1 times

- in /usr/src/lib/libc/pdp/sys/setlogin.s line 53

PROFCODE defined in line 29; never used
SYS defined in line 32; used 15 times

- in /usr/src/lib/libc/pdp/compat-2.9/fperr.s line 22
- in /usr/src/lib/libc/pdp/csu/mcount.s line 83
- in /usr/src/lib/libc/pdp/sys/_exit.s line 15
- in /usr/src/lib/libc/pdp/sys/brk.s line 24
- in /usr/src/lib/libc/pdp/sys/execl.s line 26
- in /usr/src/lib/libc/pdp/sys/execle.s line 28
- in /usr/src/lib/libc/pdp/sys/execv.s line 24
- in /usr/src/lib/libc/pdp/sys/fork.s line 18
- in /usr/src/lib/libc/pdp/sys/pipe.s line 18
- in /usr/src/lib/libc/pdp/sys/ptrace.s line 16
- in /usr/src/lib/libc/pdp/sys/sbrk.s line 31
- in /usr/src/lib/libc/pdp/sys/setlogin.s line 52
- in /usr/src/lib/libc/pdp/sys/sigaction.s line 33
- in /usr/src/lib/libc/pdp/sys/sigreturn.s line 49
- in /usr/src/lib/libc/pdp/sys/vfork.s line 33

SYSCALL defined in line 34; used 111 times

- in /usr/src/lib/libc/pdp/compat-2.9/fetchi.s line 14
- in /usr/src/lib/libc/pdp/compat-2.9/lock.s line 14
- in /usr/src/lib/libc/pdp/compat-2.9/phys.s line 14
- in /usr/src/lib/libc/pdp/compat-2.9/ucall.s line 14
- in /usr/src/lib/libc/pdp/sys/____sysctl.s line 2
- in /usr/src/lib/libc/pdp/sys/__accept.s line 2
- in /usr/src/lib/libc/pdp/sys/__access.s line 2
- in /usr/src/lib/libc/pdp/sys/__adjtime.s line 2
- in /usr/src/lib/libc/pdp/sys/__bind.s line 2
- in /usr/src/lib/libc/pdp/sys/__chdir.s line 2
- in /usr/src/lib/libc/pdp/sys/__chflags.s line 2
- in /usr/src/lib/libc/pdp/sys/__chmod.s line 2
- in /usr/src/lib/libc/pdp/sys/__chown.s line 2
- in /usr/src/lib/libc/pdp/sys/__chroot.s line 2
- in /usr/src/lib/libc/pdp/sys/__close.s line 2
- in /usr/src/lib/libc/pdp/sys/__connect.s line 2
- in /usr/src/lib/libc/pdp/sys/__dup.s line 2
- in /usr/src/lib/libc/pdp/sys/__dup2.s line 2
- in /usr/src/lib/libc/pdp/sys/__execv.s line 2
- in /usr/src/lib/libc/pdp/sys/__fchdir.s line 2
- in /usr/src/lib/libc/pdp/sys/__fchflags.s line 2
- in /usr/src/lib/libc/pdp/sys/__fchmod.s line 2
- in /usr/src/lib/libc/pdp/sys/__fchown.s line 2
- in /usr/src/lib/libc/pdp/sys/__fcntl.s line 2
- in /usr/src/lib/libc/pdp/sys/__flock.s line 2
- in /usr/src/lib/libc/pdp/sys/__fstat.s line 2
- in /usr/src/lib/libc/pdp/sys/__fstatfs.s line 2
- in /usr/src/lib/libc/pdp/sys/__fsync.s line 2
- in /usr/src/lib/libc/pdp/sys/__ftruncate.s line 2
- in /usr/src/lib/libc/pdp/sys/__getdtablesize.s line 2
- in /usr/src/lib/libc/pdp/sys/__getegid.s line 2
- in /usr/src/lib/libc/pdp/sys/__geteuid.s line 2
- in /usr/src/lib/libc/pdp/sys/__getfsstat.s line 2
- in /usr/src/lib/libc/pdp/sys/__getgid.s line 2
- in /usr/src/lib/libc/pdp/sys/__getgroups.s line 2
- in /usr/src/lib/libc/pdp/sys/__getitimer.s line 2
- in /usr/src/lib/libc/pdp/sys/__getlogin.s line 2
- in /usr/src/lib/libc/pdp/sys/__getpeername.s line 2
- in /usr/src/lib/libc/pdp/sys/__getpgrp.s line 2
- in /usr/src/lib/libc/pdp/sys/__getpid.s line 2
- in /usr/src/lib/libc/pdp/sys/__getppid.s line 2
- in /usr/src/lib/libc/pdp/sys/__getpriority.s line 2
- in /usr/src/lib/libc/pdp/sys/__getrlimit.s line 2
- in /usr/src/lib/libc/pdp/sys/__getrusage.s line 2
- in /usr/src/lib/libc/pdp/sys/__getsockname.s line 2
- in /usr/src/lib/libc/pdp/sys/__getsockopt.s line 2
- in /usr/src/lib/libc/pdp/sys/__gettimeofday.s line 2
- in /usr/src/lib/libc/pdp/sys/__getuid.s line 2
- in /usr/src/lib/libc/pdp/sys/__ioctl.s line 2
- in /usr/src/lib/libc/pdp/sys/__kill.s line 2
- in /usr/src/lib/libc/pdp/sys/__killpg.s line 2
- in /usr/src/lib/libc/pdp/sys/__link.s line 2
- in /usr/src/lib/libc/pdp/sys/__listen.s line 2
- in /usr/src/lib/libc/pdp/sys/__lseek.s line 2
- in /usr/src/lib/libc/pdp/sys/__lstat.s line 2
- in /usr/src/lib/libc/pdp/sys/__mkdir.s line 2
- in /usr/src/lib/libc/pdp/sys/__mknod.s line 2
- in /usr/src/lib/libc/pdp/sys/__mount.s line 2
- in /usr/src/lib/libc/pdp/sys/__nostk.s line 2
- in /usr/src/lib/libc/pdp/sys/__open.s line 2
- in /usr/src/lib/libc/pdp/sys/__phys.s line 2
- in /usr/src/lib/libc/pdp/sys/__profil.s line 2
- in /usr/src/lib/libc/pdp/sys/__pselect.s line 2
- in /usr/src/lib/libc/pdp/sys/__qquota.s line 2
- in /usr/src/lib/libc/pdp/sys/__read.s line 2
- in /usr/src/lib/libc/pdp/sys/__readlink.s line 2
- in /usr/src/lib/libc/pdp/sys/__readv.s line 2
- in /usr/src/lib/libc/pdp/sys/__reboot.s line 2
- in /usr/src/lib/libc/pdp/sys/__recv.s line 2
- in /usr/src/lib/libc/pdp/sys/__recvfrom.s line 2
- in /usr/src/lib/libc/pdp/sys/__recvmsg.s line 2
- in /usr/src/lib/libc/pdp/sys/__rename.s line 2
- in /usr/src/lib/libc/pdp/sys/__rmdir.s line 2
- in /usr/src/lib/libc/pdp/sys/__select.s line 2
- in /usr/src/lib/libc/pdp/sys/__send.s line 2
- in /usr/src/lib/libc/pdp/sys/__sendmsg.s line 2
- in /usr/src/lib/libc/pdp/sys/__sendto.s line 2
- in /usr/src/lib/libc/pdp/sys/__setegid.s line 2
- in /usr/src/lib/libc/pdp/sys/__seteuid.s line 2
- in /usr/src/lib/libc/pdp/sys/__setgid.s line 2
- in /usr/src/lib/libc/pdp/sys/__setgroups.s line 2
- in /usr/src/lib/libc/pdp/sys/__setitimer.s line 2
- in /usr/src/lib/libc/pdp/sys/__setpgrp.s line 2
- in /usr/src/lib/libc/pdp/sys/__setpriority.s line 2
- in /usr/src/lib/libc/pdp/sys/__setquota.s line 2
- in /usr/src/lib/libc/pdp/sys/__setrlimit.s line 2
- in /usr/src/lib/libc/pdp/sys/__setsockopt.s line 2
- in /usr/src/lib/libc/pdp/sys/__settimeofday.s line 2
- in /usr/src/lib/libc/pdp/sys/__setuid.s line 2
- in /usr/src/lib/libc/pdp/sys/__shutdown.s line 2
- in /usr/src/lib/libc/pdp/sys/__sigaltstack.s line 2
- in /usr/src/lib/libc/pdp/sys/__sigpending.s line 2
- in /usr/src/lib/libc/pdp/sys/__sigprocmask.s line 2
- in /usr/src/lib/libc/pdp/sys/__sigstack.s line 2
- in /usr/src/lib/libc/pdp/sys/__sigsuspend.s line 2
- in /usr/src/lib/libc/pdp/sys/__sigwait.s line 2
- in /usr/src/lib/libc/pdp/sys/__socket.s line 2
- in /usr/src/lib/libc/pdp/sys/__socketpair.s line 2
- in /usr/src/lib/libc/pdp/sys/__stat.s line 2
- in /usr/src/lib/libc/pdp/sys/__statfs.s line 2
- in /usr/src/lib/libc/pdp/sys/__symlink.s line 2
- in /usr/src/lib/libc/pdp/sys/__sync.s line 2
- in /usr/src/lib/libc/pdp/sys/__truncate.s line 2
- in /usr/src/lib/libc/pdp/sys/__umask.s line 2
- in /usr/src/lib/libc/pdp/sys/__umount.s line 2
- in /usr/src/lib/libc/pdp/sys/__unlink.s line 2
- in /usr/src/lib/libc/pdp/sys/__utimes.s line 2
- in /usr/src/lib/libc/pdp/sys/__vhangup.s line 2
- in /usr/src/lib/libc/pdp/sys/__wait4.s line 2
- in /usr/src/lib/libc/pdp/sys/__write.s line 2
- in /usr/src/lib/libc/pdp/sys/__writev.s line 2

#### Usage of this include

SYS.h used 126 times

- in /usr/src/lib/libc/pdp/compat-2.9/fetchi.s line 12
- in /usr/src/lib/libc/pdp/compat-2.9/fperr.s line 19
- in /usr/src/lib/libc/pdp/compat-2.9/lock.s line 12
- in /usr/src/lib/libc/pdp/compat-2.9/phys.s line 12
- in /usr/src/lib/libc/pdp/compat-2.9/ucall.s line 12
- in /usr/src/lib/libc/pdp/csu/mcount.s line 53
- in /usr/src/lib/libc/pdp/sys/____sysctl.s line 1
- in /usr/src/lib/libc/pdp/sys/__accept.s line 1
- in /usr/src/lib/libc/pdp/sys/__access.s line 1
- in /usr/src/lib/libc/pdp/sys/__adjtime.s line 1
- in /usr/src/lib/libc/pdp/sys/__bind.s line 1
- in /usr/src/lib/libc/pdp/sys/__chdir.s line 1
- in /usr/src/lib/libc/pdp/sys/__chflags.s line 1
- in /usr/src/lib/libc/pdp/sys/__chmod.s line 1
- in /usr/src/lib/libc/pdp/sys/__chown.s line 1
- in /usr/src/lib/libc/pdp/sys/__chroot.s line 1
- in /usr/src/lib/libc/pdp/sys/__close.s line 1
- in /usr/src/lib/libc/pdp/sys/__connect.s line 1
- in /usr/src/lib/libc/pdp/sys/__dup.s line 1
- in /usr/src/lib/libc/pdp/sys/__dup2.s line 1
- in /usr/src/lib/libc/pdp/sys/__execv.s line 1
- in /usr/src/lib/libc/pdp/sys/__fchdir.s line 1
- in /usr/src/lib/libc/pdp/sys/__fchflags.s line 1
- in /usr/src/lib/libc/pdp/sys/__fchmod.s line 1
- in /usr/src/lib/libc/pdp/sys/__fchown.s line 1
- in /usr/src/lib/libc/pdp/sys/__fcntl.s line 1
- in /usr/src/lib/libc/pdp/sys/__flock.s line 1
- in /usr/src/lib/libc/pdp/sys/__fstat.s line 1
- in /usr/src/lib/libc/pdp/sys/__fstatfs.s line 1
- in /usr/src/lib/libc/pdp/sys/__fsync.s line 1
- in /usr/src/lib/libc/pdp/sys/__ftruncate.s line 1
- in /usr/src/lib/libc/pdp/sys/__getdtablesize.s line 1
- in /usr/src/lib/libc/pdp/sys/__getegid.s line 1
- in /usr/src/lib/libc/pdp/sys/__geteuid.s line 1
- in /usr/src/lib/libc/pdp/sys/__getfsstat.s line 1
- in /usr/src/lib/libc/pdp/sys/__getgid.s line 1
- in /usr/src/lib/libc/pdp/sys/__getgroups.s line 1
- in /usr/src/lib/libc/pdp/sys/__getitimer.s line 1
- in /usr/src/lib/libc/pdp/sys/__getlogin.s line 1
- in /usr/src/lib/libc/pdp/sys/__getpeername.s line 1
- in /usr/src/lib/libc/pdp/sys/__getpgrp.s line 1
- in /usr/src/lib/libc/pdp/sys/__getpid.s line 1
- in /usr/src/lib/libc/pdp/sys/__getppid.s line 1
- in /usr/src/lib/libc/pdp/sys/__getpriority.s line 1
- in /usr/src/lib/libc/pdp/sys/__getrlimit.s line 1
- in /usr/src/lib/libc/pdp/sys/__getrusage.s line 1
- in /usr/src/lib/libc/pdp/sys/__getsockname.s line 1
- in /usr/src/lib/libc/pdp/sys/__getsockopt.s line 1
- in /usr/src/lib/libc/pdp/sys/__gettimeofday.s line 1
- in /usr/src/lib/libc/pdp/sys/__getuid.s line 1
- in /usr/src/lib/libc/pdp/sys/__ioctl.s line 1
- in /usr/src/lib/libc/pdp/sys/__kill.s line 1
- in /usr/src/lib/libc/pdp/sys/__killpg.s line 1
- in /usr/src/lib/libc/pdp/sys/__link.s line 1
- in /usr/src/lib/libc/pdp/sys/__listen.s line 1
- in /usr/src/lib/libc/pdp/sys/__lseek.s line 1
- in /usr/src/lib/libc/pdp/sys/__lstat.s line 1
- in /usr/src/lib/libc/pdp/sys/__mkdir.s line 1
- in /usr/src/lib/libc/pdp/sys/__mknod.s line 1
- in /usr/src/lib/libc/pdp/sys/__mount.s line 1
- in /usr/src/lib/libc/pdp/sys/__nostk.s line 1
- in /usr/src/lib/libc/pdp/sys/__open.s line 1
- in /usr/src/lib/libc/pdp/sys/__phys.s line 1
- in /usr/src/lib/libc/pdp/sys/__profil.s line 1
- in /usr/src/lib/libc/pdp/sys/__pselect.s line 1
- in /usr/src/lib/libc/pdp/sys/__qquota.s line 1
- in /usr/src/lib/libc/pdp/sys/__read.s line 1
- in /usr/src/lib/libc/pdp/sys/__readlink.s line 1
- in /usr/src/lib/libc/pdp/sys/__readv.s line 1
- in /usr/src/lib/libc/pdp/sys/__reboot.s line 1
- in /usr/src/lib/libc/pdp/sys/__recv.s line 1
- in /usr/src/lib/libc/pdp/sys/__recvfrom.s line 1
- in /usr/src/lib/libc/pdp/sys/__recvmsg.s line 1
- in /usr/src/lib/libc/pdp/sys/__rename.s line 1
- in /usr/src/lib/libc/pdp/sys/__rmdir.s line 1
- in /usr/src/lib/libc/pdp/sys/__select.s line 1
- in /usr/src/lib/libc/pdp/sys/__send.s line 1
- in /usr/src/lib/libc/pdp/sys/__sendmsg.s line 1
- in /usr/src/lib/libc/pdp/sys/__sendto.s line 1
- in /usr/src/lib/libc/pdp/sys/__setegid.s line 1
- in /usr/src/lib/libc/pdp/sys/__seteuid.s line 1
- in /usr/src/lib/libc/pdp/sys/__setgid.s line 1
- in /usr/src/lib/libc/pdp/sys/__setgroups.s line 1
- in /usr/src/lib/libc/pdp/sys/__setitimer.s line 1
- in /usr/src/lib/libc/pdp/sys/__setpgrp.s line 1
- in /usr/src/lib/libc/pdp/sys/__setpriority.s line 1
- in /usr/src/lib/libc/pdp/sys/__setquota.s line 1
- in /usr/src/lib/libc/pdp/sys/__setrlimit.s line 1
- in /usr/src/lib/libc/pdp/sys/__setsockopt.s line 1
- in /usr/src/lib/libc/pdp/sys/__settimeofday.s line 1
- in /usr/src/lib/libc/pdp/sys/__setuid.s line 1
- in /usr/src/lib/libc/pdp/sys/__shutdown.s line 1
- in /usr/src/lib/libc/pdp/sys/__sigaltstack.s line 1
- in /usr/src/lib/libc/pdp/sys/__sigpending.s line 1
- in /usr/src/lib/libc/pdp/sys/__sigprocmask.s line 1
- in /usr/src/lib/libc/pdp/sys/__sigstack.s line 1
- in /usr/src/lib/libc/pdp/sys/__sigsuspend.s line 1
- in /usr/src/lib/libc/pdp/sys/__sigwait.s line 1
- in /usr/src/lib/libc/pdp/sys/__socket.s line 1
- in /usr/src/lib/libc/pdp/sys/__socketpair.s line 1
- in /usr/src/lib/libc/pdp/sys/__stat.s line 1
- in /usr/src/lib/libc/pdp/sys/__statfs.s line 1
- in /usr/src/lib/libc/pdp/sys/__symlink.s line 1
- in /usr/src/lib/libc/pdp/sys/__sync.s line 1
- in /usr/src/lib/libc/pdp/sys/__truncate.s line 1
- in /usr/src/lib/libc/pdp/sys/__umask.s line 1
- in /usr/src/lib/libc/pdp/sys/__umount.s line 1
- in /usr/src/lib/libc/pdp/sys/__unlink.s line 1
- in /usr/src/lib/libc/pdp/sys/__utimes.s line 1
- in /usr/src/lib/libc/pdp/sys/__vhangup.s line 1
- in /usr/src/lib/libc/pdp/sys/__wait4.s line 1
- in /usr/src/lib/libc/pdp/sys/__write.s line 1
- in /usr/src/lib/libc/pdp/sys/__writev.s line 1
- in /usr/src/lib/libc/pdp/sys/_exit.s line 12
- in /usr/src/lib/libc/pdp/sys/brk.s line 15
- in /usr/src/lib/libc/pdp/sys/execl.s line 15
- in /usr/src/lib/libc/pdp/sys/execle.s line 15
- in /usr/src/lib/libc/pdp/sys/execv.s line 15
- in /usr/src/lib/libc/pdp/sys/fork.s line 15
- in /usr/src/lib/libc/pdp/sys/pipe.s line 15
- in /usr/src/lib/libc/pdp/sys/ptrace.s line 12
- in /usr/src/lib/libc/pdp/sys/sbrk.s line 15
- in /usr/src/lib/libc/pdp/sys/setlogin.s line 41
- in /usr/src/lib/libc/pdp/sys/sigaction.s line 28
- in /usr/src/lib/libc/pdp/sys/sigreturn.s line 26
- in /usr/src/lib/libc/pdp/sys/vfork.s line 22

Last modified: 2000-04-23 Generated: 2016-12-26 | Generated by src2html V0.67 page hit count: 846 |