1bf215546Sopenharmony_ci/*
2bf215546Sopenharmony_ci *  sync.h
3bf215546Sopenharmony_ci *
4bf215546Sopenharmony_ci *   Copyright 2012 Google, Inc
5bf215546Sopenharmony_ci *
6bf215546Sopenharmony_ci *  Licensed under the Apache License, Version 2.0 (the "License");
7bf215546Sopenharmony_ci *  you may not use this file except in compliance with the License.
8bf215546Sopenharmony_ci *  You may obtain a copy of the License at
9bf215546Sopenharmony_ci *
10bf215546Sopenharmony_ci *      http://www.apache.org/licenses/LICENSE-2.0
11bf215546Sopenharmony_ci *
12bf215546Sopenharmony_ci *  Unless required by applicable law or agreed to in writing, software
13bf215546Sopenharmony_ci *  distributed under the License is distributed on an "AS IS" BASIS,
14bf215546Sopenharmony_ci *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15bf215546Sopenharmony_ci *  See the License for the specific language governing permissions and
16bf215546Sopenharmony_ci *  limitations under the License.
17bf215546Sopenharmony_ci */
18bf215546Sopenharmony_ci
19bf215546Sopenharmony_ci#ifndef __SYS_CORE_SYNC_H
20bf215546Sopenharmony_ci#define __SYS_CORE_SYNC_H
21bf215546Sopenharmony_ci
22bf215546Sopenharmony_ci/* This file contains the legacy sync interface used by Android platform and
23bf215546Sopenharmony_ci * device code. The direct contents will be removed over time as code
24bf215546Sopenharmony_ci * transitions to using the updated interface in ndk/sync.h. When this file is
25bf215546Sopenharmony_ci * empty other than the ndk/sync.h include, that file will be renamed to
26bf215546Sopenharmony_ci * replace this one.
27bf215546Sopenharmony_ci *
28bf215546Sopenharmony_ci * New code should continue to include this file (#include <android/sync.h>)
29bf215546Sopenharmony_ci * instead of ndk/sync.h so the eventual rename is seamless, but should only
30bf215546Sopenharmony_ci * use the things declared in ndk/sync.h.
31bf215546Sopenharmony_ci *
32bf215546Sopenharmony_ci * This file used to be called sync/sync.h, but we renamed to that both the
33bf215546Sopenharmony_ci * platform and NDK call it android/sync.h. A symlink from the old name to this
34bf215546Sopenharmony_ci * one exists temporarily to avoid having to change all sync clients
35bf215546Sopenharmony_ci * simultaneously. It will be removed when they've been updated, and probably
36bf215546Sopenharmony_ci * after this change has been delivered to AOSP so that integrations don't
37bf215546Sopenharmony_ci * break builds.
38bf215546Sopenharmony_ci */
39bf215546Sopenharmony_ci
40bf215546Sopenharmony_ci#include "../ndk/sync.h"
41bf215546Sopenharmony_ci
42bf215546Sopenharmony_ci__BEGIN_DECLS
43bf215546Sopenharmony_ci
44bf215546Sopenharmony_ci/* timeout in msecs */
45bf215546Sopenharmony_ciint sync_wait(int fd, int timeout);
46bf215546Sopenharmony_ci
47bf215546Sopenharmony_ci__END_DECLS
48bf215546Sopenharmony_ci
49bf215546Sopenharmony_ci#endif /* __SYS_CORE_SYNC_H */
50