From 48ea5e3ca1db2460e96a4ee52a51c479737cb0b7 Mon Sep 17 00:00:00 2001 From: David du Colombier <0intro@gmail.com> Date: Wed, 22 Aug 1990 00:00:00 +0000 Subject: [PATCH] Plan 9 from Bell Labs 1990-08-22 --- gnot/sysfile.c | 6 +----- port/sysfile.c | 6 +----- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/gnot/sysfile.c b/gnot/sysfile.c index 532ce3990da24ad7b3420986b79777b94f86edce..c6417fd5dc5a884f5a78982efc9950a6c3930972 100644 --- a/gnot/sysfile.c +++ b/gnot/sysfile.c @@ -299,11 +299,7 @@ sysaccess(ulong *arg) Chan *c; long mode; - validaddr(arg[0], 1, 0); - c = namec((char*)arg[0], Aaccess, 0, 0); - mode = c->mode; - close(c); - /* BUG: check modes */ + postnote(u->p, 1, "access is deprecated", NDebug); return 0; } diff --git a/port/sysfile.c b/port/sysfile.c index 532ce3990da24ad7b3420986b79777b94f86edce..c6417fd5dc5a884f5a78982efc9950a6c3930972 100644 --- a/port/sysfile.c +++ b/port/sysfile.c @@ -299,11 +299,7 @@ sysaccess(ulong *arg) Chan *c; long mode; - validaddr(arg[0], 1, 0); - c = namec((char*)arg[0], Aaccess, 0, 0); - mode = c->mode; - close(c); - /* BUG: check modes */ + postnote(u->p, 1, "access is deprecated", NDebug); return 0; }