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
db8fb62e
Commit
db8fb62e
authored
18 years ago
by
rsc
Browse files
Options
Downloads
Patches
Plain Diff
for vs while
parent
236d3369
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
bio.c
+1
-1
1 addition, 1 deletion
bio.c
bootmain.c
+1
-1
1 addition, 1 deletion
bootmain.c
fs.c
+1
-1
1 addition, 1 deletion
fs.c
init.c
+1
-1
1 addition, 1 deletion
init.c
syscall.c
+1
-1
1 addition, 1 deletion
syscall.c
with
5 additions
and
5 deletions
bio.c
+
1
−
1
View file @
db8fb62e
...
...
@@ -39,7 +39,7 @@ getblk(uint dev, uint sector)
acquire
(
&
buf_table_lock
);
while
(
1
){
for
(;;
){
for
(
b
=
bufhead
.
next
;
b
!=
&
bufhead
;
b
=
b
->
next
)
if
((
b
->
flags
&
(
B_BUSY
|
B_VALID
))
&&
b
->
dev
==
dev
&&
b
->
sector
==
sector
)
break
;
...
...
This diff is collapsed.
Click to expand it.
bootmain.c
+
1
−
1
View file @
db8fb62e
...
...
@@ -58,7 +58,7 @@ cmain(void)
bad:
outw
(
0x8A00
,
0x8A00
);
outw
(
0x8A00
,
0x8E00
);
while
(
1
)
for
(;;
)
;
}
...
...
This diff is collapsed.
Click to expand it.
fs.c
+
1
−
1
View file @
db8fb62e
...
...
@@ -479,7 +479,7 @@ namei(char *path, int mode, uint *ret_off, char **ret_last, struct inode **ret_i
while
(
*
cp
==
'/'
)
cp
++
;
while
(
1
){
for
(;;
){
if
(
*
cp
==
'\0'
){
if
(
mode
==
NAMEI_LOOKUP
)
return
dp
;
...
...
This diff is collapsed.
Click to expand it.
init.c
+
1
−
1
View file @
db8fb62e
...
...
@@ -20,7 +20,7 @@ main(void)
dup
(
0
);
dup
(
0
);
while
(
1
){
for
(;;
){
pid
=
fork
();
if
(
pid
<
0
){
puts
(
"init: fork failed
\n
"
);
...
...
This diff is collapsed.
Click to expand it.
syscall.c
+
1
−
1
View file @
db8fb62e
...
...
@@ -62,7 +62,7 @@ checkstring(uint s)
char
c
;
int
len
=
0
;
while
(
1
){
for
(;;
){
if
(
fetchbyte
(
curproc
[
cpu
()],
s
,
&
c
)
<
0
)
return
-
1
;
if
(
c
==
'\0'
)
...
...
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