summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaichi Hirono2016-12-07 23:22:13 -0600
committerDaichi Hirono2016-12-11 23:53:03 -0600
commitcb9153bf4324d72c6f1b34a8a1c2f8b9954697d2 (patch)
treeac21b82aed499cc9accb363a8767495bb3962e85 /libappfuse/include/libappfuse
parenta6373ec1d47c0b370c87b3915feeba8f2b4523f7 (diff)
downloadplatform-system-core-cb9153bf4324d72c6f1b34a8a1c2f8b9954697d2.tar.gz
platform-system-core-cb9153bf4324d72c6f1b34a8a1c2f8b9954697d2.tar.xz
platform-system-core-cb9153bf4324d72c6f1b34a8a1c2f8b9954697d2.zip
Support SOCK_STREAM for bridge between system and app
Previously AppFuse use SOCK_SEQPACKET for sockets communicating system and app. However SOCK_SEQPACKET requires the buffer of message size in the kernel and sometimes failed to write with ENOBUF. The CL updates libappfuse so that it can use SOCK_STREAM instead of SOCK_SEQPACKET. Bug: 33279206 Test: libappfuse_test Change-Id: I622ada9ac1d71d0c57b6cfff0904c7829cea7995
Diffstat (limited to 'libappfuse/include/libappfuse')
-rw-r--r--libappfuse/include/libappfuse/FuseBuffer.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/libappfuse/include/libappfuse/FuseBuffer.h b/libappfuse/include/libappfuse/FuseBuffer.h
index 276db9020..7abd2fa40 100644
--- a/libappfuse/include/libappfuse/FuseBuffer.h
+++ b/libappfuse/include/libappfuse/FuseBuffer.h
@@ -34,9 +34,7 @@ class FuseMessage {
34 bool Read(int fd); 34 bool Read(int fd);
35 bool Write(int fd) const; 35 bool Write(int fd) const;
36 private: 36 private:
37 bool CheckPacketSize(size_t size, const char* name) const; 37 bool CheckHeaderLength(const char* name) const;
38 bool CheckResult(int result, const char* operation_name) const;
39 bool CheckHeaderLength(int result, const char* operation_name) const;
40}; 38};
41 39
42// FuseRequest represents file operation requests from /dev/fuse. It starts 40// FuseRequest represents file operation requests from /dev/fuse. It starts