}
int nm_sort(tmp_stbl1, tmp_stbl2)
-_CONST void *tmp_stbl1, *tmp_stbl2;
+const void *tmp_stbl1, *tmp_stbl2;
{
struct nlist *stbl1 = (struct nlist *)tmp_stbl1;
#include <stdlib.h>
#include <string.h>
-int main _ARGS(( int argc, char *argv[] ));
-void fatal _ARGS(( char *prog, char *s ));
+int main( int argc, char *argv[] );
+void fatal( char *prog, char *s );
int main(argc, argv)
char *argv[];
union querybuf;
-int main _ARGS(( int c, char *v[] ));
-
-static int parsetype _ARGS(( char *s ));
-static int parseclass _ARGS(( char *s ));
-static void hperror _ARGS(( int err_no ));
-static void printanswer _ARGS(( struct hostent *hp ));
-static int ListHosts _ARGS(( char *namePtr, int queryType ));
-static int gethostinfo _ARGS(( char *name ));
-static int getdomaininfo _ARGS(( char *name, char *domain ));
-static int getinfo _ARGS(( char *name, char *domain, int type ));
-static int printinfo _ARGS(( union querybuf *answer, u8_t *eom, int filter,
- int isls ));
-static char *DecodeError _ARGS(( int result ));
-static u8_t *pr_rr _ARGS(( u8_t *cp, u8_t *msg, FILE *file, int filter ));
-static u8_t * pr_cdname _ARGS(( u8_t *cp, u8_t *msg, u8_t *name, int namelen ));
-static char *pr_class _ARGS(( int class ));
-static char *pr_type _ARGS(( int type ));
-static int tcpip_writeall _ARGS(( int fd, char *buf, unsigned siz ));
+int main( int c, char *v[] );
+
+static int parsetype( char *s );
+static int parseclass( char *s );
+static void hperror( int err_no );
+static void printanswer( struct hostent *hp );
+static int ListHosts( char *namePtr, int queryType );
+static int gethostinfo( char *name );
+static int getdomaininfo( char *name, char *domain );
+static int getinfo( char *name, char *domain, int type );
+static int printinfo( union querybuf *answer, u8_t *eom, int filter, int
+ isls );
+static char *DecodeError( int result );
+static u8_t *pr_rr( u8_t *cp, u8_t *msg, FILE *file, int filter );
+static u8_t * pr_cdname( u8_t *cp, u8_t *msg, u8_t *name, int namelen );
+static char *pr_class( int class );
+static char *pr_type( int type );
+static int tcpip_writeall( int fd, char *buf, unsigned siz );
int
main(c, v)
char DHCPCACHE[]=_PATH_DHCPCACHE;
-int main _ARGS(( int argc, char *argv[] ));
-void usage _ARGS(( void ));
+int main( int argc, char *argv[] );
+void usage( void );
int main(argc, argv)
int argc;
#include "wtmp.h"
-void write_log _ARGS(( char *fn ));
-void usage _ARGS(( void ));
-int main _ARGS(( int argc, char *argv[] ));
+void write_log( char *fn );
+void usage( void );
+int main( int argc, char *argv[] );
char *prog;
char *reboot_code = "delay; boot";
static char UTMP[] = "/etc/utmp"; /* Currently logged in users. */
-void wall _ARGS(( char *when, char *extra ));
-void crnlcat _ARGS(( char *message, char *more ));
+void wall( char *when, char *extra );
+void crnlcat( char *message, char *more );
void
wall(when, extra)
#define inform_user inf_user
#endif
-void usage _ARGS(( void ));
-void write_pid _ARGS(( void ));
-int inform_user_time _ARGS(( void ));
-void inform_user _ARGS(( void ));
-void terminate _ARGS(( void ));
-void wall _ARGS(( char *when, char *extra ));
-int crash_check _ARGS(( void ));
-void parse_time _ARGS(( char *arg ));
-void get_message _ARGS(( void ));
-int main _ARGS(( int argc, char *argv[] ));
-char *itoa _ARGS(( int n ));
+void usage( void );
+void write_pid( void );
+int inform_user_time( void );
+void inform_user( void );
+void terminate( void );
+void wall( char *when, char *extra );
+int crash_check( void );
+void parse_time( char *arg );
+void get_message( void );
+int main( int argc, char *argv[] );
+char *itoa( int n );
long wait_time=0L;
char message[1024];
#define get_window_size(fd, wp) ioctl(fd, TIOCGWINSZ, wp)
-extern int main _ARGS(( int argc, char **argv ));
-static void usage _ARGS(( void ));
-static u_char getescape _ARGS(( char *p ));
-static char *speeds2str _ARGS(( speed_t speed ));
-static void lostpeer _ARGS(( int sig ));
-static void doit _ARGS(( void ));
-static void setsignal _ARGS(( int sig, void (*act)(int sig) ));
-static void msg _ARGS(( char *str ));
-static void done _ARGS(( int status ));
+extern int main( int argc, char **argv );
+static void usage( void );
+static u_char getescape( char *p );
+static char *speeds2str( speed_t speed );
+static void lostpeer( int sig );
+static void doit( void );
+static void setsignal( int sig, void (*act)(int sig) );
+static void msg( char *str );
+static void done( int status );
#if !__minix_vmd
-static int reader _ARGS(( void ));
+static int reader( void );
#endif
-static void mode _ARGS(( int f ));
+static void mode( int f );
#if __minix_vmd
-static void mark_async _ARGS(( int fd ));
-static void init_0 _ARGS(( void ));
-static void init_1 _ARGS(( void ));
-static void init_rd_rem _ARGS(( void ));
-static void init_wr_rem _ARGS(( void ));
-static void restart_0 _ARGS(( void ));
-static void restart_1 _ARGS(( void ));
-static void restart_rd_rem _ARGS(( void ));
-static void restart_wr_rem _ARGS(( void ));
-static void completed_0 _ARGS(( int result, int error ));
-static void completed_1 _ARGS(( int result, int error ));
-static void completed_rd_rem _ARGS(( int result, int error ));
-static void completed_wr_rem _ARGS(( int result, int error ));
-static void do_urg _ARGS(( int urg_byte ));
+static void mark_async( int fd );
+static void init_0( void );
+static void init_1( void );
+static void init_rd_rem( void );
+static void init_wr_rem( void );
+static void restart_0( void );
+static void restart_1( void );
+static void restart_rd_rem( void );
+static void restart_wr_rem( void );
+static void completed_0( int result, int error );
+static void completed_1( int result, int error );
+static void completed_rd_rem( int result, int error );
+static void completed_wr_rem( int result, int error );
+static void do_urg( int urg_byte );
#endif
#if !__minix_vmd
-static void catch_child _ARGS(( int sig ));
-static void writer _ARGS(( void ));
+static void catch_child( int sig );
+static void writer( void );
#endif
-static void echo _ARGS(( int c ));
+static void echo( int c );
#if __minix_vmd
-static void finish _ARGS(( void ));
-static void sendwindow _ARGS(( void ));
-static void sigwinch _ARGS(( int sig ));
-static void subshell _ARGS(( void ));
+static void finish( void );
+static void sendwindow( void );
+static void sigwinch( int sig );
+static void subshell( void );
#endif
int main(argc, argv)
static void
setsignal(sig, act)
int sig;
- void (*act) _ARGS(( int sig ));
+ void(*act) ( int sig );
{
if (signal(sig, act) == SIG_IGN)
(void)signal(sig, SIG_IGN);
#include <net/netlib.h>
#include <net/gen/netdb.h>
-int main _ARGS(( int argc, char *argv[] ));
-void usage _ARGS(( void ));
-char *copyargs _ARGS(( char **argv ));
-void sendsig _ARGS(( int signo ));
-void talk _ARGS(( int nflag, long omask, int pid, int rem ));
+int main( int argc, char *argv[] );
+void usage( void );
+char *copyargs( char **argv );
+void sendsig( int signo );
+void talk( int nflag, long omask, int pid, int rem );
#define _PATH_RLOGIN1 "/bin/rlogin"
#define _PATH_RLOGIN2 "/usr/bin/rlogin"
PROG= tcpstat
-CPPFLAGS+= -I${MINIXSRCDIR}/servers
+CPPFLAGS+= -I${MINIXSRCDIR}/servers -D'ARGS(a)=a'
MAN=
.include <bsd.prog.mk>
PROG= udpstat
-CPPFLAGS+= -I${MINIXSRCDIR}/servers
+CPPFLAGS+= -I${MINIXSRCDIR}/servers -D'ARGS(a)=a'
MAN=
.include <bsd.prog.mk>
#define _ANSI 31459 /* gcc conforms enough even in non-ANSI mode */
#endif
-#define _VOIDSTAR void *
-#define _VOID void
-
-#ifdef _ANSI
-
-#define _ARGS(params) params
-
-#define _CONST const
-#define _VOLATILE volatile
-#define _SIZET size_t
-
-#else
-
-#define _ARGS(params) ()
-
-#define _CONST
-#define _VOLATILE
-#define _SIZET int
-
-#endif /* _ANSI */
-
#if defined(__GNUC__) && !defined(__STRICT_ANSI__) || __STDC_VERSION__ >= 199901
#define __LONG_LONG_SUPPORTED 1
#endif
sizeof(((type *)0)->field) }
#define QP_END() { 0, 0, 0 }
-void qp_export _ARGS((struct export_params *_ex_params));
-int queryparam _ARGS((int (*_qgetc) _ARGS((void)), void **_paddress,
- _mnx_size_t *_psize));
-_mnx_size_t paramvalue _ARGS((char **_value, void *_address,
- _mnx_size_t _size));
+void qp_export(struct export_params *_ex_params);
+int queryparam(int (*_qgetc) (void), void **_paddress, _mnx_size_t
+ *_psize);
+_mnx_size_t paramvalue(char **_value, void *_address, _mnx_size_t
+ _size);
#endif /* _MINIX__QUERYPARAM_H */
/* $PchId: queryparam.h,v 1.1 2005/06/28 14:31:26 philip Exp $ */
#define _PATH_ETHERS "/etc/ethers"
-char *ether_ntoa _ARGS(( struct ether_addr *e ));
-struct ether_addr *ether_aton _ARGS(( const char *s ));
-int ether_ntohost _ARGS(( char *hostname, struct ether_addr *e ));
-int ether_hostton _ARGS(( char *hostname, struct ether_addr *e ));
-int ether_line _ARGS(( char *l, struct ether_addr *e, char *hostname ));
+char *ether_ntoa( struct ether_addr *e );
+struct ether_addr *ether_aton( const char *s );
+int ether_ntohost( char *hostname, struct ether_addr *e );
+int ether_hostton( char *hostname, struct ether_addr *e );
+int ether_line( char *l, struct ether_addr *e, char *hostname );
#endif /* __SERVER__IP__GEN__IF_ETHER_H__ */
#include <net/gen/in.h>
-ipaddr_t inet_addr _ARGS(( const char *addr ));
-ipaddr_t inet_network _ARGS(( const char *addr ));
-char *inet_ntoa _ARGS(( ipaddr_t addr ));
-int inet_aton _ARGS(( const char *cp, ipaddr_t *pin ));
+ipaddr_t inet_addr( const char *addr );
+ipaddr_t inet_network( const char *addr );
+char *inet_ntoa( ipaddr_t addr );
+int inet_aton( const char *cp, ipaddr_t *pin );
#endif /* __SERVER__IP__GEN__INET_H__ */
#ifndef __SERVER__IP__GEN__ONECSUM_H__
#define __SERVER__IP__GEN__ONECSUM_H__
-u16_t oneC_sum _ARGS(( u16_t prev, void *data, size_t data_len ));
+u16_t oneC_sum( u16_t prev, void *data, size_t data_len );
#endif /* __SERVER__IP__GEN__ONECSUM_H__ */
FILE *
popen(command, type)
-_CONST char *command;
-_CONST char *type;
+const char *command;
+const char *type;
{
int piped[2];
int Xtype = *type == 'r' ? 0 : *type == 'w' ? 1 : 2;
#endif
int access(name, mode)
-_CONST char *name;
+const char *name;
int mode;
{
message m;
#endif
int chdir(name)
-_CONST char *name;
+const char *name;
{
message m;
#endif
int chroot(name)
-_CONST char *name;
+const char *name;
{
message m;
}
int umount(name)
-_CONST char *name;
+const char *name;
{
return umount2(name, 0);
}
int umount2(name, flags)
-_CONST char *name;
+const char *name;
int flags;
{
message m;
#endif
long pathconf(path, name)
-_CONST char *path; /* name of file being interrogated */
+const char *path; /* name of file being interrogated */
int name; /* property being inspected */
{
/* POSIX allows some of the values in <limits.h> to be increased at
BINDIR?= /usr/sbin
-CPPFLAGS+= -I${.CURDIR} -D_MINIX -Wall -Werror
+CPPFLAGS+= -I${.CURDIR} -D_MINIX -D'ARGS(a)=a' -Wall -Werror
.include <minix.service.mk>
#define NWEO_DEFAULT (NWEO_EN_LOC | NWEO_DI_BROAD | NWEO_DI_MULTI | \
NWEO_DI_PROMISC | NWEO_REMANY | NWEO_RWDATALL)
-#define eth_addrcmp(a,b) (memcmp((_VOIDSTAR)&a, (_VOIDSTAR)&b, \
+#define eth_addrcmp(a,b) (memcmp((void *)&a, (void *)&b, \
sizeof(a)))
/* Forward declatations */
sizeof(((type *)0)->field) }
#define QP_END() { 0, 0, 0 }
-void qp_export _ARGS((struct export_params *_ex_params));
-int queryparam _ARGS((int (*_qgetc) _ARGS((void)), void **_paddress,
- _mnx_size_t *_psize));
-_mnx_size_t paramvalue _ARGS((char **_value, void *_address,
- _mnx_size_t _size));
+void qp_export(struct export_params *_ex_params);
+int queryparam(int (*_qgetc) (void), void **_paddress, _mnx_size_t
+ *_psize);
+_mnx_size_t paramvalue(char **_value, void *_address, _mnx_size_t
+ _size);
#endif /* _MINIX__QUERYPARAM_H */
/* $PchId: queryparam.h,v 1.1 2005/06/28 14:31:26 philip Exp $ */
#define MAX_ERROR 4
#define ITERATIONS 10
-_VOLATILE int glov, gct;
+volatile int glov, gct;
int errct;
int subtest;
#include "common.c"
void test5i(void);
void ex(void);
-_VOLATILE int childsigs, parsigs, alarms;
+volatile int childsigs, parsigs, alarms;
int main(argc, argv)
int argc;