SCCS-vsn: bin/date/date.c 5.2
SCCS-vsn: bin/date/netdate.c 5.2
SCCS-vsn: bin/dd/dd.c 5.2
SCCS-vsn: bin/df/df.c 5.23
SCCS-vsn: bin/ed/ed.c 4.14
SCCS-vsn: bin/kill/kill.c 4.7
#endif /* not lint */
#ifndef lint
#endif /* not lint */
#ifndef lint
-static char sccsid[] = "@(#)date.c 5.1 (Berkeley) %G%";
+static char sccsid[] = "@(#)date.c 5.2 (Berkeley) %G%";
#endif /* not lint */
#include <sys/param.h>
#include <sys/time.h>
#include <sys/file.h>
#include <syslog.h>
#endif /* not lint */
#include <sys/param.h>
#include <sys/time.h>
#include <sys/file.h>
#include <syslog.h>
-#include <ctype.h>
-#include <string.h>
+#include <string.h>
+#include <ctype.h>
time_t tval;
int retval, nflag;
time_t tval;
int retval, nflag;
-static char sccsid[] = "@(#)netdate.c 5.1 (Berkeley) %G%";
+static char sccsid[] = "@(#)netdate.c 5.2 (Berkeley) %G%";
#endif /* not lint */
#include <sys/param.h>
#endif /* not lint */
#include <sys/param.h>
#include <netdb.h>
#define TSPTYPES
#include <protocols/timed.h>
#include <netdb.h>
#define TSPTYPES
#include <protocols/timed.h>
#define WAITACK 2 /* seconds */
#define WAITDATEACK 5 /* seconds */
#define WAITACK 2 /* seconds */
#define WAITDATEACK 5 /* seconds */
msg.tsp_time.tv_sec = htonl((u_long)tval);
msg.tsp_time.tv_usec = htonl((u_long)0);
length = sizeof(struct sockaddr_in);
msg.tsp_time.tv_sec = htonl((u_long)tval);
msg.tsp_time.tv_usec = htonl((u_long)0);
length = sizeof(struct sockaddr_in);
- if (connect(s, &dest, length) < 0) {
+ if (connect(s, (struct sockaddr *)&dest, length) < 0) {
perror("date: connect");
goto bad;
}
perror("date: connect");
goto bad;
}
if (found > 0 && FD_ISSET(s, &ready)) {
length = sizeof(struct sockaddr_in);
if (found > 0 && FD_ISSET(s, &ready)) {
length = sizeof(struct sockaddr_in);
- if (recvfrom(s, (char *)&msg, sizeof(struct tsp), 0, &from,
- &length) < 0) {
+ if (recvfrom(s, &msg, sizeof(struct tsp), 0,
+ (struct sockaddr *)&from, &length) < 0) {
if (errno != ECONNREFUSED)
perror("date: recvfrom");
goto bad;
if (errno != ECONNREFUSED)
perror("date: recvfrom");
goto bad;
-static char *sccsid = "@(#)dd.c 5.1 (Berkeley) %G%";
+static char *sccsid = "@(#)dd.c 5.2 (Berkeley) %G%";
#endif
#include <sys/types.h>
#endif
#include <sys/types.h>
#include <fcntl.h>
#include <unistd.h>
#include <stdio.h>
#include <fcntl.h>
#include <unistd.h>
#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
#define BIG 2147483647
#define LCASE 01
#define BIG 2147483647
#define LCASE 01
enum ftype { unknown, reg, chr, tape, ispipe } iftype;
enum ftype checktype();
enum ftype { unknown, reg, chr, tape, ispipe } iftype;
enum ftype checktype();
main(argc, argv)
int argc;
char **argv;
main(argc, argv)
int argc;
char **argv;
int (*conv)();
register char *ip;
register c;
int (*conv)();
register char *ip;
register c;
- int ebcdic(), ibm(), ascii(), null(), cnull(), term(), block(), unblock();
- int stats();
+ int ebcdic(), ibm(), ascii(), null(), cnull(), block(), unblock();
#endif /* not lint */
#ifndef lint
#endif /* not lint */
#ifndef lint
-static char sccsid[] = "@(#)df.c 5.22 (Berkeley) %G%";
+static char sccsid[] = "@(#)df.c 5.23 (Berkeley) %G%";
#include <sys/param.h>
#include <sys/stat.h>
#include <sys/mount.h>
#include <sys/param.h>
#include <sys/stat.h>
#include <sys/mount.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
{
extern int errno, optind;
int err, ch, i;
{
extern int errno, optind;
int err, ch, i;
- long width, maxwidth, mntsize, getmntinfo();
+ long width, maxwidth, mntsize;
char *mntpt, *mktemp();
struct stat stbuf;
struct statfs statfsbuf, *mntbuf;
char *mntpt, *mktemp();
struct stat stbuf;
struct statfs statfsbuf, *mntbuf;
-static char sccsid[] = "@(#)ed.c 4.13.1.1 (Berkeley) %G%";
+static char sccsid[] = "@(#)ed.c 4.14 (Berkeley) %G%";
#endif
/*
* Editor
*/
#include <sys/param.h>
#endif
/*
* Editor
*/
#include <sys/param.h>
+#include <sys/wait.h>
+#include <signal.h>
#include <sgtty.h>
#undef CEOF
#include <sgtty.h>
#undef CEOF
+#include <fcntl.h>
+#include <time.h>
+#include <stdlib.h>
+#include <string.h>
+#include <unistd.h>
#include "pathnames.h"
#define NULL 0
#include "pathnames.h"
#define NULL 0
int ninbuf;
int io;
int pflag;
int ninbuf;
int io;
int pflag;
sig_t oldhup;
sig_t oldquit;
int vflag = 1;
sig_t oldhup;
sig_t oldquit;
int vflag = 1;
char *getline();
char *getblock();
char *place();
char *getline();
char *getblock();
char *place();
-char *mktemp();
-char *malloc();
-char *realloc();
+void onintr(), quit(), onhup();
+
+ int argc;
+ char **argv;
{
register char *p1, *p2;
{
register char *p1, *p2;
- extern void onintr(), quit(), onhup();
sig_t oldintr;
oldquit = signal(SIGQUIT, SIG_IGN);
sig_t oldintr;
oldquit = signal(SIGQUIT, SIG_IGN);
#endif /* not lint */
#ifndef lint
#endif /* not lint */
#ifndef lint
-static char sccsid[] = "@(#)kill.c 4.6 (Berkeley) %G%";
+static char sccsid[] = "@(#)kill.c 4.7 (Berkeley) %G%";
#endif /* not lint */
#include <signal.h>
#include <stdio.h>
#endif /* not lint */
#include <signal.h>
#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
#include <ctype.h>
static char *signals[] = {
#include <ctype.h>
static char *signals[] = {
printsig()
{
register char **p;
printsig()
{
register char **p;
usage()
{
printf("usage: kill [-l] [-sig] pid ...\n");
usage()
{
printf("usage: kill [-l] [-sig] pid ...\n");