changelog shortlog tags branches files raw gz bz2 help

Mercurial > hg > plan9front / changeset: fix bad function declarations in manpages

changeset 7149: b3130231b2b7
parent 7148: 932711537d36
child 7156: 9851d8234792
author: BurnZeZ
date: Tue, 09 Apr 2019 18:34:17 +0000
files: sys/man/2/9p sys/man/2/auth sys/man/2/cputime sys/man/2/draw sys/man/2/event sys/man/2/fcall sys/man/2/frame sys/man/2/ioproc sys/man/2/ip sys/man/2/memlayer sys/man/2/plumb sys/man/2/pool sys/man/2/print sys/man/2/strcat sys/man/2/symbol sys/man/2/ttf sys/man/2/window
description: fix bad function declarations in manpages
     1.1--- a/sys/man/2/9p
     1.2+++ b/sys/man/2/9p
     1.3@@ -66,7 +66,7 @@ typedef struct Srv {
     1.4 .nf
     1.5 .ft L
     1.6 .ta \w'\fLvoid* 'u
     1.7-int	srv(Srv *s)
     1.8+void	srv(Srv *s)
     1.9 void	postmountsrv(Srv *s, char *name, char *mtpt, int flag)
    1.10 void	postsharesrv(Srv *s, char *name, char *mtpt, char *desc)
    1.11 void	threadpostmountsrv(Srv *s, char *name, char *mtpt, int flag)
     2.1--- a/sys/man/2/auth
     2.2+++ b/sys/man/2/auth
     2.3@@ -47,7 +47,7 @@ uint		auth_rpc(AuthRpc *rpc, char *verb,
     2.4 int		auth_getkey(char *params);
     2.5 .PP
     2.6 .B
     2.7-int		(*amount_getkey)(char*, char*);
     2.8+int		(*amount_getkey)(char*);
     2.9 .PP
    2.10 .B
    2.11 void		auth_freeAI(AuthInfo *ai);
     3.1--- a/sys/man/2/cputime
     3.2+++ b/sys/man/2/cputime
     3.3@@ -8,7 +8,7 @@ cputime, times, cycles \- cpu time in th
     3.4 .PP
     3.5 .ta \w'\fLdouble 'u
     3.6 .B
     3.7-int	times(long t[4])
     3.8+long	times(long t[4])
     3.9 .PP
    3.10 .B
    3.11 double	cputime(void)
     4.1--- a/sys/man/2/draw
     4.2+++ b/sys/man/2/draw
     4.3@@ -147,9 +147,9 @@ void	fillarc(Image *dst, Point c, int a,
     4.4 void	fillarcop(Image *dst, Point c, int a, int b, Image *src,
     4.5 		Point sp, int alpha, int phi, Drawop op)
     4.6 .PB
     4.7-int	icossin(int deg, int *cosp, int *sinp)
     4.8+void	icossin(int deg, int *cosp, int *sinp)
     4.9 .PB
    4.10-int	icossin2(int x, int y, int *cosp, int *sinp)
    4.11+void	icossin2(int x, int y, int *cosp, int *sinp)
    4.12 .PB
    4.13 void	border(Image *dst, Rectangle r, int i, Image *color, Point sp)
    4.14 .PB
     5.1--- a/sys/man/2/event
     5.2+++ b/sys/man/2/event
     5.3@@ -70,7 +70,7 @@ void	edrawgetrect(Rectangle r, int up)
     5.4 int	emenuhit(int but, Mouse *m, Menu *menu)
     5.5 .PP
     5.6 .B
     5.7-int	emoveto(Point p)
     5.8+void	emoveto(Point p)
     5.9 .PP
    5.10 .B
    5.11 void	esetcursor(Cursor *c)
     6.1--- a/sys/man/2/fcall
     6.2+++ b/sys/man/2/fcall
     6.3@@ -31,7 +31,7 @@ int fcallfmt(Fmt*)
     6.4 int dirmodefmt(Fmt*)
     6.5 .PP
     6.6 .B
     6.7-int read9pmsg(int fd, uchar *buf, uint nbuf)
     6.8+int read9pmsg(int fd, void *buf, uint nbuf)
     6.9 .PP
    6.10 .B
    6.11 int statcheck(uchar *buf, uint nbuf)
     7.1--- a/sys/man/2/frame
     7.2+++ b/sys/man/2/frame
     7.3@@ -55,7 +55,7 @@ void  frdrawsel(Frame *f, Point pt0, ulo
     7.4 		int highlighted)
     7.5 .PP
     7.6 .B
     7.7-void  frdrawsel0(Frame *f, Point pt0, ulong p0, ulong p1,
     7.8+Point  frdrawsel0(Frame *f, Point pt0, ulong p0, ulong p1,
     7.9 .B
    7.10 		Image *back, Image *text)
    7.11 .PP
     8.1--- a/sys/man/2/ioproc
     8.2+++ b/sys/man/2/ioproc
     8.3@@ -33,7 +33,7 @@ int	ioclose(Ioproc *io, int fd);
     8.4 long	ioread(Ioproc *io, int fd, void *a, long n);
     8.5 long	ioreadn(Ioproc *io, int fd, void *a, long n);
     8.6 long	iowrite(Ioproc *io, int fd, void *a, long n);
     8.7-int	iodial(Ioproc *io, char *addr, char *local, char *dir, char *cdfp);
     8.8+int	iodial(Ioproc *io, char *addr, char *local, char *dir, int *cdfp);
     8.9 int	iosleep(Ioproc *io, long n);
    8.10 .XX
    8.11 int	ioflush(Ioproc *io);
     9.1--- a/sys/man/2/ip
     9.2+++ b/sys/man/2/ip
     9.3@@ -51,7 +51,7 @@ int	isv4(uchar *ipaddr)
     9.4 void	v4tov6(uchar *ipv6, uchar *ipv4)
     9.5 .PP
     9.6 .B
     9.7-void	v6tov4(uchar *ipv4, uchar *ipv6)
     9.8+int	v6tov4(uchar *ipv4, uchar *ipv6)
     9.9 .PP
    9.10 .B
    9.11 ushort	nhgets(void *p)
    10.1--- a/sys/man/2/memlayer
    10.2+++ b/sys/man/2/memlayer
    10.3@@ -51,16 +51,16 @@ Memimage*	memlalloc(Memscreen *s, Rectan
    10.4 int	memlsetrefresh(Memimage *i, Refreshfn fn, void *arg)
    10.5 .PP
    10.6 .B
    10.7-int	memldelete(Memimage *i)
    10.8+void	memldelete(Memimage *i)
    10.9 .PP
   10.10 .B
   10.11-int	memlfree(Memimage *i)
   10.12+void	memlfree(Memimage *i)
   10.13 .PP
   10.14 .B
   10.15-int	memlexpose(Memimage *i, Rectangle r)
   10.16+void	memlexpose(Memimage *i, Rectangle r)
   10.17 .PP
   10.18 .B
   10.19-int	memlhide(Memimage *i, Rectangle r)
   10.20+void	memlhide(Memimage *i, Rectangle r)
   10.21 .PP
   10.22 .B 
   10.23 void	memltofront(Memimage *i)
    11.1--- a/sys/man/2/plumb
    11.2+++ b/sys/man/2/plumb
    11.3@@ -47,7 +47,7 @@ char*	plumblookup(Plumbattr *a, char *na
    11.4 Plumbattr*	plumbaddattr(Plumbattr *a, Plumbattr *new)
    11.5 .PP
    11.6 .B
    11.7-Plumbattr*	plumbdelattr(Plumbattra *a, char *name)
    11.8+Plumbattr*	plumbdelattr(Plumbattr *a, char *name)
    11.9 .PP
   11.10 .B
   11.11 int	eplumb(int key, char *port)
    12.1--- a/sys/man/2/pool
    12.2+++ b/sys/man/2/pool
    12.3@@ -31,7 +31,7 @@ int	poolisoverlap(Pool* pool, void* ptr,
    12.4 void*	poolrealloc(Pool* pool, void* ptr, ulong size)
    12.5 .PP
    12.6 .B
    12.7-void	poolcompact(Pool* pool)
    12.8+int	poolcompact(Pool* pool)
    12.9 .PP
   12.10 .B
   12.11 void	poolcheck(Pool *pool)
    13.1--- a/sys/man/2/print
    13.2+++ b/sys/man/2/print
    13.3@@ -56,7 +56,7 @@ int	runevsnprint(Rune *s, int len, char 
    13.4 Rune*	runevseprint(Rune *s, Rune *e, char *format, va_list v)
    13.5 .PP
    13.6 .B
    13.7-Rune*	runevsmprint(Rune *format, va_list v)
    13.8+Rune*	runevsmprint(char *format, va_list v)
    13.9 .PP
   13.10 .B
   13.11 .SH DESCRIPTION
    14.1--- a/sys/man/2/strcat
    14.2+++ b/sys/man/2/strcat
    14.3@@ -23,7 +23,7 @@ int	strncmp(char *s1, char *s2, long n)
    14.4 int	cistrcmp(char *s1, char *s2)
    14.5 .PP
    14.6 .B
    14.7-int	cistrncmp(char *s1, char *s2, long n)
    14.8+int	cistrncmp(char *s1, char *s2, int n)
    14.9 .PP
   14.10 .B
   14.11 char*	strcpy(char *s1, char *s2)
    15.1--- a/sys/man/2/symbol
    15.2+++ b/sys/man/2/symbol
    15.3@@ -29,7 +29,7 @@ int  fileelem(Sym **fp, uchar *encname, 
    15.4 int  filesym(int index, char *buf, int n)
    15.5 .PP
    15.6 .B
    15.7-long pc2sp(uvlong pc)
    15.8+uvlong pc2sp(uvlong pc)
    15.9 .PP
   15.10 .B
   15.11 long pc2line(uvlong pc)
   15.12@@ -38,7 +38,7 @@ long pc2line(uvlong pc)
   15.13 void textseg(uvlong base, Fhdr *fp)
   15.14 .PP
   15.15 .B
   15.16-uvlong line2addr(ulong line, uvlong basepc, uvlong endpc)
   15.17+uvlong line2addr(long line, uvlong basepc, uvlong endpc)
   15.18 .PP
   15.19 .B
   15.20 int  lookup(char *fn, char *var, Symbol *s)
   15.21@@ -62,10 +62,10 @@ int  globalsym(Symbol *s, int index)
   15.22 int  textsym(Symbol *s, int index)
   15.23 .PP
   15.24 .B
   15.25-uvlong file2pc(char *file, ulong line)
   15.26+uvlong file2pc(char *file, long line)
   15.27 .PP
   15.28 .B
   15.29-int  fileline(char *str, int n, uvlong addr)
   15.30+long  fileline(char *str, int n, uvlong addr)
   15.31 .PP
   15.32 .B
   15.33 int  fnbound(uvlong addr, uvlong *bounds)
    16.1--- a/sys/man/2/ttf
    16.2+++ b/sys/man/2/ttf
    16.3@@ -46,7 +46,7 @@ int	ttfgetcontour(TTGlyph *g, int idx, f
    16.4 TTBitmap*	ttfrender(TTFont *f, char *s, char *e, int w, int h,
    16.5 			int flags, char **pp);
    16.6 TTBitmap*	ttfrunerender(TTFont *f, Rune *s, Rune *e, int w, int h,
    16.7-			int flags, char **pp);
    16.8+			int flags, Rune **pp);
    16.9 .PB
   16.10 TTBitmap*	ttfnewbitmap(int w, int h);
   16.11 void	ttfblit(TTBitmap *dst, int dstx, int dsty, TTBitmap *src,
    17.1--- a/sys/man/2/window
    17.2+++ b/sys/man/2/window
    17.3@@ -33,7 +33,7 @@ Screen*	publicscreen(Display *d, int id,
    17.4 int	freescreen(Screen *s)
    17.5 .PP
    17.6 .B
    17.7-Image*	allocwindow(Screen *s, Rectangle r, int ref, int col)
    17.8+Image*	allocwindow(Screen *s, Rectangle r, int ref, ulong col)
    17.9 .PP
   17.10 .B
   17.11 void	bottomwindow(Image *w)