SHELL = /bin/sh
-SUBDIRS=@XCLIENTS@ zaway zctl zleave zlocate zmailnotify znol \
- zpopnotify zshutdown_notify zstat zwrite
+SUBDIRS=zaway zctl zleave zlocate znol \
+ zshutdown_notify zstat zwrite
all:
for i in ${SUBDIRS}; do (cd $$i; ${MAKE} $@) || exit 1; done
#define DEFAULT_MSG "I'm sorry, but I am currently away from the terminal and am\nnot able to receive your message.\n"
#define RESPONSE_OPCODE ""
-RETSIGTYPE cleanup();
+RETSIGTYPE cleanup(int);
u_short port;
-void usage(name)
- char *name;
+void
+usage(char *name)
{
printf("Usage: %s [OPTIONS] [FILE]\n"
"\n"
name);
}
-int main(argc,argv)
- int argc;
- char *argv[];
+int
+main(int argc,
+ char *argv[])
{
FILE *fp;
ZNotice_t notice;
int optchar, watch_location;
char *cmdline_msg;
int nlocs;
- char *find_message();
+ char *find_message(ZNotice_t *, FILE *);
#ifdef _POSIX_VERSION
struct sigaction sa;
#endif
}
}
-char *find_message(notice,fp)
- ZNotice_t *notice;
- register FILE *fp;
+char *
+find_message(ZNotice_t *notice,
+ FILE *fp)
{
- register char *ptr,*ptr2;
+ char *ptr,*ptr2;
char bfr[BUFSIZ],sender[BUFSIZ];
int gotone,lastwasnt;
return (ptr);
}
-RETSIGTYPE cleanup()
+RETSIGTYPE
+cleanup(int ignored)
{
ZCancelSubscriptions(port);
exit(1);
#define ERR (-1)
#define NOT_REMOVED 0
#define REMOVED 1
-int purge_subs();
int sci_idx;
char subsname[BUFSIZ];
extern ss_request_table zctl_cmds;
-void add_file(), del_file(), fix_macros(), fix_macros2();
+int purge_subs(register ZSubscription_t *, int);
+void add_file(short, ZSubscription_t *, int);
+void del_file(short, ZSubscription_t *, int);
+void fix_macros(ZSubscription_t *, ZSubscription_t *, int);
+void fix_macros2(char *, char **);
-main(argc,argv)
- int argc;
- char *argv[];
+int
+main(int argc,
+ char *argv[])
{
struct passwd *pwd;
struct hostent *hent;
}
void
-set_file(argc,argv)
- int argc;
- char *argv[];
+set_file(int argc,
+ char *argv[])
{
if (argc > 2) {
fprintf(stderr,"Usage: %s filename\n",argv[0]);
}
void
-flush_locations(argc,argv)
- int argc;
- char *argv[];
+flush_locations(int argc,
+ char *argv[])
{
int retval;
}
void
-wgc_control(argc,argv)
- int argc;
- register char **argv;
+wgc_control(int argc,
+ char *argv[])
{
int retval;
short newport;
}
void
-hm_control(argc,argv)
- int argc;
- char *argv[];
+hm_control(int argc,
+ char *argv[])
{
int retval;
ZNotice_t notice;
}
void
-show_var(argc,argv)
- int argc;
- char *argv[];
+show_var(int argc,
+ char *argv[])
{
int i;
char *value;
}
void
-set_var(argc,argv)
- int argc;
- register char **argv;
+set_var(int argc, char *argv[])
{
int retval,setting_exp,i;
char *exp_level,*newargv[1];
}
void
-do_hide(argc,argv)
- int argc;
- char *argv[];
+do_hide(int argc,
+ char *argv[])
{
char *exp_level = NULL;
Code_t retval;
}
void
-unset_var(argc,argv)
- int argc;
- char *argv[];
+unset_var(int argc,
+ char *argv[])
{
int retval,i;
}
void
-cancel_subs(argc,argv)
- int argc;
- char *argv[];
+cancel_subs(int argc,
+ char *argv[])
{
int retval;
short wgport;
}
void
-subscribe(argc,argv)
- int argc;
- char *argv[];
+subscribe(int argc,
+ char *argv[])
{
int retval;
short wgport;
}
void
-sub_file(argc,argv)
- int argc;
- char *argv[];
+sub_file(int argc,
+ char *argv[])
{
ZSubscription_t sub;
short wgport;
}
void
-add_file(wgport,subs,unsub)
-short wgport;
-ZSubscription_t *subs;
-int unsub;
+add_file(short wgport,
+ ZSubscription_t *subs,
+ int unsub)
{
FILE *fp;
char errbuf[BUFSIZ];
}
void
-del_file(wgport,subs,unsub)
-short wgport;
-register ZSubscription_t *subs;
-int unsub;
+del_file(short wgport,
+ register ZSubscription_t *subs,
+ int unsub)
{
ZSubscription_t sub2;
int retval;
}
int
-purge_subs(subs,which)
-register ZSubscription_t *subs;
-int which;
+purge_subs(register ZSubscription_t *subs,
+ int which)
{
FILE *fp,*fpout;
char errbuf[BUFSIZ],subline[BUFSIZ];
}
void
-load_subs(argc,argv)
- int argc;
- char *argv[];
+load_subs(int argc,
+ char *argv[])
{
ZSubscription_t subs[SUBSATONCE],subs2[SUBSATONCE],unsubs[SUBSATONCE];
FILE *fp;
}
void
-current(argc,argv)
- int argc;
- char *argv[];
+current(int argc,
+ char *argv[])
{
FILE *fp;
char errbuf[BUFSIZ];
}
int
-make_exist(filename)
- char *filename;
+make_exist(char *filename)
{
char errbuf[BUFSIZ];
FILE *fpout;
}
void
-fix_macros(subs,subs2,num)
- ZSubscription_t *subs,*subs2;
- int num;
+fix_macros(ZSubscription_t *subs,
+ ZSubscription_t *subs2,
+ int num)
{
int i;
}
void
-fix_macros2(src,dest)
- register char *src;
- char **dest;
+fix_macros2(char *src, char **dest)
{
if (!strcmp(src,TOKEN_HOSTNAME)) {
*dest = ourhost;
*/
char origlogin[20];
char tempfile[40];
-char *getlogin();
char *whenleave;
char *reminder_message = NULL;
char buff[100];
int use_zephyr=1, oldpid;
-void usage(), doalarm(), bother(), delay();
+void usage(void);
+void doalarm(long);
+void bother(long, char *);
+void delay(long);
+int gethm(char *, int *, int*);
-main(argc, argv)
-char **argv;
+int
+main(int argc,
+ char **argv)
{
time_t now;
- long when, diff, hours, minutes;
+ long when, diff;
+ int hours, minutes;
char *cp;
FILE *fp;
struct tm *nv;
- int gethm();
int port, c;
ZSubscription_t sub;
}
void
-usage()
+usage(void)
{
fprintf(stderr, "usage: zleave [[+]hhmm [-m \"Reminder Message\"]]\n\
\tor: zleave can[cel]\n");
}
int
-gethm(cp, hp, mp)
-register char *cp;
-int *hp, *mp;
+gethm(char *cp,
+ int *hp,
+ int *mp)
{
- register char c;
- register int tod;
+ char c;
+ int tod;
tod = 0;
while ((c = *cp++) != '\0') {
}
void
-doalarm(nmins)
-long nmins;
+doalarm(long nmins)
{
time_t daytime;
char *msg1, *msg2, *msg3, *msg4;
}
void
-bother(slp, msg)
-long slp;
-char *msg;
+bother(long slp,
+ char *msg)
{
ZNotice_t notice;
ZNotice_t retnotice;
* knows what zero means.
*/
void
-delay(secs)
-long secs;
+delay(long secs)
{
long n;
register char *l;
int numusers=0, numleft=0, parallel=0, oneline=0;
char *whoami;
-RETSIGTYPE timeout(sig)
+RETSIGTYPE
+timeout(int sig)
{
fprintf (stderr, "%s: no response from server\n", whoami);
exit(1);
}
-void usage()
+void
+usage(void)
{
printf("Usage: %s [ -a | -d ] [ -p ] [ -1 ] user ... \n",whoami);
exit(1);
}
-void print_locs(user,nlocs)
- char *user;
- int nlocs;
+void
+print_locs(char *user,
+ int nlocs)
{
int one = 1, retval;
ZLocations_t locations;
}
/*ARGSUSED*/
-main(argc,argv)
- int argc;
- char *argv[];
+int
+main(int argc,
+ char *argv[])
{
char user[BUFSIZ],*whichuser;
ZAsyncLocateData_t ald;
#define ON 1
#define OFF 0
-main(argc,argv)
- int argc;
- register char *argv[];
+int
+main(int argc,
+ char *argv[])
{
register char *cp;
ZSubscription_t subs[SUBSATONCE];
static char warning[] = "Please detach any filesystems you may have\nattached from this host by typing detach -host %s";
/*ARGSUSED*/
-main(argc,argv)
- int argc;
- char *argv[];
+int
+main(int argc,
+ char *argv[])
{
ZNotice_t notice;
struct hostent *hp;
char rlm[REALM_SZ];
char hn2[MAXHOSTNAMELEN];
char *cp;
- extern char *krb_get_phost();
#endif
if (gethostname(hostname, MAXHOSTNAMELEN) < 0) {
int serveronly = 0,hmonly = 0;
u_short srv_port;
-void usage(), do_stat();
+void usage(char *);
+void do_stat(char *);
-RETSIGTYPE timeout()
+RETSIGTYPE
+timeout(int ignored)
{
outoftime = 1;
}
-main(argc, argv)
- int argc;
- char *argv[];
+int
+main(int argc,
+ char *argv[])
{
Code_t ret;
char hostname[MAXHOSTNAMELEN];
}
void
-do_stat(host)
- char *host;
+do_stat(char *host)
{
char srv_host[MAXHOSTNAMELEN];
}
int
-hm_stat(host,server)
- char *host,*server;
+hm_stat(char *host,
+ char *server)
{
struct in_addr inaddr;
Code_t code;
}
int
-srv_stat(host)
- char *host;
+srv_stat(char *host)
{
char *line[20],*mp;
int sock,i,nf,ret;
}
void
-usage(s)
- char *s;
+usage(char *s)
{
fprintf(stderr,"usage: %s [-s] [-h] [host ...]\n",s);
exit(1);
int nrecips, msgarg, verbose, quiet, nodot, cc;
char *whoami, *inst, *class, *opcode, *realm, *recips[MAXRECIPS];
Z_AuthProc auth;
-void un_tabify();
+void un_tabify(char **, int *);
-char *fix_filsrv_inst();
-void usage(), send_off();
+char *fix_filsrv_inst(char *);
+void usage(char *);
+void send_off(ZNotice_t *, int);
-main(argc, argv)
- int argc;
- char *argv[];
+int
+main(int argc,
+ char *argv[])
{
int retval, arg, nocheck, nchars, msgsize, filsys, tabexpand;
char *message, *signature = NULL, *format = NULL;
}
void
-send_off(notice, real)
- ZNotice_t *notice;
- int real;
+send_off(ZNotice_t *notice,
+ int real)
{
int i, success, retval;
char bfr[BUFSIZ], realm_recip[BUFSIZ], dest[3 * BUFSIZ], *cp;
}
void
-usage(s)
- char *s;
+usage(char *s)
{
fprintf(stderr,
"Usage: %s [-a] [-o] [-d] [-v] [-q] [-n] [-t] [-u] [-l]\n\
name returned by gethostbyname(hostname)
*/
-char *fix_filsrv_inst(str)
-char *str;
+char *
+fix_filsrv_inst(char *str)
{
static char fsinst[BUFSIZ];
char *ptr;
#endif /* ! TABSTOP */
void
-un_tabify(bufp, sizep)
-char **bufp;
-register int *sizep;
+un_tabify(char **bufp,
+ int *sizep)
{
register char *cp, *cp2;
char *cp3;