Plan 9 from Bell Labs’s /usr/web/sources/extra/9hist/ss/fns.h

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


## diffname ss/fns.h 1990/1223
## diff -e /dev/null /n/bootesdump/1990/1223/sys/src/9/sparc/fns.h
0a
Alarm	*alarm(int, void (*)(Alarm*), void*);
void	alarminit(void);
Block	*allocb(ulong);
void	append(List**, List*);
void	cancel(Alarm*);
int	canlock(Lock*);
int	canqlock(QLock*);
void	chaninit(void);
void	chandevreset(void);
void	chandevinit(void);
void	checkalarms(void);
void	clearmmucache(void);
void	clock(Ureg*);
Chan	*clone(Chan*, Chan*);
void	close(Chan*);
void	closemount(Mount*);
void	closepgrp(Pgrp*);
long	clrfpintr(void);
int	compactpte(Orig*, ulong);
void	confinit(void);
Env	*copyenv(Env*, int);
Chan	*createdir(Chan*);
int	decref(Ref*);
void	delay(int);
void	delete(List**, List*, List*);
void	delete0(List**, List*);
Chan	*devattach(int, char*);
Chan	*devclone(Chan*, Chan*);
void	devdir(Chan*, Qid, char*, long, long, Dir*);
long	devdirread(Chan*, char*, long, Dirtab*, int, Devgen*);
Devgen	devgen;
int	devno(int, int);
Chan	*devopen(Chan*, int, Dirtab*, int, Devgen*);
void	devstat(Chan*, char*, Dirtab*, int, Devgen*);
int	devwalk(Chan*, char*, Dirtab*, int, Devgen*);
Chan	*domount(Chan*);
void	duartbaud(int);
void	duartbreak(int);
void	duartdtr(int);
int	duartinputport(void);
void	duartstartrs232o(void);
void	duartstarttimer(void);
void	duartstoptimer(void);
void	dumpregs(Ureg*);
void	dumpstack(void);
int	eqchan(Chan*, Chan*, long);
int	eqqid(Qid, Qid);
void	envpgclose(Env *);
void	error(int);
void	errors(char*);
void	exit(void);
int	fault(ulong, int);
void	fault68020(Ureg*, FFrame*);
void	fdclose(int);
Chan	*fdtochan(int, int);
void	filsys(Chan*, char*, long);
void	filsysinit(void);
void	firmware(void);
void	flowctl(Queue*);
void	flushcpucache(void);
void	flushmmu(void);
void	forkmod(Seg*, Seg*, Proc*);
int	fpcr(int);
void	fpsave(FPsave*);
void	fpregsave(char*);
void	fprestore(FPsave*);
void	fpregrestore(char*);
void	freeb(Block*);
int	freebroken(void);
void	freenextmod(PTE*);
void	freepage(Orig*, int);
void	freepte(Orig*);
void	freesegs(int);
void	freealarm(Alarm*);
Block	*getb(Blist*);
int	getfields(char*, char**, int, char);
Block	*getq(Queue*);
int	getrs232o(void);
void	gotolabel(Label*);
void	growpte(Orig*, ulong);
void	*ialloc(ulong, int);
int	incref(Ref*);
void	insert(List**, List*, List*);
void	invalidateu(void);
void	isdir(Chan*);
void	kbdchar(int);
void	kbdrepeat(int);
void	kbdclock(void);
void	kmapinit(void);
KMap	*kmap(Page*);
int	kprint(char*, ...);
void	kproc(char*, void(*)(void*), void*);
void	kunmap(KMap*);
void	lock(Lock*);
void	lockinit(void);
Orig	*lookorig(ulong, ulong, int, Chan*);
void	machinit(void);
void	mapstack(Proc*);
void	mmuinit(void);
int	mount(Chan*, Chan*, int);
void	mousebuttons(int);
void	mouseclock(void);
Chan	*namec(char*, int, int, ulong);
void	nexterror(void);
Alarm	*newalarm(void);
Chan	*newchan(void);
PTE	*newmod(Orig *o);
Mount	*newmount(void);
Orig	*neworig(ulong, ulong, int, Chan*);
Page	*newpage(int, Orig*, ulong);
Pgrp	*newpgrp(void);
Proc	*newproc(void);
void	newqinfo(Qinfo*);
char	*nextelem(char*, char*);
void	notify(Ureg*);
void	nullput(Queue*, Block*);
int	openmode(ulong);
Block	*padb(Block*, int);
void	pageinit(void);
void	panic(char*, ...);
void	pexit(char*, int);
void	pgrpcpy(Pgrp*, Pgrp*);
void	pgrpinit(void);
void	pgrpnote(Pgrp*, char*, long, int);
Pgrp	*pgrptab(int);
int	postnote(Proc*, int, char*, int);
int	pprint(char*, ...);
void	printinit(void);
void	printslave(void);
void	procinit0(void);
void	procrestore(Proc*, uchar*);
void	procsave(uchar*, int);
void	procsetup(Proc*);
Proc	*proctab(int);
Queue	*pushq(Stream*, Qinfo*);
void	putbq(Blist*, Block*);
void	putkmmu(ulong, ulong);
void	putmmu(ulong, ulong);
int	putq(Queue*, Block*);
void	putstr(char*);
void	putstrn(char*, long);
ulong	pwait(Waitmsg*);
int	readnum(ulong, char*, ulong, ulong, int);
void	ready(Proc*);
void	reset(void);
int	return0(void*);
void	rs232ichar(int);
Proc	*runproc(void);
void	qlock(QLock*);
void	qunlock(QLock*);
void	restartprint(Alarm*);
void	restfpregs(FPsave*);
void	savefpregs(FPsave*);
void	sched(void);
void	schedinit(void);
void	screeninit(void);
void	screenputc(int);
long	seconds(void);
Seg	*seg(Proc*, ulong);
int	segaddr(Seg*, ulong, ulong);
void	serviceinit(void);
void	service(char*, Chan*, Chan*, void (*)(Chan*, char*, long));
int	setlabel(Label*);
char	*skipslash(char*);
void	sleep(Rendez*, int(*)(void*), void*);
int	splhi(void);
int	spllo(void);
void	splx(int);
void	spldone(void);
Devgen	streamgen;
int	streamclose(Chan*);
int	streamclose1(Stream*);
int	streamenter(Stream*);
int	streamexit(Stream*, int);
void	streaminit(void);
long	streamread(Chan*, void*, long);
long	streamwrite(Chan*, void*, long, int);
Stream	*streamnew(ushort, ushort, ushort, Qinfo*, int);
void	streamopen(Chan*, Qinfo*);
int	streamparse(char*, Block*);
void	streamstat(Chan*, char*, char*);
long	stringread(Chan*, void*, long, char*);
long	syscall(Ureg*);
int	tas(char*);
void	touser(void);
void	tsleep(Rendez*, int (*)(void*), void*, int);
void	twakeme(Alarm*);
long	unionread(Chan*, void*, long);
void	unlock(Lock*);
void	usepage(Page*, int);
void	unusepage(Page*, int);
void	userinit(void);
void	validaddr(ulong, ulong, int);
void	*vmemchr(void*, int, int);
void	wakeme(Alarm*);
void	wakeup(Rendez*);
Chan	*walk(Chan*, char*, int);

#define	waserror()	(u->nerrlab++, setlabel(&u->errlab[u->nerrlab-1]))
#define	poperror()	u->nerrlab--

#define	evenaddr(x)	/* 68020 doesn't care */

#define USED(x) if(x)
.
## diffname ss/fns.h 1990/1226
## diff -e /n/bootesdump/1990/1223/sys/src/9/sparc/fns.h /n/bootesdump/1990/1226/sys/src/9/sparc/fns.h
201,202d
185c
void	touser(ulong);
void	trap(Ureg*);
void	trapinit(void);
.
169a
ulong	swap1(ulong*);
.
141a
void	puttbr(ulong);
void	putw2(ulong, ulong);
void	putwD(ulong, ulong);
void	putwE(ulong, ulong);
.
139a
void	putsegm(ulong, int);
.
138a
void	putpmeg(ulong, ulong);
.
137c
void	putcontext(int);
void	putcxsegm(int, ulong, int);
.
135a
void	putb2(ulong, int);
.
78a
int	getw2(ulong);
.
75a
int	getb2(ulong);
.
50a
void	evenaddr(ulong);
char	*excname(ulong);
void	execpc(ulong);
.
12c
#define	clearmmucache()
.
4a
void	cacheinit(void);
.
## diffname ss/fns.h 1990/1227
## diff -e /n/bootesdump/1990/1226/sys/src/9/sparc/fns.h /n/bootesdump/1990/1227/sys/src/9/sparc/fns.h
153a
void	putw4(ulong, ulong);
void	putwC(ulong, ulong);
.
96a
KMap	*kmappa(ulong, ulong);
.
14a
void	clockinit(void);
.
3a
int	anyready(void);
.
## diffname ss/fns.h 1990/1231
## diff -e /n/bootesdump/1990/1227/sys/src/9/sparc/fns.h /n/bootesdump/1990/1231/sys/src/9/sparc/fns.h
224a
#define SET(x) x = 0
#define	wbflush()	/* mips compatibility */
.
147a
void	putcxreg(int);
.
144a
int	putb(Blist*, Block*);
.
123a
int	nonetcksum(Block*, int);
void	nonetfreeifc(Noifc*);
Noifc*	nonetnewifc(Queue*, Stream*, int, int, int, void (*)(Noconv*, char*));
void	nonetrcvmsg(Noconv*, Block*);
.
110a
void	mousechar(int);
.
102a
void	lanceintr(void);
void	lancesetup(Lance*);
.
42a
void	duartinit(void);
void	duartintr(void);
.
## diffname ss/fns.h 1991/0110
## diff -e /n/bootesdump/1990/1231/sys/src/9/sparc/fns.h /n/bootesdump/1991/0110/sys/src/9/sparc/fns.h
171a
void	putwE16(ulong, ulong);
.
170a
void	putwD16(ulong, ulong);
.
93a
void	intrinit(void);
.
61c
void	faultasync(Ureg*);
.
## diffname ss/fns.h 1991/0115
## diff -e /n/bootesdump/1991/0110/sys/src/9/sparc/fns.h /n/bootesdump/1991/0115/sys/src/9/sparc/fns.h
240a
#define	flushvirt()	flushmmu()
.
209a
void	streaminit0(void);
.
## diffname ss/fns.h 1991/01151
## diff -e /n/bootesdump/1991/0115/sys/src/9/sparc/fns.h /n/bootesdump/1991/01151/sys/src/9/sparc/fns.h
237a

/*
 *  no external state to save on the SPARC
 */
#define procsetup(x)
#define procsave(x,y)
#define procrestore(x,y)

.
133a
void	nonettoggle(void);
.
107a
void	lancetoggle(void);
.
61a
void	faultsparc(Ureg*);
.
13a
void	clearfpintr(void);
.
## diffname ss/fns.h 1991/0118
## diff -e /n/bootesdump/1991/01151/sys/src/9/sparc/fns.h /n/bootesdump/1991/0118/sys/src/9/sparc/fns.h
246c
#define procsetup(x)	((p)->fpstate = FPinit)
.
## diffname ss/fns.h 1991/0312
## diff -e /n/bootesdump/1991/0201/sys/src/9/sparc/fns.h /n/bootesdump/1991/0312/sys/src/9/slc/fns.h
254a
#define	flushpage(x)
.
## diffname ss/fns.h 1991/0325
## diff -e /n/bootesdump/1991/0312/sys/src/9/slc/fns.h /n/bootesdump/1991/0325/sys/src/9/slc/fns.h
135c
Noifc	*nonetnewifc(Queue*, Stream*, int, int, int, void (*)(Noconv*, char*));
.
## diffname ss/fns.h 1991/0328
## diff -e /n/bootesdump/1991/0325/sys/src/9/slc/fns.h /n/bootesdump/1991/0328/sys/src/9/slc/fns.h
133,137d
## diffname ss/fns.h 1991/0413
## diff -e /n/bootesdump/1991/0328/sys/src/9/slc/fns.h /n/bootesdump/1991/0413/sys/src/9/slc/fns.h
216c
long	stringread(Chan*, void*, long, char*, ulong);
.
## diffname ss/fns.h 1991/0414
## diff -e /n/bootesdump/1991/0413/sys/src/9/slc/fns.h /n/bootesdump/1991/0414/sys/src/9/slc/fns.h
79a
void	freechan(Chan*);
.
## diffname ss/fns.h 1991/0419
## diff -e /n/bootesdump/1991/0414/sys/src/9/slc/fns.h /n/bootesdump/1991/0419/sys/src/9/slc/fns.h
32a
Chan	*devclwalk(Chan*, char*);
.
## diffname ss/fns.h 1991/0428
## diff -e /n/bootesdump/1991/0419/sys/src/9/slc/fns.h /n/bootesdump/1991/0428/sys/src/9/slc/fns.h
251,252c
#define	waserror()	(u->nerrlab++, setlabel(&u->errlab[u->nerrlab-1]))
.
224,249d
205,220d
192,202d
187,189c
void	rs232ichar(int);
.
180,184d
176,178c
void	putwE(ulong, ulong);
.
174c
void	putwD(ulong, ulong);
.
172d
164d
162d
158d
149,156c
#define	procrestore(x,y)
#define	procsave(x,y)
#define	procsetup(x)	((p)->fpstate = FPinit)
.
123,147d
119d
113,117d
108d
105,106c
KMap*	kmappa(ulong, ulong);
.
103a
void	kbdrepeat(int);
KMap*	kmap(Page*);
.
102d
99,100d
93,97d
89,90d
78,87c
void	fpsave(FPsave*);
.
75c
void	fpregrestore(char*);
.
72,73c
#define	flushpage(x)
#define	flushvirt()	flushmmu()
.
65,70d
59,62c
char*	excname(ulong);
.
51,57d
47a
void	duartintr(void);
.
46d
18,41d
16d
7,13d
1,5c
#include "../port/portfns.h"

.
## diffname ss/fns.h 1991/0604
## diff -e /n/bootesdump/1991/0428/sys/src/9/slc/fns.h /n/bootesdump/1991/0604/sys/src/9/slc/fns.h
50a
int	putc(IOQ*, int);
void	puts(IOQ*, void*, int);
.
45c
int	mouseputc(IOQ*, int);
.
32c
void	ioinit(void);
int	kbdputc(IOQ*, int);
int	kbdstate(IOQ*, int);
.
30a
void	initq(IOQ*);
.
27a
int	getc(IOQ*);
int	gets(IOQ*, void*, int);
.
3a
int	cangetc(void*);
int	canputc(void*);
.
## diffname ss/fns.h 1991/0605
## diff -e /n/bootesdump/1991/0604/sys/src/9/slc/fns.h /n/bootesdump/1991/0605/sys/src/9/slc/fns.h
79a
void	sccintr(void);
void	sccputs(IOQ*, char*, int);
void	sccsetup(void*);
void	sccspecial(int, IOQ*, IOQ*, int);
.
## diffname ss/fns.h 1991/0606
## diff -e /n/bootesdump/1991/0605/sys/src/9/slc/fns.h /n/bootesdump/1991/0606/sys/src/9/slc/fns.h
92a

/*
 *  for queues (to go into portfns.h)
 */
int	cangetc(void*);
int	canputc(void*);
int	getc(IOQ*);
int	gets(IOQ*, void*, int);
void	initq(IOQ*);
int	putc(IOQ*, int);
void	puts(IOQ*, void*, int);

/*
 *  for the scc (to go into portfns.h)
 */
void	sccintr(void);
void	sccputs(IOQ*, char*, int);
void	sccsetup(void*);
void	sccspecial(int, IOQ*, IOQ*, int);

/*
 *  for devcons (to go into portfns.h)
 */
void	kbdclock(void);
void	kbdrepeat(int);
int	kbdputc(IOQ*, int);
int	kprint(char*, ...);
int	mouseputc(IOQ*, int);
void	printinit(void);
void	putstr(char*);
void	putstrn(char*, long);
.
79,83d
58,59d
52d
38d
35d
33d
30,31d
9,17d
4,5d
## diffname ss/fns.h 1991/0607
## diff -e /n/bootesdump/1991/0606/sys/src/9/slc/fns.h /n/bootesdump/1991/0607/sys/src/9/slc/fns.h
69,99d
61a
void	screenputs(char*, int);
.
## diffname ss/fns.h 1991/0730
## diff -e /n/bootesdump/1991/0607/sys/src/9/slc/fns.h /n/bootesdump/1991/0730/sys/src/9/slc/fns.h
36d
## diffname ss/fns.h 1991/0926
## diff -e /n/bootesdump/1991/0730/sys/src/9/slc/fns.h /n/bootesdump/1991/0926/sys/src/9/slc/fns.h
56c
void	systemreset(void);
.
## diffname ss/fns.h 1991/1007
## diff -e /n/bootesdump/1991/0926/sys/src/9/slc/fns.h /n/bootesdump/1991/1007/sys/src/9/slc/fns.h
13d
## diffname ss/fns.h 1991/1106
## diff -e /n/bootesdump/1991/1007/sys/src/9/slc/fns.h /n/bootesdump/1991/1106/sys/src/9/slc/fns.h
28a
void	kproftimer(ulong);
.
## diffname ss/fns.h 1992/0101
## diff -e /n/bootesdump/1991/1106/sys/src/9/slc/fns.h /n/bootesdump/1992/0101/sys/src/9/slc/fns.h
27a
KMap*	kmapperm(Page*);
.
## diffname ss/fns.h 1992/0125
## diff -e /n/bootesdump/1992/0101/sys/src/9/slc/fns.h /n/bootesdump/1992/0125/sys/src/9/slc/fns.h
38,39c
#define	procrestore(p)
#define	procsave(p)
.
## diffname ss/fns.h 1992/0222
## diff -e /n/bootesdump/1992/0125/sys/src/9/slc/fns.h /n/bootesdump/1992/0222/sys/src/9/slc/fns.h
69a
#define getcallerpc(x)	(*(ulong*)(x))
.
64c
ulong	tas(ulong*);
.
## diffname ss/fns.h 1992/0602
## diff -e /n/bootesdump/1992/0222/sys/src/9/slc/fns.h /n/bootesdump/1992/0602/sys/src/9/slc/fns.h
58d
## diffname ss/fns.h 1992/0619
## diff -e /n/bootesdump/1992/0602/sys/src/9/slc/fns.h /n/bootesdump/1992/0619/sys/src/9/slc/fns.h
25a
#define KADDR(a)	((void*)((ulong)(a)|KZERO))
#define PADDR(a)	((ulong)(a)&~KZERO)
.
## diffname ss/fns.h 1992/0726
## diff -e /n/bootesdump/1992/0619/sys/src/9/slc/fns.h /n/bootesdump/1992/0726/sys/src/9/slc/fns.h
18a
int	getfpq(ulong*);
ulong	getfsr(void);
.
17a
int	fptrap(void);
.
6a
void	disabfp(void);
void	enabfp(void);
.
4c
void	clearftt(ulong);
.
## diffname ss/fns.h 1992/0802
## diff -e /n/bootesdump/1992/0726/sys/src/9/slc/fns.h /n/bootesdump/1992/0802/sys/src/9/slc/fns.h
15a
int	fpquiet(void);
.
## diffname ss/fns.h 1992/0804
## diff -e /n/bootesdump/1992/0802/sys/src/9/slc/fns.h /n/bootesdump/1992/0804/sys/src/9/slc/fns.h
66c
void	restfpregs(FPsave*, ulong);
.
## diffname ss/fns.h 1992/0806
## diff -e /n/bootesdump/1992/0804/sys/src/9/slc/fns.h /n/bootesdump/1992/0806/sys/src/9/slc/fns.h
58,64d
54a
void	(*putsysspace)(ulong, ulong);
.
52a
void	(*putenab)(ulong);
.
49,51d
25c
ulong	(*getsysspace)(ulong);
.
22d
## diffname ss/fns.h 1992/0807
## diff -e /n/bootesdump/1992/0807/sys/src/9/slc/fns.h /n/bootesdump/1992/0807/sys/src/9/ss/fns.h
68a

/*
 * compiled entry points
 */
extern	void	(*putcontext)(ulong);
extern	void	(*putenab)(ulong);
extern	ulong	(*getenab)(void);
extern	void	(*putpmegspace)(ulong, ulong);
extern	void	(*putsysspace)(ulong, ulong);
extern	ulong	(*getsysspace)(ulong);
extern	ulong	(*flushcx)(ulong);
extern	ulong	(*flushpg)(ulong);
.
60a
Scsibuf	*scsialloc(ulong);
int	scsibread(int, Scsibuf*, long, long, long);
int	scsibwrite(int, Scsibuf*, long, long, long);
Scsibuf	*scsibuf(void);
int	scsicap(int, void*);
void	scsifree(Scsibuf*);
void	scsiintr(void);
int	scsiready(int);
int	scsisense(int, void *);
.
55a
void	putw4(ulong, ulong);	/* needed only at boot time */
.
52d
49d
24d
## diffname ss/fns.h 1992/0808
## diff -e /n/bootesdump/1992/0807/sys/src/9/ss/fns.h /n/bootesdump/1992/0808/sys/src/9/ss/fns.h
66,67d
59,64d
3a
ulong	call(void*, ...);
.
## diffname ss/fns.h 1992/0810
## diff -e /n/bootesdump/1992/0808/sys/src/9/ss/fns.h /n/bootesdump/1992/0810/sys/src/9/ss/fns.h
60a
void	setpsr(ulong);
.
24a
ulong	getpsr(void);
.
## diffname ss/fns.h 1992/0812
## diff -e /n/bootesdump/1992/0810/sys/src/9/ss/fns.h /n/bootesdump/1992/0812/sys/src/9/ss/fns.h
58c
void	screeninit(char*);
.
36a
ulong	kmapregion(ulong, ulong, ulong);
.
## diffname ss/fns.h 1992/0904
## diff -e /n/bootesdump/1992/0812/sys/src/9/ss/fns.h /n/bootesdump/1992/0904/sys/src/9/ss/fns.h
59c
void	screeninit(char*, int);
.
## diffname ss/fns.h 1992/0911
## diff -e /n/bootesdump/1992/0904/sys/src/9/ss/fns.h /n/bootesdump/1992/0911/sys/src/9/ss/fns.h
76,83c
extern ulong	(*getcontext)(void);
extern void	(*putcontext)(ulong);
extern void	(*putenab)(ulong);
extern ulong	(*getenab)(void);
extern ulong	(*getsysspace)(ulong);
extern void	(*putsysspace)(ulong, ulong);
extern uchar	(*getsysspaceb)(ulong);
extern void	(*putsysspaceb)(ulong, uchar);
extern ulong	(*getsegspace)(ulong);
extern void	(*putsegspace)(ulong, ulong);
extern ulong	(*getpmegspace)(ulong);
extern void	(*putpmegspace)(ulong, ulong);
extern ulong	(*flushcx)(ulong);
extern ulong	(*flushpg)(ulong);
extern ulong	(*flushpm)(ulong);
.
15d
7a
void	compile(void);
.
## diffname ss/fns.h 1992/0912
## diff -e /n/bootesdump/1992/0911/sys/src/9/ss/fns.h /n/bootesdump/1992/0912/sys/src/9/ss/fns.h
90d
88d
71c
#define getcallerpc(x)	_getcallerpc()
ulong	_getcallerpc(void);
.
## diffname ss/fns.h 1992/1015
## diff -e /n/bootesdump/1992/0912/sys/src/9/ss/fns.h /n/bootesdump/1992/1015/sys/src/9/ss/fns.h
68a
#define	screenupdate(a)
.
## diffname ss/fns.h 1992/1020
## diff -e /n/bootesdump/1992/1015/sys/src/9/ss/fns.h /n/bootesdump/1992/1020/sys/src/9/ss/fns.h
2a
void	bootargs(ulong);
.
## diffname ss/fns.h 1992/1030
## diff -e /n/bootesdump/1992/1020/sys/src/9/ss/fns.h /n/bootesdump/1992/1030/sys/src/9/ss/fns.h
70d
## diffname ss/fns.h 1993/0116
## diff -e /n/bootesdump/1992/1030/sys/src/9/ss/fns.h /n/bootesdump/1993/0116/sys/src/9/ss/fns.h
45a
#define	mmunewpage(x)
.
## diffname ss/fns.h 1993/0501 # deleted
## diff -e /n/bootesdump/1993/0116/sys/src/9/ss/fns.h /n/fornaxdump/1993/0501/sys/src/brazil/ss/fns.h
1,91d

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to webmaster@9p.io.