Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
CSEP551
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
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
Krishna Vinnakota
CSEP551
Commits
c664dd5d
Commit
c664dd5d
authored
17 years ago
by
rsc
Browse files
Options
Downloads
Patches
Plain Diff
missing void
parent
61dff66b
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
console.c
+2
-2
2 additions, 2 deletions
console.c
main.c
+1
-1
1 addition, 1 deletion
main.c
usertests.c
+10
-10
10 additions, 10 deletions
usertests.c
with
13 additions
and
13 deletions
console.c
+
2
−
2
View file @
c664dd5d
...
...
@@ -323,7 +323,7 @@ struct spinlock kbd_lock;
static
uint
shift
;
void
kbd_intr
()
kbd_intr
(
void
)
{
uint
st
,
data
,
c
;
...
...
@@ -418,7 +418,7 @@ console_read(int minor, char *dst, int n)
}
void
console_init
()
console_init
(
void
)
{
initlock
(
&
console_lock
,
"console"
);
initlock
(
&
kbd_lock
,
"kbd"
);
...
...
This diff is collapsed.
Click to expand it.
main.c
+
1
−
1
View file @
c664dd5d
...
...
@@ -116,7 +116,7 @@ mpmain(void)
// proc[0] starts here, called by scheduler() in the ordinary way.
void
process0
()
process0
(
void
)
{
struct
proc
*
p0
=
&
proc
[
0
];
struct
proc
*
p1
;
...
...
This diff is collapsed.
Click to expand it.
usertests.c
+
10
−
10
View file @
c664dd5d
...
...
@@ -350,7 +350,7 @@ mem(void)
// two processes write to the same file descriptor
// is the offset shared? does inode locking work?
void
sharedfd
()
sharedfd
(
void
)
{
int
fd
,
pid
,
i
,
n
,
nc
,
np
;
char
buf
[
10
];
...
...
@@ -399,7 +399,7 @@ sharedfd()
// two processes write two different files at the same
// time, to test block allocation.
void
twofiles
()
twofiles
(
void
)
{
int
fd
,
pid
,
i
,
j
,
n
,
total
;
char
*
fname
;
...
...
@@ -462,7 +462,7 @@ twofiles()
// two processes create and delete files in same directory
void
createdelete
()
createdelete
(
void
)
{
int
pid
,
i
,
fd
;
int
n
=
20
;
...
...
@@ -540,7 +540,7 @@ createdelete()
// can I unlink a file and still read it?
void
unlinkread
()
unlinkread
(
void
)
{
int
fd
,
fd1
;
...
...
@@ -585,7 +585,7 @@ unlinkread()
}
void
linktest
()
linktest
(
void
)
{
int
fd
;
...
...
@@ -648,7 +648,7 @@ linktest()
// test concurrent create of the same file
void
concreate
()
concreate
(
void
)
{
char
file
[
3
];
int
i
,
pid
,
n
,
fd
;
...
...
@@ -720,7 +720,7 @@ concreate()
// directory that uses indirect blocks
void
bigdir
()
bigdir
(
void
)
{
int
i
,
fd
;
char
name
[
10
];
...
...
@@ -762,7 +762,7 @@ bigdir()
}
void
subdir
()
subdir
(
void
)
{
int
fd
,
cc
;
...
...
@@ -923,7 +923,7 @@ subdir()
}
void
bigfile
()
bigfile
(
void
)
{
int
fd
,
i
,
total
,
cc
;
...
...
@@ -979,7 +979,7 @@ bigfile()
}
void
fourteen
()
fourteen
(
void
)
{
int
fd
;
...
...
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