gcj.texi (libgcj Runtime Properties): Document gnu.gcj.user.realname.
authorTom Tromey <tromey@redhat.com>
Fri, 9 Jun 2006 00:15:35 +0000 (00:15 +0000)
committerTom Tromey <tromey@gcc.gnu.org>
Fri, 9 Jun 2006 00:15:35 +0000 (00:15 +0000)
gcc/java
* gcj.texi (libgcj Runtime Properties): Document
gnu.gcj.user.realname.
libjava
* gnu/classpath/natSystemProperties.cc (insertSystemProperties):
Set gnu.gcj.user.realname.

From-SVN: r114500

gcc/java/ChangeLog
gcc/java/gcj.texi
libjava/ChangeLog
libjava/gnu/classpath/natSystemProperties.cc

index ae0e407fb36542dc8f1dbf86c84149f045c5486c..f5684617052e9884274c7a765140999fb0515b81 100644 (file)
@@ -1,3 +1,8 @@
+2006-06-08  Tom Tromey  <tromey@redhat.com>
+
+       * gcj.texi (libgcj Runtime Properties): Document
+       gnu.gcj.user.realname.
+
 2006-06-08  Andrew Haley  <aph@redhat.com>
 
        * expr.c (build_field_ref): Pass NULL_TREE as SPECIAL arg to
index 38ae1abeaace6c805d1e470f2450d72ee0fc4690..70acd7c8043ef1d6c46b044a62fd70ee4fa239ae 100644 (file)
@@ -2785,6 +2785,12 @@ the name of the "main" class in the case where the @code{gij} front end is
 used, or the program binary name in the case where an application is compiled 
 to a native binary.
 
+@item gnu.gcj.user.realname
+The real name of the user, as taken from the password file.  This may
+not always hold only the user's name (as some sites put extra
+information in this field).  Also, this property is not available on
+all platforms.
+
 @item gnu.gcj.runtime.NameFinder.use_addr2line
 Whether an external process, @command{addr2line}, should be used to determine
 line number information when tracing the stack. Setting this to @code{false} 
index b9b30dacc7862a8eaf4d69b5972237ff5e1c9e99..b08cf783588945ea58ced5bce46e4345759c3bf2 100644 (file)
@@ -1,3 +1,8 @@
+2006-06-08  Tom Tromey  <tromey@redhat.com>
+
+       * gnu/classpath/natSystemProperties.cc (insertSystemProperties):
+       Set gnu.gcj.user.realname.
+
 2006-06-09  Andreas Tobler  <a.tobler@schweiz.ch>
 
        * scripts/jar.in: Replace hardcoded /bin/sh with @SHELL@.
index 2a39e079b8a6b85a8803052313ed1f59467babcc..9f77a1790c3c20686467d7bf9c7cae14aa6ba360 100644 (file)
@@ -1,7 +1,7 @@
 // natSystemProperties.cc - Implementation of native side of
 // SystemProperties class.
 
-/* Copyright (C) 2005  Free Software Foundation
+/* Copyright (C) 2005, 2006  Free Software Foundation
 
    This file is part of libgcj.
 
@@ -250,6 +250,7 @@ gnu::classpath::SystemProperties::insertSystemProperties (java::util::Properties
     {
       SET ("user.name", pwd_entry->pw_name);
       SET ("user.home", pwd_entry->pw_dir);
+      SET ("gnu.gcj.user.realname", pwd_entry->pw_gecos);
     }
 #endif /* HAVE_PWD_H */
 #endif /* NO_GETUID */