<html lang='en'>
<head>
<meta content='text/html; charset=utf-8' http-equiv='Content-Type'>
<title>
GitLab
</title>
</meta>
</head>
<style>
img {
max-width: 100%;
height: auto;
}
p.details {
font-style:italic;
color:#777
}
.footer p {
font-size:small;
color:#777
}
pre.commit-message {
white-space: pre-wrap;
}
.file-stats a {
text-decoration: none;
}
.file-stats .new-file {
color: #090;
}
.file-stats .deleted-file {
color: #B00;
}}
</style>
<body>
<div class='content'>
<h3>Raymond Toy pushed to branch rtoy-unix-core at <a href="https://gitlab.common-lisp.net/cmucl/cmucl">cmucl / cmucl</a></h3>
<h4>
Commits:
</h4>
<ul>
<li>
<strong><a href="https://gitlab.common-lisp.net/cmucl/cmucl/commit/1bc6485eee416ba4b60e7b362eeecf9b20f804b1">1bc6485e</a></strong>
<div>
<span>by Raymond Toy</span>
<i>at 2015-05-10T09:23:45Z</i>
</div>
<pre class='commit-message'>fchmod, creat, and utimes are in both unix and unix-glibc2.</pre>
</li>
<li>
<strong><a href="https://gitlab.common-lisp.net/cmucl/cmucl/commit/494e09f2b9a3aea3f876f82ca550ad729f928c4a">494e09f2</a></strong>
<div>
<span>by Raymond Toy</span>
<i>at 2015-05-10T09:28:27Z</i>
</div>
<pre class='commit-message'>Need unix-symlink in unix-glibc2 for tests.</pre>
</li>
</ul>
<h4>2 changed files:</h4>
<ul>
<li class='file-stats'>
<a href='#diff-0'>
src/code/exports.lisp
</a>
</li>
<li class='file-stats'>
<a href='#diff-1'>
src/code/unix-glibc2.lisp
</a>
</li>
</ul>
<h4>Changes:</h4>
<li id='diff-0'>
<a href='https://gitlab.common-lisp.net/cmucl/cmucl/compare/c5dfebd62c6ebac1d822766d4e731c4a4c45c8b8...494e09f2b9a3aea3f876f82ca550ad729f928c4a#diff-0'>
<strong>
src/code/exports.lisp
</strong>
</a>
<hr>
<pre class="highlight"><code><span style="color: #000000;background-color: #ffdddd">--- a/src/code/exports.lisp
</span><span style="color: #000000;background-color: #ddffdd">+++ b/src/code/exports.lisp
</span><span style="color: #aaaaaa">@@ -291,9 +291,17 @@
</span> "UNIX-GETUIO"
;; Hemlock
<span style="color: #000000;background-color: #ddffdd">+ "UNIX-CFGETOSPEED"
</span> "TERMIOS"
"UNIX-TCGETATTR"
"UNIX-TCSETATTR"
<span style="color: #000000;background-color: #ddffdd">+ "UNIX-FCHMOD"
+ "UNIX-CREAT"
+ "UNIX-UTIMES"
+
+ ;; Tests
+ "UNIX-SYMLINK"
+
</span> )
#-linux
(:export "UNIX-RMDIR"
<span style="color: #aaaaaa">@@ -309,15 +317,6 @@
</span> "PROT_READ"
"UNIX-MUNMAP"
- ;; Hemlock
- "UNIX-CFGETOSPEED"
- "UNIX-FCHMOD"
- "UNIX-CREAT"
- "UNIX-UTIMES"
-
- ;; Tests
- "UNIX-SYMLINK"
-
;; Other symbols from structures, etc.
"C-CC"
"C-CFLAG"
<span style="color: #aaaaaa">@@ -677,15 +676,6 @@
</span> "PROT_READ"
"UNIX-MUNMAP"
- ;; Hemlock
- "UNIX-CFGETOSPEED"
- "UNIX-FCHMOD"
- "UNIX-CREAT"
- "UNIX-UTIMES"
-
- ;; Tests
- "UNIX-SYMLINK"
-
;; Other symbols
"BLKCNT-T"
"C-CC"
</code></pre>
<br>
</li>
<li id='diff-1'>
<a href='https://gitlab.common-lisp.net/cmucl/cmucl/compare/c5dfebd62c6ebac1d822766d4e731c4a4c45c8b8...494e09f2b9a3aea3f876f82ca550ad729f928c4a#diff-1'>
<strong>
src/code/unix-glibc2.lisp
</strong>
</a>
<hr>
<pre class="highlight"><code><span style="color: #000000;background-color: #ffdddd">--- a/src/code/unix-glibc2.lisp
</span><span style="color: #000000;background-color: #ddffdd">+++ b/src/code/unix-glibc2.lisp
</span><span style="color: #aaaaaa">@@ -1478,6 +1478,14 @@
</span> nfds (frob rdfds rdf) (frob wrfds wrf) (frob xpfds xpf)
(if to-secs (alien-sap (addr tv)) (int-sap 0))))))
<span style="color: #000000;background-color: #ddffdd">+(defun unix-symlink (name1 name2)
+ _N"Unix-symlink creates a symbolic link named name2 to the file
+ named name1. NIL and an error number is returned if the call
+ is unsuccessful."
+ (declare (type unix-pathname name1 name2))
+ (void-syscall ("symlink" c-string c-string)
+ (%name->file name1) (%name->file name2)))
+
</span> (def-alien-routine ("gethostid" unix-gethostid) unsigned-long
_N"Unix-gethostid returns a 32-bit integer which provides unique
identification for the host machine.")
<span style="color: #aaaaaa">@@ -1776,3 +1784,13 @@
</span> (void-syscall ("tcsetattr" int int (* (struct termios))) fd opt termios))
(defconstant writeown #o200 _N"Write by owner")
<span style="color: #000000;background-color: #ddffdd">+
+;;; termios.h
+
+(defun unix-cfgetospeed (termios)
+ _N"Get terminal output speed."
+ (multiple-value-bind (speed errno)
+ (int-syscall ("cfgetospeed" (* (struct termios))) termios)
+ (if speed
+ (values (svref terminal-speeds speed) 0)
+ (values speed errno))))
</span></code></pre>
<br>
</li>
</div>
<div class='footer' style='margin-top: 10px;'>
<p>
—
<br>
<a href="https://gitlab.common-lisp.net/cmucl/cmucl/compare/c5dfebd62c6ebac1d822766d4e731c4a4c45c8b8...494e09f2b9a3aea3f876f82ca550ad729f928c4a">View it on GitLab</a>
<script type="application/ld+json">{"@context":"http://schema.org","@type":"EmailMessage","action":{"@type":"ViewAction","name":["merge_requests","issues","commit"],"url":"https://gitlab.common-lisp.net/cmucl/cmucl/compare/c5dfebd62c6ebac1d822766d4e731c4a4c45c8b8...494e09f2b9a3aea3f876f82ca550ad729f928c4a"}}</script>
</p>
</div>
</body>
</html>