From d1cc947cd982c4a510d30efb6c7d897244f17c20 Mon Sep 17 00:00:00 2001 From: Giacomo Tesio Date: Wed, 11 Jan 2017 03:01:04 +0100 Subject: [PATCH] kernel: fix fd mode print in devproc --- sys/src/kern/port/devproc.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sys/src/kern/port/devproc.c b/sys/src/kern/port/devproc.c index 969f3f7..2478e0c 100644 --- a/sys/src/kern/port/devproc.c +++ b/sys/src/kern/port/devproc.c @@ -571,7 +571,7 @@ _procfdprint(Chan *c, int fd, int w, char *s, int ns, char * modestr) int procfdprint(Chan *c, int fd, int w, char *s, int ns) { - return _procfdprint(c, fd, w, s, ns, "r w rw"); + return _procfdprint(c, fd, w, s, ns, "s r w rw"); } static int @@ -618,12 +618,12 @@ procfds(Proc *p, char *va, int count, long offset) c = f->fd[i]; if(c == nil) continue; - modestr = "r w rw"; + modestr = "s r w rw"; if(p->blockingfd == i){ if(p->scallnr == SysPread) - modestr = "R w Rw"; + modestr = "s R w Rw"; else - modestr = "r W rW"; + modestr = "s r W rW"; } n += _procfdprint(c, i, w, a+n, count-n, modestr); offset = procoffset(offset, a, &n);