ref: 3a78a07143fc793923e9f965820d97f4b3de6ec4
parent: b73e068bfeff7337bf593fa5b2d2858c89f5f13e
author: cinap_lenrek <cinap_lenrek@localhost>
date: Tue May 10 01:33:43 EDT 2011
ape: fix fread/fwrite, python: disable bytecode dumps, inst: rename textonly to start and remove inst/gui, add sys/lib/rootbind, cisfd(8) manpage
--- a/rc/bin/inst/gui
+++ /dev/null
@@ -1,7 +1,0 @@
-#!/bin/rc
-
-cd /bin/inst
-echo blanktime 0 >/dev/vgactl
-. defs
-
-startwin 640 480
--- /dev/null
+++ b/rc/bin/inst/start
@@ -1,0 +1,14 @@
+#!/bin/rc
+
+cd /bin/inst
+. defs
+
+textinst=1
+export textinst
+
+# use stderr as logfile
+rm -f /srv/log
+echo 2 >/srv/log
+log `{date} Installation process started
+inst/mainloop
+
--- a/rc/bin/inst/textonly
+++ /dev/null
@@ -1,15 +1,0 @@
-#!/bin/rc
-
-# text-only install
-cd /bin/inst
-. defs
-
-textinst=1
-export textinst
-
-# use stderr as logfile
-rm -f /srv/log
-echo 2 >/srv/log
-log `{date} Installation process started
-inst/mainloop
-
--- /dev/null
+++ b/sys/lib/rootbind
@@ -1,0 +1,4 @@
+bind `{pwd} /n/src9
+bind /n/src9/386/bin /bin
+bind -a /n/src9/rc/bin /bin
+for(i in 386 rc acme mail sys lib cron){bind -c /n/src9/$i /$i}
--- a/sys/man/8/cifsd
+++ b/sys/man/8/cifsd
@@ -1,7 +1,8 @@
-.TH cifsd 8
+.TH CIFSD 8
.SH NAME
cifsd \- CIFS/SMB network daemon
.SH SYNOPSIS
+.PP
.B ip/cifsd
[
.B -t
--- a/sys/src/ape/lib/ap/stdio/fread.c
+++ b/sys/src/ape/lib/ap/stdio/fread.c
@@ -20,7 +20,7 @@
memcpy(s, f->rp, d);
f->rp+=d;
}else{
- if(n >= BIGN && f->state==RD && !(f->flags&STRING) && f->buf!=f->unbuf || f->buf == f->unbuf){
+ if(f->buf==f->unbuf || (n >= BIGN && f->state==RD && !(f->flags&STRING))){
d=read(f->fd, s, n);
if(d<=0){
f->state=(d==0)?END:ERR;
--- a/sys/src/ape/lib/ap/stdio/fwrite.c
+++ b/sys/src/ape/lib/ap/stdio/fwrite.c
@@ -20,7 +20,7 @@
memcpy(f->wp, s, d);
f->wp+=d;
}else{
- if(n>=BIGN && f->state==WR && !(f->flags&(STRING|LINEBUF)) && f->buf!=f->unbuf){
+ if(f->buf==f->unbuf || (n>=BIGN && f->state==WR && !(f->flags&(STRING|LINEBUF)))){
d=f->wp-f->buf;
if(d>0){
if(f->flags&APPEND)
@@ -38,12 +38,10 @@
f->state=ERR;
goto ret;
}
- }else{
- if(f->flags&APPEND) lseek(f->fd, 0L, SEEK_END);
- if((d=write(f->fd, s, n))<=0) {
- f->state=ERR;
+ } else {
+ if(_IO_putc(*s, f)==EOF)
goto ret;
- }
+ d=1;
}
}
s+=d;
--- a/sys/src/cmd/python/Python/import.c
+++ b/sys/src/cmd/python/Python/import.c
@@ -947,6 +947,8 @@
if (Py_VerboseFlag)
PySys_WriteStderr("import %s # from %s\n",
name, pathname);
+
+ if(0) /* disabled this for now -- cinap */
if (cpathname)
write_compiled_module(co, cpathname, mtime);
}