Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
cmucl-copy
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Richard M Kreuter
cmucl-copy
Commits
494e09f2
Commit
494e09f2
authored
9 years ago
by
Raymond Toy
Browse files
Options
Downloads
Patches
Plain Diff
Need unix-symlink in unix-glibc2 for tests.
parent
1bc6485e
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/code/exports.lisp
+5
-12
5 additions, 12 deletions
src/code/exports.lisp
src/code/unix-glibc2.lisp
+18
-0
18 additions, 0 deletions
src/code/unix-glibc2.lisp
with
23 additions
and
12 deletions
src/code/exports.lisp
+
5
−
12
View file @
494e09f2
...
...
@@ -291,12 +291,17 @@
"UNIX-GETUIO"
;; Hemlock
"UNIX-CFGETOSPEED"
"TERMIOS"
"UNIX-TCGETATTR"
"UNIX-TCSETATTR"
"UNIX-FCHMOD"
"UNIX-CREAT"
"UNIX-UTIMES"
;; Tests
"UNIX-SYMLINK"
)
#-
linux
(
:export
"UNIX-RMDIR"
...
...
@@ -312,12 +317,6 @@
"PROT_READ"
"UNIX-MUNMAP"
;; Hemlock
"UNIX-CFGETOSPEED"
;; Tests
"UNIX-SYMLINK"
;; Other symbols from structures, etc.
"C-CC"
"C-CFLAG"
...
...
@@ -677,12 +676,6 @@
"PROT_READ"
"UNIX-MUNMAP"
;; Hemlock
"UNIX-CFGETOSPEED"
;; Tests
"UNIX-SYMLINK"
;; Other symbols
"BLKCNT-T"
"C-CC"
...
...
This diff is collapsed.
Click to expand it.
src/code/unix-glibc2.lisp
+
18
−
0
View file @
494e09f2
...
...
@@ -1478,6 +1478,14 @@
nfds
(
frob
rdfds
rdf
)
(
frob
wrfds
wrf
)
(
frob
xpfds
xpf
)
(
if
to-secs
(
alien-sap
(
addr
tv
))
(
int-sap
0
))))))
(
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
)))
(
def-alien-routine
(
"gethostid"
unix-gethostid
)
unsigned-long
_N
"Unix-gethostid returns a 32-bit integer which provides unique
identification for the host machine."
)
...
...
@@ -1776,3 +1784,13 @@
(
void-syscall
(
"tcsetattr"
int
int
(
*
(
struct
termios
)))
fd
opt
termios
))
(
defconstant
writeown
#o200
_N
"Write by owner"
)
;;; 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
))))
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment