XINU
device
rfs
rflputc.c
Go to the documentation of this file.
1
/* rflputc.c - rflputc */
2
3
#include <
xinu.h
>
4
5
/*------------------------------------------------------------------------
6
* rflputc - Write one character to a remote file
7
*------------------------------------------------------------------------
8
*/
9
devcall
rflputc
(
10
struct
dentry
*devptr,
/* Entry in device switch table */
11
char
ch
/* Character to write */
12
)
13
{
14
if
(
rflwrite
(devptr, &ch, 1) != 1) {
15
return
SYSERR
;
16
}
17
18
return
OK
;
19
}
xinu.h
全てのシステムヘッダファイルをインクルードする。
SYSERR
#define SYSERR
処理が失敗した場合
Definition:
kernel.h:79
rflwrite
devcall rflwrite(struct dentry *, char *, int32)
Definition:
rflwrite.c:9
OK
#define OK
処理が成功した場合
Definition:
kernel.h:77
dentry
Definition:
conf.h:6
devcall
int32 devcall
デバイスコール関数 返り値の型
Definition:
kernel.h:49
rflputc
devcall rflputc(struct dentry *devptr, char ch)
Definition:
rflputc.c:9
Generated by
1.8.13