Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/compat/sunos32 use the standard alt check for creat.



details:   https://anonhg.NetBSD.org/src/rev/e0914189d4db
branches:  trunk
changeset: 503467:e0914189d4db
user:      mrg <mrg%NetBSD.org@localhost>
date:      Wed Feb 07 01:34:21 2001 +0000

description:
use the standard alt check for creat.

diffstat:

 sys/compat/sunos32/sunos32_misc.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (23 lines):

diff -r 1b6c4d1eeb0f -r e0914189d4db sys/compat/sunos32/sunos32_misc.c
--- a/sys/compat/sunos32/sunos32_misc.c Tue Feb 06 19:54:43 2001 +0000
+++ b/sys/compat/sunos32/sunos32_misc.c Wed Feb 07 01:34:21 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sunos32_misc.c,v 1.6 2001/02/06 13:13:44 mrg Exp $     */
+/*     $NetBSD: sunos32_misc.c,v 1.7 2001/02/07 01:34:21 mrg Exp $     */
 /* from :NetBSD: sunos_misc.c,v 1.107 2000/12/01 19:25:10 jdolecek Exp */
 
 /*
@@ -231,11 +231,12 @@
        struct sys_open_args ua;
        caddr_t sg = stackgap_init(p->p_emul);
 
-       SUNOS32_CHECK_ALT_CREAT(p, &sg, SCARG(uap, path));
        SUNOS32TOP_UAP(path, const char);
        SCARG(&ua, flags) = O_WRONLY | O_CREAT | O_TRUNC;
        SUNOS32TO64_UAP(mode);
 
+       SUNOS32_CHECK_ALT_CREAT(p, &sg, SCARG(&ua, path));
+
        return (sys_open(p, &ua, retval));
 }
 



Home | Main Index | Thread Index | Old Index