Mercurial > emacs
comparison lispref/os.texi @ 23147:ad9732e88e90
*** empty log message ***
author | Karl Heuer <kwzh@gnu.org> |
---|---|
date | Sat, 29 Aug 1998 17:11:50 +0000 |
parents | f0cd03a7dac9 |
children | ca34063731fc |
comparison
equal
deleted
inserted
replaced
23146:660408664b96 | 23147:ad9732e88e90 |
---|---|
17 @menu | 17 @menu |
18 * Starting Up:: Customizing Emacs start-up processing. | 18 * Starting Up:: Customizing Emacs start-up processing. |
19 * Getting Out:: How exiting works (permanent or temporary). | 19 * Getting Out:: How exiting works (permanent or temporary). |
20 * System Environment:: Distinguish the name and kind of system. | 20 * System Environment:: Distinguish the name and kind of system. |
21 * User Identification:: Finding the name and user id of the user. | 21 * User Identification:: Finding the name and user id of the user. |
22 * Reading a Password:: Reading a password from the terminal. | |
23 * Time of Day:: Getting the current time. | 22 * Time of Day:: Getting the current time. |
24 * Time Conversion:: Converting a time from numeric form to a string, or | 23 * Time Conversion:: Converting a time from numeric form to a string, or |
25 to calendrical data (or vice versa). | 24 to calendrical data (or vice versa). |
26 * Timers:: Setting a timer to call a function at a certain time. | 25 * Timers:: Setting a timer to call a function at a certain time. |
27 * Terminal Input:: Recording terminal input for debugging. | 26 * Terminal Input:: Recording terminal input for debugging. |
866 @end example | 865 @end example |
867 @end defun | 866 @end defun |
868 | 867 |
869 @defun user-uid | 868 @defun user-uid |
870 This function returns the effective @sc{uid} of the user. | 869 This function returns the effective @sc{uid} of the user. |
871 @end defun | |
872 | |
873 @node Reading a Password | |
874 @section Reading a Password | |
875 @cindex passwords, reading | |
876 | |
877 To read a password to pass to another program, you can use the | |
878 function @code{read-passwd}. | |
879 | |
880 @tindex read-passwd | |
881 @defun read-passwd prompt &optional confirm default | |
882 This function reads a password, prompting with @var{prompt}. It does | |
883 not echo the password as the user types it; instead, it echoes @samp{.} | |
884 for each character in the password. | |
885 | |
886 The optional argument @var{confirm}, if non-@code{nil}, says to read the | |
887 password twice and insist it must be the same both times. If it isn't | |
888 the same, the user has to type it over and over until the last two | |
889 times match. | |
890 | |
891 The optional argument @var{default} specifies the default password to | |
892 return if the user enters empty input. If @var{default} is @code{nil}, | |
893 then @code{read-passwd} returns the null string in that case. | |
894 @end defun | 870 @end defun |
895 | 871 |
896 @node Time of Day | 872 @node Time of Day |
897 @section Time of Day | 873 @section Time of Day |
898 | 874 |