update
This commit is contained in:
parent
80f510c8a4
commit
e4d62adf03
3 changed files with 29 additions and 10 deletions
6
CHANGES
6
CHANGES
|
|
@ -1,3 +1,9 @@
|
||||||
|
January 18, 2005
|
||||||
|
make src/libthread/pthread.c compile
|
||||||
|
add threadspawnl, fsseek.
|
||||||
|
add link to web interface in cvs(1).
|
||||||
|
remove hard-coded path in fixurls
|
||||||
|
|
||||||
January 17, 2005
|
January 17, 2005
|
||||||
thread.c tries to warn about bad pthreads on Linux
|
thread.c tries to warn about bad pthreads on Linux
|
||||||
vacfs posts vacfs.basename
|
vacfs posts vacfs.basename
|
||||||
|
|
|
||||||
|
|
@ -30,10 +30,10 @@ CFsys* fsinit(int fd)
|
||||||
int fsversion(CFsys *fsys, int msize, char *version, int nversion)
|
int fsversion(CFsys *fsys, int msize, char *version, int nversion)
|
||||||
.PP
|
.PP
|
||||||
.B
|
.B
|
||||||
CFid *fsauth(CFsys *fsys, char *uname, char *aname)
|
CFid* fsauth(CFsys *fsys, char *uname, char *aname)
|
||||||
.PP
|
.PP
|
||||||
.B
|
.B
|
||||||
CFid *fsattach(CFsys *fsys, CFid *afid, char *uname, char *aname)
|
CFid* fsattach(CFsys *fsys, CFid *afid, char *uname, char *aname)
|
||||||
.PP
|
.PP
|
||||||
.B
|
.B
|
||||||
void fssetroot(CFsys *fsys, CFid *fid)
|
void fssetroot(CFsys *fsys, CFid *fid)
|
||||||
|
|
@ -42,7 +42,7 @@ void fssetroot(CFsys *fsys, CFid *fid)
|
||||||
void fsclose(CFid *fid)
|
void fsclose(CFid *fid)
|
||||||
.PP
|
.PP
|
||||||
.B
|
.B
|
||||||
CFid *fscreate(CFsys *fs, char *path, int mode, ulong perm)
|
CFid* fscreate(CFsys *fs, char *path, int mode, ulong perm)
|
||||||
.PP
|
.PP
|
||||||
.B
|
.B
|
||||||
CFid* fsopen(CFsys *fs, char *path, int mode)
|
CFid* fsopen(CFsys *fs, char *path, int mode)
|
||||||
|
|
@ -63,6 +63,9 @@ long fsreadn(CFid *fid, void *buf, long n)
|
||||||
long fswrite(CFid *fid, void *buf, long n)
|
long fswrite(CFid *fid, void *buf, long n)
|
||||||
.PP
|
.PP
|
||||||
.B
|
.B
|
||||||
|
vlong fsseek(CFid *Fid, vlong n, int type)
|
||||||
|
.PP
|
||||||
|
.B
|
||||||
long fsdirread(CFid *fid, Dir **d)
|
long fsdirread(CFid *fid, Dir **d)
|
||||||
.PP
|
.PP
|
||||||
.B
|
.B
|
||||||
|
|
@ -234,6 +237,13 @@ analagous to the offset maintained by the kernel for each open file descriptor.
|
||||||
and
|
and
|
||||||
.I fswrite
|
.I fswrite
|
||||||
read and write from this offset, and update it after successful calls.
|
read and write from this offset, and update it after successful calls.
|
||||||
|
.I Fsseek
|
||||||
|
sets the offset; the
|
||||||
|
.I n
|
||||||
|
and
|
||||||
|
.I type
|
||||||
|
arguments are used as in
|
||||||
|
.IR seek (3).
|
||||||
Calling
|
Calling
|
||||||
.I fspread
|
.I fspread
|
||||||
or
|
or
|
||||||
|
|
@ -337,6 +347,3 @@ transaction, or to
|
||||||
and
|
and
|
||||||
.I create
|
.I create
|
||||||
on already-established fids.
|
on already-established fids.
|
||||||
.PP
|
|
||||||
There is no
|
|
||||||
.IR fsseek .
|
|
||||||
|
|
|
||||||
|
|
@ -41,6 +41,7 @@ threadsetgrp,
|
||||||
threadsetname,
|
threadsetname,
|
||||||
threadsetstate,
|
threadsetstate,
|
||||||
threadspawn,
|
threadspawn,
|
||||||
|
threadspawnl,
|
||||||
threadwaitchan,
|
threadwaitchan,
|
||||||
yield \- thread and proc management
|
yield \- thread and proc management
|
||||||
.SH SYNOPSIS
|
.SH SYNOPSIS
|
||||||
|
|
@ -119,6 +120,7 @@ int nbsendp(Channel *c, void *v)
|
||||||
int nbsendul(Channel *c, ulong v)
|
int nbsendul(Channel *c, ulong v)
|
||||||
int chanprint(Channel *c, char *fmt, ...)
|
int chanprint(Channel *c, char *fmt, ...)
|
||||||
.XX
|
.XX
|
||||||
|
int threadspawnl(int fd[3], char *file, ...)
|
||||||
int threadspawn(int fd[3], char *file, char *args[])
|
int threadspawn(int fd[3], char *file, char *args[])
|
||||||
int threadexecl(Channel *cpid, int fd[3], char *file, ...)
|
int threadexecl(Channel *cpid, int fd[3], char *file, ...)
|
||||||
int threadexec(Channel *cpid, int fd[3], char *file, char *args[])
|
int threadexec(Channel *cpid, int fd[3], char *file, char *args[])
|
||||||
|
|
@ -391,11 +393,15 @@ fd[1] = dup(1, -1);
|
||||||
fd[2] = dup(2, -1);
|
fd[2] = dup(2, -1);
|
||||||
.EE
|
.EE
|
||||||
.PP
|
.PP
|
||||||
.I Threadspawn
|
.I Threadspawnl
|
||||||
is like
|
and
|
||||||
|
.I threadspawn
|
||||||
|
are like
|
||||||
|
.I threadexecl
|
||||||
|
and
|
||||||
.I threadexec
|
.I threadexec
|
||||||
but does not replace the current thread.
|
but do not replace the current thread.
|
||||||
It returns the pid of the invoked program on success, or
|
They return the pid of the invoked program on success, or
|
||||||
\-1 on error.
|
\-1 on error.
|
||||||
.PP
|
.PP
|
||||||
.I Threadwaitchan
|
.I Threadwaitchan
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue