XINU
rflgetc.c
Go to the documentation of this file.
1 /* rflgetc.c - rflgetc */
2 
3 #include <xinu.h>
4 
5 /*------------------------------------------------------------------------
6  * rflgetc - Read one character from a remote file
7  *------------------------------------------------------------------------
8  */
10  struct dentry *devptr /* Entry in device switch table */
11  )
12 {
13  char ch; /* Character to read */
14  int32 retval; /* Return value */
15 
16  retval = rflread(devptr, &ch, 1);
17 
18  if (retval != 1) {
19  return SYSERR;
20  }
21 
22  return (devcall)ch;
23 }
全てのシステムヘッダファイルをインクルードする。
#define SYSERR
処理が失敗した場合
Definition: kernel.h:79
Definition: conf.h:6
devcall rflgetc(struct dentry *devptr)
Definition: rflgetc.c:9
devcall rflread(struct dentry *, char *, int32)
Definition: rflread.c:9
int int32
符号あり32ビット整数(int)
Definition: kernel.h:11
int32 devcall
デバイスコール関数 返り値の型
Definition: kernel.h:49