Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
osv
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
Container 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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Verlässliche Systemsoftware
projects
osv
Commits
82363a35
Commit
82363a35
authored
12 years ago
by
Christoph Hellwig
Browse files
Options
Downloads
Patches
Plain Diff
add a TCGETS stub
this allows the stdio code to figure out if it should go into line buffered mode.
parent
c5558c73
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
drivers/console.cc
+12
-1
12 additions, 1 deletion
drivers/console.cc
with
12 additions
and
1 deletion
drivers/console.cc
+
12
−
1
View file @
82363a35
...
@@ -41,12 +41,23 @@ console_write(struct device *dev, struct uio *uio, int ioflag)
...
@@ -41,12 +41,23 @@ console_write(struct device *dev, struct uio *uio, int ioflag)
return
0
;
return
0
;
}
}
static
int
console_ioctl
(
struct
device
*
dev
,
u_long
request
,
void
*
arg
)
{
switch
(
request
)
{
case
0x5401
:
// TCGETS
return
0
;
// XXX: stubbing out to get libc into line buffering mode
default:
return
-
ENOTTY
;
}
}
static
struct
devops
console_devops
=
{
static
struct
devops
console_devops
=
{
.
open
=
no_open
,
.
open
=
no_open
,
.
close
=
no_close
,
.
close
=
no_close
,
.
read
=
no_read
,
.
read
=
no_read
,
.
write
=
console_write
,
.
write
=
console_write
,
.
ioctl
=
no
_ioctl
,
.
ioctl
=
console
_ioctl
,
.
devctl
=
no_devctl
,
.
devctl
=
no_devctl
,
};
};
...
...
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