From 3ce014732763fd28a7b03d5ce99ec990f830f985 Mon Sep 17 00:00:00 2001
From: cheliequan <liequanche@126.com>
Date: 星期五, 30 十二月 2022 15:59:41 +0800
Subject: [PATCH] 1.客户端支持只获取memfd,只获取数据,同时获取memfd和数据 2.优化代码,所有日志使用mydebug

---
 src/ipc_msg.c |   11 ++++++++++-
 1 files changed, 10 insertions(+), 1 deletions(-)

diff --git a/src/ipc_msg.c b/src/ipc_msg.c
index 804eafa..85a53c2 100644
--- a/src/ipc_msg.c
+++ b/src/ipc_msg.c
@@ -1,7 +1,16 @@
-#include "ipc_msg.h"
 #include <string.h>
 #include <stdlib.h>
+#include <sys/types.h>
+#include <sys/stat.h>
+#include <unistd.h>
+#include "ipc_msg.h"
 
+
+int file_exists(char *filename)
+{
+  struct stat   buffer;   
+  return (stat (filename, &buffer) == 0);
+}
 /**
  * @brief 鍙戦�佺洰鏍囨枃浠舵弿杩扮
  * @param fd		浼犻�掍俊鎭殑 UNIX 鍩� 鏂囦欢鎻忚堪绗�

--
Gitblit v1.8.0