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
4eb42552
Commit
4eb42552
authored
28 years ago
by
ram
Browse files
Options
Downloads
Patches
Plain Diff
added TIOCSIGSEND. Currently only on HP/Ux.
parent
0c54f47e
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
code/unix.lisp
+16
-2
16 additions, 2 deletions
code/unix.lisp
with
16 additions
and
2 deletions
code/unix.lisp
+
16
−
2
View file @
4eb42552
...
...
@@ -5,7 +5,7 @@
;;; Carnegie Mellon University, and has been placed in the public domain.
;;;
(
ext:file-comment
"$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/unix.lisp,v 1.
39
199
4/11/06 18:00:36
ram Exp $"
)
"$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/unix.lisp,v 1.
40
199
6/07/25 14:59:48
ram Exp $"
)
;;;
;;; **********************************************************************
;;;
...
...
@@ -67,6 +67,8 @@
unix-tcgetattr
#+
(
or
hpux
svr4
)
unix-tcsetattr
TIOCGETP
TIOCSETP
TIOCFLUSH
TIOCSETC
TIOCGETC
TIOCSLTC
TIOCGLTC
TIOCNOTTY
TIOCSPGRP
TIOCGPGRP
TIOCGWINSZ
TIOCSWINSZ
TIOCSIGSEND
KBDCGET
KBDCSET
KBDCRESET
KBDCRST
KBDCSSTD
KBDSGET
KBDGCLICK
KBDSCLICK
FIONREAD
#+
hpux
siocspgrp
unix-exit
unix-stat
unix-lstat
unix-fstat
...
...
@@ -1223,7 +1225,8 @@
(
define-ioctl-command
TIOCSLTC
#\T
23
(
struct
ltchars
)
:in
)
(
define-ioctl-command
TIOCGLTC
#\T
24
(
struct
ltchars
)
:out
)
(
define-ioctl-command
TIOCSPGRP
#\T
29
int
:in
)
(
define-ioctl-command
TIOCGPGRP
#\T
30
int
:out
))
(
define-ioctl-command
TIOCGPGRP
#\T
30
int
:out
)
(
define-ioctl-command
TIOCSIGSEND
#\t
93
int
:in
))
;;; File ioctl commands.
(
define-ioctl-command
FIONREAD
#\f
127
int
:out
)
...
...
@@ -1267,6 +1270,17 @@
(
values
alien-pgrp
nil
)
(
values
nil
err
)))))
(
defun
(
fd
)
"Get the tty-process-group for the unix file-descriptor FD."
(
alien:with-alien
((
alien-pgrp
c-call:int
))
(
multiple-value-bind
(
ok
err
)
(
unix-ioctl
fd
tiocgpgrp
(
alien:alien-sap
(
alien:addr
alien-pgrp
)))
(
if
ok
(
values
alien-pgrp
nil
)
(
values
nil
err
)))))
(
defun
tty-process-group
(
&optional
fd
)
"Get the tty-process-group for the unix file-descriptor FD. If not supplied,
FD defaults to /dev/tty."
...
...
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