|
@@ -10,12 +10,12 @@
|
|
|
void _assert(char*);
|
|
|
void accounttime(void);
|
|
|
void acsched(void);
|
|
|
-void addbootfile(char*, uchar*, uint32_t);
|
|
|
+void addbootfile(char*, unsigned char*, uint32_t);
|
|
|
Timer* addclock0link(void (*)(void), int);
|
|
|
int addconsdev(Queue*, void (*fn)(char*,int), int, int);
|
|
|
int addkbdq(Queue*, int);
|
|
|
int addphysseg(Physseg*);
|
|
|
-void addwaitstat(uintptr pc, uvlong t0, int type);
|
|
|
+void addwaitstat(uintptr pc, uint64_t t0, int type);
|
|
|
void addwatchdog(Watchdog*);
|
|
|
int adec(int*);
|
|
|
Block* adjustblock(Block*, int);
|
|
@@ -27,7 +27,7 @@ int anyhigher(void);
|
|
|
int anyready(void);
|
|
|
Image* attachimage(int, Chan*, int, uintptr, usize);
|
|
|
Page* auxpage(usize);
|
|
|
-Block* bl2mem(uchar*, Block*, int);
|
|
|
+Block* bl2mem(unsigned char*, Block*, int);
|
|
|
int blocklen(Block*);
|
|
|
void bootlinks(void);
|
|
|
void cachedel(Image*, uint32_t);
|
|
@@ -66,12 +66,12 @@ void delay(int);
|
|
|
void delconsdevs(void);
|
|
|
Proc* dequeueproc(Sched*, Schedq*, Proc*);
|
|
|
Chan* devattach(int, char*);
|
|
|
-Block* devbread(Chan*, long, vlong);
|
|
|
-long devbwrite(Chan*, Block*, vlong);
|
|
|
+Block* devbread(Chan*, long, int64_t);
|
|
|
+long devbwrite(Chan*, Block*, int64_t);
|
|
|
Chan* devclone(Chan*);
|
|
|
int devconfig(int, char *, DevConf *);
|
|
|
void devcreate(Chan*, char*, int, int);
|
|
|
-void devdir(Chan*, Qid, char*, vlong, char*, long, Dir*);
|
|
|
+void devdir(Chan*, Qid, char*, int64_t, char*, long, Dir*);
|
|
|
long devdirread(Chan*, char*, long, Dirtab*, int, Devgen*);
|
|
|
Devgen devgen;
|
|
|
void devinit(void);
|
|
@@ -81,16 +81,16 @@ void devpower(int);
|
|
|
void devremove(Chan*);
|
|
|
void devreset(void);
|
|
|
void devshutdown(void);
|
|
|
-long devstat(Chan*, uchar*, long, Dirtab*, int, Devgen*);
|
|
|
+long devstat(Chan*, unsigned char*, long, Dirtab*, int, Devgen*);
|
|
|
Dev* devtabget(int, int);
|
|
|
void devtabinit(void);
|
|
|
-long devtabread(Chan*, void*, long, vlong);
|
|
|
+long devtabread(Chan*, void*, long, int64_t);
|
|
|
void devtabreset(void);
|
|
|
void devtabshutdown(void);
|
|
|
Walkqid* devwalk(Chan*, Chan*, char**, int, Dirtab*, int, Devgen*);
|
|
|
-long devwstat(Chan*, uchar*, long);
|
|
|
-int devzread(Chan*, Kzio*, int, usize, vlong);
|
|
|
-int devzwrite(Chan*, Kzio*, int, vlong);
|
|
|
+long devwstat(Chan*, unsigned char*, long);
|
|
|
+int devzread(Chan*, Kzio*, int, usize, int64_t);
|
|
|
+int devzwrite(Chan*, Kzio*, int, int64_t);
|
|
|
void drawactive(int);
|
|
|
void drawcmap(void);
|
|
|
void dumpaproc(Proc*);
|
|
@@ -116,9 +116,9 @@ int eqqid(Qid, Qid);
|
|
|
void error(char*);
|
|
|
void exhausted(char*);
|
|
|
void exit(int);
|
|
|
-uvlong fastticks(uvlong*);
|
|
|
-uvlong fastticks2ns(uvlong);
|
|
|
-uvlong fastticks2us(uvlong);
|
|
|
+uint64_t fastticks(uint64_t*);
|
|
|
+uint64_t fastticks2ns(uint64_t);
|
|
|
+uint64_t fastticks2us(uint64_t);
|
|
|
int fault(uintptr, int);
|
|
|
void fdclose(int, int);
|
|
|
Chan* fdtochan(int, int, int, int);
|
|
@@ -138,8 +138,8 @@ Segment* getzkseg(void);
|
|
|
void gotolabel(Label*);
|
|
|
int haswaitq(void*);
|
|
|
void hnputl(void*, uint);
|
|
|
-void hnputs(void*, ushort);
|
|
|
-void hnputv(void*, uvlong);
|
|
|
+void hnputs(void*, uint16_t);
|
|
|
+void hnputv(void*, uint64_t);
|
|
|
long hostdomainwrite(char*, long);
|
|
|
long hostownerwrite(char*, long);
|
|
|
void hzsched(void);
|
|
@@ -158,7 +158,7 @@ void ixsummary(void);
|
|
|
int kbdcr2nl(Queue*, int);
|
|
|
int kbdgetmap(int, int*, int*, Rune*);
|
|
|
int kbdputc(Queue*, int);
|
|
|
-void kbdputmap(ushort, ushort, Rune);
|
|
|
+void kbdputmap(uint16_t, uint16_t, Rune);
|
|
|
void kickpager(int, int);
|
|
|
void killbig(char*);
|
|
|
void kproc(char*, void(*)(void*), void*);
|
|
@@ -180,27 +180,27 @@ Cmdtab* lookupcmd(Cmdbuf*, Cmdtab*, int);
|
|
|
void mallocinit(void);
|
|
|
long mallocreadsummary(Chan*, void*, long, long);
|
|
|
void mallocsummary(void);
|
|
|
-Block* mem2bl(uchar*, int);
|
|
|
+Block* mem2bl(unsigned char*, int);
|
|
|
void (*mfcinit)(void);
|
|
|
void (*mfcopen)(Chan*);
|
|
|
-int (*mfcread)(Chan*, uchar*, int, vlong);
|
|
|
-void (*mfcupdate)(Chan*, uchar*, int, vlong);
|
|
|
-void (*mfcwrite)(Chan*, uchar*, int, vlong);
|
|
|
+int (*mfcread)(Chan*, unsigned char*, int, int64_t);
|
|
|
+void (*mfcupdate)(Chan*, unsigned char*, int, int64_t);
|
|
|
+void (*mfcwrite)(Chan*, unsigned char*, int, int64_t);
|
|
|
void mfreeseg(Segment*, uintptr, int);
|
|
|
void microdelay(int);
|
|
|
-uvlong mk64fract(uvlong, uvlong);
|
|
|
-void mkqid(Qid*, vlong, uint32_t, int);
|
|
|
+uint64_t mk64fract(uint64_t, uint64_t);
|
|
|
+void mkqid(Qid*, int64_t, uint32_t, int);
|
|
|
void mmuflush(void);
|
|
|
void mmuput(uintptr, Page*, uint);
|
|
|
void mmurelease(Proc*);
|
|
|
void mmuswitch(Proc*);
|
|
|
Chan* mntauth(Chan*, char*);
|
|
|
-usize mntversion(Chan*, u32int, char*, usize);
|
|
|
+usize mntversion(Chan*, uint32_t, char*, usize);
|
|
|
void mountfree(Mount*);
|
|
|
-uvlong ms2fastticks(uint32_t);
|
|
|
-#define MS2NS(n) (((vlong)(n))*1000000LL)
|
|
|
+uint64_t ms2fastticks(uint32_t);
|
|
|
+#define MS2NS(n) (((int64_t)(n))*1000000LL)
|
|
|
uint32_t ms2tk(uint32_t);
|
|
|
-void mul64fract(uvlong*, uvlong, uvlong);
|
|
|
+void mul64fract(uint64_t*, uint64_t, uint64_t);
|
|
|
void muxclose(Mnt*);
|
|
|
void (*mwait)(void *);
|
|
|
Chan* namec(char*, int, int, int);
|
|
@@ -214,15 +214,15 @@ Path* newpath(char*);
|
|
|
Pgrp* newpgrp(void);
|
|
|
Proc* newproc(void);
|
|
|
Rgrp* newrgrp(void);
|
|
|
-Segment* newseg(int, uintptr, u64int);
|
|
|
+Segment* newseg(int, uintptr, uint64_t);
|
|
|
void newzmap(Segment*);
|
|
|
void nexterror(void);
|
|
|
uint nhgetl(void*);
|
|
|
-ushort nhgets(void*);
|
|
|
-uvlong nhgetv(void*);
|
|
|
+uint16_t nhgets(void*);
|
|
|
+uint64_t nhgetv(void*);
|
|
|
void nixprepage(int);
|
|
|
int nrand(int);
|
|
|
-uvlong ns2fastticks(uvlong);
|
|
|
+uint64_t ns2fastticks(uint64_t);
|
|
|
int okaddr(uintptr, long, int);
|
|
|
int openmode(int);
|
|
|
Block* packblock(Block*);
|
|
@@ -230,7 +230,7 @@ Block* padblock(Block*, int);
|
|
|
void pagechainhead(Page*);
|
|
|
void pageinit(void);
|
|
|
uint32_t pagenumber(Page*);
|
|
|
-uvlong pagereclaim(Image*);
|
|
|
+uint64_t pagereclaim(Image*);
|
|
|
void pagersummary(void);
|
|
|
void pageunchain(Page*);
|
|
|
void panic(char*, ...);
|
|
@@ -242,10 +242,10 @@ Page* pgalloc(usize, int);
|
|
|
void pgfree(Page*);
|
|
|
void pgrpcpy(Pgrp*, Pgrp*);
|
|
|
void pgrpnote(uint32_t, char*, long, int);
|
|
|
-uintmem physalloc(u64int, int*, void*);
|
|
|
+uintmem physalloc(uint64_t, int*, void*);
|
|
|
void physdump(void);
|
|
|
-void physfree(uintmem, u64int);
|
|
|
-void physinit(uintmem, u64int);
|
|
|
+void physfree(uintmem, uint64_t);
|
|
|
+void physinit(uintmem, uint64_t);
|
|
|
void* phystag(uintmem);
|
|
|
void pio(Segment*, uintptr, uint32_t, Page**, int);
|
|
|
#define poperror() up->nerrlab--
|
|
@@ -264,7 +264,7 @@ void procinit0(void);
|
|
|
void procpriority(Proc*, int, int);
|
|
|
void procrestore(Proc*);
|
|
|
void procsave(Proc*);
|
|
|
-void (*proctrace)(Proc*, int, vlong);
|
|
|
+void (*proctrace)(Proc*, int, int64_t);
|
|
|
void proctracepid(Proc*);
|
|
|
void procwired(Proc*, int);
|
|
|
void psdecref(Proc*);
|
|
@@ -359,20 +359,20 @@ void startwaitstats(int);
|
|
|
int swapcount(uint32_t);
|
|
|
void swapinit(void);
|
|
|
void syscallfmt(int, va_list list);
|
|
|
-void sysretfmt(int, va_list, Ar0*, uvlong, uvlong);
|
|
|
+void sysretfmt(int, va_list, Ar0*, uint64_t, uint64_t);
|
|
|
void sysrforkchild(Proc*, Proc*);
|
|
|
void timeradd(Timer*);
|
|
|
void timerdel(Timer*);
|
|
|
-void timerintr(Ureg*, vlong);
|
|
|
-void timerset(uvlong);
|
|
|
+void timerintr(Ureg*, int64_t);
|
|
|
+void timerset(uint64_t);
|
|
|
void timersinit(void);
|
|
|
uint32_t tk2ms(uint32_t);
|
|
|
#define TK2MS(x) ((x)*(1000/HZ))
|
|
|
-uvlong tod2fastticks(vlong);
|
|
|
-vlong todget(vlong*);
|
|
|
+uint64_t tod2fastticks(int64_t);
|
|
|
+int64_t todget(int64_t*);
|
|
|
void todinit(void);
|
|
|
-void todset(vlong, vlong, int);
|
|
|
-void todsetfreq(vlong);
|
|
|
+void todset(int64_t, int64_t, int);
|
|
|
+void todsetfreq(int64_t);
|
|
|
Block* trimblock(Block*, int, int);
|
|
|
void tsleep(Rendez*, int (*)(void*), void*, long);
|
|
|
Uart* uartconsole(int, char*);
|
|
@@ -392,7 +392,7 @@ long userwrite(char*, long);
|
|
|
void* validaddr(void*, long, int);
|
|
|
void validname(char*, int);
|
|
|
char* validnamedup(char*, int);
|
|
|
-void validstat(uchar*, usize);
|
|
|
+void validstat(unsigned char*, usize);
|
|
|
void* vmemchr(void*, int, int);
|
|
|
Proc* wakeup(Rendez*);
|
|
|
int walk(Chan**, char**, int, int, int*);
|
|
@@ -403,7 +403,7 @@ uintptr zgetaddr(Segment*);
|
|
|
void zgrow(Segment*);
|
|
|
int ziofmt(Fmt*);
|
|
|
int zputaddr(Segment*, uintptr);
|
|
|
-ulong µs(void);
|
|
|
+uint32_t ms(void);
|
|
|
|
|
|
#pragma varargck argpos iprint 1
|
|
|
#pragma varargck argpos panic 1
|