4.3BSD-Reno/src/sys/hpux/hpux_syscalls.c

Compare this file to the similar file:
Show the results in this format:

/*
 * Copyright (c) 1988 University of Utah.
 * Copyright (c) 1990 The Regents of the University of California.
 * All rights reserved.
 *
 * This code is derived from software contributed to Berkeley by
 * the Systems Programming Group of the University of Utah Computer
 * Science Department.
 *
 * Redistribution is only permitted until one year after the first shipment
 * of 4.4BSD by the Regents.  Otherwise, redistribution and use in source and
 * binary forms are permitted provided that: (1) source distributions retain
 * this entire copyright notice and comment, and (2) distributions including
 * binaries display the following acknowledgement:  This product includes
 * software developed by the University of California, Berkeley and its
 * contributors'' in the documentation or other materials provided with the
 * distribution and in all advertising materials mentioning features or use
 * of this software.  Neither the name of the University nor the names of
 * its contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 * THIS SOFTWARE IS PROVIDED AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED
 * WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
 *
 * from: Utah $Hdr: hpux_syscalls.c 1.8 89/08/23$
 *
 *	@(#)hpux_syscalls.c	7.1 (Berkeley) 5/8/90
 */

#ifdef HPUXCOMPAT

/*
 * HPUX System call names.
 */
char *hpuxsyscallnames[] = {
	"indir",		/*   0 = indir */
	"exit",			/*   1 = exit */
	"fork",			/*   2 = fork */
	"read",			/*   3 = read */
	"write",		/*   4 = write */
	"open",			/*   5 = open */
	"close",		/*   6 = close */
	"wait",			/*   7 = old wait */
	"creat",		/*   8 = creat */
	"link",			/*   9 = link */
	"unlink",		/*  10 = unlink */
	"execv",		/*  11 = execv */
	"chdir",		/*  12 = chdir */
	"old time",		/*  13 = old time */
	"mknod",		/*  14 = mknod */
	"chmod",		/*  15 = chmod */
	"chown",		/*  16 = chown; now 3 args */
	"old break",		/*  17 = old break */
	"old stat",		/*  18 = old stat */
	"lseek",		/*  19 = lseek */
	"getpid",		/*  20 = getpid */
	"mount",		/*  21 = mount */
	"umount",		/*  22 = umount */
	"old setuid",		/*  23 = old setuid */
	"getuid",		/*  24 = getuid */
	"old stime",		/*  25 = old stime */
	"ptrace",		/*  26 = ptrace */
	"old alarm",		/*  27 = old alarm */
	"old fstat",		/*  28 = old fstat */
	"old pause",		/*  29 = old pause */
	"old utime",		/*  30 = old utime */
	"old stty",		/*  31 = old stty */
	"old gtty",		/*  32 = old gtty */
	"access",		/*  33 = access */
	"old nice",		/*  34 = old nice */
	"old ftime",		/*  35 = old ftime */
	"sync",			/*  36 = sync */
	"kill",			/*  37 = kill */
	"stat",			/*  38 = stat */
	"old setpgrp",		/*  39 = old setpgrp */
	"lstat",		/*  40 = lstat */
	"dup",			/*  41 = dup */
	"pipe",			/*  42 = pipe */
	"old times",		/*  43 = old times */
	"profil",		/*  44 = profil */
	"ki_syscall",		/*  45 = ki_syscall */
	"old setgid",		/*  46 = old setgid */
	"getgid",		/*  47 = getgid */
	"old signal",		/*  48 = old sig */
	"#49",			/*  49 = reserved for USG */
	"#50",			/*  50 = reserved for USG */
	"acct",			/*  51 = turn acct off/on */
	"old phys - nosys",	/*  52 = old set phys addr */
	"old lock - nosys",	/*  53 = old lock in core */
	"ioctl",		/*  54 = ioctl */
	"reboot",		/*  55 = reboot */
	"old mpx - nosys",	/*  56 = old mpxchan */
	"uname",		/*  57 = uname */
	"readlink",		/*  58 = readlink */
	"execve",		/*  59 = execve */
	"umask",		/*  60 = umask */
	"chroot",		/*  61 = chroot */
	"fcntl",		/*  62 = fcntl */
	"ulimit",		/*  63 = ulimit */
	"#64",			/*  64 = nosys */
	"#65",			/*  65 = nosys */
	"vfork",		/*  66 = vfork */
	"old vread - read",	/*  67 = old vread */
	"old vwrite - write",	/*  68 = old vwrite */
	"#69",			/*  69 = nosys */
	"#70",			/*  70 = nosys */
	"#71",			/*  71 = nosys */
	"#72",			/*  72 = nosys */
	"#73",			/*  73 = nosys */
	"mprotect",		/*  74 = mprotect */
	"#75",			/*  75 = nosys */
	"#76",			/*  76 = nosys */
	"#77",			/*  77 = nosys */
	"#78",			/*  78 = nosys */
	"getgroups",		/*  79 = getgroups */
	"setgroups",		/*  80 = setgroups */
	"getpgrp2",		/*  81 = getpgrp2 */
	"setpgrp2",		/*  82 = setpgrp2 */
	"setitimer",		/*  83 = setitimer */
	"wait3",		/*  84 = wait3 */
	"swapon",		/*  85 = swapon */
	"getitimer",		/*  86 = getitimer */
	"#87",			/*  87 = nosys */
	"#88",			/*  88 = nosys */
	"#89",			/*  89 = nosys */
	"dup2",			/*  90 = dup2 */
	"#91",			/*  91 = nosys */
	"fstat",		/*  92 = fstat */
	"select",		/*  93 = select */
	"#94",			/*  94 = nosys */
	"fsync",		/*  95 = fsync */
	"#96",			/*  96 = nosys */
	"#97",			/*  97 = nosys */
	"#98",			/*  98 = nosys */
	"#99",			/*  99 = nosys */
	"#100",			/* 100 = nosys */
	"#101",			/* 101 = nosys */
	"#102",			/* 102 = nosys */
	"sigreturn",		/* 103 = BSD sigreturn */
	"#104",			/* 104 = nosys */
	"#105",			/* 105 = nosys */
	"#106",			/* 106 = nosys */
	"#107",			/* 107 = nosys */
	"sigvec",		/* 108 = sigvec */
	"sigblock",		/* 109 = sigblock */
	"sigsetmask",		/* 110 = sigsetmask */
	"sigpause",		/* 111 = sigpause */
	"sigstack",		/* 112 = sigstack */
	"#113",			/* 113 = nosys */
	"#114",			/* 114 = nosys */
	"#115",			/* 115 = nosys */
	"gettimeofday",		/* 116 = gettimeofday */
	"#117",			/* 117 = nosys */
	"#118",			/* 118 = nosys */
	"hpib_io_stub",		/* 119 = hpib_io_stub */
	"readv",		/* 120 = readv */
	"writev",		/* 121 = writev */
	"settimeofday",		/* 122 = settimeofday */
	"fchown",		/* 123 = fchown */
	"fchmod",		/* 124 = fchmod */
	"#125",			/* 125 = nosys */
	"setresuid",		/* 126 = setresuid */
	"setresgid",		/* 127 = setresgid */
	"rename",		/* 128 = rename */
	"truncate",		/* 129 = truncate */
	"ftruncate",		/* 130 = ftruncate */
	"#131",			/* 131 = nosys */
	"sysconf",		/* 132 = sysconf */
	"#133",			/* 133 = nosys */
	"#134",			/* 134 = nosys */
	"#135",			/* 135 = nosys */
	"mkdir",		/* 136 = mkdir */
	"rmdir",		/* 137 = rmdir */
	"utimes",		/* 138 = utimes */
	"#139",			/* 139 = nosys */
	"#140",			/* 140 = nosys */
	"#141",			/* 141 = nosys */
	"#142",			/* 142 = nosys */
	"#143",			/* 143 = nosys */
	"#144",			/* 144 = nosys */
	"#145",			/* 145 = nosys */
	"#146",			/* 146 = nosys */
	"#147",			/* 147 = nosys */
	"#148",			/* 148 = nosys */
	"#149",			/* 149 = nosys */
	"#150",			/* 150 = nosys */
	/*
	 * HPUX specific syscalls
	 */
	"privgrp",			/* 151 = privgrp */
	"rtprio",			/* 152 = rtprio */
	"plock",			/* 153 = plock */
	"netioctl",			/* 154 = netioctl */
	"lockf",			/* 155 = lockf */
	"semget",			/* 156 = semget */
	"semctl",			/* 157 = semctl */
	"semop",			/* 158 = semop */
	"msgget",			/* 159 = msgget */
	"msgctl",			/* 160 = msgctl */
	"msgsnd",			/* 161 = msgsnd */
	"msgrcv",			/* 162 = msgrcv */
	"shmget",			/* 163 = shmget */
	"shmctl",			/* 164 = shmctl */
	"shmat",			/* 165 = shmat */
	"shmdt",			/* 166 = shmdt */
	"m68020_advise",		/* 167 = m68020_advise */
	"#168",				/* 168 = nosys */
	"cluster",			/* 169 = cluster */
	"mkrnod",			/* 170 = mkrnod */
	"#171",				/* 171 = nosys */
	"#172",				/* 172 = nosys */
	"#173",				/* 173 = nosys */
	"getcontext",			/* 174 = getcontext */
	"#175",				/* 175 = nosys */
	"#176",				/* 176 = nosys */
	"#177",				/* 177 = nosys */
	"lsync",			/* 178 = lsync */
	"#179",				/* 179 = nosys */
	"mysite",			/* 180 = mysite */
	"returnzero",			/* 181 = returnzero */
	"#182",				/* 182 = nosys */
	"#183",				/* 183 = nosys */
	"#184",				/* 184 = nosys */
	"#185",				/* 185 = nosys */
	"setacl",			/* 186 = setacl */
	"fsetacl",			/* 187 = fsetacl */
	"getacl",			/* 188 = getacl */
	"fgetacl",			/* 189 = fgetacl */
	"getaccess",			/* 190 = getaccess */
	"getaudid",			/* 191 = getaudid */
	"setaudid",			/* 192 = setaudid */
	"getaudproc",			/* 193 = getaudproc */
	"setaudproc",			/* 194 = setaudproc */
	"getevent",			/* 195 = getevent */
	"setevent",			/* 196 = setevent */
	"audwrite",			/* 197 = audwrite */
	"audswitch",			/* 198 = audswitch */
	"audctl",			/* 199 = audctl */
	"waitpid",			/* 200 = waitpid */
	"#201",				/* 201 = nosys */
	"netioctl",			/* 202 = netioctl */
	"#203",				/* 203 = nosys */
	"#204",				/* 204 = nosys */
	"#205",				/* 205 = nosys */
	"#206",				/* 206 = nosys */
	"#207",				/* 207 = nosys */
	"#208",				/* 208 = nosys */
	"#209",				/* 209 = nosys */
	"#210",				/* 210 = nosys */
	"#211",				/* 211 = nosys */
	"#212",				/* 212 = nosys */
	"#213",				/* 213 = nosys */
	"#214",				/* 214 = nosys */
	"#215",				/* 215 = nosys */
	"#216",				/* 216 = nosys */
	"#217",				/* 217 = nosys */
	"#218",				/* 218 = nosys */
	"#219",				/* 219 = nosys */
	"#220",				/* 220 = nosys */
	"#221",				/* 221 = nosys */
	"#222",				/* 222 = nosys */
	"#223",				/* 223 = nosys */
	"#224",				/* 224 = nosys */
	"pathconf",			/* 225 = pathconf */
	"fpathconf",			/* 226 = fpathconf */
	"#227",				/* 227 = nosys */
	"#228",				/* 228 = nosys */
	"async_daemon",			/* 229 = aync_daemon */
	"nfs_fcntl",			/* 230 = nfs_fcntl */
	"getdirentries",		/* 231 = getdirentries */
	"getdomainname",		/* 232 = getdomainname */
	"nfs_getfh",			/* 233 = nfs_getfh */
	"vfsmount",			/* 234 = vfsmount */
	"nfs_svc",			/* 235 = nfs_svc */
	"fstatfs",			/* 236 = setdomainname */
	"statfs",			/* 237 = statfs */
	"fstatfs",			/* 238 = fstatfs */
	"sigaction",			/* 239 = sigaction */
	"sigprocmask",			/* 240 = sigprocmask */
	"sigpending",			/* 241 = sigpending */
	"sigsuspend",			/* 242 = sigsuspend */
};

char *hpuxbsdipcnames[] = {
	"socket",
	"listen",
	"bind",
	"accept",
	"connect",
	"recv",
	"send",
	"shutdown",
	"getsockname",
	"setsockopt",
	"sendto",
	"recvfrom",
	"getpeername",
	"0x3FB",
	"0x3FC",
	"0x3FD",
	"0x3FE",
	"0x3FF",
	"0x400",
	"0x401",
	"0x402",
	"0x403",
	"0x404",
	"0x405",
	"0x406",
	"0x407",
	"0x408",
	"0x409",
	"0x40A",
	"getsockopt",
	"0x40C",
	"0x40D"
};
#endif