Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/compat/osf1 cleanup: kill syscall args comments
details: https://anonhg.NetBSD.org/src/rev/d504fa28ef3d
branches: trunk
changeset: 472179:d504fa28ef3d
user: cgd <cgd%NetBSD.org@localhost>
date: Sat Apr 24 07:06:35 1999 +0000
description:
cleanup: kill syscall args comments
diffstat:
sys/compat/osf1/osf1_misc.c | 166 +++++++------------------------------------
1 files changed, 29 insertions(+), 137 deletions(-)
diffs (truncated from 327 to 300 lines):
diff -r 0cd102aad016 -r d504fa28ef3d sys/compat/osf1/osf1_misc.c
--- a/sys/compat/osf1/osf1_misc.c Sat Apr 24 06:59:11 1999 +0000
+++ b/sys/compat/osf1/osf1_misc.c Sat Apr 24 07:06:35 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: osf1_misc.c,v 1.16 1999/04/23 06:15:35 cgd Exp $ */
+/* $NetBSD: osf1_misc.c,v 1.17 1999/04/24 07:06:35 cgd Exp $ */
/*
* Copyright (c) 1994, 1995 Carnegie-Mellon University.
@@ -89,16 +89,8 @@
void *v;
register_t *retval;
{
- struct osf1_sys_open_args /* {
- syscallarg(char *) path;
- syscallarg(int) flags;
- syscallarg(int) mode;
- } */ *uap = v;
- struct sys_open_args /* {
- syscallarg(char *) path;
- syscallarg(int) flags;
- syscallarg(int) mode;
- } */ a;
+ struct osf1_sys_open_args *uap = v;
+ struct sys_open_args a;
#ifdef SYSCALL_DEBUG
char pnbuf[1024];
@@ -121,13 +113,7 @@
register_t *retval;
{
#if 0
- struct osf1_setsysinfo_args /* {
- syscallarg(u_long) op;
- syscallarg(caddr_t) buffer;
- syscallarg(u_long) nbytes;
- syscallarg(caddr_t) arg;
- syscallarg(u_long) flag;
- } */ *uap = v;
+ struct osf1_setsysinfo_args *uap = v;
#endif
return (0);
@@ -143,14 +129,8 @@
void *v;
register_t *retval;
{
- struct osf1_sys_getrlimit_args /* {
- syscallarg(u_int) which;
- syscallarg(struct rlimit *) rlp;
- } */ *uap = v;
- struct sys_getrlimit_args /* {
- syscallarg(u_int) which;
- syscallarg(struct rlimit *) rlp;
- } */ a;
+ struct osf1_sys_getrlimit_args *uap = v;
+ struct sys_getrlimit_args a;
if (SCARG(uap, which) >= OSF1_RLIMIT_NLIMITS)
return (EINVAL);
@@ -172,14 +152,8 @@
void *v;
register_t *retval;
{
- struct osf1_sys_setrlimit_args /* {
- syscallarg(u_int) which;
- syscallarg(struct rlimit *) rlp;
- } */ *uap = v;
- struct sys_setrlimit_args /* {
- syscallarg(u_int) which;
- syscallarg(struct rlimit *) rlp;
- } */ a;
+ struct osf1_sys_setrlimit_args *uap = v;
+ struct sys_setrlimit_args a;
if (SCARG(uap, which) >= OSF1_RLIMIT_NLIMITS)
return (EINVAL);
@@ -211,23 +185,8 @@
void *v;
register_t *retval;
{
- struct osf1_sys_mmap_args /* {
- syscallarg(caddr_t) addr;
- syscallarg(size_t) len;
- syscallarg(int) prot;
- syscallarg(int) flags;
- syscallarg(int) fd;
- syscallarg(off_t) pos;
- } */ *uap = v;
- struct sys_mmap_args /* {
- syscallarg(caddr_t) addr;
- syscallarg(size_t) len;
- syscallarg(int) prot;
- syscallarg(int) flags;
- syscallarg(int) fd;
- syscallarg(long) pad;
- syscallarg(off_t) pos;
- } */ a;
+ struct osf1_sys_mmap_args *uap = v;
+ struct sys_mmap_args a;
SCARG(&a, addr) = SCARG(uap, addr);
SCARG(&a, len) = SCARG(uap, len);
@@ -269,10 +228,7 @@
void *v;
register_t *retval;
{
- struct osf1_sys_usleep_thread_args /* {
- syscallarg(struct timeval *) sleep;
- syscallarg(struct timeval *) slept;
- } */ *uap = v;
+ struct osf1_sys_usleep_thread_args *uap = v;
struct timeval tv, endtv;
u_long ticks;
int error, s;
@@ -330,10 +286,7 @@
void *v;
register_t *retval;
{
- register struct osf1_sys_stat_args /* {
- syscallarg(char *) path;
- syscallarg(struct osf1_stat *) ub;
- } */ *uap = v;
+ register struct osf1_sys_stat_args *uap = v;
struct stat sb;
struct osf1_stat osb;
int error;
@@ -362,10 +315,7 @@
void *v;
register_t *retval;
{
- register struct osf1_sys_lstat_args /* {
- syscallarg(char *) path;
- syscallarg(struct osf1_stat *) ub;
- } */ *uap = v;
+ register struct osf1_sys_lstat_args *uap = v;
struct stat sb;
struct osf1_stat osb;
int error;
@@ -393,10 +343,7 @@
void *v;
register_t *retval;
{
- register struct osf1_sys_fstat_args /* {
- syscallarg(int) fd;
- syscallarg(struct osf1_stat *) sb;
- } */ *uap = v;
+ register struct osf1_sys_fstat_args *uap = v;
register struct filedesc *fdp = p->p_fd;
register struct file *fp;
struct stat ub;
@@ -465,11 +412,7 @@
void *v;
register_t *retval;
{
- struct osf1_sys_mknod_args /* {
- syscallarg(char *) path;
- syscallarg(int) mode;
- syscallarg(int) dev;
- } */ *uap = v;
+ struct osf1_sys_mknod_args *uap = v;
struct sys_mknod_args a;
SCARG(&a, path) = SCARG(uap, path);
@@ -496,11 +439,7 @@
void *v;
register_t *retval;
{
- struct osf1_sys_fcntl_args /* {
- syscallarg(int) fd;
- syscallarg(int) cmd;
- syscallarg(void *) arg;
- } */ *uap = v;
+ struct osf1_sys_fcntl_args *uap = v;
struct sys_fcntl_args a;
long tmp;
int error;
@@ -566,11 +505,7 @@
void *v;
register_t *retval;
{
- register struct osf1_sys_socket_args /* {
- syscallarg(int) domain;
- syscallarg(int) type;
- syscallarg(int) protocol;
- } */ *uap = v;
+ register struct osf1_sys_socket_args *uap = v;
struct sys_socket_args a;
if (SCARG(uap, type) > AF_LINK)
@@ -589,14 +524,7 @@
void *v;
register_t *retval;
{
- register struct osf1_sys_sendto_args /* {
- syscallarg(int) s;
- syscallarg(caddr_t) buf;
- syscallarg(size_t) len;
- syscallarg(int) flags;
- syscallarg(caddr_t) to;
- syscallarg(int) tolen;
- } */ *uap = v;
+ register struct osf1_sys_sendto_args *uap = v;
struct sys_sendto_args a;
if (SCARG(uap, flags) & ~0x7f) /* unsupported flags */
@@ -628,9 +556,7 @@
void *v;
register_t *retval;
{
- struct osf1_sys_reboot_args /* {
- syscallarg(int) opt;
- } */ *uap = v;
+ struct osf1_sys_reboot_args *uap = v;
struct sys_reboot_args a;
if (SCARG(uap, opt) & ~OSF1_RB_ALLFLAGS &&
@@ -661,11 +587,7 @@
void *v;
register_t *retval;
{
- struct osf1_sys_lseek_args /* {
- syscallarg(int) fd;
- syscallarg(off_t) offset;
- syscallarg(int) whence;
- } */ *uap = v;
+ struct osf1_sys_lseek_args *uap = v;
struct sys_lseek_args a;
SCARG(&a, fd) = SCARG(uap, fd);
@@ -696,9 +618,7 @@
void *v;
register_t *retval;
{
- struct osf1_sys_setuid_args /* {
- syscallargs(uid_t) uid;
- } */ *uap = v;
+ struct osf1_sys_setuid_args *uap = v;
register struct pcred *pc = p->p_cred;
uid_t uid = SCARG(uap, uid);
int error;
@@ -732,9 +652,7 @@
void *v;
register_t *retval;
{
- struct osf1_sys_setgid_args /* {
- syscallargs(gid_t) gid;
- } */ *uap = v;
+ struct osf1_sys_setgid_args *uap = v;
register struct pcred *pc = p->p_cred;
gid_t gid = SCARG(uap, gid);
int error;
@@ -768,16 +686,8 @@
void *v;
register_t *retval;
{
- struct osf1_sys_readv_args /* {
- syscallarg(int) fd;
- syscallarg(struct osf1_iovec *) iovp;
- syscallarg(u_int) iovcnt;
- } */ *uap = v;
- struct sys_readv_args /* {
- syscallarg(int) fd;
- syscallarg(struct iovec *) iovp;
- syscallarg(u_int) iovcnt;
- } */ a;
+ struct osf1_sys_readv_args *uap = v;
+ struct sys_readv_args a;
struct osf1_iovec *oio;
struct iovec *nio;
caddr_t sg = stackgap_init(p->p_emul);
@@ -820,16 +730,8 @@
void *v;
register_t *retval;
{
- struct osf1_sys_writev_args /* {
- syscallarg(int) fd;
- syscallarg(struct osf1_iovec *) iovp;
- syscallarg(u_int) iovcnt;
- } */ *uap = v;
- struct sys_writev_args /* {
- syscallarg(int) fd;
- syscallarg(struct iovec *) iovp;
- syscallarg(u_int) iovcnt;
- } */ a;
+ struct osf1_sys_writev_args *uap = v;
+ struct sys_writev_args a;
struct osf1_iovec *oio;
struct iovec *nio;
caddr_t sg = stackgap_init(p->p_emul);
@@ -873,10 +775,7 @@
void *v;
register_t *retval;
{
- struct osf1_sys_truncate_args /* {
- syscallarg(char *) path;
- syscallarg(off_t) length;
- } */ *uap = v;
+ struct osf1_sys_truncate_args *uap = v;
struct sys_truncate_args a;
Home |
Main Index |
Thread Index |
Old Index