[BACK]Return to hpux_syscallargs.h CVS log [TXT][DIR] Up to [local] / sys / compat / hpux / hppa

Annotation of sys/compat/hpux/hppa/hpux_syscallargs.h, Revision 1.1.1.1

1.1       nbrk        1: /*     $OpenBSD: hpux_syscallargs.h,v 1.8 2004/09/19 22:04:49 mickey Exp $     */
                      2:
                      3: /*
                      4:  * System call argument lists.
                      5:  *
                      6:  * DO NOT EDIT-- this file is automatically generated.
                      7:  * created from        OpenBSD: syscalls.master,v 1.8 2004/09/19 22:04:15 mickey Exp
                      8:  */
                      9:
                     10: #ifdef syscallarg
                     11: #undef syscallarg
                     12: #endif
                     13:
                     14: #define        syscallarg(x)                                                   \
                     15:        union {                                                         \
                     16:                register_t pad;                                         \
                     17:                struct { x datum; } le;                                 \
                     18:                struct {                                                \
                     19:                        int8_t pad[ (sizeof (register_t) < sizeof (x))  \
                     20:                                ? 0                                     \
                     21:                                : sizeof (register_t) - sizeof (x)];    \
                     22:                        x datum;                                        \
                     23:                } be;                                                   \
                     24:        }
                     25:
                     26: struct hpux_sys_read_args {
                     27:        syscallarg(int) fd;
                     28:        syscallarg(char *) buf;
                     29:        syscallarg(u_int) nbyte;
                     30: };
                     31:
                     32: struct hpux_sys_write_args {
                     33:        syscallarg(int) fd;
                     34:        syscallarg(char *) buf;
                     35:        syscallarg(u_int) nbyte;
                     36: };
                     37:
                     38: struct hpux_sys_open_args {
                     39:        syscallarg(char *) path;
                     40:        syscallarg(int) flags;
                     41:        syscallarg(int) mode;
                     42: };
                     43:
                     44: struct hpux_sys_wait_args {
                     45:        syscallarg(int *) status;
                     46: };
                     47:
                     48: struct hpux_sys_creat_args {
                     49:        syscallarg(char *) path;
                     50:        syscallarg(int) mode;
                     51: };
                     52:
                     53: struct hpux_sys_unlink_args {
                     54:        syscallarg(char *) path;
                     55: };
                     56:
                     57: struct hpux_sys_execv_args {
                     58:        syscallarg(char *) path;
                     59:        syscallarg(char **) argp;
                     60: };
                     61:
                     62: struct hpux_sys_chdir_args {
                     63:        syscallarg(char *) path;
                     64: };
                     65:
                     66: struct hpux_sys_time_6x_args {
                     67:        syscallarg(time_t *) t;
                     68: };
                     69:
                     70: struct hpux_sys_mknod_args {
                     71:        syscallarg(char *) path;
                     72:        syscallarg(int) mode;
                     73:        syscallarg(int) dev;
                     74: };
                     75:
                     76: struct hpux_sys_chmod_args {
                     77:        syscallarg(char *) path;
                     78:        syscallarg(int) mode;
                     79: };
                     80:
                     81: struct hpux_sys_chown_args {
                     82:        syscallarg(char *) path;
                     83:        syscallarg(int) uid;
                     84:        syscallarg(int) gid;
                     85: };
                     86:
                     87: struct hpux_sys_stime_6x_args {
                     88:        syscallarg(int) time;
                     89: };
                     90:
                     91: struct hpux_sys_ptrace_args {
                     92:        syscallarg(int) req;
                     93:        syscallarg(int) pid;
                     94:        syscallarg(int *) addr;
                     95:        syscallarg(int) data;
                     96: };
                     97:
                     98: struct hpux_sys_alarm_6x_args {
                     99:        syscallarg(int) deltat;
                    100: };
                    101:
                    102: struct hpux_sys_utime_6x_args {
                    103:        syscallarg(char *) fname;
                    104:        syscallarg(time_t *) tptr;
                    105: };
                    106:
                    107: struct hpux_sys_stty_6x_args {
                    108:        syscallarg(int) fd;
                    109:        syscallarg(caddr_t) arg;
                    110: };
                    111:
                    112: struct hpux_sys_gtty_6x_args {
                    113:        syscallarg(int) fd;
                    114:        syscallarg(caddr_t) arg;
                    115: };
                    116:
                    117: struct hpux_sys_access_args {
                    118:        syscallarg(char *) path;
                    119:        syscallarg(int) flags;
                    120: };
                    121:
                    122: struct hpux_sys_nice_6x_args {
                    123:        syscallarg(int) nval;
                    124: };
                    125:
                    126: struct hpux_sys_ftime_6x_args {
                    127:        syscallarg(struct hpux_timeb *) tp;
                    128: };
                    129:
                    130: struct hpux_sys_kill_args {
                    131:        syscallarg(pid_t) pid;
                    132:        syscallarg(int) signo;
                    133: };
                    134:
                    135: struct hpux_sys_stat_args {
                    136:        syscallarg(char *) path;
                    137:        syscallarg(struct hpux_stat *) sb;
                    138: };
                    139:
                    140: struct hpux_sys_lstat_args {
                    141:        syscallarg(char *) path;
                    142:        syscallarg(struct hpux_stat *) sb;
                    143: };
                    144:
                    145: struct hpux_sys_times_6x_args {
                    146:        syscallarg(struct tms *) tms;
                    147: };
                    148:
                    149: struct hpux_sys_ioctl_args {
                    150:        syscallarg(int) fd;
                    151:        syscallarg(int) com;
                    152:        syscallarg(caddr_t) data;
                    153: };
                    154:
                    155: struct hpux_sys_symlink_args {
                    156:        syscallarg(char *) path;
                    157:        syscallarg(char *) link;
                    158: };
                    159:
                    160: struct hpux_sys_utssys_args {
                    161:        syscallarg(struct hpux_utsname *) uts;
                    162:        syscallarg(int) dev;
                    163:        syscallarg(int) request;
                    164: };
                    165:
                    166: struct hpux_sys_readlink_args {
                    167:        syscallarg(char *) path;
                    168:        syscallarg(char *) buf;
                    169:        syscallarg(int) count;
                    170: };
                    171:
                    172: struct hpux_sys_execve_args {
                    173:        syscallarg(char *) path;
                    174:        syscallarg(char **) argp;
                    175:        syscallarg(char **) envp;
                    176: };
                    177:
                    178: struct hpux_sys_fcntl_args {
                    179:        syscallarg(int) fd;
                    180:        syscallarg(int) cmd;
                    181:        syscallarg(int) arg;
                    182: };
                    183:
                    184: struct hpux_sys_ulimit_args {
                    185:        syscallarg(int) cmd;
                    186:        syscallarg(int) newlimit;
                    187: };
                    188:
                    189: struct hpux_sys_mmap_args {
                    190:        syscallarg(caddr_t) addr;
                    191:        syscallarg(size_t) len;
                    192:        syscallarg(int) prot;
                    193:        syscallarg(int) flags;
                    194:        syscallarg(int) fd;
                    195:        syscallarg(long) pos;
                    196: };
                    197:
                    198: struct hpux_sys_getpgrp2_args {
                    199:        syscallarg(pid_t) pid;
                    200: };
                    201:
                    202: struct hpux_sys_setpgrp2_args {
                    203:        syscallarg(pid_t) pid;
                    204:        syscallarg(pid_t) pgid;
                    205: };
                    206:
                    207: struct hpux_sys_wait3_args {
                    208:        syscallarg(int *) status;
                    209:        syscallarg(int) options;
                    210:        syscallarg(int) rusage;
                    211: };
                    212:
                    213: struct hpux_sys_fstat_args {
                    214:        syscallarg(int) fd;
                    215:        syscallarg(struct hpux_stat *) sb;
                    216: };
                    217:
                    218: struct hpux_sys_sigvec_args {
                    219:        syscallarg(int) signo;
                    220:        syscallarg(struct sigvec *) nsv;
                    221:        syscallarg(struct sigvec *) osv;
                    222: };
                    223:
                    224: struct hpux_sys_sigblock_args {
                    225:        syscallarg(int) mask;
                    226: };
                    227:
                    228: struct hpux_sys_sigsetmask_args {
                    229:        syscallarg(int) mask;
                    230: };
                    231:
                    232: struct hpux_sys_sigpause_args {
                    233:        syscallarg(int) mask;
                    234: };
                    235:
                    236: struct hpux_sys_readv_args {
                    237:        syscallarg(int) fd;
                    238:        syscallarg(struct iovec *) iovp;
                    239:        syscallarg(u_int) iovcnt;
                    240: };
                    241:
                    242: struct hpux_sys_writev_args {
                    243:        syscallarg(int) fd;
                    244:        syscallarg(struct iovec *) iovp;
                    245:        syscallarg(u_int) iovcnt;
                    246: };
                    247:
                    248: struct hpux_sys_rename_args {
                    249:        syscallarg(char *) from;
                    250:        syscallarg(char *) to;
                    251: };
                    252:
                    253: struct hpux_sys_truncate_args {
                    254:        syscallarg(char *) path;
                    255:        syscallarg(long) length;
                    256: };
                    257:
                    258: struct hpux_sys_sysconf_args {
                    259:        syscallarg(int) name;
                    260: };
                    261:
                    262: struct hpux_sys_mkdir_args {
                    263:        syscallarg(char *) path;
                    264:        syscallarg(int) mode;
                    265: };
                    266:
                    267: struct hpux_sys_rmdir_args {
                    268:        syscallarg(char *) path;
                    269: };
                    270:
                    271: struct hpux_sys_getrlimit_args {
                    272:        syscallarg(u_int) which;
                    273:        syscallarg(struct ogetrlimit *) rlp;
                    274: };
                    275:
                    276: struct hpux_sys_setrlimit_args {
                    277:        syscallarg(u_int) which;
                    278:        syscallarg(struct ogetrlimit *) rlp;
                    279: };
                    280:
                    281: struct hpux_sys_rtprio_args {
                    282:        syscallarg(pid_t) pid;
                    283:        syscallarg(int) prio;
                    284: };
                    285:
                    286: struct hpux_sys_lockf_args {
                    287:        syscallarg(int) fd;
                    288:        syscallarg(int) func;
                    289:        syscallarg(long) size;
                    290: };
                    291:
                    292: struct hpux_sys_shmctl_args {
                    293:        syscallarg(int) shmid;
                    294:        syscallarg(int) cmd;
                    295:        syscallarg(caddr_t) buf;
                    296: };
                    297:
                    298: struct hpux_sys_getcontext_args {
                    299:        syscallarg(char *) buf;
                    300:        syscallarg(int) len;
                    301: };
                    302:
                    303: struct hpux_sys_sigprocmask_args {
                    304:        syscallarg(int) how;
                    305:        syscallarg(hpux_sigset_t *) set;
                    306:        syscallarg(hpux_sigset_t *) oset;
                    307: };
                    308:
                    309: struct hpux_sys_sigpending_args {
                    310:        syscallarg(hpux_sigset_t *) set;
                    311: };
                    312:
                    313: struct hpux_sys_sigsuspend_args {
                    314:        syscallarg(hpux_sigset_t *) set;
                    315: };
                    316:
                    317: struct hpux_sys_sigaction_args {
                    318:        syscallarg(int) signo;
                    319:        syscallarg(struct hpux_sigaction *) nsa;
                    320:        syscallarg(struct hpux_sigaction *) osa;
                    321: };
                    322:
                    323: struct hpux_sys_waitpid_args {
                    324:        syscallarg(pid_t) pid;
                    325:        syscallarg(int *) status;
                    326:        syscallarg(int) options;
                    327:        syscallarg(struct rusage *) rusage;
                    328: };
                    329:
                    330: struct hpux_sigsetreturn_args {
                    331:        syscallarg(caddr_t) addr;
                    332:        syscallarg(int) cookie;
                    333:        syscallarg(int) len;
                    334: };
                    335:
                    336: struct hpux_sys_nshmctl_args {
                    337:        syscallarg(int) shmid;
                    338:        syscallarg(int) cmd;
                    339:        syscallarg(caddr_t) buf;
                    340: };
                    341:
                    342: struct hpux_sys_sigaltstack_args {
                    343:        syscallarg(const struct hpux_sigaltstack *) nss;
                    344:        syscallarg(struct hpux_sigaltstack *) oss;
                    345: };
                    346:
                    347: /*
                    348:  * System call prototypes.
                    349:  */
                    350:
                    351: int    sys_nosys(struct proc *, void *, register_t *);
                    352: int    sys_exit(struct proc *, void *, register_t *);
                    353: int    hpux_sys_fork(struct proc *, void *, register_t *);
                    354: int    hpux_sys_read(struct proc *, void *, register_t *);
                    355: int    hpux_sys_write(struct proc *, void *, register_t *);
                    356: int    hpux_sys_open(struct proc *, void *, register_t *);
                    357: int    sys_close(struct proc *, void *, register_t *);
                    358: int    hpux_sys_wait(struct proc *, void *, register_t *);
                    359: int    hpux_sys_creat(struct proc *, void *, register_t *);
                    360: int    sys_link(struct proc *, void *, register_t *);
                    361: int    hpux_sys_unlink(struct proc *, void *, register_t *);
                    362: int    hpux_sys_execv(struct proc *, void *, register_t *);
                    363: int    hpux_sys_chdir(struct proc *, void *, register_t *);
                    364: int    hpux_sys_time_6x(struct proc *, void *, register_t *);
                    365: int    hpux_sys_mknod(struct proc *, void *, register_t *);
                    366: int    hpux_sys_chmod(struct proc *, void *, register_t *);
                    367: int    hpux_sys_chown(struct proc *, void *, register_t *);
                    368: int    sys_obreak(struct proc *, void *, register_t *);
                    369: int    compat_43_sys_lseek(struct proc *, void *, register_t *);
                    370: int    sys_getpid(struct proc *, void *, register_t *);
                    371: int    sys_setuid(struct proc *, void *, register_t *);
                    372: int    sys_getuid(struct proc *, void *, register_t *);
                    373: int    hpux_sys_stime_6x(struct proc *, void *, register_t *);
                    374: #ifdef PTRACE
                    375: int    hpux_sys_ptrace(struct proc *, void *, register_t *);
                    376: #else
                    377: #endif
                    378: int    hpux_sys_alarm_6x(struct proc *, void *, register_t *);
                    379: int    hpux_sys_pause_6x(struct proc *, void *, register_t *);
                    380: int    hpux_sys_utime_6x(struct proc *, void *, register_t *);
                    381: int    hpux_sys_stty_6x(struct proc *, void *, register_t *);
                    382: int    hpux_sys_gtty_6x(struct proc *, void *, register_t *);
                    383: int    hpux_sys_access(struct proc *, void *, register_t *);
                    384: int    hpux_sys_nice_6x(struct proc *, void *, register_t *);
                    385: int    hpux_sys_ftime_6x(struct proc *, void *, register_t *);
                    386: int    sys_sync(struct proc *, void *, register_t *);
                    387: int    hpux_sys_kill(struct proc *, void *, register_t *);
                    388: int    hpux_sys_stat(struct proc *, void *, register_t *);
                    389: int    hpux_sys_setpgrp_6x(struct proc *, void *, register_t *);
                    390: int    hpux_sys_lstat(struct proc *, void *, register_t *);
                    391: int    sys_dup(struct proc *, void *, register_t *);
                    392: int    sys_opipe(struct proc *, void *, register_t *);
                    393: int    hpux_sys_times_6x(struct proc *, void *, register_t *);
                    394: int    sys_profil(struct proc *, void *, register_t *);
                    395: int    sys_setgid(struct proc *, void *, register_t *);
                    396: int    sys_getgid(struct proc *, void *, register_t *);
                    397: int    hpux_sys_ioctl(struct proc *, void *, register_t *);
                    398: int    hpux_sys_symlink(struct proc *, void *, register_t *);
                    399: int    hpux_sys_utssys(struct proc *, void *, register_t *);
                    400: int    hpux_sys_readlink(struct proc *, void *, register_t *);
                    401: int    hpux_sys_execve(struct proc *, void *, register_t *);
                    402: int    sys_umask(struct proc *, void *, register_t *);
                    403: int    sys_chroot(struct proc *, void *, register_t *);
                    404: int    hpux_sys_fcntl(struct proc *, void *, register_t *);
                    405: int    hpux_sys_ulimit(struct proc *, void *, register_t *);
                    406: int    hpux_sys_vfork(struct proc *, void *, register_t *);
                    407: int    hpux_sys_mmap(struct proc *, void *, register_t *);
                    408: int    sys_munmap(struct proc *, void *, register_t *);
                    409: int    sys_mprotect(struct proc *, void *, register_t *);
                    410: int    sys_madvise(struct proc *, void *, register_t *);
                    411: int    sys_getgroups(struct proc *, void *, register_t *);
                    412: int    sys_setgroups(struct proc *, void *, register_t *);
                    413: int    hpux_sys_getpgrp2(struct proc *, void *, register_t *);
                    414: int    hpux_sys_setpgrp2(struct proc *, void *, register_t *);
                    415: int    sys_setitimer(struct proc *, void *, register_t *);
                    416: int    hpux_sys_wait3(struct proc *, void *, register_t *);
                    417: int    sys_getitimer(struct proc *, void *, register_t *);
                    418: int    sys_dup2(struct proc *, void *, register_t *);
                    419: int    hpux_sys_fstat(struct proc *, void *, register_t *);
                    420: int    sys_select(struct proc *, void *, register_t *);
                    421: int    sys_fsync(struct proc *, void *, register_t *);
                    422: int    sys_setpriority(struct proc *, void *, register_t *);
                    423: int    sys_getpriority(struct proc *, void *, register_t *);
                    424: int    hpux_sys_sigvec(struct proc *, void *, register_t *);
                    425: int    hpux_sys_sigblock(struct proc *, void *, register_t *);
                    426: int    hpux_sys_sigsetmask(struct proc *, void *, register_t *);
                    427: int    hpux_sys_sigpause(struct proc *, void *, register_t *);
                    428: int    compat_43_sys_sigstack(struct proc *, void *, register_t *);
                    429: int    sys_gettimeofday(struct proc *, void *, register_t *);
                    430: int    hpux_sys_readv(struct proc *, void *, register_t *);
                    431: int    hpux_sys_writev(struct proc *, void *, register_t *);
                    432: int    sys_settimeofday(struct proc *, void *, register_t *);
                    433: int    sys_fchown(struct proc *, void *, register_t *);
                    434: int    sys_fchmod(struct proc *, void *, register_t *);
                    435: int    sys_setresuid(struct proc *, void *, register_t *);
                    436: int    sys_setresgid(struct proc *, void *, register_t *);
                    437: int    hpux_sys_rename(struct proc *, void *, register_t *);
                    438: int    hpux_sys_truncate(struct proc *, void *, register_t *);
                    439: int    compat_43_sys_ftruncate(struct proc *, void *, register_t *);
                    440: int    hpux_sys_sysconf(struct proc *, void *, register_t *);
                    441: int    hpux_sys_mkdir(struct proc *, void *, register_t *);
                    442: int    hpux_sys_rmdir(struct proc *, void *, register_t *);
                    443: int    hpux_sys_getrlimit(struct proc *, void *, register_t *);
                    444: int    hpux_sys_setrlimit(struct proc *, void *, register_t *);
                    445: int    hpux_sys_rtprio(struct proc *, void *, register_t *);
                    446: int    hpux_sys_lockf(struct proc *, void *, register_t *);
                    447: #ifdef SYSVSEM
                    448: int    sys_semget(struct proc *, void *, register_t *);
                    449: int    sys___semctl(struct proc *, void *, register_t *);
                    450: int    sys_semop(struct proc *, void *, register_t *);
                    451: #else
                    452: #endif
                    453: #ifdef SYSVMSG
                    454: int    sys_msgget(struct proc *, void *, register_t *);
                    455: int    sys_msgctl(struct proc *, void *, register_t *);
                    456: int    sys_msgsnd(struct proc *, void *, register_t *);
                    457: int    sys_msgrcv(struct proc *, void *, register_t *);
                    458: #else
                    459: #endif
                    460: #ifdef SYSVSHM
                    461: int    sys_shmget(struct proc *, void *, register_t *);
                    462: int    hpux_sys_shmctl(struct proc *, void *, register_t *);
                    463: int    sys_shmat(struct proc *, void *, register_t *);
                    464: int    sys_shmdt(struct proc *, void *, register_t *);
                    465: #else
                    466: #endif
                    467: int    hpux_sys_getcontext(struct proc *, void *, register_t *);
                    468: int    hpux_sys_sigprocmask(struct proc *, void *, register_t *);
                    469: int    hpux_sys_sigpending(struct proc *, void *, register_t *);
                    470: int    hpux_sys_sigsuspend(struct proc *, void *, register_t *);
                    471: int    hpux_sys_sigaction(struct proc *, void *, register_t *);
                    472: int    compat_09_sys_getdomainname(struct proc *, void *, register_t *);
                    473: int    compat_09_sys_setdomainname(struct proc *, void *, register_t *);
                    474: int    compat_43_sys_getdirentries(struct proc *, void *, register_t *);
                    475: int    hpux_sys_waitpid(struct proc *, void *, register_t *);
                    476: int    hpux_sigsetreturn(struct proc *, void *, register_t *);
                    477: int    sys_poll(struct proc *, void *, register_t *);
                    478: int    sys_fchdir(struct proc *, void *, register_t *);
                    479: int    compat_43_sys_accept(struct proc *, void *, register_t *);
                    480: int    sys_bind(struct proc *, void *, register_t *);
                    481: int    sys_connect(struct proc *, void *, register_t *);
                    482: int    sys_getpeername(struct proc *, void *, register_t *);
                    483: int    sys_getsockname(struct proc *, void *, register_t *);
                    484: int    sys_getsockopt(struct proc *, void *, register_t *);
                    485: int    sys_listen(struct proc *, void *, register_t *);
                    486: int    compat_43_sys_recv(struct proc *, void *, register_t *);
                    487: int    compat_43_sys_recvfrom(struct proc *, void *, register_t *);
                    488: int    compat_43_sys_recvmsg(struct proc *, void *, register_t *);
                    489: int    compat_43_sys_send(struct proc *, void *, register_t *);
                    490: int    compat_43_sys_sendmsg(struct proc *, void *, register_t *);
                    491: int    sys_sendto(struct proc *, void *, register_t *);
                    492: int    sys_setsockopt(struct proc *, void *, register_t *);
                    493: int    sys_shutdown(struct proc *, void *, register_t *);
                    494: int    sys_socket(struct proc *, void *, register_t *);
                    495: int    sys_socketpair(struct proc *, void *, register_t *);
                    496: #ifdef SYSVSEM
                    497: int    sys___semctl(struct proc *, void *, register_t *);
                    498: #else
                    499: #endif
                    500: #ifdef SYSVMSG
                    501: int    sys_msgctl(struct proc *, void *, register_t *);
                    502: #else
                    503: #endif
                    504: #ifdef SYSVSHM
                    505: int    hpux_sys_nshmctl(struct proc *, void *, register_t *);
                    506: #else
                    507: #endif
                    508: int    sys_msync(struct proc *, void *, register_t *);
                    509: int    sys_lchown(struct proc *, void *, register_t *);
                    510: int    sys_nanosleep(struct proc *, void *, register_t *);
                    511: int    hpux_sys_sigaltstack(struct proc *, void *, register_t *);
                    512: int    sys_mlock(struct proc *, void *, register_t *);
                    513: int    sys_munlock(struct proc *, void *, register_t *);
                    514: int    sys_mlockall(struct proc *, void *, register_t *);
                    515: int    sys_munlockall(struct proc *, void *, register_t *);

CVSweb