XINU
Functions
rflgetc.c File Reference
#include <xinu.h>
Include dependency graph for rflgetc.c:

Go to the source code of this file.

Functions

devcall rflgetc (struct dentry *devptr)
 

Function Documentation

◆ rflgetc()

devcall rflgetc ( struct dentry devptr)

Definition at line 9 of file rflgetc.c.

References rflread(), and SYSERR.

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
devcall rflread(struct dentry *, char *, int32)
Definition: rflread.c:9
int int32
符号あり32ビット整数(int)
Definition: kernel.h:11
int32 devcall
デバイスコール関数 返り値の型
Definition: kernel.h:49
Here is the call graph for this function: