提交 c48f4f87 编写于 作者: O openharmony_ci 提交者: Gitee

!9 文件系统冗余代码和依赖删除

Merge pull request !9 from 野生毛霉君/master
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
#include <assert.h> #include <assert.h>
#include <errno.h> #include <errno.h>
#include <fcntl.h> #include <fcntl.h>
#include <fs/fs.h> #include <fs/driver.h>
#include <linux/list.h> #include <linux/list.h>
#include <linux/wait.h> #include <linux/wait.h>
#include <semaphore.h> #include <semaphore.h>
...@@ -66,7 +66,7 @@ struct HieventEntry { ...@@ -66,7 +66,7 @@ struct HieventEntry {
char msg[0]; char msg[0];
}; };
FAR struct HieventCharDevice { struct HieventCharDevice {
int flag; int flag;
LosMux mtx; LosMux mtx;
unsigned char *buffer; unsigned char *buffer;
...@@ -86,13 +86,13 @@ static inline unsigned char *HieventBufferHead(void) ...@@ -86,13 +86,13 @@ static inline unsigned char *HieventBufferHead(void)
} }
int HieventOpen(FAR struct file *filep) int HieventOpen(struct file *filep)
{ {
(void)filep; (void)filep;
return 0; return 0;
} }
int HieventClose(FAR struct file *filep) int HieventClose(struct file *filep)
{ {
(void)filep; (void)filep;
return 0; return 0;
...@@ -158,7 +158,7 @@ static int HieventReadRingBuffer(unsigned char *buffer, size_t bufLen) ...@@ -158,7 +158,7 @@ static int HieventReadRingBuffer(unsigned char *buffer, size_t bufLen)
return retval; return retval;
} }
static ssize_t HieventRead(FAR struct file *filep, char *buffer, size_t bufLen) static ssize_t HieventRead(struct file *filep, char *buffer, size_t bufLen)
{ {
size_t retval; size_t retval;
struct HieventEntry header; struct HieventEntry header;
...@@ -316,14 +316,14 @@ out: ...@@ -316,14 +316,14 @@ out:
} }
static ssize_t HieventWrite(FAR struct file *filep, static ssize_t HieventWrite(struct file *filep,
const char *buffer, size_t bufLen) const char *buffer, size_t bufLen)
{ {
(void)filep; (void)filep;
return HieventWriteInternal(buffer, bufLen); return HieventWriteInternal(buffer, bufLen);
} }
static int HieventPoll(FAR struct file *filep, poll_table *fds) static int HieventPoll(struct file *filep, poll_table *fds)
{ {
(void)filep; (void)filep;
...@@ -332,7 +332,7 @@ static int HieventPoll(FAR struct file *filep, poll_table *fds) ...@@ -332,7 +332,7 @@ static int HieventPoll(FAR struct file *filep, poll_table *fds)
return (POLLOUT | POLLWRNORM); return (POLLOUT | POLLWRNORM);
} }
static int HieventIoctl(FAR struct file *filep, int cmd, unsigned long arg) static int HieventIoctl(struct file *filep, int cmd, unsigned long arg)
{ {
// not support ioctl in liteos now // not support ioctl in liteos now
(void)filep; (void)filep;
......
...@@ -36,8 +36,7 @@ ...@@ -36,8 +36,7 @@
#include <linux/kernel.h> #include <linux/kernel.h>
#include <linux/workqueue.h> #include <linux/workqueue.h>
#include "arm.h" #include "arm.h"
#include "fs/fs.h" #include "fs/driver.h"
#include "fs_poll_pri.h"
#include "hisoc/random.h" #include "hisoc/random.h"
#include "los_process_pri.h" #include "los_process_pri.h"
#include "los_task.h" #include "los_task.h"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册