History log of /external/e2fsprogs/lib/uuid/gen_uuid.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
e0ed7404719a9ddd2ba427a80db5365c8bad18c0 20-Mar-2014 JP Abgrall <jpa@google.com> Switch back to 1.42.9 now that there is a fix

Revert "Revert changes that moved from 1.41.14 to 1.42.9"

This reverts commit 65f0aab98b20b5994a726ab90d355248bcddfffd.
/external/e2fsprogs/lib/uuid/gen_uuid.c
65f0aab98b20b5994a726ab90d355248bcddfffd 06-Mar-2014 JP Abgrall <jpa@google.com> Revert changes that moved from 1.41.14 to 1.42.9

Revert "e2fsck: Don't use e2fsck_global_ctx unless HAVE_SIGNAL_H"
commit e80e74c41d85ff93f3d212ba6512340f48054a93.

Revert "Merge remote-tracking branch 'linaro/linaro-1.42.9' into aosp_master"
This reverts commit e97b2b6fc82f840e84dfc631b87f21be44ff2421, reversing
changes made to 7e2fb9d09c245eba70ee008b78007315e9c0f1df.

Revert "Prepare for upstream 1.42.9"
This reverts commit 7e2fb9d09c245eba70ee008b78007315e9c0f1df.

Bug: 13340735
Change-Id: If48b153a95ef5f69f7cdccb00e23524abff3c5a8
Signed-off-by: JP Abgrall <jpa@google.com>
/external/e2fsprogs/lib/uuid/gen_uuid.c
18a1444b4f1e6a0948fd38fa0de382d86cfe04de 31-Dec-2013 Bernhard Rosenkränzer <Bernhard.Rosenkranzer@linaro.org> Add files that would normally be generated by the e2fsprogs build system

Android doesn't run ./configure and friends, so it has to rely on
pre-populated versions of the autogenerated files.

This is somewhat bogus (e.g. hardcoded little-endian reference in
lib/ext2fs/ext2_types.h) and should at some point be fixed, but it's
what Android has always done, not a regression from the 1.41.14 branch.

Also, don't #include config.h which we don't generate (we pass what it
usually contains as -D parameters from Android.mk) anywhere.

Add a new Android.mk file for the quota library.

Change-Id: I162c6327fee5bd06261d9cdcc34bda10f04a6f21
Signed-off-by: Bernhard Rosenkränzer <Bernhard.Rosenkranzer@linaro.org>
/external/e2fsprogs/lib/uuid/gen_uuid.c
3a941bef3b9036ca3db9d510c71bcae801ea4dd1 16-Dec-2013 Andreas Dilger <adilger@dilger.ca> build: use long long for __u64 by default

Don't print a verbose configure error in parse-types.h if
<asm/types.h> missing and __[SU]*_TYPEDEF is unset. This is
always the case for non-Linux builds.

The printf formatting strings all use "%llu" for printing 64-bit
values and this it produces a large number of warnings if __u64
is defined as "unsigned long". If __U64_TYPEDEF isn't set use
"unsigned long long" for __u64 in ext2-types.h and blkid-types.h
by default instead of using "unsigned long".

Fix a few places where "%d" or "%u" or "%Lu" were used to print a
64-bit value, by converting them to use "%lld" or "%llu" instead.

Fix a few places where "%lu" was used to print .tv_usec, by casting
the variable to "(long)" since .tv_usec is "int" on some systems.

Signed-off-by: Andreas Dilger <adilger@dilger.ca>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/lib/uuid/gen_uuid.c
1d6fd6d0c3766a8165e69284c75812574a29c804 29-Nov-2012 Andreas Dilger <adilger@dilger.ca> misc: cleanup unused variables on MacOS

Clean up unused variables found by GCC on MacOS.

Signed-off-by: Andreas Dilger <adilger@dilger.ca>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
/external/e2fsprogs/lib/uuid/gen_uuid.c
d1154eb460efe588eaed3d439c1caaca149fa362 18-Sep-2011 Theodore Ts'o <tytso@mit.edu> Shorten compile commands run by the build system

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>
/external/e2fsprogs/lib/uuid/gen_uuid.c
3381a63c54f2221e3742211df39c5e2ee13d16cc 01-Jul-2009 Theodore Ts'o <tytso@mit.edu> libuuid: Don't run uuidd if it would fail due to permission problems

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>
/external/e2fsprogs/lib/uuid/gen_uuid.c
caa6003b6419d001593478a46fb4cbf8e502e818 30-Jun-2009 Theodore Ts'o <tytso@mit.edu> libuuid, uuidd: Avoid infinite loop while reading from the socket fd

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>
/external/e2fsprogs/lib/uuid/gen_uuid.c
e8b9466fc9d4aec66476f1bc7a48436da02ab557 30-Jun-2009 Theodore Ts'o <tytso@mit.edu> libuuid: Make sure fd's 0, 1, and 2 are valid before exec'ing uuidd

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>
/external/e2fsprogs/lib/uuid/gen_uuid.c
1207e36d0a8674d6c627bb9b2759faf1e290e13e 15-Apr-2009 Theodore Ts'o <tytso@mit.edu> libuuid: Close all file descriptors before running uuidd

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>
/external/e2fsprogs/lib/uuid/gen_uuid.c
efc6f628e15de95bcd13e4f0ee223cb42115d520 28-Aug-2008 Theodore Ts'o <tytso@mit.edu> Remove trailing whitespace for the entire source tree

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/lib/uuid/gen_uuid.c
6ec9ef1881e636540cfe28e6f32c93e1781ad173 22-Aug-2008 Theodore Ts'o <tytso@mit.edu> libuuid: Windows portability fixes

Make the uuid library (more) portable for Windows.

Addresses-Sourceforge-Feature-Request: #1937287

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/lib/uuid/gen_uuid.c
cc435cb11aaa5da9bba5272aeca8eb8d23039dec 06-May-2008 Matthias Koenig <mkoenig@suse.de> libuuid: don't use unitialized variable

Signed-off-by: Matthias Koenig <mkoenig@suse.de>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
/external/e2fsprogs/lib/uuid/gen_uuid.c
e7cc6f7d0b86d76963058ef099ca553da29d2c3f 16-Feb-2008 Christophe GRENIER <grenier@cgsecurity.org> Add portability checks to support DJGPP

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>
/external/e2fsprogs/lib/uuid/gen_uuid.c
e70f32b79d29e287f8347c5d41c6716f094cc654 15-Feb-2008 Theodore Ts'o <tytso@mit.edu> libuuid: use fcntl locking instead of lockf

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>
/external/e2fsprogs/lib/uuid/gen_uuid.c
edeee8f36f25b8d4bd6a9f6694f00a4060dd03f3 27-Jan-2008 Theodore Ts'o <tytso@mit.edu> libuuid: Make sure execl() variadic function is properly terminated

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/lib/uuid/gen_uuid.c
29dd9d1e90c8ccefa2f8bdc6463694edc3a909d7 31-Dec-2007 Theodore Ts'o <tytso@mit.edu> Test for sys/syscall.h in configure to fix dietlibc build problem

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>
/external/e2fsprogs/lib/uuid/gen_uuid.c
5610f9924bfe506852701f1f11f6ca9f421e8a57 31-Dec-2007 Theodore Ts'o <tytso@mit.edu> Add --disable-uuidd configure option

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>
/external/e2fsprogs/lib/uuid/gen_uuid.c
f79fb4976cd1e4775a4959be3ddda557204939e0 21-Dec-2007 Theodore Ts'o <tytso@mit.edu> libuuid: Fix bug which caused uuidd to fail if sizeof(int) != sizeof(int *)

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/lib/uuid/gen_uuid.c
d37a4fa78806d9dd02586ef6696332ba944ae906 17-Dec-2007 Theodore Ts'o <tytso@mit.edu> libuuid: Only try to start the uuidd daemon a limited number of times

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>
/external/e2fsprogs/lib/uuid/gen_uuid.c
9d8c203a462ee18c1fd09a68cfe0e2ec7d8288da 17-Dec-2007 Theodore Ts'o <tytso@mit.edu> libuuid: When starting uuidd, use waitpid() to reap the zombie process

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>
/external/e2fsprogs/lib/uuid/gen_uuid.c
740837def7fc55ba6b0368f46a4b4abcaba0becd 16-Dec-2007 Theodore Ts'o <tytso@mit.edu> Add uuidd daemon to prevent duplicate time-based UUID's

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>
/external/e2fsprogs/lib/uuid/gen_uuid.c
ae2868acf0acb6dd5e4426e6c109c02cd16dfec0 22-Oct-2006 Theodore Ts'o <tytso@mit.edu> Add failsafe against duplicate UUID's generated by threaded programs

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>
/external/e2fsprogs/lib/uuid/gen_uuid.c
2adc320f01906cce0b55fa7bc9fccb24b5640cee 07-Jan-2006 Theodore Ts'o <tytso@mit.edu> Set FD_CLOEXEC on the /dev/random file descriptor used by libuuid

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>
/external/e2fsprogs/lib/uuid/gen_uuid.c
9ee42c9509d01bb8e888c8cc1aa944312d7e88e7 18-Sep-2004 Theodore Ts'o <tytso@mit.edu> gen_uuid.c (get_node_id): glibc always defines AF_LINK, so only
try to use struct sockaddr_dl if HAVE_NET_IF_DL_H is
defined. (Addresses Debian Bug #256669)
/external/e2fsprogs/lib/uuid/gen_uuid.c
d1492994a51719dc59932151b55a9b24e1879bce 05-May-2004 Theodore Ts'o <tytso@mit.edu> gen_uuid.c (uuid_generate_time): Mask off the timestamp to avoid
a Y8.8888K problem.
/external/e2fsprogs/lib/uuid/gen_uuid.c
2625803ecff90ba8ab60d3c6b83a1ea0c91d2294 03-Apr-2004 Theodore Ts'o <tytso@mit.edu> Use C99 stdint.h types instead of custom types in the uuid library.
/external/e2fsprogs/lib/uuid/gen_uuid.c
13be1fff0009465741845a785fa4aff153ec20d9 30-Mar-2004 Theodore Ts'o <tytso@mit.edu> gen_uuid.c (get_node_id): Clean up AF_LINK #ifdef's for Darwin.
/external/e2fsprogs/lib/uuid/gen_uuid.c
1bbfec624c4bbe767060a13762aa9a656536a4fd 20-Mar-2004 Theodore Ts'o <tytso@mit.edu> Change the license on the UUID library to be 3-clause BSD-style
/external/e2fsprogs/lib/uuid/gen_uuid.c
84ea6e70b77090c8a35702b265039d58c2efd6ad 20-Mar-2004 Theodore Ts'o <tytso@mit.edu> Fix Darwin/Mac OS X support to fetch the ethernet address in the uuid library.
/external/e2fsprogs/lib/uuid/gen_uuid.c
9c5534d48470471ec3480458b661e80d8bcfad66 30-Jan-2004 Theodore Ts'o <tytso@mit.edu> gen_uuid.c (uuid_generate_time): Fix bug pointed out by Ralf
S. Engelshall; when generating a random ethernet address
because one is not available, set the least significant
bit of the first byte of the MAC address, since it is the
first bit to be transmitted, and is therefore the
multicast bit.
/external/e2fsprogs/lib/uuid/gen_uuid.c
fff45483ede7fe38a31b3364a9c07e2418776dee 13-Apr-2003 Theodore Ts'o <tytso@mit.edu> Add portability enhancements for Cygwin32 environment.
/external/e2fsprogs/lib/uuid/gen_uuid.c
edab294f1cc70f296dad0e5ac30e805cfccf3146 03-Apr-2003 Theodore Ts'o <tytso@mit.edu> gen_uuid.c (get_random_bytes): Always xor in a stream of bytes
from the system PRNG (i.e., random/srandom, seeded from
the time, pid, and uid) in case /dev/random isn't doing
the right thing on a particular system. It doesn't hurt,
and it can help, in the case of a buggy /dev/random.
/external/e2fsprogs/lib/uuid/gen_uuid.c
61bee88d456c39bdfa4799577a4bd183d766b596 31-Oct-2002 Theodore Ts'o <tytso@mit.edu> gen_uuid.c (get_random_bytes): Don't spin forever if read()
returns EINTR or EAGAIN, so that when /dev/random is
opened O_NONBLOCK, we don't end up spinning forever.
/external/e2fsprogs/lib/uuid/gen_uuid.c
b1416db3227b4b7192ee0d2d3ff6e00e92e9d3e2 01-May-2001 Theodore Ts'o <tytso@mit.edu> ChangeLog, compare.c, gen_uuid.c, parse.c:
parse.c, compare.c: Include string.h to fix gcc -Wall complaints.
gen_uuid.c: Define _SVID_SOURCE to avoid gcc -Wall errors because some
required structures wouldn't be otherwise defined. Fix a minor gcc
-Wall nit in the declaration of get_random_fd().
/external/e2fsprogs/lib/uuid/gen_uuid.c
96394d11b01b5613b635e4c5963a19e222e57afb 12-Jan-2001 Theodore Ts'o <tytso@mit.edu> ChangeLog, copy.c, gen_uuid.c, tst_uuid.c, uuid_time.c:
uuid_time.c (main), tst_uuid.c (main): Fix gcc -Wall complaints.
copy.c (uuid_copy): Change arguments to make it clear which argument
is the source and which is the destination.
gen_uuid.c (get_random_fd): Use gettimeofday to seed the PRNG, so we
can take advantage of tv_usec to do (slightly) better at seeding it.
/external/e2fsprogs/lib/uuid/gen_uuid.c
5dd7ff07d032df32b018c0dfd1cbdf30bd7bf29f 12-Jun-2000 Theodore Ts'o <tytso@mit.edu> ChangeLog, gen_uuid.c:
gen_uuid.c (get_random_bytes): Use O_NONBLOCK when trying to open
/dev/random. Break out the /dev/random initialization code into a
get_random_fd() function, and use that function in uuid_generate() to
determine whether to use uuid_generate_random() or
uuid_generate_time().
/external/e2fsprogs/lib/uuid/gen_uuid.c
3030daa8aba89830fb0623be01e507bffd636399 07-Apr-2000 Theodore Ts'o <tytso@mit.edu> Many files:
clear.c, compare.c, copy.c, gen_uuid.c, isnull.c, pack.c, parse.c,
uuid.h, uuidP.h: Changed copyright to be the LGPL.
/external/e2fsprogs/lib/uuid/gen_uuid.c
fa7cc280044533fd20468673bba9623787925f8e 03-Apr-2000 Theodore Ts'o <tytso@mit.edu> ChangeLog, gen_uuid.c:
gen_uuid.c (get_clock): Fix bug where the last timeval wasn't getting
set, causing potentially duplicate UUID's to be generated.
/external/e2fsprogs/lib/uuid/gen_uuid.c
e589f678e1ed5efa8dd4450f37bee0486caa3504 03-Apr-2000 Theodore Ts'o <tytso@mit.edu> ChangeLog, gen_uuid.c:
gen_uuid.c (get_random_bytes): Make more paranoid about misbehaving
/dev/urandom. If we get a return of zero without an error more than 8
times in a row, we break out and return an error. Also, if
/dev/urandom doesn't exist, try /dev/random.
ChangeLog, ext2fs.h:
ext2fs.h: Use AUTOCONF SIZEOF_* macros if available to determine how
to define __s64 and __u64. Turn off "compression is experimental"
warning if the cpp macro I_KNOW_THAT_COMPRESSION_IS_EXPERIMENTAL is
defined.
/external/e2fsprogs/lib/uuid/gen_uuid.c
b19d1a959eeea17d6b899a5b994bf3f3691de947 18-Jun-1999 Theodore Ts'o <tytso@mit.edu> Many files:
* gen_uuid.c (get_random_bytes): Use a while loop when reading from
/dev/urandom so that if we get interrupted while reading the right
thing happens.
(uuid_generate_random): Add new function which uses the new UUID
format which uses 122 random bits to form the 128-bit UUID.
(uuid_generate): Rename the old uuid_generate to be
uuid_generate_time, and create a new uuid_generate function which
calls either uuid_generate_random or uuid_genereate_time depending on
whether /dev/urandom is present.
uuid_generate.3.in: Update to reflect changesin uuid_generate and its
two new variants.
tst_uuid.c: Updated to test new uuid_generate functions, and to
reflect new semantics of uuid_compare. Added tests to make sure the
UUID type and variant created by UUID generate is correct.
uuid_time.c (uuid_variant, uuid_type): Added new functions to return
the UUID variant and type information. The debugging program now
prints the UUID variant and type, and warns if the unparsed time
information is likely to be incorrect.
uuid_parse.3.in, libuuid.3.in: Miscellaneous text cleanups.
uuidgen.1.in:
Miscellaneous text cleanups.
/external/e2fsprogs/lib/uuid/gen_uuid.c
dc3710e5ea6bd83addec20f6956bda707438fa92 09-Mar-1998 Theodore Ts'o <tytso@mit.edu> ChangeLog, gen_uuid.c:
gen_uuid.c (get_node_id): Use char * instead of caddr_t, which doesn't
always exist for glibc.
/external/e2fsprogs/lib/uuid/gen_uuid.c
d546447fda86e33383e69cefa8d7737cdef14427 15-Oct-1997 Theodore Ts'o <tytso@mit.edu> ChangeLog, gen_uuid.c:
Use clock_reg instead of clock, since clock conflicts with a header
file declaration.
/external/e2fsprogs/lib/uuid/gen_uuid.c
19c78dc07fce2d6f39b5e541562afc3ca1ea38ff 29-Apr-1997 Theodore Ts'o <tytso@mit.edu> Many files:
Checked in e2fsprogs-1.07
/external/e2fsprogs/lib/uuid/gen_uuid.c
1e3472c5f37ca3686dd69b079d4d02a302f5798d 29-Apr-1997 Theodore Ts'o <tytso@mit.edu> Many files:
Checked in e2fsprogs 1.05
/external/e2fsprogs/lib/uuid/gen_uuid.c