aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman1993-12-30 10:08:46 +0000
committerRichard M. Stallman1993-12-30 10:08:46 +0000
commit7fd233b39ad0a1ea4088c026a666976667a6dec0 (patch)
tree6b561ada55b0e20dce7f88faead910a75dcf47b6 /src
parent5dd1220d4c9dbae5d3e3a3edfa01b359ce86e5e6 (diff)
downloademacs-7fd233b39ad0a1ea4088c026a666976667a6dec0.tar.gz
emacs-7fd233b39ad0a1ea4088c026a666976667a6dec0.zip
(Femacs_pid): New function.
(syms_of_editfns): Define it for Lisp.
Diffstat (limited to 'src')
-rw-r--r--src/editfns.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/editfns.c b/src/editfns.c
index e555168ecfd..8983aa4aea4 100644
--- a/src/editfns.c
+++ b/src/editfns.c
@@ -527,6 +527,13 @@ DEFUN ("system-name", Fsystem_name, Ssystem_name, 0, 0, 0,
527 return Vsystem_name; 527 return Vsystem_name;
528} 528}
529 529
530DEFUN ("emacs-pid", Femacs_pid, Semacs_pid, 0, 0, 0,
531 "Return the process ID of Emacs, as an integer.")
532 ()
533{
534 return make_number (getpid ());
535}
536
530DEFUN ("current-time", Fcurrent_time, Scurrent_time, 0, 0, 0, 537DEFUN ("current-time", Fcurrent_time, Scurrent_time, 0, 0, 0,
531 "Return the current time, as the number of seconds since 12:00 AM January 1970.\n\ 538 "Return the current time, as the number of seconds since 12:00 AM January 1970.\n\
532The time is returned as a list of three integers. The first has the\n\ 539The time is returned as a list of three integers. The first has the\n\
@@ -1628,6 +1635,7 @@ syms_of_editfns ()
1628 defsubr (&Suser_uid); 1635 defsubr (&Suser_uid);
1629 defsubr (&Suser_real_uid); 1636 defsubr (&Suser_real_uid);
1630 defsubr (&Suser_full_name); 1637 defsubr (&Suser_full_name);
1638 defsubr (&Semacs_pid);
1631 defsubr (&Scurrent_time); 1639 defsubr (&Scurrent_time);
1632 defsubr (&Scurrent_time_string); 1640 defsubr (&Scurrent_time_string);
1633 defsubr (&Scurrent_time_zone); 1641 defsubr (&Scurrent_time_zone);