file.c (133359) | file.c (139368) |
---|---|
1/* 2 * Copyright (c) Ian F. Darwin 1986-1995. 3 * Software written by Ian F. Darwin and others; 4 * maintained 1995-present by Christos Zoulas and others. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: 9 * 1. Redistributions of source code must retain the above copyright 10 * notice immediately at the beginning of the file, without modification, 11 * this list of conditions, and the following disclaimer. 12 * 2. Redistributions in binary form must reproduce the above copyright 13 * notice, this list of conditions and the following disclaimer in the 14 * documentation and/or other materials provided with the distribution. | 1/* 2 * Copyright (c) Ian F. Darwin 1986-1995. 3 * Software written by Ian F. Darwin and others; 4 * maintained 1995-present by Christos Zoulas and others. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: 9 * 1. Redistributions of source code must retain the above copyright 10 * notice immediately at the beginning of the file, without modification, 11 * this list of conditions, and the following disclaimer. 12 * 2. Redistributions in binary form must reproduce the above copyright 13 * notice, this list of conditions and the following disclaimer in the 14 * documentation and/or other materials provided with the distribution. |
15 * 3. All advertising materials mentioning features or use of this software 16 * must display the following acknowledgement: 17 * This product includes software developed by Ian F. Darwin and others. 18 * 4. The name of the author may not be used to endorse or promote products 19 * derived from this software without specific prior written permission. | |
20 * 21 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 22 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 23 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 24 * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR 25 * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) --- 44 unchanged lines hidden (view full) --- 72#undef HAVE_GETOPT_LONG 73#endif 74 75#include <netinet/in.h> /* for byte swapping */ 76 77#include "patchlevel.h" 78 79#ifndef lint | 15 * 16 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 17 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 18 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 19 * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR 20 * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 21 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 22 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) --- 44 unchanged lines hidden (view full) --- 67#undef HAVE_GETOPT_LONG 68#endif 69 70#include <netinet/in.h> /* for byte swapping */ 71 72#include "patchlevel.h" 73 74#ifndef lint |
80FILE_RCSID("@(#)$Id: file.c,v 1.93 2004/04/07 14:23:55 christos Exp $") | 75FILE_RCSID("@(#)$Id: file.c,v 1.95 2004/09/27 15:28:37 christos Exp $") |
81#endif /* lint */ 82 83 84#ifdef S_IFLNK 85#define SYMLINKFLAG "L" 86#else 87#define SYMLINKFLAG "" 88#endif --- 221 unchanged lines hidden (view full) --- 310 nw = file_mbswidth(argv[i]); 311 if (nw > wid) 312 wid = nw; 313 } 314 for (; optind < argc; optind++) 315 process(argv[optind], wid); 316 } 317 | 76#endif /* lint */ 77 78 79#ifdef S_IFLNK 80#define SYMLINKFLAG "L" 81#else 82#define SYMLINKFLAG "" 83#endif --- 221 unchanged lines hidden (view full) --- 305 nw = file_mbswidth(argv[i]); 306 if (nw > wid) 307 wid = nw; 308 } 309 for (; optind < argc; optind++) 310 process(argv[optind], wid); 311 } 312 |
313 magic_close(magic); |
|
318 return 0; 319} 320 321 322private void 323load(const char *m, int flags) 324{ 325 if (magic) --- 203 unchanged lines hidden --- | 314 return 0; 315} 316 317 318private void 319load(const char *m, int flags) 320{ 321 if (magic) --- 203 unchanged lines hidden --- |