bzero->memset, bcopy->memcpy, bcmp->memcmp
This commit is contained in:
parent
4ffebebb25
commit
e1601dc2ca
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: hpux_compat.c,v 1.39 1998/02/10 17:45:06 kleink Exp $ */
|
||||
/* $NetBSD: hpux_compat.c,v 1.40 1998/08/09 20:37:52 perry Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1988 University of Utah.
|
||||
|
@ -424,7 +424,7 @@ hpux_sys_utssys(p, v, retval)
|
|||
switch (SCARG(uap, request)) {
|
||||
/* uname */
|
||||
case 0:
|
||||
bzero(&ut, sizeof(ut));
|
||||
memset(&ut, 0, sizeof(ut));
|
||||
|
||||
strncpy(ut.sysname, ostype, sizeof(ut.sysname));
|
||||
ut.sysname[sizeof(ut.sysname) - 1] = '\0';
|
||||
|
@ -911,7 +911,7 @@ hpux_sys_ioctl(p, v, retval)
|
|||
* Zero the buffer so the user always
|
||||
* gets back something deterministic.
|
||||
*/
|
||||
bzero(dt, size);
|
||||
memset(dt, 0, size);
|
||||
else if (com&IOC_VOID)
|
||||
*(caddr_t *)dt = SCARG(uap, data);
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: hpux_file.c,v 1.11 1998/02/14 21:13:52 kleink Exp $ */
|
||||
/* $NetBSD: hpux_file.c,v 1.12 1998/08/09 20:37:53 perry Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1996, 1997 The NetBSD Foundation, Inc.
|
||||
|
@ -591,7 +591,7 @@ bsd_to_hpux_stat(sb, hsb)
|
|||
struct hpux_stat *hsb;
|
||||
{
|
||||
|
||||
bzero((caddr_t)hsb, sizeof(struct hpux_stat));
|
||||
memset((caddr_t)hsb, 0, sizeof(struct hpux_stat));
|
||||
hsb->hst_dev = (long)sb->st_dev;
|
||||
hsb->hst_ino = (u_long)sb->st_ino;
|
||||
hsb->hst_mode = (u_short)sb->st_mode;
|
||||
|
@ -628,7 +628,7 @@ bsd_to_hpux_ostat(sb, hsb)
|
|||
struct hpux_ostat *hsb;
|
||||
{
|
||||
|
||||
bzero(hsb, sizeof(struct hpux_ostat));
|
||||
memset(hsb, 0, sizeof(struct hpux_ostat));
|
||||
hsb->hst_dev = (u_short)sb->st_dev;
|
||||
hsb->hst_ino = (u_short)sb->st_ino;
|
||||
hsb->hst_mode = (u_short)sb->st_mode;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: hpux_sig.c,v 1.16 1997/04/01 19:59:02 scottr Exp $ */
|
||||
/* $NetBSD: hpux_sig.c,v 1.17 1998/08/09 20:37:53 perry Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1988 University of Utah.
|
||||
|
@ -221,7 +221,7 @@ hpux_sys_sigprocmask(p, v, retval)
|
|||
* (proc sigmask should not be changed if call fails for any reason)
|
||||
*/
|
||||
if (SCARG(uap, oset)) {
|
||||
bzero((caddr_t)&sigset, sizeof(sigset));
|
||||
memset((caddr_t)&sigset, 0, sizeof(sigset));
|
||||
sigset.sigset[0] = bsdtohpuxmask(p->p_sigmask);
|
||||
if (copyout((caddr_t)&sigset, (caddr_t)SCARG(uap, oset),
|
||||
sizeof(sigset)))
|
||||
|
@ -308,7 +308,7 @@ hpux_sys_sigaction(p, v, retval)
|
|||
sa = &action;
|
||||
if (SCARG(uap, osa)) {
|
||||
sa->sa_handler = ps->ps_sigact[sig];
|
||||
bzero((caddr_t)&sa->sa_mask, sizeof(sa->sa_mask));
|
||||
memset((caddr_t)&sa->sa_mask, 0, sizeof(sa->sa_mask));
|
||||
sa->sa_mask.sigset[0] = bsdtohpuxmask(ps->ps_catchmask[sig]);
|
||||
bit = sigmask(sig);
|
||||
sa->sa_flags = 0;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: hpux_tty.c,v 1.14 1997/04/01 19:59:05 scottr Exp $ */
|
||||
/* $NetBSD: hpux_tty.c,v 1.15 1998/08/09 20:37:53 perry Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1988 University of Utah.
|
||||
|
@ -95,7 +95,7 @@ hpux_termio(fd, com, data, p)
|
|||
*/
|
||||
if ((error = (*ioctlrout)(fp, TIOCGETA, (caddr_t)&tios, p)))
|
||||
break;
|
||||
bzero((char *)&htios, sizeof htios);
|
||||
memset((char *)&htios, 0, sizeof htios);
|
||||
/*
|
||||
* Set iflag.
|
||||
* Same through ICRNL, no BSD equivs for IUCLC, IENQAK
|
||||
|
@ -205,7 +205,7 @@ hpux_termio(fd, com, data, p)
|
|||
htios.c_cc[HPUXVSTART] = tios.c_cc[VSTART];
|
||||
htios.c_cc[HPUXVSTOP] = tios.c_cc[VSTOP];
|
||||
if (newi)
|
||||
bcopy((char *)&htios, data, sizeof htios);
|
||||
memcpy(data, (char *)&htios, sizeof htios);
|
||||
else
|
||||
termiostotermio(&htios, (struct hpux_termio *)data);
|
||||
break;
|
||||
|
@ -224,7 +224,7 @@ hpux_termio(fd, com, data, p)
|
|||
if ((error = (*ioctlrout)(fp, TIOCGETA, (caddr_t)&tios, p)))
|
||||
break;
|
||||
if (newi)
|
||||
bcopy(data, (char *)&htios, sizeof htios);
|
||||
memcpy((char *)&htios, data, sizeof htios);
|
||||
else
|
||||
termiototermios((struct hpux_termio *)data,
|
||||
&htios, &tios);
|
||||
|
@ -387,7 +387,7 @@ termiototermios(tio, tios, bsdtios)
|
|||
{
|
||||
int i;
|
||||
|
||||
bzero((char *)tios, sizeof *tios);
|
||||
memset((char *)tios, 0, sizeof *tios);
|
||||
tios->c_iflag = tio->c_iflag;
|
||||
tios->c_oflag = tio->c_oflag;
|
||||
tios->c_cflag = tio->c_cflag;
|
||||
|
@ -537,7 +537,7 @@ getsettty(p, fdes, com, cmarg)
|
|||
(fp, TIOCHPCL, (caddr_t)0, p);
|
||||
com = TIOCSETP;
|
||||
} else {
|
||||
bzero((caddr_t)&hsb, sizeof hsb);
|
||||
memset((caddr_t)&hsb, 0, sizeof hsb);
|
||||
com = TIOCGETP;
|
||||
}
|
||||
error = (*fp->f_ops->fo_ioctl)(fp, com, (caddr_t)&sb, p);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: ibcs2_exec.c,v 1.16 1998/07/28 21:39:54 thorpej Exp $ */
|
||||
/* $NetBSD: ibcs2_exec.c,v 1.17 1998/08/09 20:37:53 perry Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1994, 1995, 1998 Scott Bartram
|
||||
|
@ -189,7 +189,7 @@ ibcs2_elf32_signature(p, epp, eh)
|
|||
(caddr_t)buf, sizeof(signature) - 1)) != 0)
|
||||
goto out;
|
||||
|
||||
if (bcmp(buf, signature, sizeof(signature) - 1) == 0)
|
||||
if (memcmp(buf, signature, sizeof(signature) - 1) == 0)
|
||||
goto out;
|
||||
else
|
||||
break; /* only one .note section so quit */
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: ibcs2_ioctl.c,v 1.14 1998/03/05 04:36:07 scottb Exp $ */
|
||||
/* $NetBSD: ibcs2_ioctl.c,v 1.15 1998/08/09 20:37:53 perry Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1994, 1995 Scott Bartram
|
||||
|
@ -310,7 +310,7 @@ stios2stio(ts, t)
|
|||
t->c_cflag = ts->c_cflag;
|
||||
t->c_lflag = ts->c_lflag;
|
||||
t->c_line = ts->c_line;
|
||||
bcopy(ts->c_cc, t->c_cc, IBCS2_NCC);
|
||||
memcpy(t->c_cc, ts->c_cc, IBCS2_NCC);
|
||||
}
|
||||
|
||||
static void
|
||||
|
@ -324,7 +324,7 @@ stio2stios(t, ts)
|
|||
ts->c_cflag = t->c_cflag;
|
||||
ts->c_lflag = t->c_lflag;
|
||||
ts->c_line = t->c_line;
|
||||
bcopy(t->c_cc, ts->c_cc, IBCS2_NCC);
|
||||
memcpy(ts->c_cc, t->c_cc, IBCS2_NCC);
|
||||
}
|
||||
|
||||
int
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: ibcs2_misc.c,v 1.37 1998/06/28 01:20:06 scottb Exp $ */
|
||||
/* $NetBSD: ibcs2_misc.c,v 1.38 1998/08/09 20:37:54 perry Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1994, 1995, 1998 Scott Bartram
|
||||
|
@ -309,7 +309,7 @@ ibcs2_sys_mount(p, v, retval)
|
|||
return (error);
|
||||
if (error = copyin(sna.addr, &sain, sizeof sain))
|
||||
return (error);
|
||||
bcopy(&sain, &sa, sizeof sa);
|
||||
memcpy(&sa, &sain, sizeof sa);
|
||||
sa.sa_len = sizeof(sain);
|
||||
SCARG(uap, data) = (caddr_t)STACK_ALLOC();
|
||||
na.addr = (struct sockaddr *)((int)SCARG(uap, data) + sizeof na);
|
||||
|
@ -553,7 +553,7 @@ again:
|
|||
*/
|
||||
idb.ino = (bdp->d_fileno > 0xfffe) ? 0xfffe : bdp->d_fileno;
|
||||
(void)copystr(bdp->d_name, idb.name, 14, &size);
|
||||
bzero(idb.name + size, 14 - size);
|
||||
memset(idb.name + size, 0, 14 - size);
|
||||
error = copyout(&idb, outp, ibcs2_reclen);
|
||||
if (error)
|
||||
goto out;
|
||||
|
@ -1608,7 +1608,7 @@ ibcs2_sys_scoinfo(p, v, retval)
|
|||
sizeof(struct scoutsname));
|
||||
extern char ostype[], machine[], osrelease[];
|
||||
|
||||
bzero(utsp, sizeof(struct scoutsname));
|
||||
memset(utsp, 0, sizeof(struct scoutsname));
|
||||
strncpy(utsp->sysname, ostype, 8);
|
||||
strncpy(utsp->nodename, hostname, 8);
|
||||
strncpy(utsp->release, osrelease, 15);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: ibcs2_signal.c,v 1.8 1996/05/03 17:05:27 christos Exp $ */
|
||||
/* $NetBSD: ibcs2_signal.c,v 1.9 1998/08/09 20:37:54 perry Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1995 Scott Bartram
|
||||
|
@ -46,12 +46,12 @@
|
|||
#include <compat/ibcs2/ibcs2_syscallargs.h>
|
||||
#include <compat/ibcs2/ibcs2_util.h>
|
||||
|
||||
#define sigemptyset(s) bzero((s), sizeof(*(s)))
|
||||
#define sigemptyset(s) memset((s), 0, sizeof(*(s)))
|
||||
#define sigismember(s, n) (*(s) & sigmask(n))
|
||||
#define sigaddset(s, n) (*(s) |= sigmask(n))
|
||||
|
||||
#define ibcs2_sigmask(n) (1 << ((n) - 1))
|
||||
#define ibcs2_sigemptyset(s) bzero((s), sizeof(*(s)))
|
||||
#define ibcs2_sigemptyset(s) memset((s), 0, sizeof(*(s)))
|
||||
#define ibcs2_sigismember(s, n) (*(s) & ibcs2_sigmask(n))
|
||||
#define ibcs2_sigaddset(s, n) (*(s) |= ibcs2_sigmask(n))
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: ibcs2_stat.c,v 1.9 1998/03/05 04:36:08 scottb Exp $ */
|
||||
/* $NetBSD: ibcs2_stat.c,v 1.10 1998/08/09 20:37:54 perry Exp $ */
|
||||
/*
|
||||
* Copyright (c) 1995, 1998 Scott Bartram
|
||||
* All rights reserved.
|
||||
|
@ -61,7 +61,7 @@ bsd_stat2ibcs_stat(st, st4)
|
|||
struct stat *st;
|
||||
struct ibcs2_stat *st4;
|
||||
{
|
||||
bzero(st4, sizeof(*st4));
|
||||
memset(st4, 0, sizeof(*st4));
|
||||
st4->st_dev = (ibcs2_dev_t)st->st_dev;
|
||||
st4->st_ino = (ibcs2_ino_t)st->st_ino;
|
||||
st4->st_mode = (ibcs2_mode_t)st->st_mode;
|
||||
|
@ -86,7 +86,7 @@ cvt_statfs(sp, buf, len)
|
|||
{
|
||||
struct ibcs2_statfs ssfs;
|
||||
|
||||
bzero(&ssfs, sizeof ssfs);
|
||||
memset(&ssfs, 0, sizeof ssfs);
|
||||
ssfs.f_fstyp = 0;
|
||||
ssfs.f_bsize = sp->f_bsize;
|
||||
ssfs.f_frsize = 0;
|
||||
|
@ -107,7 +107,7 @@ cvt_statvfs(sp, buf, len)
|
|||
{
|
||||
struct ibcs2_statvfs ssvfs;
|
||||
|
||||
bzero(&ssvfs, sizeof ssvfs);
|
||||
memset(&ssvfs, 0, sizeof ssvfs);
|
||||
ssvfs.f_frsize = ssvfs.f_bsize = sp->f_bsize;
|
||||
ssvfs.f_blocks = sp->f_blocks;
|
||||
ssvfs.f_bfree = sp->f_bfree;
|
||||
|
@ -338,13 +338,13 @@ ibcs2_sys_utssys(p, v, retval)
|
|||
struct ibcs2_utsname sut;
|
||||
extern char ostype[], machine[], osrelease[];
|
||||
|
||||
bzero(&sut, ibcs2_utsname_len);
|
||||
bcopy(ostype, sut.sysname, sizeof(sut.sysname) - 1);
|
||||
bcopy(hostname, sut.nodename, sizeof(sut.nodename));
|
||||
memset(&sut, 0, ibcs2_utsname_len);
|
||||
memcpy(sut.sysname, ostype, sizeof(sut.sysname) - 1);
|
||||
memcpy(sut.nodename, hostname, sizeof(sut.nodename));
|
||||
sut.nodename[sizeof(sut.nodename)-1] = '\0';
|
||||
bcopy(osrelease, sut.release, sizeof(sut.release) - 1);
|
||||
bcopy("1", sut.version, sizeof(sut.version) - 1);
|
||||
bcopy(machine, sut.machine, sizeof(sut.machine) - 1);
|
||||
memcpy(sut.release, osrelease, sizeof(sut.release) - 1);
|
||||
memcpy(sut.version, "1", sizeof(sut.version) - 1);
|
||||
memcpy(sut.machine, machine, sizeof(sut.machine) - 1);
|
||||
|
||||
return copyout((caddr_t)&sut, (caddr_t)SCARG(uap, a1),
|
||||
ibcs2_utsname_len);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: linux_sigarray.c,v 1.10 1996/04/04 23:51:36 christos Exp $ */
|
||||
/* $NetBSD: linux_sigarray.c,v 1.11 1998/08/09 20:37:54 perry Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1995 Frank van der Linden
|
||||
|
@ -52,12 +52,12 @@
|
|||
#include <compat/linux/linux_syscallargs.h>
|
||||
#include <compat/linux/linux_util.h>
|
||||
|
||||
#define sigemptyset(s) bzero((s), sizeof(*(s)))
|
||||
#define sigemptyset(s) memset((s), 0, sizeof(*(s)))
|
||||
#define sigismember(s, n) (*(s) & sigmask(n))
|
||||
#define sigaddset(s, n) (*(s) |= sigmask(n))
|
||||
|
||||
#define linux_sigmask(n) (1 << ((n) - 1))
|
||||
#define linux_sigemptyset(s) bzero((s), sizeof(*(s)))
|
||||
#define linux_sigemptyset(s) memset((s), 0, sizeof(*(s)))
|
||||
#define linux_sigismember(s, n) (*(s) & linux_sigmask(n))
|
||||
#define linux_sigaddset(s, n) (*(s) |= linux_sigmask(n))
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: linux_exec.c,v 1.27 1998/07/28 21:39:54 thorpej Exp $ */
|
||||
/* $NetBSD: linux_exec.c,v 1.28 1998/08/09 20:37:54 perry Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1995 Frank van der Linden
|
||||
|
@ -413,7 +413,7 @@ linux_elf32_signature(p, epp, eh)
|
|||
/*
|
||||
* error is 0, if the signatures match we are done.
|
||||
*/
|
||||
if (bcmp(buf, signature, sizeof(signature) - 1) == 0)
|
||||
if (memcmp(buf, signature, sizeof(signature) - 1) == 0)
|
||||
goto out;
|
||||
}
|
||||
error = EFTYPE;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: linux_exec_aout.c,v 1.27 1998/07/28 21:39:54 thorpej Exp $ */
|
||||
/* $NetBSD: linux_exec_aout.c,v 1.28 1998/08/09 20:37:54 perry Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1995 Frank van der Linden
|
||||
|
@ -413,7 +413,7 @@ linux_elf32_signature(p, epp, eh)
|
|||
/*
|
||||
* error is 0, if the signatures match we are done.
|
||||
*/
|
||||
if (bcmp(buf, signature, sizeof(signature) - 1) == 0)
|
||||
if (memcmp(buf, signature, sizeof(signature) - 1) == 0)
|
||||
goto out;
|
||||
}
|
||||
error = EFTYPE;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: linux_exec_elf32.c,v 1.27 1998/07/28 21:39:54 thorpej Exp $ */
|
||||
/* $NetBSD: linux_exec_elf32.c,v 1.28 1998/08/09 20:37:54 perry Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1995 Frank van der Linden
|
||||
|
@ -413,7 +413,7 @@ linux_elf32_signature(p, epp, eh)
|
|||
/*
|
||||
* error is 0, if the signatures match we are done.
|
||||
*/
|
||||
if (bcmp(buf, signature, sizeof(signature) - 1) == 0)
|
||||
if (memcmp(buf, signature, sizeof(signature) - 1) == 0)
|
||||
goto out;
|
||||
}
|
||||
error = EFTYPE;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: linux_sig_notalpha.c,v 1.10 1996/04/04 23:51:36 christos Exp $ */
|
||||
/* $NetBSD: linux_sig_notalpha.c,v 1.11 1998/08/09 20:37:54 perry Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1995 Frank van der Linden
|
||||
|
@ -52,12 +52,12 @@
|
|||
#include <compat/linux/linux_syscallargs.h>
|
||||
#include <compat/linux/linux_util.h>
|
||||
|
||||
#define sigemptyset(s) bzero((s), sizeof(*(s)))
|
||||
#define sigemptyset(s) memset((s), 0, sizeof(*(s)))
|
||||
#define sigismember(s, n) (*(s) & sigmask(n))
|
||||
#define sigaddset(s, n) (*(s) |= sigmask(n))
|
||||
|
||||
#define linux_sigmask(n) (1 << ((n) - 1))
|
||||
#define linux_sigemptyset(s) bzero((s), sizeof(*(s)))
|
||||
#define linux_sigemptyset(s) memset((s), 0, sizeof(*(s)))
|
||||
#define linux_sigismember(s, n) (*(s) & linux_sigmask(n))
|
||||
#define linux_sigaddset(s, n) (*(s) |= linux_sigmask(n))
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: linux_sigaction.c,v 1.10 1996/04/04 23:51:36 christos Exp $ */
|
||||
/* $NetBSD: linux_sigaction.c,v 1.11 1998/08/09 20:37:54 perry Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1995 Frank van der Linden
|
||||
|
@ -52,12 +52,12 @@
|
|||
#include <compat/linux/linux_syscallargs.h>
|
||||
#include <compat/linux/linux_util.h>
|
||||
|
||||
#define sigemptyset(s) bzero((s), sizeof(*(s)))
|
||||
#define sigemptyset(s) memset((s), 0, sizeof(*(s)))
|
||||
#define sigismember(s, n) (*(s) & sigmask(n))
|
||||
#define sigaddset(s, n) (*(s) |= sigmask(n))
|
||||
|
||||
#define linux_sigmask(n) (1 << ((n) - 1))
|
||||
#define linux_sigemptyset(s) bzero((s), sizeof(*(s)))
|
||||
#define linux_sigemptyset(s) memset((s), 0, sizeof(*(s)))
|
||||
#define linux_sigismember(s, n) (*(s) & linux_sigmask(n))
|
||||
#define linux_sigaddset(s, n) (*(s) |= linux_sigmask(n))
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: linux_signal.c,v 1.10 1996/04/04 23:51:36 christos Exp $ */
|
||||
/* $NetBSD: linux_signal.c,v 1.11 1998/08/09 20:37:54 perry Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1995 Frank van der Linden
|
||||
|
@ -52,12 +52,12 @@
|
|||
#include <compat/linux/linux_syscallargs.h>
|
||||
#include <compat/linux/linux_util.h>
|
||||
|
||||
#define sigemptyset(s) bzero((s), sizeof(*(s)))
|
||||
#define sigemptyset(s) memset((s), 0, sizeof(*(s)))
|
||||
#define sigismember(s, n) (*(s) & sigmask(n))
|
||||
#define sigaddset(s, n) (*(s) |= sigmask(n))
|
||||
|
||||
#define linux_sigmask(n) (1 << ((n) - 1))
|
||||
#define linux_sigemptyset(s) bzero((s), sizeof(*(s)))
|
||||
#define linux_sigemptyset(s) memset((s), 0, sizeof(*(s)))
|
||||
#define linux_sigismember(s, n) (*(s) & linux_sigmask(n))
|
||||
#define linux_sigaddset(s, n) (*(s) |= linux_sigmask(n))
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: linux_sigarray.c,v 1.10 1996/04/04 23:51:36 christos Exp $ */
|
||||
/* $NetBSD: linux_sigarray.c,v 1.11 1998/08/09 20:37:54 perry Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1995 Frank van der Linden
|
||||
|
@ -52,12 +52,12 @@
|
|||
#include <compat/linux/linux_syscallargs.h>
|
||||
#include <compat/linux/linux_util.h>
|
||||
|
||||
#define sigemptyset(s) bzero((s), sizeof(*(s)))
|
||||
#define sigemptyset(s) memset((s), 0, sizeof(*(s)))
|
||||
#define sigismember(s, n) (*(s) & sigmask(n))
|
||||
#define sigaddset(s, n) (*(s) |= sigmask(n))
|
||||
|
||||
#define linux_sigmask(n) (1 << ((n) - 1))
|
||||
#define linux_sigemptyset(s) bzero((s), sizeof(*(s)))
|
||||
#define linux_sigemptyset(s) memset((s), 0, sizeof(*(s)))
|
||||
#define linux_sigismember(s, n) (*(s) & linux_sigmask(n))
|
||||
#define linux_sigaddset(s, n) (*(s) |= linux_sigmask(n))
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: linux_exec.c,v 1.27 1998/07/28 21:39:54 thorpej Exp $ */
|
||||
/* $NetBSD: linux_exec.c,v 1.28 1998/08/09 20:37:54 perry Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1995 Frank van der Linden
|
||||
|
@ -413,7 +413,7 @@ linux_elf32_signature(p, epp, eh)
|
|||
/*
|
||||
* error is 0, if the signatures match we are done.
|
||||
*/
|
||||
if (bcmp(buf, signature, sizeof(signature) - 1) == 0)
|
||||
if (memcmp(buf, signature, sizeof(signature) - 1) == 0)
|
||||
goto out;
|
||||
}
|
||||
error = EFTYPE;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: linux_signal.c,v 1.10 1996/04/04 23:51:36 christos Exp $ */
|
||||
/* $NetBSD: linux_signal.c,v 1.11 1998/08/09 20:37:54 perry Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1995 Frank van der Linden
|
||||
|
@ -52,12 +52,12 @@
|
|||
#include <compat/linux/linux_syscallargs.h>
|
||||
#include <compat/linux/linux_util.h>
|
||||
|
||||
#define sigemptyset(s) bzero((s), sizeof(*(s)))
|
||||
#define sigemptyset(s) memset((s), 0, sizeof(*(s)))
|
||||
#define sigismember(s, n) (*(s) & sigmask(n))
|
||||
#define sigaddset(s, n) (*(s) |= sigmask(n))
|
||||
|
||||
#define linux_sigmask(n) (1 << ((n) - 1))
|
||||
#define linux_sigemptyset(s) bzero((s), sizeof(*(s)))
|
||||
#define linux_sigemptyset(s) memset((s), 0, sizeof(*(s)))
|
||||
#define linux_sigismember(s, n) (*(s) & linux_sigmask(n))
|
||||
#define linux_sigaddset(s, n) (*(s) |= linux_sigmask(n))
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: linux_sig_notalpha.c,v 1.10 1996/04/04 23:51:36 christos Exp $ */
|
||||
/* $NetBSD: linux_sig_notalpha.c,v 1.11 1998/08/09 20:37:54 perry Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1995 Frank van der Linden
|
||||
|
@ -52,12 +52,12 @@
|
|||
#include <compat/linux/linux_syscallargs.h>
|
||||
#include <compat/linux/linux_util.h>
|
||||
|
||||
#define sigemptyset(s) bzero((s), sizeof(*(s)))
|
||||
#define sigemptyset(s) memset((s), 0, sizeof(*(s)))
|
||||
#define sigismember(s, n) (*(s) & sigmask(n))
|
||||
#define sigaddset(s, n) (*(s) |= sigmask(n))
|
||||
|
||||
#define linux_sigmask(n) (1 << ((n) - 1))
|
||||
#define linux_sigemptyset(s) bzero((s), sizeof(*(s)))
|
||||
#define linux_sigemptyset(s) memset((s), 0, sizeof(*(s)))
|
||||
#define linux_sigismember(s, n) (*(s) & linux_sigmask(n))
|
||||
#define linux_sigaddset(s, n) (*(s) |= linux_sigmask(n))
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: linux_sigaction.c,v 1.10 1996/04/04 23:51:36 christos Exp $ */
|
||||
/* $NetBSD: linux_sigaction.c,v 1.11 1998/08/09 20:37:54 perry Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1995 Frank van der Linden
|
||||
|
@ -52,12 +52,12 @@
|
|||
#include <compat/linux/linux_syscallargs.h>
|
||||
#include <compat/linux/linux_util.h>
|
||||
|
||||
#define sigemptyset(s) bzero((s), sizeof(*(s)))
|
||||
#define sigemptyset(s) memset((s), 0, sizeof(*(s)))
|
||||
#define sigismember(s, n) (*(s) & sigmask(n))
|
||||
#define sigaddset(s, n) (*(s) |= sigmask(n))
|
||||
|
||||
#define linux_sigmask(n) (1 << ((n) - 1))
|
||||
#define linux_sigemptyset(s) bzero((s), sizeof(*(s)))
|
||||
#define linux_sigemptyset(s) memset((s), 0, sizeof(*(s)))
|
||||
#define linux_sigismember(s, n) (*(s) & linux_sigmask(n))
|
||||
#define linux_sigaddset(s, n) (*(s) |= linux_sigmask(n))
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: osf1_mount.c,v 1.7 1998/05/20 16:34:29 chs Exp $ */
|
||||
/* $NetBSD: osf1_mount.c,v 1.8 1998/08/09 20:37:54 perry Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1994, 1995 Carnegie-Mellon University.
|
||||
|
@ -176,7 +176,7 @@ bsd2osf_statfs(bsfs, osfs)
|
|||
struct osf1_statfs *osfs;
|
||||
{
|
||||
|
||||
bzero(osfs, sizeof (struct osf1_statfs));
|
||||
memset(osfs, 0, sizeof (struct osf1_statfs));
|
||||
if (!strncmp(MOUNT_FFS, bsfs->f_fstypename, MFSNAMELEN))
|
||||
osfs->f_type = OSF1_MOUNT_UFS;
|
||||
else if (!strncmp(MOUNT_NFS, bsfs->f_fstypename, MFSNAMELEN))
|
||||
|
@ -194,12 +194,12 @@ bsd2osf_statfs(bsfs, osfs)
|
|||
osfs->f_bavail = bsfs->f_bavail;
|
||||
osfs->f_files = bsfs->f_files;
|
||||
osfs->f_ffree = bsfs->f_ffree;
|
||||
bcopy(&bsfs->f_fsid, &osfs->f_fsid,
|
||||
memcpy(&osfs->f_fsid, &bsfs->f_fsid,
|
||||
max(sizeof bsfs->f_fsid, sizeof osfs->f_fsid));
|
||||
/* osfs->f_spare zeroed above */
|
||||
bcopy(bsfs->f_mntonname, osfs->f_mntonname,
|
||||
memcpy(osfs->f_mntonname, bsfs->f_mntonname,
|
||||
max(sizeof bsfs->f_mntonname, sizeof osfs->f_mntonname));
|
||||
bcopy(bsfs->f_mntfromname, osfs->f_mntfromname,
|
||||
memcpy(osfs->f_mntfromname, bsfs->f_mntfromname,
|
||||
max(sizeof bsfs->f_mntfromname, sizeof osfs->f_mntfromname));
|
||||
/* XXX osfs->f_xxx should be filled in... */
|
||||
}
|
||||
|
@ -415,7 +415,7 @@ osf1_mount_mfs(p, osf_argp, bsd_argp)
|
|||
if ((error = copyin(SCARG(osf_argp, data), &osf_ma, sizeof osf_ma)))
|
||||
return error;
|
||||
|
||||
bzero(&bsd_ma, sizeof bsd_ma);
|
||||
memset(&bsd_ma, 0, sizeof bsd_ma);
|
||||
bsd_ma.fspec = osf_ma.name;
|
||||
/* XXX export args */
|
||||
bsd_ma.base = osf_ma.base;
|
||||
|
@ -448,7 +448,7 @@ osf1_mount_nfs(p, osf_argp, bsd_argp)
|
|||
if ((error = copyin(SCARG(osf_argp, data), &osf_na, sizeof osf_na)))
|
||||
return error;
|
||||
|
||||
bzero(&bsd_na, sizeof bsd_na);
|
||||
memset(&bsd_na, 0, sizeof bsd_na);
|
||||
bsd_na.addr = (struct sockaddr *)osf_na.addr;
|
||||
bsd_na.addrlen = sizeof (struct sockaddr_in);
|
||||
bsd_na.sotype = SOCK_DGRAM;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: osf1_signal.c,v 1.4 1998/05/20 16:35:01 chs Exp $ */
|
||||
/* $NetBSD: osf1_signal.c,v 1.5 1998/08/09 20:37:54 perry Exp $ */
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
|
@ -23,12 +23,12 @@ static void bsd_to_osf1_sigaction __P((const struct sigaction *bsa,
|
|||
static void osf1_to_bsd_sigaction __P((const struct osf1_sigaction *osa,
|
||||
struct sigaction *bsa));
|
||||
|
||||
#define sigemptyset(s) bzero((s), sizeof(*(s)))
|
||||
#define sigemptyset(s) memset((s), 0, sizeof(*(s)))
|
||||
#define sigismember(s, n) (*(s) & sigmask(n))
|
||||
#define sigaddset(s, n) (*(s) |= sigmask(n))
|
||||
|
||||
#define osf1_sigmask(n) (1 << ((n) - 1))
|
||||
#define osf1_sigemptyset(s) bzero((s), sizeof(*(s)))
|
||||
#define osf1_sigemptyset(s) memset((s), 0, sizeof(*(s)))
|
||||
#define osf1_sigismember(s, n) (*(s) & sigmask(n))
|
||||
#define osf1_sigaddset(s, n) (*(s) |= sigmask(n))
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: sunos_ioctl.c,v 1.29 1998/06/20 03:43:49 mrg Exp $ */
|
||||
/* $NetBSD: sunos_ioctl.c,v 1.30 1998/08/09 20:37:55 perry Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1993 Markus Wild.
|
||||
|
@ -378,7 +378,7 @@ stios2stio(ts, t)
|
|||
t->c_cflag = ts->c_cflag;
|
||||
t->c_lflag = ts->c_lflag;
|
||||
t->c_line = ts->c_line;
|
||||
bcopy(ts->c_cc, t->c_cc, 8);
|
||||
memcpy(t->c_cc, ts->c_cc, 8);
|
||||
}
|
||||
|
||||
static void
|
||||
|
@ -391,7 +391,7 @@ stio2stios(t, ts)
|
|||
ts->c_cflag = t->c_cflag;
|
||||
ts->c_lflag = t->c_lflag;
|
||||
ts->c_line = t->c_line;
|
||||
bcopy(t->c_cc, ts->c_cc, 8); /* don't touch the upper fields! */
|
||||
memcpy(ts->c_cc, t->c_cc, 8); /* don't touch the upper fields! */
|
||||
}
|
||||
|
||||
int
|
||||
|
@ -833,7 +833,7 @@ sunos_sys_ioctl(p, v, retval)
|
|||
return (error);
|
||||
|
||||
#define datageom ((struct sun_dkgeom *)SCARG(uap, data))
|
||||
bzero(SCARG(uap, data), sizeof(*datageom));
|
||||
memset(SCARG(uap, data), 0, sizeof(*datageom));
|
||||
|
||||
datageom->sdkc_ncylinders = dl.d_ncylinders;
|
||||
datageom->sdkc_acylinders = dl.d_acylinders;
|
||||
|
@ -849,7 +849,7 @@ sunos_sys_ioctl(p, v, retval)
|
|||
|
||||
case DKIOCINFO:
|
||||
/* Homey don't do DKIOCINFO */
|
||||
bzero(SCARG(uap, data), sizeof(struct sun_dkctlr));
|
||||
memset(SCARG(uap, data), 0, sizeof(struct sun_dkctlr));
|
||||
break;
|
||||
|
||||
case DKIOCGPART:
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: sunos_misc.c,v 1.91 1998/06/26 10:13:14 hannken Exp $ */
|
||||
/* $NetBSD: sunos_misc.c,v 1.92 1998/08/09 20:37:55 perry Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1992, 1993
|
||||
|
@ -353,7 +353,7 @@ sunos_sys_mount(p, v, retval)
|
|||
error = copyin(sna.addr, &sain, sizeof sain);
|
||||
if (error)
|
||||
return (error);
|
||||
bcopy(&sain, &sa, sizeof sa);
|
||||
memcpy(&sa, &sain, sizeof sa);
|
||||
sa.sa_len = sizeof(sain);
|
||||
SCARG(uap, data) = stackgap_alloc(&sg, sizeof(na));
|
||||
na.version = NFS_ARGSVERSION;
|
||||
|
@ -724,14 +724,14 @@ sunos_sys_uname(p, v, retval)
|
|||
struct sunos_utsname sut;
|
||||
extern char ostype[], machine[], osrelease[];
|
||||
|
||||
bzero(&sut, sizeof(sut));
|
||||
memset(&sut, 0, sizeof(sut));
|
||||
|
||||
bcopy(ostype, sut.sysname, sizeof(sut.sysname) - 1);
|
||||
bcopy(hostname, sut.nodename, sizeof(sut.nodename));
|
||||
memcpy(sut.sysname, ostype, sizeof(sut.sysname) - 1);
|
||||
memcpy(sut.nodename, hostname, sizeof(sut.nodename));
|
||||
sut.nodename[sizeof(sut.nodename)-1] = '\0';
|
||||
bcopy(osrelease, sut.release, sizeof(sut.release) - 1);
|
||||
bcopy("1", sut.version, sizeof(sut.version) - 1);
|
||||
bcopy(machine, sut.machine, sizeof(sut.machine) - 1);
|
||||
memcpy(sut.release, osrelease, sizeof(sut.release) - 1);
|
||||
memcpy(sut.version, "1", sizeof(sut.version) - 1);
|
||||
memcpy(sut.machine, machine, sizeof(sut.machine) - 1);
|
||||
|
||||
return copyout((caddr_t)&sut, (caddr_t)SCARG(uap, name),
|
||||
sizeof(struct sunos_utsname));
|
||||
|
@ -810,14 +810,14 @@ sunos_sys_nfssvc(p, v, retval)
|
|||
int error;
|
||||
caddr_t sg = stackgap_init(p->p_emul);
|
||||
|
||||
bzero(&outuap, sizeof outuap);
|
||||
memset(&outuap, 0, sizeof outuap);
|
||||
SCARG(&outuap, fd) = SCARG(uap, fd);
|
||||
SCARG(&outuap, mskval) = stackgap_alloc(&sg, sizeof(sa));
|
||||
SCARG(&outuap, msklen) = sizeof(sa);
|
||||
SCARG(&outuap, mtchval) = stackgap_alloc(&sg, sizeof(sa));
|
||||
SCARG(&outuap, mtchlen) = sizeof(sa);
|
||||
|
||||
bzero(&sa, sizeof sa);
|
||||
memset(&sa, 0, sizeof sa);
|
||||
if (error = copyout(&sa, SCARG(&outuap, mskval), SCARG(&outuap, msklen)))
|
||||
return (error);
|
||||
if (error = copyout(&sa, SCARG(&outuap, mtchval), SCARG(&outuap, mtchlen)))
|
||||
|
@ -840,7 +840,7 @@ sunos_sys_ustat(p, v, retval)
|
|||
struct sunos_ustat us;
|
||||
int error;
|
||||
|
||||
bzero(&us, sizeof us);
|
||||
memset(&us, 0, sizeof us);
|
||||
|
||||
/*
|
||||
* XXX: should set f_tfree and f_tinode at least
|
||||
|
@ -893,7 +893,7 @@ sunstatfs(sp, buf)
|
|||
{
|
||||
struct sunos_statfs ssfs;
|
||||
|
||||
bzero(&ssfs, sizeof ssfs);
|
||||
memset(&ssfs, 0, sizeof ssfs);
|
||||
ssfs.f_type = 0;
|
||||
ssfs.f_bsize = sp->f_bsize;
|
||||
ssfs.f_blocks = sp->f_blocks;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: svr4_misc.c,v 1.61 1998/08/02 04:41:33 thorpej Exp $ */
|
||||
/* $NetBSD: svr4_misc.c,v 1.62 1998/08/09 20:37:55 perry Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1994 Christos Zoulas
|
||||
|
@ -1158,7 +1158,7 @@ svr4_setinfo(p, st, s)
|
|||
{
|
||||
svr4_siginfo_t i;
|
||||
|
||||
bzero(&i, sizeof(i));
|
||||
memset(&i, 0, sizeof(i));
|
||||
|
||||
i.si_signo = SVR4_SIGCHLD;
|
||||
i.si_errno = 0; /* XXX? */
|
||||
|
@ -1353,15 +1353,15 @@ bsd_statfs_to_svr4_statvfs(bfs, sfs)
|
|||
sfs->f_ffree = bfs->f_ffree;
|
||||
sfs->f_favail = bfs->f_ffree;
|
||||
sfs->f_fsid = bfs->f_fsid.val[0];
|
||||
bcopy(bfs->f_fstypename, sfs->f_basetype, sizeof(sfs->f_basetype));
|
||||
memcpy(sfs->f_basetype, bfs->f_fstypename, sizeof(sfs->f_basetype));
|
||||
sfs->f_flag = 0;
|
||||
if (bfs->f_flags & MNT_RDONLY)
|
||||
sfs->f_flag |= SVR4_ST_RDONLY;
|
||||
if (bfs->f_flags & MNT_NOSUID)
|
||||
sfs->f_flag |= SVR4_ST_NOSUID;
|
||||
sfs->f_namemax = MAXNAMLEN;
|
||||
bcopy(bfs->f_fstypename, sfs->f_fstr, sizeof(sfs->f_fstr)); /* XXX */
|
||||
bzero(sfs->f_filler, sizeof(sfs->f_filler));
|
||||
memcpy(sfs->f_fstr, bfs->f_fstypename, sizeof(sfs->f_fstr)); /* XXX */
|
||||
memset(sfs->f_filler, 0, sizeof(sfs->f_filler));
|
||||
}
|
||||
|
||||
|
||||
|
@ -1379,15 +1379,15 @@ bsd_statfs_to_svr4_statvfs64(bfs, sfs)
|
|||
sfs->f_ffree = bfs->f_ffree;
|
||||
sfs->f_favail = bfs->f_ffree;
|
||||
sfs->f_fsid = bfs->f_fsid.val[0];
|
||||
bcopy(bfs->f_fstypename, sfs->f_basetype, sizeof(sfs->f_basetype));
|
||||
memcpy(sfs->f_basetype, bfs->f_fstypename, sizeof(sfs->f_basetype));
|
||||
sfs->f_flag = 0;
|
||||
if (bfs->f_flags & MNT_RDONLY)
|
||||
sfs->f_flag |= SVR4_ST_RDONLY;
|
||||
if (bfs->f_flags & MNT_NOSUID)
|
||||
sfs->f_flag |= SVR4_ST_NOSUID;
|
||||
sfs->f_namemax = MAXNAMLEN;
|
||||
bcopy(bfs->f_fstypename, sfs->f_fstr, sizeof(sfs->f_fstr)); /* XXX */
|
||||
bzero(sfs->f_filler, sizeof(sfs->f_filler));
|
||||
memcpy(sfs->f_fstr, bfs->f_fstypename, sizeof(sfs->f_fstr)); /* XXX */
|
||||
memset(sfs->f_filler, 0, sizeof(sfs->f_filler));
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: svr4_signal.c,v 1.25 1997/12/01 06:04:23 mjacob Exp $ */
|
||||
/* $NetBSD: svr4_signal.c,v 1.26 1998/08/09 20:37:55 perry Exp $ */
|
||||
/*
|
||||
* Copyright (c) 1994 Christos Zoulas
|
||||
* All rights reserved.
|
||||
|
@ -46,13 +46,13 @@
|
|||
#include <compat/svr4/svr4_util.h>
|
||||
#include <compat/svr4/svr4_ucontext.h>
|
||||
|
||||
#define sigemptyset(s) bzero((s), sizeof(*(s)))
|
||||
#define sigemptyset(s) memset((s), 0, sizeof(*(s)))
|
||||
#define sigismember(s, n) (*(s) & sigmask(n))
|
||||
#define sigaddset(s, n) (*(s) |= sigmask(n))
|
||||
|
||||
#define svr4_sigmask(n) (1 << (((n) - 1) & (32 - 1)))
|
||||
#define svr4_sigword(n) (((n) - 1) >> 5)
|
||||
#define svr4_sigemptyset(s) bzero((s), sizeof(*(s)))
|
||||
#define svr4_sigemptyset(s) memset((s), 0, sizeof(*(s)))
|
||||
#define svr4_sigismember(s, n) ((s)->bits[svr4_sigword(n)] & svr4_sigmask(n))
|
||||
#define svr4_sigaddset(s, n) ((s)->bits[svr4_sigword(n)] |= svr4_sigmask(n))
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: svr4_stat.c,v 1.27 1998/08/03 14:23:30 kleink Exp $ */
|
||||
/* $NetBSD: svr4_stat.c,v 1.28 1998/08/09 20:37:56 perry Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1994 Christos Zoulas
|
||||
|
@ -87,7 +87,7 @@ bsd_to_svr4_stat(st, st4)
|
|||
struct stat *st;
|
||||
struct svr4_stat *st4;
|
||||
{
|
||||
bzero(st4, sizeof(*st4));
|
||||
memset(st4, 0, sizeof(*st4));
|
||||
st4->st_dev = bsd_to_svr4_odev_t(st->st_dev);
|
||||
st4->st_ino = st->st_ino;
|
||||
st4->st_mode = BSD_TO_SVR4_MODE(st->st_mode);
|
||||
|
@ -108,7 +108,7 @@ bsd_to_svr4_xstat(st, st4)
|
|||
struct stat *st;
|
||||
struct svr4_xstat *st4;
|
||||
{
|
||||
bzero(st4, sizeof(*st4));
|
||||
memset(st4, 0, sizeof(*st4));
|
||||
st4->st_dev = bsd_to_svr4_dev_t(st->st_dev);
|
||||
st4->st_ino = st->st_ino;
|
||||
st4->st_mode = BSD_TO_SVR4_MODE(st->st_mode);
|
||||
|
@ -131,7 +131,7 @@ bsd_to_svr4_stat64(st, st4)
|
|||
struct stat *st;
|
||||
struct svr4_stat64 *st4;
|
||||
{
|
||||
bzero(st4, sizeof(*st4));
|
||||
memset(st4, 0, sizeof(*st4));
|
||||
st4->st_dev = bsd_to_svr4_dev_t(st->st_dev);
|
||||
st4->st_ino = st->st_ino;
|
||||
st4->st_mode = BSD_TO_SVR4_MODE(st->st_mode);
|
||||
|
@ -507,7 +507,7 @@ svr4_ustat(p, v, retval)
|
|||
struct svr4_ustat us;
|
||||
int error;
|
||||
|
||||
bzero(&us, sizeof us);
|
||||
memset(&us, 0, sizeof us);
|
||||
|
||||
/*
|
||||
* XXX: should set f_tfree and f_tinode at least
|
||||
|
@ -532,7 +532,7 @@ svr4_sys_uname(p, v, retval)
|
|||
extern char ostype[], hostname[], osrelease[], version[], machine[];
|
||||
|
||||
|
||||
bzero(&sut, sizeof(sut));
|
||||
memset(&sut, 0, sizeof(sut));
|
||||
|
||||
strncpy(sut.sysname, ostype, sizeof(sut.sysname));
|
||||
sut.sysname[sizeof(sut.sysname) - 1] = '\0';
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: svr4_stream.c,v 1.25 1998/07/18 05:04:37 lukem Exp $ */
|
||||
/* $NetBSD: svr4_stream.c,v 1.26 1998/08/09 20:37:56 perry Exp $ */
|
||||
/*
|
||||
* Copyright (c) 1994, 1996 Christos Zoulas. All rights reserved.
|
||||
*
|
||||
|
@ -338,7 +338,7 @@ netaddr_to_sockaddr_in(sain, sc)
|
|||
|
||||
|
||||
na = SVR4_C_ADDROF(sc);
|
||||
bzero(sain, sizeof(*sain));
|
||||
memset(sain, 0, sizeof(*sain));
|
||||
sain->sin_len = sizeof(*sain);
|
||||
sain->sin_family = na->family;
|
||||
sain->sin_port = na->port;
|
||||
|
@ -358,7 +358,7 @@ netaddr_to_sockaddr_un(saun, sc)
|
|||
const char *src;
|
||||
|
||||
na = SVR4_C_ADDROF(sc);
|
||||
bzero(saun, sizeof(*saun));
|
||||
memset(saun, 0, sizeof(*saun));
|
||||
saun->sun_family = na->family;
|
||||
for (src = na->path, dst = saun->sun_path; (*dst++ = *src++) != '\0'; )
|
||||
if (dst == edst)
|
||||
|
@ -691,7 +691,7 @@ ti_getinfo(fp, fd, ioc, p)
|
|||
int error;
|
||||
struct svr4_infocmd info;
|
||||
|
||||
bzero(&info, sizeof(info));
|
||||
memset(&info, 0, sizeof(info));
|
||||
|
||||
if ((error = copyin(ioc->buf, &info, ioc->len)) != 0)
|
||||
return error;
|
||||
|
@ -809,7 +809,7 @@ ti_bind(fp, fd, ioc, p)
|
|||
|
||||
reply:
|
||||
if (sup == NULL) {
|
||||
bzero(&bnd, sizeof(bnd));
|
||||
memset(&bnd, 0, sizeof(bnd));
|
||||
bnd.len = sasize + 4;
|
||||
bnd.offs = 0x10; /* XXX */
|
||||
}
|
||||
|
@ -1564,7 +1564,7 @@ svr4_sys_getmsg(p, v, retval)
|
|||
(fp = fdp->fd_ofiles[SCARG(uap, fd)]) == NULL)
|
||||
return EBADF;
|
||||
|
||||
bzero(&sc, sizeof(sc));
|
||||
memset(&sc, 0, sizeof(sc));
|
||||
|
||||
#ifdef DEBUG_SVR4
|
||||
show_msg(">getmsg", SCARG(uap, fd), SCARG(uap, ctl),
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: svr4_termios.c,v 1.10 1996/06/05 19:27:41 christos Exp $ */
|
||||
/* $NetBSD: svr4_termios.c,v 1.11 1998/08/09 20:37:56 perry Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1994 Christos Zoulas
|
||||
|
@ -511,7 +511,7 @@ svr4_term_ioctl(fp, p, retval, fd, cmd, data)
|
|||
if ((error = (*ctl)(fp, TIOCGETA, (caddr_t) &bt, p)) != 0)
|
||||
return error;
|
||||
|
||||
bzero(&st,sizeof(st));
|
||||
memset(&st, 0, sizeof(st));
|
||||
bsd_to_svr4_termios(&bt, &st);
|
||||
|
||||
DPRINTF(("ioctl(TCGET%c);\n", cmd == SVR4_TCGETA ? 'A' : 'S'));
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: ultrix_fs.c,v 1.15 1998/03/05 22:51:35 thorpej Exp $ */
|
||||
/* $NetBSD: ultrix_fs.c,v 1.16 1998/08/09 20:37:56 perry Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1995, 1997 Jonathan Stone
|
||||
|
@ -161,7 +161,7 @@ make_ultrix_mntent(sp, tem)
|
|||
register struct ultrix_fs_data *tem;
|
||||
{
|
||||
|
||||
bzero(tem, sizeof (*tem));
|
||||
memset(tem, 0, sizeof (*tem));
|
||||
|
||||
tem->ufsd_flags = sp->f_flags; /* XXX translate */
|
||||
tem->ufsd_mtsize = sp->f_bsize; /* XXX max transfer size */
|
||||
|
@ -360,7 +360,7 @@ ultrix_sys_mount(p, v, retval)
|
|||
|
||||
caddr_t usp = stackgap_init(p->p_emul);
|
||||
|
||||
bzero(&nuap, sizeof(nuap));
|
||||
memset(&nuap, 0, sizeof(nuap));
|
||||
SCARG(&nuap, flags) = 0;
|
||||
|
||||
/*
|
||||
|
@ -404,7 +404,7 @@ ultrix_sys_mount(p, v, retval)
|
|||
struct ufs_args ua;
|
||||
|
||||
ua.fspec = SCARG(uap, special);
|
||||
bzero(&ua.export, sizeof(ua.export));
|
||||
memset(&ua.export, 0, sizeof(ua.export));
|
||||
SCARG(&nuap, data) = usp;
|
||||
|
||||
if ((error = copyout(&ua, SCARG(&nuap, data),
|
||||
|
@ -431,8 +431,8 @@ ultrix_sys_mount(p, v, retval)
|
|||
struct osockaddr_in osa;
|
||||
struct sockaddr_in *sap = (struct sockaddr_in *)& osa;
|
||||
|
||||
bzero(&osa, sizeof(osa));
|
||||
bzero(&una, sizeof(una));
|
||||
memset(&osa, 0, sizeof(osa));
|
||||
memset(&una, 0, sizeof(una));
|
||||
if ((error = copyin(SCARG(uap, data), &una, sizeof una)) !=0) {
|
||||
return (error);
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: ultrix_ioctl.c,v 1.12 1998/06/25 23:41:49 thorpej Exp $ */
|
||||
/* $NetBSD: ultrix_ioctl.c,v 1.13 1998/08/09 20:37:56 perry Exp $ */
|
||||
/* from : NetBSD: sunos_ioctl.c,v 1.21 1995/10/07 06:27:31 mycroft Exp */
|
||||
|
||||
/*
|
||||
|
@ -423,7 +423,7 @@ stios2stio(ts, t)
|
|||
t->c_cflag = ts->c_cflag;
|
||||
t->c_lflag = ts->c_lflag;
|
||||
t->c_line = ts->c_line;
|
||||
bcopy(ts->c_cc, t->c_cc, TERMIO_NCC);
|
||||
memcpy(t->c_cc, ts->c_cc, TERMIO_NCC);
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -439,7 +439,7 @@ stio2stios(t, ts)
|
|||
ts->c_cflag = t->c_cflag;
|
||||
ts->c_lflag = t->c_lflag;
|
||||
ts->c_line = t->c_line;
|
||||
bcopy(t->c_cc, ts->c_cc, TERMIO_NCC); /* don't touch the upper fields! */
|
||||
memcpy(ts->c_cc, t->c_cc, TERMIO_NCC); /* don't touch the upper fields! */
|
||||
}
|
||||
|
||||
int
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: ultrix_misc.c,v 1.40 1998/07/03 20:03:04 mhitch Exp $ */
|
||||
/* $NetBSD: ultrix_misc.c,v 1.41 1998/08/09 20:37:56 perry Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1995, 1997 Jonathan Stone (hereinafter referred to as the author)
|
||||
|
@ -83,7 +83,7 @@
|
|||
|
||||
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
|
||||
|
||||
__KERNEL_RCSID(0, "$NetBSD: ultrix_misc.c,v 1.40 1998/07/03 20:03:04 mhitch Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: ultrix_misc.c,v 1.41 1998/08/09 20:37:56 perry Exp $");
|
||||
|
||||
/*
|
||||
* SunOS compatibility module.
|
||||
|
@ -439,14 +439,14 @@ ultrix_sys_uname(p, v, retval)
|
|||
struct ultrix_utsname sut;
|
||||
extern char ostype[], machine[], osrelease[];
|
||||
|
||||
bzero(&sut, sizeof(sut));
|
||||
memset(&sut, 0, sizeof(sut));
|
||||
|
||||
bcopy(ostype, sut.sysname, sizeof(sut.sysname) - 1);
|
||||
bcopy(hostname, sut.nodename, sizeof(sut.nodename));
|
||||
memcpy(sut.sysname, ostype, sizeof(sut.sysname) - 1);
|
||||
memcpy(sut.nodename, hostname, sizeof(sut.nodename));
|
||||
sut.nodename[sizeof(sut.nodename)-1] = '\0';
|
||||
bcopy(osrelease, sut.release, sizeof(sut.release) - 1);
|
||||
bcopy("1", sut.version, sizeof(sut.version) - 1);
|
||||
bcopy(machine, sut.machine, sizeof(sut.machine) - 1);
|
||||
memcpy(sut.release, osrelease, sizeof(sut.release) - 1);
|
||||
memcpy(sut.version, "1", sizeof(sut.version) - 1);
|
||||
memcpy(sut.machine, machine, sizeof(sut.machine) - 1);
|
||||
|
||||
return copyout((caddr_t)&sut, (caddr_t)SCARG(uap, name),
|
||||
sizeof(struct ultrix_utsname));
|
||||
|
@ -488,14 +488,14 @@ ultrix_sys_nfssvc(p, v, retval)
|
|||
struct sockaddr sa;
|
||||
int error;
|
||||
|
||||
bzero(&outuap, sizeof outuap);
|
||||
memset(&outuap, 0, sizeof outuap);
|
||||
SCARG(&outuap, fd) = SCARG(uap, fd);
|
||||
SCARG(&outuap, mskval) = STACKGAPBASE;
|
||||
SCARG(&outuap, msklen) = sizeof sa;
|
||||
SCARG(&outuap, mtchval) = outuap.mskval + sizeof sa;
|
||||
SCARG(&outuap, mtchlen) = sizeof sa;
|
||||
|
||||
bzero(&sa, sizeof sa);
|
||||
memset(&sa, 0, sizeof sa);
|
||||
if (error = copyout(&sa, SCARG(&outuap, mskval), SCARG(&outuap, msklen)))
|
||||
return (error);
|
||||
if (error = copyout(&sa, SCARG(&outuap, mtchval), SCARG(&outuap, mtchlen)))
|
||||
|
@ -525,7 +525,7 @@ ultrix_sys_ustat(p, v, retval)
|
|||
struct ultrix_ustat us;
|
||||
int error;
|
||||
|
||||
bzero(&us, sizeof us);
|
||||
memset(&us, 0, sizeof us);
|
||||
|
||||
/*
|
||||
* XXX: should set f_tfree and f_tinode at least
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: ultrix_pathname.c,v 1.6 1997/05/25 05:30:21 jonathan Exp $ */
|
||||
/* $NetBSD: ultrix_pathname.c,v 1.7 1998/08/09 20:37:57 perry Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1992, 1993
|
||||
|
@ -249,7 +249,7 @@ ultrixstatfs(sp, buf)
|
|||
{
|
||||
struct ultrix_statfs ssfs;
|
||||
|
||||
bzero(&ssfs, sizeof ssfs);
|
||||
memset(&ssfs, 0, sizeof ssfs);
|
||||
ssfs.f_type = 0;
|
||||
ssfs.f_bsize = sp->f_bsize;
|
||||
ssfs.f_blocks = sp->f_blocks;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: db_elf.c,v 1.4 1998/05/03 18:49:54 thorpej Exp $ */
|
||||
/* $NetBSD: db_elf.c,v 1.5 1998/08/09 20:36:58 perry Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1997 The NetBSD Foundation, Inc.
|
||||
|
@ -111,7 +111,7 @@ X_db_sym_init(symtab, esymtab, name)
|
|||
* Validate the Elf header.
|
||||
*/
|
||||
elf = (Elf_Ehdr *)symtab;
|
||||
if (bcmp(elf->e_ident, Elf_e_ident, Elf_e_siz) != 0)
|
||||
if (memcmp(elf->e_ident, Elf_e_ident, Elf_e_siz) != 0)
|
||||
goto badheader;
|
||||
|
||||
switch (elf->e_machine) {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: cd9660_lookup.c,v 1.19 1998/03/01 02:22:08 fvdl Exp $ */
|
||||
/* $NetBSD: cd9660_lookup.c,v 1.20 1998/08/09 20:42:54 perry Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1989, 1993, 1994
|
||||
|
@ -334,7 +334,7 @@ searchloop:
|
|||
dp->i_ino = ino;
|
||||
cd9660_rrip_getname(ep,altname,&namelen,&dp->i_ino,imp);
|
||||
if (namelen == cnp->cn_namelen
|
||||
&& !bcmp(name,altname,namelen))
|
||||
&& !memcmp(name, altname, namelen))
|
||||
goto found;
|
||||
ino = 0;
|
||||
break;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: cd9660_rrip.c,v 1.17 1997/01/24 00:27:32 cgd Exp $ */
|
||||
/* $NetBSD: cd9660_rrip.c,v 1.18 1998/08/09 20:42:54 perry Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1993, 1994
|
||||
|
@ -209,7 +209,7 @@ cd9660_rrip_slink(v, ana)
|
|||
return 0;
|
||||
}
|
||||
|
||||
bcopy(inbuf, outbuf, wlen);
|
||||
memcpy(outbuf, inbuf, wlen);
|
||||
outbuf += wlen;
|
||||
len += wlen;
|
||||
}
|
||||
|
@ -281,7 +281,7 @@ cd9660_rrip_altname(v, ana)
|
|||
return 0;
|
||||
}
|
||||
|
||||
bcopy(inbuf, ana->outbuf, wlen);
|
||||
memcpy(ana->outbuf, inbuf, wlen);
|
||||
ana->outbuf += wlen;
|
||||
|
||||
if (!cont) {
|
||||
|
@ -364,7 +364,7 @@ cd9660_rrip_tstamp(v, ana)
|
|||
cd9660_tstamp_conv7(ptime, &ana->inop->inode.iso_mtime);
|
||||
ptime += 7;
|
||||
} else
|
||||
bzero(&ana->inop->inode.iso_mtime, sizeof(struct timespec));
|
||||
memset(&ana->inop->inode.iso_mtime, 0, sizeof(struct timespec));
|
||||
|
||||
if (*p->flags & ISO_SUSP_TSTAMP_ACCESS) {
|
||||
cd9660_tstamp_conv7(ptime, &ana->inop->inode.iso_atime);
|
||||
|
@ -385,7 +385,7 @@ cd9660_rrip_tstamp(v, ana)
|
|||
cd9660_tstamp_conv17(ptime, &ana->inop->inode.iso_mtime);
|
||||
ptime += 17;
|
||||
} else
|
||||
bzero(&ana->inop->inode.iso_mtime, sizeof(struct timespec));
|
||||
memset(&ana->inop->inode.iso_mtime, 0, sizeof(struct timespec));
|
||||
|
||||
if (*p->flags & ISO_SUSP_TSTAMP_ACCESS) {
|
||||
cd9660_tstamp_conv17(ptime, &ana->inop->inode.iso_atime);
|
||||
|
@ -496,11 +496,11 @@ cd9660_rrip_extref(v, ana)
|
|||
&& isonum_711(p->len_id) != 10)
|
||||
return 0;
|
||||
if (isonum_711(p->len_id) == 9
|
||||
&& bcmp((char *)p + 8, "IEEE_1282", 9))
|
||||
&& memcmp((char *)p + 8, "IEEE_1282", 9))
|
||||
return 0;
|
||||
if (isonum_711(p->len_id) == 10
|
||||
&& bcmp((char *)p + 8, "IEEE_P1282", 10)
|
||||
&& bcmp((char *)p + 8, "RRIP_1991A", 10))
|
||||
&& memcmp((char *)p + 8, "IEEE_P1282", 10)
|
||||
&& memcmp((char *)p + 8, "RRIP_1991A", 10))
|
||||
return 0;
|
||||
ana->fields &= ~ISO_SUSP_EXTREF;
|
||||
return ISO_SUSP_EXTREF;
|
||||
|
@ -721,11 +721,11 @@ cd9660_rrip_offset(isodir, imp)
|
|||
|
||||
imp->rr_skip0 = 0;
|
||||
p = (ISO_RRIP_OFFSET *)(isodir->name + 1);
|
||||
if (bcmp(p, "SP\7\1\276\357", 6)) {
|
||||
if (memcmp(p, "SP\7\1\276\357", 6)) {
|
||||
/* Maybe, it's a CDROM XA disc? */
|
||||
imp->rr_skip0 = 15;
|
||||
p = (ISO_RRIP_OFFSET *)((char *)p + 15);
|
||||
if (bcmp(p, "SP\7\1\276\357", 6))
|
||||
if (memcmp(p, "SP\7\1\276\357", 6))
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: cd9660_vfsops.c,v 1.31 1998/07/05 08:49:45 jonathan Exp $ */
|
||||
/* $NetBSD: cd9660_vfsops.c,v 1.32 1998/08/09 20:42:54 perry Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1994
|
||||
|
@ -208,10 +208,10 @@ cd9660_mount(mp, path, data, ndp, p)
|
|||
}
|
||||
imp = VFSTOISOFS(mp);
|
||||
(void) copyinstr(path, mp->mnt_stat.f_mntonname, MNAMELEN - 1, &size);
|
||||
bzero(mp->mnt_stat.f_mntonname + size, MNAMELEN - size);
|
||||
memset(mp->mnt_stat.f_mntonname + size, 0, MNAMELEN - size);
|
||||
(void) copyinstr(args.fspec, mp->mnt_stat.f_mntfromname, MNAMELEN - 1,
|
||||
&size);
|
||||
bzero(mp->mnt_stat.f_mntfromname + size, MNAMELEN - size);
|
||||
memset(mp->mnt_stat.f_mntfromname + size, 0, MNAMELEN - size);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -272,7 +272,7 @@ iso_mountfs(devvp, mp, p, argp)
|
|||
goto out;
|
||||
|
||||
vdp = (struct iso_volume_descriptor *)bp->b_data;
|
||||
if (bcmp (vdp->id, ISO_STANDARD_ID, sizeof vdp->id) != 0) {
|
||||
if (memcmp(vdp->id, ISO_STANDARD_ID, sizeof(vdp->id)) != 0) {
|
||||
error = EINVAL;
|
||||
goto out;
|
||||
}
|
||||
|
@ -305,10 +305,10 @@ iso_mountfs(devvp, mp, p, argp)
|
|||
rootp = (struct iso_directory_record *)pri->root_directory_record;
|
||||
|
||||
isomp = malloc(sizeof *isomp, M_ISOFSMNT, M_WAITOK);
|
||||
bzero((caddr_t)isomp, sizeof *isomp);
|
||||
memset((caddr_t)isomp, 0, sizeof *isomp);
|
||||
isomp->logical_block_size = logical_block_size;
|
||||
isomp->volume_space_size = isonum_733 (pri->volume_space_size);
|
||||
bcopy (rootp, isomp->root, sizeof isomp->root);
|
||||
memcpy(isomp->root, rootp, sizeof(isomp->root));
|
||||
isomp->root_extent = isonum_733 (rootp->extent);
|
||||
isomp->root_size = isonum_733 (rootp->size);
|
||||
|
||||
|
@ -498,8 +498,8 @@ cd9660_statfs(mp, sbp, p)
|
|||
sbp->f_files = 0; /* total files */
|
||||
sbp->f_ffree = 0; /* free file nodes */
|
||||
if (sbp != &mp->mnt_stat) {
|
||||
bcopy(mp->mnt_stat.f_mntonname, sbp->f_mntonname, MNAMELEN);
|
||||
bcopy(mp->mnt_stat.f_mntfromname, sbp->f_mntfromname, MNAMELEN);
|
||||
memcpy(sbp->f_mntonname, mp->mnt_stat.f_mntonname, MNAMELEN);
|
||||
memcpy(sbp->f_mntfromname, mp->mnt_stat.f_mntfromname, MNAMELEN);
|
||||
}
|
||||
strncpy(sbp->f_fstypename, mp->mnt_op->vfs_name, MFSNAMELEN);
|
||||
/* Use the first spare for flags: */
|
||||
|
@ -629,7 +629,7 @@ cd9660_vget_internal(mp, ino, vpp, relocated, isodir)
|
|||
}
|
||||
MALLOC(ip, struct iso_node *, sizeof(struct iso_node), M_ISOFSNODE,
|
||||
M_WAITOK);
|
||||
bzero((caddr_t)ip, sizeof(struct iso_node));
|
||||
memset((caddr_t)ip, 0, sizeof(struct iso_node));
|
||||
lockinit(&ip->i_lock, PINOD, "isonode", 0, 0);
|
||||
vp->v_data = ip;
|
||||
ip->i_vnode = vp;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: cd9660_vnops.c,v 1.48 1998/08/03 14:19:58 kleink Exp $ */
|
||||
/* $NetBSD: cd9660_vnops.c,v 1.49 1998/08/09 20:42:55 perry Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1994
|
||||
|
@ -399,7 +399,7 @@ iso_shipdir(idp)
|
|||
}
|
||||
if (sl > 0) {
|
||||
if (sl != cl
|
||||
|| bcmp(sname,cname,sl)) {
|
||||
|| memcmp(sname, cname, sl)) {
|
||||
if (idp->assocent.d_namlen) {
|
||||
error = iso_uiodir(idp, &idp->assocent,
|
||||
idp->assocoff);
|
||||
|
@ -419,10 +419,10 @@ iso_shipdir(idp)
|
|||
idp->current.d_reclen = DIRENT_SIZE(&idp->current);
|
||||
if (assoc) {
|
||||
idp->assocoff = idp->curroff;
|
||||
bcopy(&idp->current,&idp->assocent,idp->current.d_reclen);
|
||||
memcpy(&idp->assocent, &idp->current, idp->current.d_reclen);
|
||||
} else {
|
||||
idp->saveoff = idp->curroff;
|
||||
bcopy(&idp->current,&idp->saveent,idp->current.d_reclen);
|
||||
memcpy(&idp->saveent, &idp->current, idp->current.d_reclen);
|
||||
}
|
||||
return (0);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue