Mercurial > hg > xemacs-beta
comparison src/editfns.c @ 298:70ad99077275 r21-0b47
Import from CVS: tag r21-0b47
author | cvs |
---|---|
date | Mon, 13 Aug 2007 10:39:40 +0200 |
parents | 4b85ae5eabfb |
children | 8429d81ab209 |
comparison
equal
deleted
inserted
replaced
297:deca3c1083ac | 298:70ad99077275 |
---|---|
658 | 658 |
659 /* This function may be called from other C routines when a | 659 /* This function may be called from other C routines when a |
660 character string representation of the user_login_name is | 660 character string representation of the user_login_name is |
661 needed but a Lisp Object is not. The UID is passed by | 661 needed but a Lisp Object is not. The UID is passed by |
662 reference. If UID == NULL, then the USER name | 662 reference. If UID == NULL, then the USER name |
663 for the user running Xemacs will be returned. This | 663 for the user running XEmacs will be returned. This |
664 corresponds to a nil argument to Fuser_login_name. | 664 corresponds to a nil argument to Fuser_login_name. |
665 */ | 665 */ |
666 char* | 666 char* |
667 user_login_name (uid) | 667 user_login_name (int *uid) |
668 int *uid; | |
669 { | 668 { |
670 struct passwd *pw = NULL; | 669 struct passwd *pw = NULL; |
671 | 670 |
672 /* uid == NULL to return name of this user */ | 671 /* uid == NULL to return name of this user */ |
673 if (uid != NULL) | 672 if (uid != NULL) |
878 #endif /* !WINDOWSNT */ | 877 #endif /* !WINDOWSNT */ |
879 } | 878 } |
880 if (initialized && output_home_warning) | 879 if (initialized && output_home_warning) |
881 { | 880 { |
882 warn_when_safe(Quser_files_and_directories, Qwarning, "\n" | 881 warn_when_safe(Quser_files_and_directories, Qwarning, "\n" |
883 " Xemacs was unable to determine a good value for the user's $HOME\n" | 882 " XEmacs was unable to determine a good value for the user's $HOME\n" |
884 " directory, and will be using the value:\n" | 883 " directory, and will be using the value:\n" |
885 " %s\n" | 884 " %s\n" |
886 " This is probably incorrect.", | 885 " This is probably incorrect.", |
887 cached_home_directory | 886 cached_home_directory |
888 ); | 887 ); |