| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | /* $NetBSD: options.c,v 1.119 2020/04/03 16:13:32 joerg Exp $ */ | | 1 | /* $NetBSD: options.c,v 1.120 2023/07/20 20:09:49 lukem Exp $ */ |
2 | | | 2 | |
3 | /*- | | 3 | /*- |
4 | * Copyright (c) 1992 Keith Muller. | | 4 | * Copyright (c) 1992 Keith Muller. |
5 | * Copyright (c) 1992, 1993 | | 5 | * Copyright (c) 1992, 1993 |
6 | * The Regents of the University of California. All rights reserved. | | 6 | * The Regents of the University of California. All rights reserved. |
7 | * | | 7 | * |
8 | * This code is derived from software contributed to Berkeley by | | 8 | * This code is derived from software contributed to Berkeley by |
9 | * Keith Muller of the University of California, San Diego. | | 9 | * Keith Muller of the University of California, San Diego. |
10 | * | | 10 | * |
11 | * Redistribution and use in source and binary forms, with or without | | 11 | * Redistribution and use in source and binary forms, with or without |
12 | * modification, are permitted provided that the following conditions | | 12 | * modification, are permitted provided that the following conditions |
13 | * are met: | | 13 | * are met: |
14 | * 1. Redistributions of source code must retain the above copyright | | 14 | * 1. Redistributions of source code must retain the above copyright |
| @@ -32,45 +32,46 @@ | | | @@ -32,45 +32,46 @@ |
32 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | | 32 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
33 | * SUCH DAMAGE. | | 33 | * SUCH DAMAGE. |
34 | */ | | 34 | */ |
35 | | | 35 | |
36 | #if HAVE_NBTOOL_CONFIG_H | | 36 | #if HAVE_NBTOOL_CONFIG_H |
37 | #include "nbtool_config.h" | | 37 | #include "nbtool_config.h" |
38 | #endif | | 38 | #endif |
39 | | | 39 | |
40 | #include <sys/cdefs.h> | | 40 | #include <sys/cdefs.h> |
41 | #if !defined(lint) | | 41 | #if !defined(lint) |
42 | #if 0 | | 42 | #if 0 |
43 | static char sccsid[] = "@(#)options.c 8.2 (Berkeley) 4/18/94"; | | 43 | static char sccsid[] = "@(#)options.c 8.2 (Berkeley) 4/18/94"; |
44 | #else | | 44 | #else |
45 | __RCSID("$NetBSD: options.c,v 1.119 2020/04/03 16:13:32 joerg Exp $"); | | 45 | __RCSID("$NetBSD: options.c,v 1.120 2023/07/20 20:09:49 lukem Exp $"); |
46 | #endif | | 46 | #endif |
47 | #endif /* not lint */ | | 47 | #endif /* not lint */ |
48 | | | 48 | |
49 | #include <sys/types.h> | | 49 | #include <sys/types.h> |
50 | #include <sys/time.h> | | 50 | #include <sys/time.h> |
51 | #include <sys/stat.h> | | 51 | #include <sys/stat.h> |
52 | #include <sys/param.h> | | 52 | #include <sys/param.h> |
53 | #include <ctype.h> | | 53 | #include <ctype.h> |
54 | #include <errno.h> | | 54 | #include <errno.h> |
55 | #if HAVE_NBTOOL_CONFIG_H | | 55 | #if HAVE_NBTOOL_CONFIG_H |
56 | #include "compat_getopt.h" | | 56 | #include "compat_getopt.h" |
57 | #else | | 57 | #else |
58 | #include <getopt.h> | | 58 | #include <getopt.h> |
59 | #endif | | 59 | #endif |
60 | #include <limits.h> | | 60 | #include <limits.h> |
61 | #include <stdio.h> | | 61 | #include <stdio.h> |
62 | #include <stdlib.h> | | 62 | #include <stdlib.h> |
63 | #include <string.h> | | 63 | #include <string.h> |
| | | 64 | #include <strings.h> |
64 | #include <unistd.h> | | 65 | #include <unistd.h> |
65 | #include <inttypes.h> | | 66 | #include <inttypes.h> |
66 | #include <paths.h> | | 67 | #include <paths.h> |
67 | #include <util.h> | | 68 | #include <util.h> |
68 | #include "pax.h" | | 69 | #include "pax.h" |
69 | #include "options.h" | | 70 | #include "options.h" |
70 | #include "cpio.h" | | 71 | #include "cpio.h" |
71 | #include "tar.h" | | 72 | #include "tar.h" |
72 | #include "extern.h" | | 73 | #include "extern.h" |
73 | #ifndef SMALL | | 74 | #ifndef SMALL |
74 | #include "mtree.h" | | 75 | #include "mtree.h" |
75 | #endif /* SMALL */ | | 76 | #endif /* SMALL */ |
76 | | | 77 | |