Deleted Added
full compact
uuencode.c (96943) uuencode.c (105519)
1/*-
2 * Copyright (c) 1983, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 30 unchanged lines hidden (view full) ---

39
40#if 0
41#ifndef lint
42static char sccsid[] = "@(#)uuencode.c 8.2 (Berkeley) 4/2/94";
43#endif /* not lint */
44#endif
45
46#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 1983, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 30 unchanged lines hidden (view full) ---

39
40#if 0
41#ifndef lint
42static char sccsid[] = "@(#)uuencode.c 8.2 (Berkeley) 4/2/94";
43#endif /* not lint */
44#endif
45
46#include <sys/cdefs.h>
47__FBSDID("$FreeBSD: head/usr.bin/uuencode/uuencode.c 96943 2002-05-19 11:22:54Z jmallett $");
47__FBSDID("$FreeBSD: head/usr.bin/uuencode/uuencode.c 105519 2002-10-20 14:18:25Z fanf $");
48
49/*
50 * uuencode [input] output
51 *
52 * Encode a file so it can be mailed to a remote system.
53 */
54#include <sys/param.h>
55#include <sys/socket.h>
56#include <sys/stat.h>
57
58#include <netinet/in.h>
59
60#include <err.h>
48
49/*
50 * uuencode [input] output
51 *
52 * Encode a file so it can be mailed to a remote system.
53 */
54#include <sys/param.h>
55#include <sys/socket.h>
56#include <sys/stat.h>
57
58#include <netinet/in.h>
59
60#include <err.h>
61#include <libgen.h>
61#include <resolv.h>
62#include <stdio.h>
63#include <stdlib.h>
64#include <string.h>
65#include <unistd.h>
66
67void encode(void);
68void base64_encode(void);

--- 9 unchanged lines hidden (view full) ---

78 struct stat sb;
79 int base64;
80 char ch;
81 char *outfile;
82
83 base64 = 0;
84 outfile = NULL;
85
62#include <resolv.h>
63#include <stdio.h>
64#include <stdlib.h>
65#include <string.h>
66#include <unistd.h>
67
68void encode(void);
69void base64_encode(void);

--- 9 unchanged lines hidden (view full) ---

79 struct stat sb;
80 int base64;
81 char ch;
82 char *outfile;
83
84 base64 = 0;
85 outfile = NULL;
86
86 if (strcmp(argv[0], "b64encode") == 0)
87 if (strcmp(basename(argv[0]), "b64encode") == 0)
87 base64 = 1;
88
89 while ((ch = getopt(argc, argv, "mo:")) != -1) {
90 switch (ch) {
91 case 'm':
92 base64 = 1;
93 break;
94 case 'o':

--- 132 unchanged lines hidden ---
88 base64 = 1;
89
90 while ((ch = getopt(argc, argv, "mo:")) != -1) {
91 switch (ch) {
92 case 'm':
93 base64 = 1;
94 break;
95 case 'o':

--- 132 unchanged lines hidden ---