Mercurial > emacs
diff src/editfns.c @ 59658:45074d913d23
* editfns.c (Voperating_system_release): Added.
(init_editfns): Assign new variable operating-system-release
based on call to uname if available.
(get_operating_system_release): Added function to
allow c-level access to operating system release.
* config.h: Regenerated.
* s/darwin.h (PTY_ITERATION): Don't allow PTYs on darwin 6 or
less.
(MIN_PTY_KERNEL_VERSION): Defined minimum kernel version for
using ptys as '7'.
* term/mac-win.el (process-connection-type): Removed.
Controlled now by s/darwin.h:PTY_ITERATION.
author | Steven Tamm <steventamm@mac.com> |
---|---|
date | Thu, 20 Jan 2005 18:13:48 +0000 |
parents | d8d85276ffed |
children | c140948a6044 |
line wrap: on
line diff
--- a/src/editfns.c Thu Jan 20 15:37:41 2005 +0000 +++ b/src/editfns.c Thu Jan 20 18:13:48 2005 +0000 @@ -1364,6 +1364,15 @@ return ""; } +char * +get_operating_system_release() +{ + if (STRINGP (Voperating_system_release)) + return (char *) SDATA (Voperating_system_release); + else + return ""; +} + DEFUN ("emacs-pid", Femacs_pid, Semacs_pid, 0, 0, 0, doc: /* Return the process ID of Emacs, as an integer. */) ()