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
ec86b2c7
Commit
ec86b2c7
authored
27 years ago
by
pw
Browse files
Options
Downloads
Patches
Plain Diff
Let open-display work with host name args "" and "unix". From Ray Toy.
parent
4c964a5c
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
clx/display.lisp
+13
-4
13 additions, 4 deletions
clx/display.lisp
with
13 additions
and
4 deletions
clx/display.lisp
+
13
−
4
View file @
ec86b2c7
...
...
@@ -49,8 +49,11 @@
(
let*
((
host-family
(
ecase
protocol
((
:tcp
:internet
nil
)
0
)
((
:dna
:DECnet
)
1
)
((
:chaos
)
2
)))
(
host-address
(
rest
(
host-address
host
host-family
)))
((
:chaos
)
2
)
((
:unix
)
256
)))
(
host-address
(
if
(
eq
protocol
:unix
)
(
map
'list
#'
char-int
(
machine-instance
))
(
rest
(
host-address
host
host-family
))))
(
best-name
nil
)
(
best-data
nil
))
(
loop
...
...
@@ -290,10 +293,16 @@
;; if any, is assumed to come from the environment somehow.
(
declare
(
type
integer
display
))
(
declare
(
clx-values
display
))
;; Get the authorization mechanism from the environment.
;; Get the authorization mechanism from the environment. Handle the
;; special case of a host name of "" and "unix" which means the
;; protocol is :unix
(
when
(
null
authorization-name
)
(
multiple-value-setq
(
authorization-name
authorization-data
)
(
get-best-authorization
host
display
protocol
)))
(
get-best-authorization
host
display
(
if
(
member
host
'
(
""
"unix"
)
:test
#'
equal
)
:unix
protocol
))))
;; PROTOCOL is the network protocol (something like :TCP :DNA or :CHAOS). See OPEN-X-STREAM.
(
let*
((
stream
(
open-x-stream
host
display
protocol
))
(
disp
(
make-buffer
*output-buffer-size*
#'
make-display-internal
...
...
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