Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
cmucl
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
Carl Shapiro
cmucl
Commits
db12154d
Commit
db12154d
authored
10 years ago
by
Raymond Toy
Browse files
Options
Downloads
Patches
Plain Diff
Add UNIX-SYMLINK. This allows the testsuite to run. Tests behave as
expected.
parent
11ecbb80
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
+3
-0
3 additions, 0 deletions
src/code/exports.lisp
src/code/unix.lisp
+8
-0
8 additions, 0 deletions
src/code/unix.lisp
with
11 additions
and
0 deletions
src/code/exports.lisp
+
3
−
0
View file @
db12154d
...
@@ -294,6 +294,9 @@
...
@@ -294,6 +294,9 @@
"UNIX-FCHMOD"
"UNIX-FCHMOD"
"UNIX-CREAT"
"UNIX-CREAT"
"UNIX-UTIMES"
"UNIX-UTIMES"
;; Tests
"UNIX-SYMLINK"
))
))
(
defpackage
"FORMAT"
)
(
defpackage
"FORMAT"
)
...
...
This diff is collapsed.
Click to expand it.
src/code/unix.lisp
+
8
−
0
View file @
db12154d
...
@@ -1884,6 +1884,14 @@
...
@@ -1884,6 +1884,14 @@
nfds
(
frob
rdfds
rdf
)
(
frob
wrfds
wrf
)
(
frob
xpfds
xpf
)
nfds
(
frob
rdfds
rdf
)
(
frob
wrfds
wrf
)
(
frob
xpfds
xpf
)
(
if
to-secs
(
alien-sap
(
addr
tv
))
(
int-sap
0
))))))
(
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-type
nil
(
def-alien-type
nil
(
struct
timeval
(
struct
timeval
(
tv-sec
#-
linux
time-t
#+
linux
int
)
; seconds
(
tv-sec
#-
linux
time-t
#+
linux
int
)
; seconds
...
...
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