"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "littleutils/lrealpath.c" between
littleutils-1.2.4.tar.lz and littleutils-1.2.5.tar.lz

About: littleutils are a collection of small and simple utilities (rename files, search for duplicate files, ...).

lrealpath.c  (littleutils-1.2.4.tar.lz):lrealpath.c  (littleutils-1.2.5.tar.lz)
/* lrealpath: Prints the real path of the specified files. This is intended /* lrealpath: Prints the real path of the specified files. This is intended
to resolve symbolic links on Unix machines. Remarkably, it works on DOS to resolve symbolic links on Unix machines. Remarkably, it works on DOS
and Windows machines also. and Windows machines also.
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 lrealpath utility is free software; you can redistribute it and/or The lrealpath utility is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License as published by modify 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 the Free Software Foundation; either version 3, or (at your option) any
later version. later version.
The lrealpath utility is distributed in the hope that it will be useful, but The lrealpath 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>
#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 DJGPP #ifdef DJGPP
# 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
# include <getopt.h>
#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
#ifndef PATH_MAX #ifndef PATH_MAX
# define PATH_MAX 256 # define PATH_MAX 256
#endif #endif
 End of changes. 4 change blocks. 
5 lines changed or deleted 7 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)