remove __P

This commit is contained in:
Warner Losh 2002-03-22 01:22:50 +00:00
parent 9f6092398b
commit f1bb2cd2aa
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=92920
74 changed files with 387 additions and 419 deletions

View File

@ -57,8 +57,8 @@ __FBSDID("$FreeBSD$");
#include <string.h> #include <string.h>
#include <unistd.h> #include <unistd.h>
int main __P((int, char *[])); int main(int, char *[]);
void usage __P((void)); void usage(void);
int int
main(argc, argv) main(argc, argv)

View File

@ -69,8 +69,8 @@ CHDR chdr;
u_int options; u_int options;
char *archive, *posarg, *posname; char *archive, *posarg, *posname;
const char *envtmp; const char *envtmp;
static void badoptions __P((const char *)); static void badoptions(const char *);
static void usage __P((void)); static void usage(void);
/* /*
* main -- * main --
@ -85,7 +85,7 @@ main(argc, argv)
{ {
int c; int c;
char *p; char *p;
int (*fcall) __P((char **)) = NULL; int (*fcall)(char **) = NULL;
(void) setlocale(LC_TIME, "");; (void) setlocale(LC_TIME, "");;

View File

@ -98,9 +98,9 @@ typedef struct {
struct stat; struct stat;
void close_archive __P((int)); void close_archive(int);
void copy_ar __P((CF *, off_t)); void copy_ar(CF *, off_t);
int get_arobj __P((int)); int get_arobj(int);
int open_archive __P((int)); int open_archive(int);
void put_arobj __P((CF *, struct stat *)); void put_arobj(CF *, struct stat *);
void skip_arobj __P((int)); void skip_arobj(int);

View File

@ -34,19 +34,19 @@
* $FreeBSD$ * $FreeBSD$
*/ */
int append __P((char **)); int append(char **);
void badfmt __P((void)); void badfmt(void);
int compare __P((char *)); int compare(char *);
int contents __P((char **)); int contents(char **);
int delete __P((char **)); int delete(char **);
void error __P((const char *)); void error(const char *);
int extract __P((char **)); int extract(char **);
char *files __P((char **argv)); char *files(char **argv);
int move __P((char **)); int move(char **);
void orphans __P((char **argv)); void orphans(char **argv);
int print __P((char **)); int print(char **);
int replace __P((char **)); int replace(char **);
int tmp __P((void)); int tmp(void);
extern char *archive; extern char *archive;
extern char *posarg, *posname; /* positioning file name */ extern char *posarg, *posname; /* positioning file name */

View File

@ -1028,7 +1028,7 @@ char print[DWIDTH];
int debug, i, j, linen, max, nchars, pc, term, trace, x, y; int debug, i, j, linen, max, nchars, pc, term, trace, x, y;
int width = DWIDTH; /* -w option: scrunch letters to 80 columns */ int width = DWIDTH; /* -w option: scrunch letters to 80 columns */
static void usage __P((void)); static void usage(void);
int int
main(int argc, char *argv[]) main(int argc, char *argv[])

View File

@ -53,8 +53,8 @@ __FBSDID("$FreeBSD$");
#include <string.h> #include <string.h>
#include <unistd.h> #include <unistd.h>
int main __P((int, char **)); int main(int, char **);
void usage __P((void)); void usage(void);
int int
main(argc, argv) main(argc, argv)

View File

@ -53,7 +53,7 @@ __FBSDID("$FreeBSD$");
#include <stdlib.h> #include <stdlib.h>
#include <unistd.h> #include <unistd.h>
static void usage __P((void)); static void usage(void);
int int
main(argc, argv) main(argc, argv)

View File

@ -41,21 +41,21 @@ extern struct tm *tp;
extern const char *calendarFile; extern const char *calendarFile;
extern char *optarg; extern char *optarg;
void cal __P((void)); void cal(void);
void closecal __P((FILE *)); void closecal(FILE *);
int getday __P((char *)); int getday(char *);
int getdayvar __P((char *)); int getdayvar(char *);
int getfield __P((char *, char **, int *)); int getfield(char *, char **, int *);
int getmonth __P((char *)); int getmonth(char *);
int geteaster __P((char *, int)); int geteaster(char *, int);
int getpaskha __P((char *, int)); int getpaskha(char *, int);
int easter __P((int)); int easter(int);
int isnow __P((char *, int *, int *, int *)); int isnow(char *, int *, int *, int *);
FILE *opencal __P((void)); FILE *opencal(void);
void settime __P((time_t)); void settime(time_t);
time_t Mktime __P((char *)); time_t Mktime(char *);
void usage __P((void)); void usage(void);
void setnnames __P((void)); void setnnames(void);
#define isleap(y) ((((y) % 4) == 0 && ((y) % 100) != 0) || ((y) % 400) == 0) #define isleap(y) ((((y) % 4) == 0 && ((y) % 100) != 0) || ((y) % 400) == 0)

View File

@ -57,9 +57,9 @@ __FBSDID("$FreeBSD$");
#include <string.h> #include <string.h>
#include <unistd.h> #include <unistd.h>
void db_build __P((char **)); void db_build(char **);
void dounlink __P((void)); void dounlink(void);
void usage __P((void)); void usage(void);
DB *capdbp; DB *capdbp;
int verbose; int verbose;

View File

@ -113,19 +113,7 @@ static const char rcsid[] =
#define SIGTYPE void #define SIGTYPE void
#endif #endif
#undef __P
#undef __V
#ifdef __STDC__
#include <stdarg.h> #include <stdarg.h>
#define __V(x) x
#define __P(x) x
#else
#include <varargs.h>
#define __V(x) (va_alist) va_dcl
#define __P(x) ()
#define const
#endif
#ifndef O_NONBLOCK #ifndef O_NONBLOCK
#define O_NONBLOCK O_NDELAY #define O_NONBLOCK O_NDELAY
@ -198,38 +186,38 @@ int clear_report_next = 0;
int say_next = 0, hup_next = 0; int say_next = 0, hup_next = 0;
void *dup_mem __P((void *b, size_t c)); void *dup_mem(void *b, size_t c);
void *copy_of __P((char *s)); void *copy_of(char *s);
static void usage __P((void)); static void usage(void);
void logf __P((const char *fmt, ...)); void logf(const char *fmt, ...);
void fatal __P((int code, const char *fmt, ...)); void fatal(int code, const char *fmt, ...);
SIGTYPE sigalrm __P((int signo)); SIGTYPE sigalrm(int signo);
SIGTYPE sigint __P((int signo)); SIGTYPE sigint(int signo);
SIGTYPE sigterm __P((int signo)); SIGTYPE sigterm(int signo);
SIGTYPE sighup __P((int signo)); SIGTYPE sighup(int signo);
void unalarm __P((void)); void unalarm(void);
void init __P((void)); void init(void);
void set_tty_parameters __P((void)); void set_tty_parameters(void);
void echo_stderr __P((int)); void echo_stderr(int);
void break_sequence __P((void)); void break_sequence(void);
void terminate __P((int status)); void terminate(int status);
void do_file __P((char *chat_file)); void do_file(char *chat_file);
int get_string __P((register char *string)); int get_string(register char *string);
int put_string __P((register char *s)); int put_string(register char *s);
int write_char __P((int c)); int write_char(int c);
int put_char __P((int c)); int put_char(int c);
int get_char __P((void)); int get_char(void);
void chat_send __P((register char *s)); void chat_send(register char *s);
char *character __P((int c)); char *character(int c);
void chat_expect __P((register char *s)); void chat_expect(register char *s);
char *clean __P((register char *s, int sending)); char *clean(register char *s, int sending);
void break_sequence __P((void)); void break_sequence(void);
void terminate __P((int status)); void terminate(int status);
void pack_array __P((char **array, int end)); void pack_array(char **array, int end);
char *expect_strtok __P((char *, char *)); char *expect_strtok(char *, char *);
int vfmtmsg __P((char *, int, const char *, va_list)); /* vsprintf++ */ int vfmtmsg(char *, int, const char *, va_list); /* vsprintf++ */
int main __P((int, char *[])); int main(int, char *[]);
void *dup_mem(b, c) void *dup_mem(b, c)
void *b; void *b;
@ -464,18 +452,11 @@ char line[1024];
/* /*
* Send a message to syslog and/or stderr. * Send a message to syslog and/or stderr.
*/ */
void logf __V((const char *fmt, ...)) void logf(const char *fmt, ...)
{ {
va_list args; va_list args;
#ifdef __STDC__
va_start(args, fmt); va_start(args, fmt);
#else
char *fmt;
va_start(args);
fmt = va_arg(args, char *);
#endif
vfmtmsg(line, sizeof(line), fmt, args); vfmtmsg(line, sizeof(line), fmt, args);
if (to_log) if (to_log)
syslog(LOG_INFO, "%s", line); syslog(LOG_INFO, "%s", line);
@ -487,20 +468,11 @@ void logf __V((const char *fmt, ...))
* Print an error message and terminate. * Print an error message and terminate.
*/ */
void fatal __V((int code, const char *fmt, ...)) void fatal(int code, const char *fmt, ...)
{ {
va_list args; va_list args;
#ifdef __STDC__
va_start(args, fmt); va_start(args, fmt);
#else
int code;
char *fmt;
va_start(args);
code = va_arg(args, int);
fmt = va_arg(args, char *);
#endif
vfmtmsg(line, sizeof(line), fmt, args); vfmtmsg(line, sizeof(line), fmt, args);
if (to_log) if (to_log)
syslog(LOG_ERR, "%s", line); syslog(LOG_ERR, "%s", line);

View File

@ -62,18 +62,18 @@ __FBSDID("$FreeBSD$");
#define MAXBR 100 /* Max number of bracket pairs known */ #define MAXBR 100 /* Max number of bracket pairs known */
#define MAXCMDS 500 /* Max number of commands known */ #define MAXCMDS 500 /* Max number of commands known */
void addcmd __P((char *)); void addcmd(char *);
void addmac __P((const char *)); void addmac(const char *);
int binsrch __P((const char *)); int binsrch(const char *);
void checkknown __P((char *)); void checkknown(char *);
void chkcmd __P((char *, char *)); void chkcmd(char *, char *);
void complain __P((int)); void complain(int);
int eq __P((const char *, const char *)); int eq(const char *, const char *);
void nomatch __P((char *)); void nomatch(char *);
void pe __P((int)); void pe(int);
void process __P((FILE *)); void process(FILE *);
void prop __P((int)); void prop(int);
static void usage __P((void)); static void usage(void);
/* /*
* The stack on which we remember what we've seen so far. * The stack on which we remember what we've seen so far.

View File

@ -57,8 +57,8 @@ __FBSDID("$FreeBSD$");
#include <string.h> #include <string.h>
#include <unistd.h> #include <unistd.h>
int main __P((int, char *[])); int main(int, char *[]);
void usage __P((void)); void usage(void);
int int
main(argc, argv) main(argc, argv)

View File

@ -74,8 +74,8 @@ int yp_errno = YP_TRUE;
char *tempname; char *tempname;
uid_t uid; uid_t uid;
void baduser __P((void)); void baduser(void);
void usage __P((void)); void usage(void);
int int
main(argc, argv) main(argc, argv)

View File

@ -31,6 +31,7 @@
* SUCH DAMAGE. * SUCH DAMAGE.
* *
* @(#)chpass.h 8.4 (Berkeley) 4/2/94 * @(#)chpass.h 8.4 (Berkeley) 4/2/94
* $FreeBSD$
*/ */
struct passwd; struct passwd;
@ -52,20 +53,20 @@ typedef struct _entry {
extern ENTRY list[]; extern ENTRY list[];
extern uid_t uid; extern uid_t uid;
int atot __P((char *, time_t *)); int atot(char *, time_t *);
void display __P((int, struct passwd *)); void display(int, struct passwd *);
void edit __P((struct passwd *)); void edit(struct passwd *);
char *ok_shell __P((char *)); char *ok_shell(char *);
int p_change __P((char *, struct passwd *, ENTRY *)); int p_change(char *, struct passwd *, ENTRY *);
int p_class __P((char *, struct passwd *, ENTRY *)); int p_class(char *, struct passwd *, ENTRY *);
int p_expire __P((char *, struct passwd *, ENTRY *)); int p_expire(char *, struct passwd *, ENTRY *);
int p_gecos __P((char *, struct passwd *, ENTRY *)); int p_gecos(char *, struct passwd *, ENTRY *);
int p_gid __P((char *, struct passwd *, ENTRY *)); int p_gid(char *, struct passwd *, ENTRY *);
int p_hdir __P((char *, struct passwd *, ENTRY *)); int p_hdir(char *, struct passwd *, ENTRY *);
int p_login __P((char *, struct passwd *, ENTRY *)); int p_login(char *, struct passwd *, ENTRY *);
int p_login __P((char *, struct passwd *, ENTRY *)); int p_login(char *, struct passwd *, ENTRY *);
int p_passwd __P((char *, struct passwd *, ENTRY *)); int p_passwd(char *, struct passwd *, ENTRY *);
int p_shell __P((char *, struct passwd *, ENTRY *)); int p_shell(char *, struct passwd *, ENTRY *);
int p_uid __P((char *, struct passwd *, ENTRY *)); int p_uid(char *, struct passwd *, ENTRY *);
char *ttoa __P((time_t)); char *ttoa(time_t);
int verify __P((struct passwd *)); int verify(struct passwd *);

View File

@ -33,4 +33,4 @@
* $FreeBSD$ * $FreeBSD$
*/ */
void pw_copy __P((int, int, struct passwd *, struct passwd *)); void pw_copy(int, int, struct passwd *, struct passwd *);

View File

@ -59,7 +59,7 @@ static const char rcsid[] =
#include "extern.h" #include "extern.h"
static void usage __P((void)); static void usage(void);
int int
main(argc, argv) main(argc, argv)
@ -69,8 +69,8 @@ main(argc, argv)
int ch, fd, rval; int ch, fd, rval;
u_int32_t len, val; u_int32_t len, val;
char *fn, *p; char *fn, *p;
int (*cfncn) __P((int, u_int32_t *, u_int32_t *)); int (*cfncn)(int, u_int32_t *, u_int32_t *);
void (*pfncn) __P((char *, u_int32_t, u_int32_t)); void (*pfncn)(char *, u_int32_t, u_int32_t);
if ((p = rindex(argv[0], '/')) == NULL) if ((p = rindex(argv[0], '/')) == NULL)
p = argv[0]; p = argv[0];

View File

@ -37,11 +37,11 @@
#include <sys/cdefs.h> #include <sys/cdefs.h>
__BEGIN_DECLS __BEGIN_DECLS
int crc __P((int, u_int32_t *, u_int32_t *)); int crc(int, u_int32_t *, u_int32_t *);
void pcrc __P((char *, u_int32_t, u_int32_t)); void pcrc(char *, u_int32_t, u_int32_t);
void psum1 __P((char *, u_int32_t, u_int32_t)); void psum1(char *, u_int32_t, u_int32_t);
void psum2 __P((char *, u_int32_t, u_int32_t)); void psum2(char *, u_int32_t, u_int32_t);
int csum1 __P((int, u_int32_t *, u_int32_t *)); int csum1(int, u_int32_t *, u_int32_t *);
int csum2 __P((int, u_int32_t *, u_int32_t *)); int csum2(int, u_int32_t *, u_int32_t *);
int crc32 __P((int, u_int32_t *, u_int32_t *)); int crc32(int, u_int32_t *, u_int32_t *);
__END_DECLS __END_DECLS

View File

@ -60,7 +60,7 @@ __FBSDID("$FreeBSD$");
int lflag, sflag, xflag, zflag; int lflag, sflag, xflag, zflag;
static void usage __P((void)); static void usage(void);
int int
main(argc, argv) main(argc, argv)

View File

@ -40,9 +40,9 @@
#define DIFF_EXIT 1 #define DIFF_EXIT 1
#define ERR_EXIT 2 /* error exit code */ #define ERR_EXIT 2 /* error exit code */
void c_regular __P((int, const char *, off_t, off_t, int, const char *, off_t, off_t)); void c_regular(int, const char *, off_t, off_t, int, const char *, off_t, off_t);
void c_special __P((int, const char *, off_t, int, const char *, off_t)); void c_special(int, const char *, off_t, int, const char *, off_t);
void diffmsg __P((const char *, const char *, off_t, off_t)); void diffmsg(const char *, const char *, off_t, off_t);
void eofmsg __P((const char *)); void eofmsg(const char *);
extern int lflag, sflag, xflag; extern int lflag, sflag, xflag;

View File

@ -53,7 +53,7 @@ __FBSDID("$FreeBSD$");
#include "extern.h" #include "extern.h"
static u_char *remmap __P((u_char *, int, off_t)); static u_char *remmap(u_char *, int, off_t);
#define MMAP_CHUNK (8*1024*1024) #define MMAP_CHUNK (8*1024*1024)
#define ROUNDPAGE(i) ((i) & ~pagemask) #define ROUNDPAGE(i) ((i) & ~pagemask)

View File

@ -94,14 +94,14 @@ struct line_str {
int l_max_col; /* max column in the line */ int l_max_col; /* max column in the line */
}; };
LINE *alloc_line __P((void)); LINE *alloc_line(void);
void dowarn __P((int)); void dowarn(int);
void flush_line __P((LINE *)); void flush_line(LINE *);
void flush_lines __P((int)); void flush_lines(int);
void flush_blanks __P((void)); void flush_blanks(void);
void free_line __P((LINE *)); void free_line(LINE *);
int main __P((int, char **)); int main(int, char **);
void usage __P((void)); void usage(void);
CSET last_set; /* char_set of last char printed */ CSET last_set; /* char_set of last char printed */
LINE *lines; LINE *lines;

View File

@ -75,11 +75,11 @@ char printall;
FILE *f; FILE *f;
int main __P((int, char *[])); int main(int, char *[]);
static void move __P((int, int)); static void move(int, int);
static void pflush __P((int)); static void pflush(int);
static int plus __P((char, char)); static int plus(char, char);
static void usage __P((void)); static void usage(void);
int int
main(argc, argv) main(argc, argv)

View File

@ -57,8 +57,8 @@ __FBSDID("$FreeBSD$");
#define TAB 8 #define TAB 8
void check __P((FILE *)); void check(FILE *);
static void usage __P((void)); static void usage(void);
int int
main(argc, argv) main(argc, argv)

View File

@ -59,12 +59,12 @@ __FBSDID("$FreeBSD$");
#define TAB 8 #define TAB 8
void c_columnate __P((void)); void c_columnate(void);
void input __P((FILE *)); void input(FILE *);
void maketbl __P((void)); void maketbl(void);
void print __P((void)); void print(void);
void r_columnate __P((void)); void r_columnate(void);
void usage __P((void)); void usage(void);
int termwidth = 80; /* default terminal width */ int termwidth = 80; /* default terminal width */

View File

@ -62,10 +62,10 @@ __FBSDID("$FreeBSD$");
const char *tabs[] = { "", "\t", "\t\t" }; const char *tabs[] = { "", "\t", "\t\t" };
FILE *file __P((char *)); FILE *file(char *);
void show __P((FILE *, const char *, char *)); void show(FILE *, const char *, char *);
int stricoll __P((char *, char *)); int stricoll(char *, char *);
static void usage __P((void)); static void usage(void);
int int
main(argc, argv) main(argc, argv)

View File

@ -65,13 +65,13 @@ __FBSDID("$FreeBSD$");
#include "zopen.h" #include "zopen.h"
void compress __P((const char *, const char *, int)); void compress(const char *, const char *, int);
void cwarn __P((const char *, ...)) __printflike(1, 2); void cwarn(const char *, ...) __printflike(1, 2);
void cwarnx __P((const char *, ...)) __printflike(1, 2); void cwarnx(const char *, ...) __printflike(1, 2);
void decompress __P((const char *, const char *, int)); void decompress(const char *, const char *, int);
int permission __P((const char *)); int permission(const char *);
void setfile __P((const char *, struct stat *)); void setfile(const char *, struct stat *);
void usage __P((int)); void usage(int);
int eval, force, verbose; int eval, force, verbose;

View File

@ -201,13 +201,13 @@ struct s_zstate {
#define FIRST 257 /* First free entry. */ #define FIRST 257 /* First free entry. */
#define CLEAR 256 /* Table clear output code. */ #define CLEAR 256 /* Table clear output code. */
static int cl_block __P((struct s_zstate *)); static int cl_block(struct s_zstate *);
static void cl_hash __P((struct s_zstate *, count_int)); static void cl_hash(struct s_zstate *, count_int);
static code_int getcode __P((struct s_zstate *)); static code_int getcode(struct s_zstate *);
static int output __P((struct s_zstate *, code_int)); static int output(struct s_zstate *, code_int);
static int zclose __P((void *)); static int zclose(void *);
static int zread __P((void *, char *, int)); static int zread(void *, char *, int);
static int zwrite __P((void *, const char *, int)); static int zwrite(void *, const char *, int);
/*- /*-
* Algorithm from "A Technique for High Performance Data Compression", * Algorithm from "A Technique for High Performance Data Compression",

View File

@ -29,6 +29,6 @@
#ifndef _ZOPEN_H_ #ifndef _ZOPEN_H_
#define _ZOPEN_H_ #define _ZOPEN_H_
FILE *zopen __P((const char *, const char *, int)); FILE *zopen(const char *, const char *, int);
#endif /* _ZOPEN_H_ */ #endif /* _ZOPEN_H_ */

View File

@ -46,10 +46,10 @@ __FBSDID("$FreeBSD$");
#include "ctags.h" #include "ctags.h"
static int func_entry __P((void)); static int func_entry(void);
static void hash_entry __P((void)); static void hash_entry(void);
static void skip_string __P((int)); static void skip_string(int);
static int str_entry __P((int)); static int str_entry(int);
/* /*
* c_entries -- * c_entries --

View File

@ -80,9 +80,9 @@ char *curfile; /* current input file name */
char searchar = '/'; /* use /.../ searches by default */ char searchar = '/'; /* use /.../ searches by default */
char lbuf[LINE_MAX]; char lbuf[LINE_MAX];
void init __P((void)); void init(void);
void find_entries __P((char *)); void find_entries(char *);
static void usage __P((void)); static void usage(void);
int int
main(argc, argv) main(argc, argv)

View File

@ -87,14 +87,14 @@ extern char lbuf[LINE_MAX];
extern char *lbp; extern char *lbp;
extern char searchar; /* ex search character */ extern char searchar; /* ex search character */
extern int cicmp __P((const char *)); extern int cicmp(const char *);
extern void getline __P((void)); extern void getline(void);
extern void pfnote __P((const char *, int)); extern void pfnote(const char *, int);
extern int skip_key __P((int)); extern int skip_key(int);
extern void put_entries __P((NODE *)); extern void put_entries(NODE *);
extern void toss_yysec __P((void)); extern void toss_yysec(void);
extern void l_entries __P((void)); extern void l_entries(void);
extern void y_entries __P((void)); extern void y_entries(void);
extern int PF_funcs __P((void)); extern int PF_funcs(void);
extern void c_entries __P((void)); extern void c_entries(void);
extern void skip_comment __P((int)); extern void skip_comment(int);

View File

@ -47,7 +47,7 @@ __FBSDID("$FreeBSD$");
#include "ctags.h" #include "ctags.h"
static void takeprec __P((void)); static void takeprec(void);
char *lbp; /* line buffer pointer */ char *lbp; /* line buffer pointer */

View File

@ -48,8 +48,8 @@ __FBSDID("$FreeBSD$");
#include "ctags.h" #include "ctags.h"
static void add_node __P((NODE *, NODE *)); static void add_node(NODE *, NODE *);
static void free_tree __P((NODE *)); static void free_tree(NODE *);
/* /*
* pfnote -- * pfnote --

View File

@ -49,7 +49,7 @@ static const char sccsid[] = "@(#)dirname.c 8.4 (Berkeley) 5/4/95";
#include <stdlib.h> #include <stdlib.h>
#include <unistd.h> #include <unistd.h>
void usage __P((void)); void usage(void);
int int
main(argc, argv) main(argc, argv)

View File

@ -96,13 +96,13 @@ struct ignentry {
SLIST_ENTRY(ignentry) next; SLIST_ENTRY(ignentry) next;
}; };
int linkchk __P((FTSENT *)); int linkchk(FTSENT *);
static void usage __P((void)); static void usage(void);
void prthumanval __P((double)); void prthumanval(double);
unit_t unit_adjust __P((double *)); unit_t unit_adjust(double *);
void ignoreadd __P((const char *)); void ignoreadd(const char *);
void ignoreclean __P((void)); void ignoreclean(void);
int ignorep __P((FTSENT *)); int ignorep(FTSENT *);
int int
main(argc, argv) main(argc, argv)

2
usr.bin/env/env.c vendored
View File

@ -55,7 +55,7 @@ __FBSDID("$FreeBSD$");
extern char **environ; extern char **environ;
static void usage __P((void)); static void usage(void);
int int
main(argc, argv) main(argc, argv)

View File

@ -57,8 +57,8 @@ static const char rcsid[] =
int nstops; int nstops;
int tabstops[100]; int tabstops[100];
static void getstops __P((char *)); static void getstops(char *);
static void usage __P((void)); static void usage(void);
int int
main(argc, argv) main(argc, argv)

View File

@ -39,15 +39,15 @@ extern int entries; /* Number of people. */
extern DB *db; /* Database. */ extern DB *db; /* Database. */
extern int d_first; extern int d_first;
void enter_lastlog __P((PERSON *)); void enter_lastlog(PERSON *);
PERSON *enter_person __P((struct passwd *)); PERSON *enter_person(struct passwd *);
void enter_where __P((struct utmp *, PERSON *)); void enter_where(struct utmp *, PERSON *);
PERSON *find_person __P((char *)); PERSON *find_person(char *);
int hide __P((struct passwd *)); int hide(struct passwd *);
void lflag_print __P((void)); void lflag_print(void);
int match __P((struct passwd *, char *)); int match(struct passwd *, char *);
void netfinger __P((char *)); void netfinger(char *);
PERSON *palloc __P((void)); PERSON *palloc(void);
char *prphone __P((char *)); char *prphone(char *);
void sflag_print __P((void)); void sflag_print(void);
int show_text __P((const char *, const char *, const char *)); int show_text(const char *, const char *, const char *);

View File

@ -93,10 +93,10 @@ int entries, lflag, mflag, pplan, sflag, oflag, Tflag;
int d_first = -1; int d_first = -1;
char tbuf[1024]; char tbuf[1024];
static void loginlist __P((void)); static void loginlist(void);
static int option __P((int, char **)); static int option(int, char **);
static void usage __P((void)); static void usage(void);
static void userlist __P((int, char **)); static void userlist(int, char **);
static int static int
option(argc, argv) option(argc, argv)

View File

@ -64,9 +64,9 @@ __FBSDID("$FreeBSD$");
#define LINE_LEN 80 #define LINE_LEN 80
#define TAB_LEN 8 /* 8 spaces between tabs */ #define TAB_LEN 8 /* 8 spaces between tabs */
static int demi_print __P((char *, int)); static int demi_print(char *, int);
static void lprint __P((PERSON *)); static void lprint(PERSON *);
static void vputc __P((unsigned char)); static void vputc(unsigned char);
void void
lflag_print() lflag_print()

View File

@ -53,7 +53,7 @@ __FBSDID("$FreeBSD$");
#include <utmp.h> #include <utmp.h>
#include "finger.h" #include "finger.h"
static void stimeprint __P((WHERE *)); static void stimeprint(WHERE *);
void void
sflag_print() sflag_print()

View File

@ -60,9 +60,9 @@ __FBSDID("$FreeBSD$");
#include "finger.h" #include "finger.h"
#include "pathnames.h" #include "pathnames.h"
static void find_idle_and_ttywrite __P((WHERE *)); static void find_idle_and_ttywrite(WHERE *);
static void userinfo __P((PERSON *, struct passwd *)); static void userinfo(PERSON *, struct passwd *);
static WHERE *walloc __P((PERSON *)); static WHERE *walloc(PERSON *);
int int
match(pw, user) match(pw, user)

View File

@ -56,8 +56,8 @@ __FBSDID("$FreeBSD$");
#define DEFLINEWIDTH 80 #define DEFLINEWIDTH 80
void fold __P((int)); void fold(int);
static void usage __P((void)); static void usage(void);
int int
main(argc, argv) main(argc, argv)

View File

@ -55,8 +55,8 @@ static const char rcsid[] =
#include <string.h> #include <string.h>
#include <unistd.h> #include <unistd.h>
int match __P((char *, char *)); int match(char *, char *);
static void usage __P((void)); static void usage(void);
int int
main(argc, argv) main(argc, argv)

View File

@ -138,18 +138,18 @@ int maxfiles;
kvm_t *kd; kvm_t *kd;
void dofiles __P((struct kinfo_proc *kp)); void dofiles(struct kinfo_proc *kp);
void dommap __P((struct kinfo_proc *kp)); void dommap(struct kinfo_proc *kp);
void vtrans __P((struct vnode *vp, int i, int flag)); void vtrans(struct vnode *vp, int i, int flag);
int ufs_filestat __P((struct vnode *vp, struct filestat *fsp)); int ufs_filestat(struct vnode *vp, struct filestat *fsp);
int nfs_filestat __P((struct vnode *vp, struct filestat *fsp)); int nfs_filestat(struct vnode *vp, struct filestat *fsp);
int devfs_filestat __P((struct vnode *vp, struct filestat *fsp)); int devfs_filestat(struct vnode *vp, struct filestat *fsp);
char *getmnton __P((struct mount *m)); char *getmnton(struct mount *m);
void pipetrans __P((struct pipe *pi, int i, int flag)); void pipetrans(struct pipe *pi, int i, int flag);
void socktrans __P((struct socket *sock, int i)); void socktrans(struct socket *sock, int i);
void getinetproto __P((int number)); void getinetproto(int number);
int getfname __P((char *filename)); int getfname(char *filename);
void usage __P((void)); void usage(void);
int int

View File

@ -64,10 +64,10 @@ extern kvm_t *kd;
extern int vflg; extern int vflg;
extern int Pid; extern int Pid;
udev_t dev2udev __P((dev_t dev)); udev_t dev2udev(dev_t dev);
/* Additional filesystem types */ /* Additional filesystem types */
int isofs_filestat __P((struct vnode *vp, struct filestat *fsp)); int isofs_filestat(struct vnode *vp, struct filestat *fsp);
int msdosfs_filestat __P((struct vnode *vp, struct filestat *fsp)); int msdosfs_filestat(struct vnode *vp, struct filestat *fsp);
#endif /* __FSTAT_H__ */ #endif /* __FSTAT_H__ */

View File

@ -79,12 +79,12 @@ static const char rcsid[] =
#include "extern.h" #include "extern.h"
static void core __P((int, int, struct kinfo_proc *)); static void core(int, int, struct kinfo_proc *);
static void datadump __P((int, int, struct kinfo_proc *, u_long, int)); static void datadump(int, int, struct kinfo_proc *, u_long, int);
static void killed __P((int)); static void killed(int);
static void restart_target __P((void)); static void restart_target(void);
static void usage __P((void)) __dead2; static void usage(void) __dead2;
static void userdump __P((int, struct kinfo_proc *, u_long, int)); static void userdump(int, struct kinfo_proc *, u_long, int);
kvm_t *kd; kvm_t *kd;

View File

@ -31,11 +31,12 @@
* SUCH DAMAGE. * SUCH DAMAGE.
* *
* @(#)extern.h 8.1 (Berkeley) 6/6/93 * @(#)extern.h 8.1 (Berkeley) 6/6/93
* $FreeBSD$
*/ */
#include <sys/types.h> #include <sys/types.h>
#include <kvm.h> #include <kvm.h>
void err __P((int, const char *, ...)); void err(int, const char *, ...);
void elf_coredump __P((int, pid_t)); void elf_coredump(int, pid_t);
void md_core __P((kvm_t *, int, struct kinfo_proc *)); void md_core(kvm_t *, int, struct kinfo_proc *);

View File

@ -79,12 +79,12 @@ static const char rcsid[] =
#include "extern.h" #include "extern.h"
static void core __P((int, int, struct kinfo_proc *)); static void core(int, int, struct kinfo_proc *);
static void datadump __P((int, int, struct kinfo_proc *, u_long, int)); static void datadump(int, int, struct kinfo_proc *, u_long, int);
static void killed __P((int)); static void killed(int);
static void restart_target __P((void)); static void restart_target(void);
static void usage __P((void)) __dead2; static void usage(void) __dead2;
static void userdump __P((int, struct kinfo_proc *, u_long, int)); static void userdump(int, struct kinfo_proc *, u_long, int);
kvm_t *kd; kvm_t *kd;

View File

@ -60,10 +60,10 @@ static const char rcsid[] =
* Bill Joy UCB August 24, 1977 * Bill Joy UCB August 24, 1977
*/ */
void head __P((FILE *, int)); void head(FILE *, int);
void head_bytes __P((FILE *, int)); void head_bytes(FILE *, int);
void obsolete __P((char *[])); void obsolete(char *[]);
void usage __P((void)); void usage(void);
int int
main(argc, argv) main(argc, argv)

View File

@ -32,7 +32,7 @@ static const char rcsid[] =
#include <string.h> #include <string.h>
#include <unistd.h> #include <unistd.h>
int main __P((int, char **)); int main(int, char **);
extern char *__progname; extern char *__progname;
int int

View File

@ -55,7 +55,7 @@ enum _vflag vflag = FIRST;
static off_t address; /* address/offset in stream */ static off_t address; /* address/offset in stream */
static off_t eaddress; /* end address */ static off_t eaddress; /* end address */
static inline void print __P((PR *, u_char *)); static inline void print(PR *, u_char *);
void void
display() display()

View File

@ -75,23 +75,23 @@ extern FS *fshead; /* head of format strings list */
extern int blocksize; /* data block size */ extern int blocksize; /* data block size */
enum _vflag { ALL, DUP, FIRST, WAIT }; /* -v values */ enum _vflag { ALL, DUP, FIRST, WAIT }; /* -v values */
void add __P((const char *)); void add(const char *);
void addfile __P((char *)); void addfile(char *);
void badcnt __P((char *)); void badcnt(char *);
void badconv __P((char *)); void badconv(char *);
void badfmt __P((const char *)); void badfmt(const char *);
void badsfmt __P((void)); void badsfmt(void);
void bpad __P((PR *)); void bpad(PR *);
void conv_c __P((PR *, u_char *)); void conv_c(PR *, u_char *);
void conv_u __P((PR *, u_char *)); void conv_u(PR *, u_char *);
void display __P((void)); void display(void);
void doskip __P((const char *, int)); void doskip(const char *, int);
void escape __P((char *)); void escape(char *);
u_char *get __P((void)); u_char *get(void);
void newsyntax __P((int, char ***)); void newsyntax(int, char ***);
int next __P((char **)); int next(char **);
void nomem __P((void)); void nomem(void);
void oldsyntax __P((int, char ***)); void oldsyntax(int, char ***);
void rewrite __P((FS *)); void rewrite(FS *);
int size __P((FS *)); int size(FS *);
void usage __P((void)); void usage(void);

View File

@ -51,8 +51,8 @@ static const char rcsid[] =
int deprecated; int deprecated;
static void odoffset __P((int, char ***)); static void odoffset(int, char ***);
static void odprecede __P((void)); static void odprecede(void);
void void
oldsyntax(argc, argvp) oldsyntax(argc, argvp)

View File

@ -55,15 +55,15 @@ static const char rcsid[] =
#include <string.h> #include <string.h>
#include <unistd.h> #include <unistd.h>
int main __P((int, char *[])); int main(int, char *[]);
void current __P((void)); void current(void);
void pline __P((struct passwd *)); void pline(struct passwd *);
void pretty __P((struct passwd *)); void pretty(struct passwd *);
void group __P((struct passwd *, int)); void group(struct passwd *, int);
void usage __P((void)); void usage(void);
void user __P((struct passwd *)); void user(struct passwd *);
struct passwd * struct passwd *
who __P((char *)); who(char *);
int isgroups, iswhoami; int isgroups, iswhoami;

View File

@ -52,11 +52,11 @@ static const char rcsid[] =
int signaled; int signaled;
void usage __P((void)); void usage(void);
int msgrm __P((key_t, int)); int msgrm(key_t, int);
int shmrm __P((key_t, int)); int shmrm(key_t, int);
int semrm __P((key_t, int)); int semrm(key_t, int);
void not_configured __P((int)); void not_configured(int);
void usage() void usage()
{ {

View File

@ -71,10 +71,9 @@ struct msqid_ds *msqids;
struct shminfo shminfo; struct shminfo shminfo;
struct shmid_ds *shmsegs; struct shmid_ds *shmsegs;
void sysctlgatherstruct __P((void *addr, size_t size, void sysctlgatherstruct(void *addr, size_t size, struct scgs_vector *vec);
struct scgs_vector *vec)); void kget(int idx, void *addr, size_t size);
void kget __P((int idx, void *addr, size_t size)); void usage(void);
void usage __P((void));
static struct nlist symbols[] = { static struct nlist symbols[] = {
{"sema"}, {"sema"},

View File

@ -102,15 +102,15 @@ int spans = 1; /* span multiple delimiters (-t) */
char *empty; /* empty field replacement string (-e) */ char *empty; /* empty field replacement string (-e) */
char *tabchar = " \t"; /* delimiter characters (-t) */ char *tabchar = " \t"; /* delimiter characters (-t) */
int cmp __P((LINE *, u_long, LINE *, u_long)); int cmp(LINE *, u_long, LINE *, u_long);
void fieldarg __P((char *)); void fieldarg(char *);
void joinlines __P((INPUT *, INPUT *)); void joinlines(INPUT *, INPUT *);
void obsolete __P((char **)); void obsolete(char **);
void outfield __P((LINE *, u_long, int)); void outfield(LINE *, u_long, int);
void outoneline __P((INPUT *, LINE *)); void outoneline(INPUT *, LINE *);
void outtwoline __P((INPUT *, LINE *, INPUT *, LINE *)); void outtwoline(INPUT *, LINE *, INPUT *, LINE *);
void slurp __P((INPUT *)); void slurp(INPUT *);
void usage __P((void)); void usage(void);
int int
main(argc, argv) main(argc, argv)

View File

@ -83,11 +83,11 @@ int nofinalnl;
const char *sepstring = "\n"; const char *sepstring = "\n";
char format[BUFSIZ]; char format[BUFSIZ];
int main __P((int, char *[])); int main(int, char *[]);
void getformat __P((void)); void getformat(void);
int getprec __P((char *)); int getprec(char *);
int putdata __P((double, long)); int putdata(double, long);
static void usage __P((void)); static void usage(void);
int int
main(argc, argv) main(argc, argv)

View File

@ -59,8 +59,8 @@ static const char rcsid[] =
#include "ktrace.h" #include "ktrace.h"
void no_ktrace __P((int)); void no_ktrace(int);
void usage __P((void)); void usage(void);
main(argc, argv) main(argc, argv)
int argc; int argc;

View File

@ -98,16 +98,16 @@ static time_t snaptime; /* if != 0, we will only
* at this snapshot time * at this snapshot time
*/ */
void addarg __P((int, char *)); void addarg(int, char *);
time_t dateconv __P((char *)); time_t dateconv(char *);
void doentry __P((struct utmp *)); void doentry(struct utmp *);
void hostconv __P((char *)); void hostconv(char *);
void onintr __P((int)); void onintr(int);
void printentry __P((struct utmp *, struct ttytab *)); void printentry(struct utmp *, struct ttytab *);
char *ttyconv __P((char *)); char *ttyconv(char *);
int want __P((struct utmp *)); int want(struct utmp *);
void usage __P((void)); void usage(void);
void wtmp __P((void)); void wtmp(void);
void void
usage(void) usage(void)

View File

@ -60,11 +60,11 @@ static const char rcsid[] =
#include <utmp.h> #include <utmp.h>
#include "pathnames.h" #include "pathnames.h"
time_t expand __P((u_int)); time_t expand(u_int);
char *flagbits __P((int)); char *flagbits(int);
const char *getdev __P((dev_t)); const char *getdev(dev_t);
int requested __P((char *[], struct acct *)); int requested(char *[], struct acct *);
static void usage __P((void)); static void usage(void);
#define AC_UTIME 1 /* user */ #define AC_UTIME 1 /* user */
#define AC_STIME 2 /* system */ #define AC_STIME 2 /* system */

View File

@ -43,7 +43,7 @@ static const char rcsid[] =
#include <stdlib.h> #include <stdlib.h>
#include <unistd.h> #include <unistd.h>
extern void dump_file __P((const char *)); extern void dump_file(const char *);
extern int error_count; extern int error_count;
void void

View File

@ -53,8 +53,8 @@ static const char rcsid[] =
#include <time.h> #include <time.h>
#include <unistd.h> #include <unistd.h>
void doalarm __P((u_int)); void doalarm(u_int);
static void usage __P((void)); static void usage(void);
/* /*
* leave [[+]hhmm] * leave [[+]hhmm]

View File

@ -115,11 +115,11 @@ bg_t big[UCHAR_MAX + 1][UCHAR_MAX + 1];
#else #else
#define BGINDEX(x) bgindex(x) #define BGINDEX(x) bgindex(x)
typedef int bg_t; typedef int bg_t;
int bgindex __P((char *)); int bgindex(char *);
#endif /* LOOKUP */ #endif /* LOOKUP */
void usage __P((void)); void usage(void);
int int
main(argc, argv) main(argc, argv)

View File

@ -96,13 +96,6 @@ static const char rcsid[] =
#endif #endif
#ifdef sun
#include <netinet/in.h> /* SunOS byteorder(3) htohl(3) */
#ifndef __P
#define __P(x) x
#endif
#endif
#include "locate.h" #include "locate.h"
#include "pathnames.h" #include "pathnames.h"
@ -121,23 +114,23 @@ int f_limit; /* limit number of output lines, 0 == infinite */
u_int counter; /* counter for matches [-c] */ u_int counter; /* counter for matches [-c] */
void usage __P((void)); void usage(void);
void statistic __P((FILE *, char *)); void statistic(FILE *, char *);
void fastfind __P((FILE *, char *, char *)); void fastfind(FILE *, char *, char *);
void fastfind_icase __P((FILE *, char *, char *)); void fastfind_icase(FILE *, char *, char *);
void fastfind_mmap __P((char *, caddr_t, int, char *)); void fastfind_mmap(char *, caddr_t, int, char *);
void fastfind_mmap_icase __P((char *, caddr_t, int, char *)); void fastfind_mmap_icase(char *, caddr_t, int, char *);
void search_mmap __P((char *, char **)); void search_mmap(char *, char **);
void search_fopen __P((char *, char **)); void search_fopen(char *, char **);
unsigned long cputime __P((void)); unsigned long cputime(void);
extern char **colon __P((char **, char*, char*)); extern char **colon(char **, char*, char*);
extern void print_matches __P((u_int)); extern void print_matches(u_int);
extern int getwm __P((caddr_t)); extern int getwm(caddr_t);
extern int getwf __P((FILE *)); extern int getwf(FILE *);
extern u_char *tolower_word __P((u_char *)); extern u_char *tolower_word(u_char *);
extern int check_bigram_char __P((int)); extern int check_bigram_char(int);
extern char *patprep __P((char *)); extern char *patprep(char *);
int int
main(argc, argv) main(argc, argv)

View File

@ -47,13 +47,13 @@
#include "locate.h" #include "locate.h"
char **colon __P((char **, char*, char*)); char **colon(char **, char*, char*);
char *patprep __P((char *)); char *patprep(char *);
void print_matches __P((u_int)); void print_matches(u_int);
u_char *tolower_word __P((u_char *)); u_char *tolower_word(u_char *);
int getwm __P((caddr_t)); int getwm(caddr_t);
int getwf __P((FILE *)); int getwf(FILE *);
int check_bigram_char __P((int)); int check_bigram_char(int);
/* /*
* Validate bigram chars. If the test failed the database is corrupt * Validate bigram chars. If the test failed the database is corrupt

View File

@ -73,8 +73,10 @@ static const char rcsid[] =
#define TIMEOUT 15 #define TIMEOUT 15
void quit __P((int)), bye __P((int)), hi __P((int)); void quit(int);
static void usage __P((void)); void bye(int);
void hi(int);
static void usage(void);
struct timeval timeout; struct timeval timeout;
struct timeval zerotime; struct timeval zerotime;

View File

@ -60,10 +60,10 @@ static const char rcsid[] =
#define SYSLOG_NAMES #define SYSLOG_NAMES
#include <syslog.h> #include <syslog.h>
int decode __P((char *, CODE *)); int decode(char *, CODE *);
int pencode __P((char *)); int pencode(char *);
static void logmessage __P((int, char *, char *)); static void logmessage(int, char *, char *);
static void usage __P((void)); static void usage(void);
struct socks { struct socks {
int sock; int sock;

View File

@ -25,6 +25,6 @@
* $FreeBSD$ * $FreeBSD$
*/ */
void login_fbtab __P((char *, uid_t, gid_t)); void login_fbtab(char *, uid_t, gid_t);
extern char **environ; extern char **environ;

View File

@ -40,12 +40,12 @@ static char sep[] = ", \t"; /* list-element separator */
#define YES 1 #define YES 1
#define NO 0 #define NO 0
static int from_match __P((const char *, const char *)); static int from_match(const char *, const char *);
static int list_match __P((char *, const char *, static int list_match(char *, const char *,
int (*)(const char *, const char *))); int (*)(const char *, const char *));
static int netgroup_match __P((const char *, const char *, const char *)); static int netgroup_match(const char *, const char *, const char *);
static int string_match __P((const char *, const char *)); static int string_match(const char *, const char *);
static int user_match __P((const char *, const char *)); static int user_match(const char *, const char *);
/* login_access - match username/group and host/tty with access control file */ /* login_access - match username/group and host/tty with access control file */
@ -114,7 +114,7 @@ const char *from;
static int list_match(list, item, match_fn) static int list_match(list, item, match_fn)
char *list; char *list;
const char *item; const char *item;
int (*match_fn) __P((const char *, const char *)); int (*match_fn)(const char *, const char *);
{ {
char *tok; char *tok;
int match = NO; int match = NO;

View File

@ -74,7 +74,7 @@ __FBSDID("$FreeBSD$");
#include "login.h" #include "login.h"
#include "pathnames.h" #include "pathnames.h"
static void login_protect __P((const char *, char *, int, uid_t, gid_t)); static void login_protect(const char *, char *, int, uid_t, gid_t);
#define WSPACE " \t\n" #define WSPACE " \t\n"

View File

@ -50,7 +50,7 @@ static const char sccsid[] = "@(#)logname.c 8.2 (Berkeley) 4/3/94";
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
void usage __P((void)); void usage(void);
int int
main(argc, argv) main(argc, argv)

View File

@ -90,13 +90,13 @@ static const char rcsid[] =
int dflag, fflag; int dflag, fflag;
char *binary_search __P((unsigned char *, unsigned char *, unsigned char *)); char *binary_search(unsigned char *, unsigned char *, unsigned char *);
int compare __P((unsigned char *, unsigned char *, unsigned char *)); int compare(unsigned char *, unsigned char *, unsigned char *);
char *linear_search __P((unsigned char *, unsigned char *, unsigned char *)); char *linear_search(unsigned char *, unsigned char *, unsigned char *);
int look __P((unsigned char *, unsigned char *, unsigned char *)); int look(unsigned char *, unsigned char *, unsigned char *);
void print_from __P((unsigned char *, unsigned char *, unsigned char *)); void print_from(unsigned char *, unsigned char *, unsigned char *);
static void usage __P((void)); static void usage(void);
int int
main(argc, argv) main(argc, argv)