diff options
| author | Richard M. Stallman <rms@gnu.org> | 1993-12-30 10:08:46 +0000 |
|---|---|---|
| committer | Richard M. Stallman <rms@gnu.org> | 1993-12-30 10:08:46 +0000 |
| commit | 7fd233b39ad0a1ea4088c026a666976667a6dec0 (patch) | |
| tree | 6b561ada55b0e20dce7f88faead910a75dcf47b6 | |
| parent | 5dd1220d4c9dbae5d3e3a3edfa01b359ce86e5e6 (diff) | |
| download | emacs-7fd233b39ad0a1ea4088c026a666976667a6dec0.tar.gz | |
(Femacs_pid): New function.
(syms_of_editfns): Define it for Lisp.
| -rw-r--r-- | src/editfns.c | 8 |
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, return Vsystem_name; } +DEFUN ("emacs-pid", Femacs_pid, Semacs_pid, 0, 0, 0, + "Return the process ID of Emacs, as an integer.") + () +{ + return make_number (getpid ()); +} + DEFUN ("current-time", Fcurrent_time, Scurrent_time, 0, 0, 0, "Return the current time, as the number of seconds since 12:00 AM January 1970.\n\ The time is returned as a list of three integers. The first has the\n\ @@ -1628,6 +1635,7 @@ syms_of_editfns () defsubr (&Suser_uid); defsubr (&Suser_real_uid); defsubr (&Suser_full_name); + defsubr (&Semacs_pid); defsubr (&Scurrent_time); defsubr (&Scurrent_time_string); defsubr (&Scurrent_time_zone); |
