OSDN Git Service

Define shared memory NDK API
authorPeng Xu <pengxu@google.com>
Fri, 24 Feb 2017 09:30:16 +0000 (01:30 -0800)
committerPeng Xu <pengxu@google.com>
Sat, 25 Feb 2017 00:49:56 +0000 (16:49 -0800)
commite1e7e3877a7ca37b20745774638d8b3a87feec2d
tree7042b1047a088b67e770dabb777774d56f39bc6d
parentd41b8e6d9daff6d112b607fae88a0d77e341cf5e
Define shared memory NDK API

Added shared memory NDK API definition, including the following
functions:

*  int ASharedMemory_create(const char *name, size_t size);
*  size_t ASharedMemory_getSize(int fd);
*  int ASharedMemory_setProt(int fd, int prot);

Bug: 5995644
Bug: 30985702
Test: compiles
Change-Id: I4da6741728b7963f0f1d356dd3d9429e706c88a4
include/android/sharedmem.h [new file with mode: 0644]