[root] / trunk / core / base / src / TUUID.cxx Repository:
ViewVC logotype

Log of /trunk/core/base/src/TUUID.cxx

Parent Directory Parent Directory


Links to HEAD: (view) (download) (as text) (annotate)
Sticky Revision:

Revision 48217 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jan 7 16:01:21 2013 UTC (2 years ago) by rdm
File length: 23680 byte(s)
Diff to previous 35958
fix valgrind warning due to padding bytes not being zeroed (issue #99548).

Revision 35958 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Oct 1 08:06:24 2010 UTC (4 years, 3 months ago) by brun
File length: 23566 byte(s)
Diff to previous 35926
Fix uninitialized member. coverity CID 21782

Revision 35926 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Sep 30 14:45:51 2010 UTC (4 years, 3 months ago) by brun
File length: 23535 byte(s)
Diff to previous 35774
use snprintf

Revision 35774 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Sep 27 08:18:02 2010 UTC (4 years, 3 months ago) by rdm
File length: 23531 byte(s)
Diff to previous 35767
fix coverity 11725.

Revision 35767 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Sep 27 07:59:19 2010 UTC (4 years, 3 months ago) by rdm
File length: 23521 byte(s)
Diff to previous 34557
fix coverity 11608.

Revision 34557 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Jul 22 15:12:01 2010 UTC (4 years, 6 months ago) by rdm
File length: 23511 byte(s)
Diff to previous 32142
fix cases in ROOT code where we would truncate the TTime (to avoid the
new error messages in TTime operator long on 32-bit platforms).

Revision 32142 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Jan 28 17:40:53 2010 UTC (4 years, 11 months ago) by rdm
File length: 23510 byte(s)
Diff to previous 27658
From Axel:
windows >=7.1 supports 123ULL so we don't need R__ULL anymore.
CINT is happy, too. Attached patch removes it.

Revision 27658 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Feb 28 05:34:57 2009 UTC (5 years, 10 months ago) by pcanal
File length: 23525 byte(s)
Diff to previous 24055
Remove the 'cast from type ... casts away constness' warning from most header files

Revision 24055 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu May 29 21:07:56 2008 UTC (6 years, 7 months ago) by rdm
File length: 23245 byte(s)
Diff to previous 22961
Correct TUUID time code was inactive due to obsolete R__LONGLONG ifdef.

Revision 22961 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Apr 3 13:32:57 2008 UTC (6 years, 9 months ago) by rdm
File length: 23445 byte(s)
Diff to previous 22419
move the directories:
  base clib cont meta metautils newdelete pcre rint thread unix utils
  winnt zip
under the new core meta directory.

Revision 22419 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Mar 3 00:25:01 2008 UTC (6 years, 10 months ago) by rdm
Original Path: trunk/base/src/TUUID.cxx
File length: 23445 byte(s)
Diff to previous 20877
From Andrew Savchenko:
ROOT can not be compiled with gcc-4.3.
Some ROOT source files doesn't contain required #include directives,
for example, they use strlen(), but #include <string.h> is missed or
malloc() is used and #include <stdlib.h> is missed. 

Earlier versions of gcc allowed some headers to be included implicitly,
but issued a warning (-Wimplicit-function-declaration). Newer one,
gcc-4.3 denies such silly behaviour: all required headers must be explicitly
included. 

Attached patch fixes this. Also it fixes another issue, which disallows
ROOT to compile under gcc-4.3: C functions don't belong to namespace std,
so expressions like std::memcpy() are no longer valid and plain memcpy()
should be used instead.

Revision 20877 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Nov 19 11:17:07 2007 UTC (7 years, 2 months ago) by rdm
Original Path: trunk/base/src/TUUID.cxx
File length: 23425 byte(s)
Diff to previous 19826
Set property svn:eol-style LF on all source and Makefiles. This should avoid
problems with Win32 line endings ending up in the repository. All MS tools
support LF eols fine.

Revision 19826 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Sep 19 19:56:11 2007 UTC (7 years, 4 months ago) by rdm
Original Path: trunk/base/src/TUUID.cxx
File length: 23425 byte(s)
Diff to previous 19825
imported svn:keywords Id property

Revision 19825 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Sep 19 19:49:10 2007 UTC (7 years, 4 months ago) by rdm
Original Path: trunk/base/src/TUUID.cxx
File length: 23473 byte(s)
Diff to previous 17854
remove :$ from tag line

Revision 17854 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Feb 10 15:33:52 2007 UTC (7 years, 11 months ago) by brun
Original Path: trunk/base/src/TUUID.cxx
File length: 23483 byte(s)
Diff to previous 17851
On non-Windows systems use random/srandom instead of rand/srand.

Revision 17851 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Feb 10 12:21:05 2007 UTC (7 years, 11 months ago) by brun
Original Path: trunk/base/src/TUUID.cxx
File length: 23339 byte(s)
Diff to previous 13483
Do not use TRandom in TUUID. The posix rand and srand functions are
perfectly ok for TUUID, that requires only a random number between 0 and 65536.
We still keep the initialisation of the random number (via srand) dependent
of the process id.

Revision 13483 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Dec 4 01:29:43 2005 UTC (9 years, 1 month ago) by rdm
Original Path: trunk/base/src/TUUID.cxx
File length: 23360 byte(s)
Diff to previous 12738
to get IP address without going via the DNS use the Win32 GetAdaptersInfo().

Revision 12738 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Sep 18 13:00:04 2005 UTC (9 years, 4 months ago) by rdm
Original Path: trunk/base/src/TUUID.cxx
File length: 22259 byte(s)
Diff to previous 7155
remove another bunch of coding style violations.

Revision 7155 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Aug 26 11:03:34 2003 UTC (11 years, 5 months ago) by brun
Original Path: trunk/base/src/TUUID.cxx
File length: 22258 byte(s)
Diff to previous 6421
Fix a problem reported by Stephan Heising:

In TUUID.cxx the call to GetComputerName for the win plattform should be:
   r.tc = GetTickCount();
   r.l = MAX_COMPUTERNAME_LENGTH + 1; // + 1 added.
   GetComputerName(r.hostname, &r.l);

The size of the buffer is correctly allocated to MAX_..._LENGTH + 1 but in the
function call the buffer length spezified doesn't include this byte.

Revision 6421 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Apr 11 11:48:11 2003 UTC (11 years, 9 months ago) by rdm
Original Path: trunk/base/src/TUUID.cxx
File length: 22255 byte(s)
Diff to previous 6358
Big (unsigned) long long support patch. Following provided:
- basic typedefs in Rtypes.h: Long64_t and ULong64_t
- basic Long64 I/O support in TBuffer
- automatic Long64 I/O support in TStreamerInfo
- Long64 byteswap in Bytes.h
- Long64 type handling in classes like TDataMember, TDataType, TCint,
  TROOT, etc
- Removal of obsolete Long64_t typedefs in many PROOF classes
No changes for non-Long64 data types (no backward incompatibilies).
I/O tested for Long64 basic type, and static and dynamic arrays using
handcoded streamers, rootcint generated streamers and automatic StreamerInfo
streamers.

Revision 6358 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Apr 3 13:46:51 2003 UTC (11 years, 9 months ago) by brun
Original Path: trunk/base/src/TUUID.cxx
File length: 22904 byte(s)
Diff to previous 5877
Several changes by Axel Naumann to install ROOT under Windows/CYGWIN
with the gcc3.2 compiler and the X11 environment.

Revision 5877 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Jan 11 23:49:04 2003 UTC (12 years ago) by rdm
Original Path: trunk/base/src/TUUID.cxx
File length: 22835 byte(s)
Diff to previous 5126
try getting host-by-name only once in case host name does not resolve
properly. Also cache random system info. Should fix problem in case of
misconfigured name servers.

Revision 5126 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Aug 15 18:15:44 2002 UTC (12 years, 5 months ago) by rdm
Original Path: trunk/base/src/TUUID.cxx
File length: 22696 byte(s)
Diff to previous 5123
properly initialize fIn in TMD5 ctor.

Revision 5123 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Aug 14 06:48:55 2002 UTC (12 years, 5 months ago) by brun
Original Path: trunk/base/src/TUUID.cxx
File length: 22751 byte(s)
Diff to previous 5045
Preset array seed[16] in TUUID::GetNodeIdentifier.
Purify reports reading from an uninitialized area TMD5::Transform.

Revision 5045 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Aug 2 18:54:37 2002 UTC (12 years, 5 months ago) by rdm
Original Path: trunk/base/src/TUUID.cxx
File length: 22696 byte(s)
Diff to previous 4896
In root v3.03/07 the following simple commands fail:

 root [] TFile f("f.root","recreate","",0);  f.mkdir("d"); f.Write();
 root [] TFile f("f.root","","",0);  f.cd("d");
Error in <TObjArray::At>: index -22985 out of bounds (size: 13, this: 0x0877cbc0)
Error in <TObjArray::AddAt>: out of bounds at -22985 in 877cbc0
Error in <TBuffer::CheckByteCount>: object of class TUUID read too few bytes: 18 instead of 934433390
Warning in <TBuffer::CheckByteCount>: TUUID::Streamer() not in sync with data on file, fix Streamer()

It basically means that most files with a sub-directories are not readable
(with the current version of root, but will be readable with this fix).

This is due to the fact that while writing ROOT uses TUUID::FillBuffer(),
which does NOT save the TUUID::Class_Version and while reading ROOT
uses TUUID::Streamer() which tries to read a version number!

The fix is to add the writing of the version number to TUUID::FillBuffer(),
to increase the version number of TDirectory, to use TDirectory's old
version number (i.e. 2) to provoke reading TUUID without version number,
and for higher version number TDirectory read the full TUUID.

Fix by Philippe, modified slightly by me.

Revision 4896 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Jul 13 16:30:49 2002 UTC (12 years, 6 months ago) by brun
Original Path: trunk/base/src/TUUID.cxx
File length: 22112 byte(s)
Diff to previous 4887
Set the fUUIDNumber to 1^30 instead of 1^31 to avoid a warning message
on alpha/cxx

Revision 4887 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Jul 11 21:46:22 2002 UTC (12 years, 6 months ago) by rdm
Original Path: trunk/base/src/TUUID.cxx
File length: 22112 byte(s)
Diff to previous 4861
added functions:
TBuffer &operator>>(TBuffer &buf, TUUID &uuid);
TBuffer &operator<<(TBuffer &buf, const TUUID &uuid);

Revision 4861 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Jul 9 21:11:25 2002 UTC (12 years, 6 months ago) by brun
Original Path: trunk/base/src/TUUID.cxx
File length: 22087 byte(s)
Diff to previous 4686
New functions FillBuffer and ReadBuffer to write/read the TUUID
to a buffer.

Revision 4686 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Jun 11 13:25:25 2002 UTC (12 years, 7 months ago) by rdm
Original Path: trunk/base/src/TUUID.cxx
File length: 21036 byte(s)
Diff to previous 3719
cache host inet lookup.

Revision 3719 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Jan 20 14:23:53 2002 UTC (13 years ago) by rdm
Original Path: trunk/base/src/TUUID.cxx
File length: 20966 byte(s)
Diff to previous 3000
Mega patch by Christian Holm concerning the configure, build and
Debian and RedHat packaging scripts. The configure script has been
rationalized (introduction of two shell functions to find package
headers and libraries). Extensive update of the INSTALL writeup,
including description of all new packages (SapDB, PgSql, etc.).
More options to the root-config script. Man page for memprobe.
Big overhaul of the Debian and RedHat packaging scripts, supporting
the new libraries.

Revision 3000 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Oct 8 15:05:54 2001 UTC (13 years, 3 months ago) by rdm
Original Path: trunk/base/src/TUUID.cxx
File length: 20946 byte(s)
Diff to previous 2993
fix for Windows (LL appended to a constant to denote a long long is not
supported).

Revision 2993 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Oct 6 13:12:15 2001 UTC (13 years, 3 months ago) by rdm
Original Path: trunk/base/src/TUUID.cxx
File length: 20839 byte(s)
Diff to previous 2957
new method GetTime(), returns a TDatime that contains the time the UUID
was created. Also correction in time calculation (long long cast was missing
so an long got truncated before being stored in a long long).

Revision 2957 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Oct 3 14:27:14 2001 UTC (13 years, 3 months ago) by rdm
Original Path: trunk/base/src/TUUID.cxx
File length: 19548 byte(s)
Diff to previous 2956
added SetUUID(const char *uuid_str).

Revision 2956 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Oct 3 13:18:04 2001 UTC (13 years, 3 months ago) by rdm
Original Path: trunk/base/src/TUUID.cxx
File length: 18962 byte(s)
Diff to previous 2921
add ctor that takes a valid uuid string and initializes to that uuid.

Revision 2921 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Oct 1 16:03:30 2001 UTC (13 years, 3 months ago) by rdm
Original Path: trunk/base/src/TUUID.cxx
File length: 17397 byte(s)
Diff to previous 2916
fix small typo in function name.

Revision 2916 - (view) (download) (as text) (annotate) - [select for diffs]
Added Mon Oct 1 14:39:14 2001 UTC (13 years, 3 months ago) by rdm
Original Path: trunk/base/src/TUUID.cxx
File length: 17350 byte(s)
This class defines a UUID (Universally Unique IDentifier), also
known as GUIDs (Globally Unique IDentifier). A UUID is 128 bits
long, and if generated according to this algorithm, is either
guaranteed to be different from all other UUIDs/GUIDs generated
until 3400 A.D. or extremely likely to be different. UUIDs were
originally used in the Network Computing System (NCS) and
later in the Open Software Foundation's (OSF) Distributed Computing
Environment (DCE).

This form allows you to request diffs between any two revisions of this file. For each of the two "sides" of the diff, enter a numeric revision.

  Diffs between and
  Type of Diff should be a

Sort log by:

Subversion Admin
ViewVC Help
Powered by ViewVC 1.0.9