summaryrefslogtreecommitdiff
path: root/lib/uuid
AgeCommit message (Collapse)AuthorFilesLines
2011-11-29Update Release Notes, Changelogs, version.h, etc. for 1.42 releaseTheodore Ts'o1-10/+20
Also fixed depfix.sed Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2011-09-18Shorten compile commands run by the build systemTheodore Ts'o12-0/+15
The DEFS line in MCONFIG had gotten so long that it exceeded 4k, and this was starting to cause some tools heartburn. It also made "make V=1" almost useless, since trying to following the individual commands run by make was lost in the noise of all of the defines. So fix this by putting the configure-generated defines in lib/config.h and the directory pathnames to lib/dirpaths.h. In addition, clean up some vestigal defines in configure.in and in the Makefiles to further shorten the cc command lines. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2010-05-17Add configure options --enable-symlink-build and --enable-symlink-installTheodore Ts'o1-2/+4
These options allow e2fsprogs to be built using symlinks instead of hard links, and to be installed using symlinks instead of hard links, respectively. Addresses-Sourceforge-Bug: #1436294 Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2009-10-04Don't use in-tree header files if using system uuid or blkid librariesTheodore Ts'o4-16/+19
This commit forces the use of the system-provided blkid or uuid header files if we are using the system-provided blkid or uuid libraries. This avoids using the in-tree header files with the system libraries. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2009-07-02Add support for configure --enable-verbose-makecmdsTheodore Ts'o1-48/+48
Some people don't want to see the concise "kernel-style" make output. This configure option allows build engines that want to see the full set of commands executed by the makefile to get what they want. Most people will find this more distracting than useful, unless they need to debug the Makefiles. (It is not necessary to rerun configure to enable this verbose make output temprarily; if a developer wants to do a quick debug of a directory's makefile, he or she can simply edit the definition of the $(E) and $(Q) variables in the Makefile; instructions can be found in the MCONFIG file which is included in at the beginning of every Makefile.) Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2009-06-30libuuid: Don't run uuidd if it would fail due to permission problemsTheodore Ts'o2-2/+8
Some distributions don't like installing uuidd setuid or setgid. So if the setuid or setigid bit is not set with uuidd, and the current process does not have write access to the UUIDD work directory, don't try running uuidd, since it won't work properly. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2009-06-29libuuid, uuidd: Avoid infinite loop while reading from the socket fdTheodore Ts'o1-3/+7
If for some reason the uuidd daemon or the process calling uuidd exited unexpectely, the read_all() function would end up looping forever, either in uuidd or in libuuid. Fix this terminating the loop if no data can be read after five tries to read from the file descriptor. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2009-06-29libuuid: Make sure fd's 0, 1, and 2 are valid before exec'ing uuiddTheodore Ts'o1-1/+4
When closing all of the file descriptors before starting uuidd, make sure file descriptors 0, 1, and 2 are reserved by opening /dev/null. This prevents strange bugs caused by assumptions regarding file descriptors <= 2 as being special. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2009-04-15libuuid: Close all file descriptors before running uuiddTheodore Ts'o1-3/+36
This avoids problems when the calling program has open file descriptors (especially sockets) open. Also fix up some warn_unused_result warnings from gcc. Addresses-Launchpad-bug: #305057 Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2008-09-02Fix pkg-config files: use Requires.private and fix the include directoryTheodore Ts'o1-1/+1
Addresses-Sourceforge-Bug: #2089537 Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2008-08-27Remove trailing whitespace for the entire source treeTheodore Ts'o13-40/+40
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2008-08-22libuuid: Windows portability fixesTheodore Ts'o4-8/+66
Make the uuid library (more) portable for Windows. Addresses-Sourceforge-Feature-Request: #1937287 Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2008-06-07Fix gcc -Wall warnings in libuuidTheodore Ts'o1-1/+7
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2008-05-11libuuid: don't use unitialized variableMatthias Koenig1-1/+1
Signed-off-by: Matthias Koenig <mkoenig@suse.de> Signed-off-by: Theodore Ts'o <tytso@mit.edu>
2008-02-17Add portability checks to support DJGPPChristophe GRENIER1-1/+3
DJGPP lacks sys/select.h and sys/un.h; add header checks to be more portable. Signed-off-by: Christophe Grenier <grenier@cgsecurity.org> Signed-off-by: Theodore Ts'o <tytso@mit.edu>
2008-02-16libuuid: use fcntl locking instead of lockfTheodore Ts'o1-2/+10
Cygwin doesn't support lockf(), so move to fcntl() locking as more portable. Also fix a bug which could cause get_lock() to loop forever if the attempt to lock the file fails for some reason. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2008-01-27libuuid: Make sure execl() variadic function is properly terminatedTheodore Ts'o1-1/+2
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2007-12-31Update dependencies in lib/uuid/Makefile.inTheodore Ts'o1-1/+2
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2007-12-31Test for sys/syscall.h in configure to fix dietlibc build problemTheodore Ts'o1-1/+1
When compiling with dietlibc, sys/syscall.h isn't supported; as of dietlibc 0.30, it exists but it references a non-existent asm/unistd.h header file. So we have to test for its existence and avoid using it in lib/uuid/gen_uuid.c if it is not supported. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2007-12-31Add --disable-uuidd configure optionTheodore Ts'o1-0/+2
Add a configure option which causes the uuidd helper daemon not to be built or used by the uuid library. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2007-12-21libuuid: Fix bug which caused uuidd to fail if sizeof(int) != sizeof(int *)Theodore Ts'o1-3/+3
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2007-12-17libuuid: Only try to start the uuidd daemon a limited number of timesTheodore Ts'o1-1/+2
If we fail to create the uuidd daemon after 5 or 6 tries, another 10,000 tries probably won't be successful. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2007-12-17libuuid: When starting uuidd, use waitpid() to reap the zombie processTheodore Ts'o1-2/+4
The uuidd process will fork and let the parent process exit to create the daemon. So use waitpid to reap the zombie, as well as using it to time when it is safe to try to connect to the daemon. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2007-12-17uuidd: Use /var/lib/libuuid instead of /var/run/uuiddTheodore Ts'o1-2/+2
/var/run can get completely removed at reboot, and uuidd doesn't have permissions to recreate /var/run/uuidd. So instead use /var/lib/libuuidd for the unix domain socket and pid files. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2007-12-16Add uuidd daemon to prevent duplicate time-based UUID'sTheodore Ts'o2-16/+292
Also store the clock sequence information in a state file in /var/lib/misc/uuid-clock so that if the time goes backwards the clock sequence counter can get bumped. This allows us to completely correctly generate time-based (version 1) UUID's according to the algorithm specified RFC 4122. Addresses-Sourceforge-Bug: #1529672 Addresses-Red-Hat-Bugzilla: #233471 Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2007-12-15Fix uuid_unparse man page to give a correct example UUID output stringTheodore Ts'o1-2/+2
Addresses-Debian-Bug: #444883 Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2007-07-08Remove Changelog files since they're not used after the git migrationTheodore Ts'o1-581/+0
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2007-06-24Update Release Notes, Changelogs, version.h, etc. for 1.40 releaseTheodore Ts'o1-0/+4
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2006-10-22Add failsafe against duplicate UUID's generated by threaded programsTheodore Ts'o2-0/+32
Add in randomness based on Linux's thread id (gettid) to avoid race conditions when two threads try to generate uuid's at the same time. This shouldn't be an issue if /dev/urandom has proper locking and is present, so this is just a failsafe. Addresses SourceForge Bug: #1529672 Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2006-01-06Set FD_CLOEXEC on the /dev/random file descriptor used by libuuidTheodore Ts'o2-0/+11
This avoids a fd leak across an execve() which was causing problems for the LVM tools. (Addresses Debian Bug: #345832) Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2005-12-10Address parallel build problem in the library MakefilesTheodore Ts'o2-0/+8
Add a dependency to make sure that the subdirectories are created before creating all of the object files. Addresses Sourceforge Bug: #1261553 Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2005-06-30Update for e2fsprogs 1.38 release.Theodore Ts'o1-0/+4
2005-03-21Update for the e2fsprogs 1.37 release.Theodore Ts'o1-0/+4
2005-02-05Update for release of e2fsprogs 1.36.Theodore Ts'o1-0/+4
2005-02-05Remove *.pc files on a "make distclean"Theodore Ts'o2-1/+6
Remove emacs backup files in tests/Makefile on a "make clean"
2005-01-26Add pkg-config files to e2fsprogs's libraries.Theodore Ts'o3-3/+26
2005-01-19Makefile.in: Fix the kernel compile-time echo commands to beTheodore Ts'o2-11/+16
consistent and portable
2005-01-17Various portability fixes for Solaris systems.Theodore Ts'o2-2/+7
2004-12-15Add install-strip and install-shlibs-strip targetsTheodore Ts'o2-10/+18
Use Linux-kernel-style makefile output for "make install" Update intl/Makefile.in to version from gettext 0.14.1
2004-12-14Use MKINSTALLDIRS macro so that the Makefiles can find the scriptTheodore Ts'o2-21/+16
correctly. Update Makefile dependencies. Update "make depend" production so that it filters out comments inserted by newer gcc compilers. Remove sync from e2fsck's "make all" target.
2004-11-30Use Linux-kernel-style makefile output to make it easier to Theodore Ts'o2-17/+35
see errors/warnings.
2004-11-19Remove the a.out DLL support, since it's been obsolete and unmaintainedTheodore Ts'o7-196/+0
for a long time now.
2004-09-17gen_uuid.c (get_node_id): glibc always defines AF_LINK, so onlyTheodore Ts'o2-3/+9
try to use struct sockaddr_dl if HAVE_NET_IF_DL_H is defined. (Addresses Debian Bug #256669)
2004-05-27uuid.h (UUID_DEFINE): Make the UUID defined as a staticTheodore Ts'o2-1/+11
variable, with __attribute__ ((unused)) if we are using GCC.
2004-05-05Remove .cvsignore files; they were out of date, and causes lintianTheodore Ts'o1-12/+0
to flame about their presence in the source tarball.
2004-05-04Update and clean up uuid man pages, including renaming libuuid.3 toTheodore Ts'o12-85/+77
uuid.3 Eliminate empty lines at end of uuid.h
2004-05-04gen_uuid.c (uuid_generate_time): Mask off the timestamp to avoidTheodore Ts'o2-1/+6
a Y8.8888K problem.
2004-04-12Clarified that the lib/uuid directory is under a BSD-style and Theodore Ts'o1-0/+25
referred the reader to lib/uuid/COPYING, a new file.
2004-04-03Refine the build process to avoid re-running subst all the time on Theodore Ts'o2-9/+16
some generated files, by having subst update the modtime on these files even when the generated file hasn't changed. We do this with generated files that do not have any downstream dependencies.
2004-04-03Change licensing of libuuid man pages from GPL to 3-clause BSD-style,Theodore Ts'o10-18/+239
with permission from Andreas Dilger (the original author of the man pages), email dated Mon, 29 Mar 2004 23:11:53 -0700, Message-ID 20040330061153.GD1177@schnapps.adilger.int.