filenode.c (littleutils-1.2.4.tar.lz) | : | filenode.c (littleutils-1.2.5.tar.lz) | ||
---|---|---|---|---|
/* filenode: Prints out inode numbers for the specified files. | /* filenode: Prints out inode numbers for the specified files. | |||
Copyright (C) 2004-2020 by Brian Lindholm. | Copyright (C) 2004-2021 by Brian Lindholm. | |||
This file is part of the littleutils utility set. | This file is part of the littleutils utility set. | |||
The filenode utility is free software; you can redistribute it and/or modify | The filenode utility is free software; you can redistribute it and/or modify | |||
it under the terms of the GNU General Public License as published by the | it under the terms of the GNU General Public License as published by the | |||
Free Software Foundation; either version 3, or (at your option) any later | Free Software Foundation; either version 3, or (at your option) any later | |||
version. | version. | |||
The filenode utility is distributed in the hope that it will be useful, but | The filenode utility is distributed in the hope that it will be useful, but | |||
WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY | WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY | |||
or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for | or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for | |||
more details. | more details. | |||
You should have received a copy of the GNU General Public License along with | You should have received a copy of the GNU General Public License along with | |||
the littleutils. If not, see <https://www.gnu.org/licenses/>. */ | the littleutils. If not, see <https://www.gnu.org/licenses/>. */ | |||
#include <config.h> | #include <config.h> | |||
#if HAVE_INTTYPES_H | ||||
# include <inttypes.h> | ||||
#endif | ||||
#include <limits.h> | #include <limits.h> | |||
#include <stdio.h> | #ifdef HAVE_STDIO_H | |||
# include <stdio.h> | ||||
#endif | ||||
#ifdef HAVE_STDLIB_H | #ifdef HAVE_STDLIB_H | |||
# include <stdlib.h> | # include <stdlib.h> | |||
#endif | #endif | |||
#ifdef HAVE_STRING_H | #ifdef HAVE_STRING_H | |||
# include <string.h> | # include <string.h> | |||
#endif | #endif | |||
#ifdef HAVE_SYS_STAT_H | #ifdef HAVE_SYS_STAT_H | |||
# include <sys/stat.h> | # include <sys/stat.h> | |||
#endif | #endif | |||
#ifdef HAVE_GETOPT_H | ||||
# include <getopt.h> | ||||
#endif | ||||
#ifdef HAVE_UNISTD_H | #ifdef HAVE_UNISTD_H | |||
# include <unistd.h> | # include <unistd.h> | |||
# define OPTEND -1 | # define OPTEND -1 | |||
#else | #else | |||
# define OPTEND EOF | # define OPTEND EOF | |||
#endif | #endif | |||
#ifdef HAVE_GETOPT_H | ||||
#if HAVE_INTTYPES_H | # include <getopt.h> | |||
# include <inttypes.h> | ||||
#endif | #endif | |||
#ifdef __MINGW32__ | #ifdef __MINGW32__ | |||
extern int getopt (int argc, char * const *argv, const char *optstring); | extern int getopt (int argc, char * const *argv, const char *optstring); | |||
extern char *optarg; | extern char *optarg; | |||
extern int optind; | extern int optind; | |||
#endif | #endif | |||
#ifdef DJGPP | #ifdef DJGPP | |||
/* speed up stat command for DJGPP */ | /* speed up stat command for DJGPP */ | |||
End of changes. 5 change blocks. | ||||
8 lines changed or deleted | 9 lines changed or added |