From owner-freebsd-hackers Thu Aug 5 18:20:37 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from janus.syracuse.net (janus.syracuse.net [205.232.47.15]) by hub.freebsd.org (Postfix) with ESMTP id AA9B014BD5 for ; Thu, 5 Aug 1999 18:20:33 -0700 (PDT) (envelope-from green@FreeBSD.org) Received: from localhost (green@localhost) by janus.syracuse.net (8.9.3/8.8.7) with ESMTP id VAA86156 for ; Thu, 5 Aug 1999 21:20:28 -0400 (EDT) X-Authentication-Warning: janus.syracuse.net: green owned process doing -bs Date: Thu, 5 Aug 1999 21:20:28 -0400 (EDT) From: "Brian F. Feldman" X-Sender: green@janus.syracuse.net To: hackers@FreeBSD.org Subject: Re: more crashes and fixes (linux/svr4/ibcs2) In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Thu, 5 Aug 1999, Brian F. Feldman wrote: Correction: > > --- src/sys/i386/linux/linux_util.h.orig Thu Aug 5 18:32:02 1999 > +++ src/sys/i386/linux/linux_util.h Thu Aug 5 19:03:27 1999 > @@ -83,10 +83,17 @@ > int linux_emul_find __P((struct proc *, caddr_t *, const char *, char *, > char **, int)); > > -#define CHECKALTEXIST(p, sgp, path) \ > - linux_emul_find(p, sgp, linux_emul_path, path, &(path), 0) > +#define CHECKALT(p, sgp, path, i) \ > + do { \ > + int _error; \ > + \ > + _error = linux_emul_find(p, sgp, linux_emul_path, path, \ > + &path, i); \ > + if (_error) \ This should only be if (_error == EFAULT) > + return (_error); \ > + } while (0) > > -#define CHECKALTCREAT(p, sgp, path) \ > - linux_emul_find(p, sgp, linux_emul_path, path, &(path), 1) > +#define CHECKALTEXIST(p, sgp, path) CHECKALT(p, sgp, path, 0) > +#define CHECKALTCREAT(p, sgp, path) CHECKALT(p, sgp, path, 1) > > #endif /* !_LINUX_UTIL_H_ */ > Brian Fundakowski Feldman _ __ ___ ____ ___ ___ ___ green@FreeBSD.org _ __ ___ | _ ) __| \ FreeBSD: The Power to Serve! _ __ | _ \._ \ |) | http://www.FreeBSD.org/ _ |___/___/___/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message