Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
X
xv6-public
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
问题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
银宸时代
OS Lab Group
奖励实验
xv6-public
提交
c664dd5d
提交
c664dd5d
8月 08, 2007
创建
作者:
rsc
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
missing void
上级
61dff66b
显示空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
13 行增加
和
13 行删除
+13
-13
console.c
console.c
+2
-2
main.c
main.c
+1
-1
usertests.c
usertests.c
+10
-10
没有找到文件。
console.c
浏览文件 @
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"
);
...
...
main.c
浏览文件 @
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
;
...
...
usertests.c
浏览文件 @
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
;
...
...
编写
预览
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论