makemap.c (111367) | makemap.c (132946) |
---|---|
1/* | 1/* |
2 * Copyright (c) 1998-2001 Sendmail, Inc. and its suppliers. | 2 * Copyright (c) 1998-2002 Sendmail, Inc. and its suppliers. |
3 * All rights reserved. 4 * Copyright (c) 1992 Eric P. Allman. All rights reserved. 5 * Copyright (c) 1992, 1993 6 * The Regents of the University of California. All rights reserved. 7 * 8 * By using this file, you agree to the terms and conditions set 9 * forth in the LICENSE file which can be found at the top level of 10 * the sendmail distribution. --- 4 unchanged lines hidden (view full) --- 15 16SM_IDSTR(copyright, 17"@(#) Copyright (c) 1998-2001 Sendmail, Inc. and its suppliers.\n\ 18 All rights reserved.\n\ 19 Copyright (c) 1992 Eric P. Allman. All rights reserved.\n\ 20 Copyright (c) 1992, 1993\n\ 21 The Regents of the University of California. All rights reserved.\n") 22 | 3 * All rights reserved. 4 * Copyright (c) 1992 Eric P. Allman. All rights reserved. 5 * Copyright (c) 1992, 1993 6 * The Regents of the University of California. All rights reserved. 7 * 8 * By using this file, you agree to the terms and conditions set 9 * forth in the LICENSE file which can be found at the top level of 10 * the sendmail distribution. --- 4 unchanged lines hidden (view full) --- 15 16SM_IDSTR(copyright, 17"@(#) Copyright (c) 1998-2001 Sendmail, Inc. and its suppliers.\n\ 18 All rights reserved.\n\ 19 Copyright (c) 1992 Eric P. Allman. All rights reserved.\n\ 20 Copyright (c) 1992, 1993\n\ 21 The Regents of the University of California. All rights reserved.\n") 22 |
23SM_IDSTR(id, "@(#)$Id: makemap.c,v 8.175 2001/12/28 22:44:01 ca Exp $") | 23SM_IDSTR(id, "@(#)$Id: makemap.c,v 8.176 2002/06/27 23:41:04 gshapiro Exp $") |
24 25 26#include <sys/types.h> 27#ifndef ISC_UNIX 28# include <sys/file.h> 29#endif /* ! ISC_UNIX */ 30#include <ctype.h> 31#include <stdlib.h> --- 19 unchanged lines hidden (view full) --- 51 52#define BUFSIZE 1024 53#define ISSEP(c) (sep == '\0' ? isascii(c) && isspace(c) : (c) == sep) 54 55static void 56usage(progname) 57 char *progname; 58{ | 24 25 26#include <sys/types.h> 27#ifndef ISC_UNIX 28# include <sys/file.h> 29#endif /* ! ISC_UNIX */ 30#include <ctype.h> 31#include <stdlib.h> --- 19 unchanged lines hidden (view full) --- 51 52#define BUFSIZE 1024 53#define ISSEP(c) (sep == '\0' ? isascii(c) && isspace(c) : (c) == sep) 54 55static void 56usage(progname) 57 char *progname; 58{ |
59 /* XXX break the usage output into multiple lines? it's too long */ | |
60 sm_io_fprintf(smioerr, SM_TIME_DEFAULT, | 59 sm_io_fprintf(smioerr, SM_TIME_DEFAULT, |
61 "Usage: %s [-C cffile] [-N] [-c cachesize] [-d] [-e] [-f] [-l] [-o] [-r] [-s] [-t delimiter] [-u] [-v] type mapname\n", 62 progname); 63#if _FFR_COMMENT_CHAR 64 /* add -D comment-char */ 65#endif /* _FFR_COMMENT_CHAR */ | 60 "Usage: %s [-C cffile] [-N] [-c cachesize] [-D commentchar]\n", 61 progname); 62 sm_io_fprintf(smioerr, SM_TIME_DEFAULT, 63 " %*s [-d] [-e] [-f] [-l] [-o] [-r] [-s] [-t delimiter]\n", 64 (int) strlen(progname), ""); 65 sm_io_fprintf(smioerr, SM_TIME_DEFAULT, 66 " %*s [-u] [-v] type mapname\n", 67 (int) strlen(progname), ""); |
66 exit(EX_USAGE); 67} 68 69int 70main(argc, argv) 71 int argc; 72 char **argv; 73{ --- 82 unchanged lines hidden (view full) --- 156 case 'e': 157 allowempty = true; 158 break; 159 160 case 'f': 161 foldcase = false; 162 break; 163 | 68 exit(EX_USAGE); 69} 70 71int 72main(argc, argv) 73 int argc; 74 char **argv; 75{ --- 82 unchanged lines hidden (view full) --- 158 case 'e': 159 allowempty = true; 160 break; 161 162 case 'f': 163 foldcase = false; 164 break; 165 |
164#if _FFR_COMMENT_CHAR | |
165 case 'D': 166 comment = *optarg; 167 break; | 166 case 'D': 167 comment = *optarg; 168 break; |
168#endif /* _FFR_COMMENT_CHAR */ | |
169 170 case 'l': 171 smdb_print_available_types(); 172 exit(EX_OK); 173 break; 174 175 case 'o': 176 notrunc = true; --- 350 unchanged lines hidden --- | 169 170 case 'l': 171 smdb_print_available_types(); 172 exit(EX_OK); 173 break; 174 175 case 'o': 176 notrunc = true; --- 350 unchanged lines hidden --- |