standardize on unnamed args in prototypes
This commit is contained in:
parent
cea3c34644
commit
03b6376f56
1 changed files with 46 additions and 46 deletions
92
defs.h
92
defs.h
|
@ -1,23 +1,23 @@
|
||||||
// kalloc.c
|
// kalloc.c
|
||||||
char *kalloc(int n);
|
char *kalloc(int);
|
||||||
void kfree(char *cp, int len);
|
void kfree(char*, int);
|
||||||
void kinit(void);
|
void kinit(void);
|
||||||
|
|
||||||
// console.c
|
// console.c
|
||||||
void console_init(void);
|
void console_init(void);
|
||||||
void cprintf(char *fmt, ...);
|
void cprintf(char*, ...);
|
||||||
void panic(char *s);
|
void panic(char*);
|
||||||
void kbd_intr(void);
|
void kbd_intr(void);
|
||||||
|
|
||||||
// proc.c
|
// proc.c
|
||||||
void pinit(void);
|
void pinit(void);
|
||||||
struct proc;
|
struct proc;
|
||||||
struct jmpbuf;
|
struct jmpbuf;
|
||||||
void setupsegs(struct proc *);
|
void setupsegs(struct proc*);
|
||||||
struct proc * copyproc(struct proc*);
|
struct proc* copyproc(struct proc*);
|
||||||
struct spinlock;
|
struct spinlock;
|
||||||
uint growproc(int);
|
uint growproc(int);
|
||||||
void sleep(void *, struct spinlock *);
|
void sleep(void*, struct spinlock*);
|
||||||
void wakeup(void *);
|
void wakeup(void *);
|
||||||
void scheduler(void);
|
void scheduler(void);
|
||||||
void proc_exit(void);
|
void proc_exit(void);
|
||||||
|
@ -35,10 +35,10 @@ void tvinit(void);
|
||||||
void idtinit(void);
|
void idtinit(void);
|
||||||
|
|
||||||
// string.c
|
// string.c
|
||||||
void * memset(void *dst, int c, uint n);
|
void * memset(void*, int, uint);
|
||||||
int memcmp(const void *v1, const void *v2, uint n);
|
int memcmp(const void*, const void*, uint);
|
||||||
void *memmove(void *dst, const void *src, uint n);
|
void *memmove(void*, const void*, uint);
|
||||||
int strncmp(const char *p, const char *q, uint n);
|
int strncmp(const char*, const char*, uint);
|
||||||
|
|
||||||
// syscall.c
|
// syscall.c
|
||||||
void syscall(void);
|
void syscall(void);
|
||||||
|
@ -65,67 +65,67 @@ int cpu(void);
|
||||||
// ioapic
|
// ioapic
|
||||||
extern uchar ioapic_id;
|
extern uchar ioapic_id;
|
||||||
void ioapic_init(void);
|
void ioapic_init(void);
|
||||||
void ioapic_enable (int irq, int cpu);
|
void ioapic_enable(int irq, int cpu);
|
||||||
|
|
||||||
// spinlock.c
|
// spinlock.c
|
||||||
struct spinlock;
|
struct spinlock;
|
||||||
void initlock(struct spinlock *, char *);
|
void initlock(struct spinlock*, char*);
|
||||||
void acquire(struct spinlock*);
|
void acquire(struct spinlock*);
|
||||||
void release(struct spinlock*);
|
void release(struct spinlock*);
|
||||||
int holding(struct spinlock*);
|
int holding(struct spinlock*);
|
||||||
|
|
||||||
// main.c
|
// main.c
|
||||||
void load_icode(struct proc *p, uchar *binary, uint size);
|
void load_icode(struct proc*, uchar*, uint);
|
||||||
|
|
||||||
// pipe.c
|
// pipe.c
|
||||||
struct pipe;
|
struct pipe;
|
||||||
struct fd;
|
struct fd;
|
||||||
int pipe_alloc(struct fd **fd1, struct fd **fd2);
|
int pipe_alloc(struct fd**, struct fd**);
|
||||||
void pipe_close(struct pipe *p, int writeable);
|
void pipe_close(struct pipe*, int);
|
||||||
int pipe_write(struct pipe *p, char *addr, int n);
|
int pipe_write(struct pipe*, char*, int);
|
||||||
int pipe_read(struct pipe *p, char *addr, int n);
|
int pipe_read(struct pipe*, char*, int);
|
||||||
|
|
||||||
// fd.c
|
// fd.c
|
||||||
struct stat;
|
struct stat;
|
||||||
void fd_init(void);
|
void fd_init(void);
|
||||||
int fd_ualloc(void);
|
int fd_ualloc(void);
|
||||||
struct fd * fd_alloc(void);
|
struct fd* fd_alloc(void);
|
||||||
void fd_close(struct fd *);
|
void fd_close(struct fd*);
|
||||||
int fd_read(struct fd *fd, char *addr, int n);
|
int fd_read(struct fd*, char*, int n);
|
||||||
int fd_write(struct fd *fd, char *addr, int n);
|
int fd_write(struct fd*, char*, int n);
|
||||||
int fd_stat(struct fd *fd, struct stat *);
|
int fd_stat(struct fd*, struct stat*);
|
||||||
void fd_incref(struct fd *fd);
|
void fd_incref(struct fd*);
|
||||||
|
|
||||||
// ide.c
|
// ide.c
|
||||||
void ide_init(void);
|
void ide_init(void);
|
||||||
void ide_intr(void);
|
void ide_intr(void);
|
||||||
void* ide_start_rw(int diskno, uint secno, void *dst, uint nsecs, int read);
|
void* ide_start_rw(int, uint, void*, uint, int);
|
||||||
int ide_finish(void *);
|
int ide_finish(void*);
|
||||||
|
|
||||||
// bio.c
|
// bio.c
|
||||||
void binit(void);
|
void binit(void);
|
||||||
struct buf;
|
struct buf;
|
||||||
struct buf * getblk(uint dev, uint sector);
|
struct buf* getblk(uint dev, uint sector);
|
||||||
struct buf *bread(uint, uint);
|
struct buf* bread(uint, uint);
|
||||||
void bwrite(struct buf *, uint);
|
void bwrite(struct buf*, uint);
|
||||||
void brelse(struct buf *);
|
void brelse(struct buf*);
|
||||||
|
|
||||||
// fs.c
|
// fs.c
|
||||||
extern uint rootdev;
|
extern uint rootdev;
|
||||||
void iinit(void);
|
void iinit(void);
|
||||||
struct inode * iget(uint dev, uint inum);
|
struct inode* iget(uint, uint);
|
||||||
void ilock(struct inode *ip);
|
void ilock(struct inode*);
|
||||||
void iunlock(struct inode *ip);
|
void iunlock(struct inode*);
|
||||||
void itrunc(struct inode *ip);
|
void itrunc(struct inode*);
|
||||||
void idecref(struct inode *ip);
|
void idecref(struct inode*);
|
||||||
void iincref(struct inode *ip);
|
void iincref(struct inode*);
|
||||||
void iput(struct inode *ip);
|
void iput(struct inode*);
|
||||||
struct inode * namei(char *path, int, uint *, char **, struct inode **);
|
struct inode* namei(char*, int, uint*, char**, struct inode**);
|
||||||
void stati(struct inode *ip, struct stat *st);
|
void stati(struct inode*, struct stat*);
|
||||||
int readi(struct inode *ip, char *xdst, uint off, uint n);
|
int readi(struct inode*, char*, uint, uint);
|
||||||
int writei(struct inode *ip, char *addr, uint off, uint n);
|
int writei(struct inode*, char*, uint, uint);
|
||||||
struct inode *mknod(char *, short, short, short);
|
struct inode* mknod(char*, short, short, short);
|
||||||
struct inode * mknod1(struct inode *, char *, short, short, short);
|
struct inode* mknod1(struct inode*, char*, short, short, short);
|
||||||
int unlink(char *cp);
|
int unlink(char*);
|
||||||
void iupdate (struct inode *ip);
|
void iupdate(struct inode*);
|
||||||
int link(char *file1, char *file2);
|
int link(char*, char*);
|
||||||
|
|
Loading…
Reference in a new issue