Merge "Hide internal __system_property_* functions"
This commit is contained in:
commit
5927b04ce7
9 changed files with 69 additions and 69 deletions
|
@ -30,7 +30,6 @@
|
|||
#define _INCLUDE_SYS__SYSTEM_PROPERTIES_H
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
#include <stdbool.h>
|
||||
#include <stdint.h>
|
||||
|
||||
#ifndef _REALLY_INCLUDE_SYS__SYSTEM_PROPERTIES_H_
|
||||
|
@ -122,25 +121,6 @@ int __system_property_update(prop_info *pi, const char *value, unsigned int len)
|
|||
*/
|
||||
uint32_t __system_property_serial(const prop_info* pi);
|
||||
|
||||
/*
|
||||
* Waits for the specific system property identified by `pi` to be updated
|
||||
* past `old_serial`. Waits no longer than `relative_timeout`, or forever
|
||||
* if `relaive_timeout` is null.
|
||||
*
|
||||
* If `pi` is null, waits for the global serial number instead.
|
||||
*
|
||||
* If you don't know the current serial, use 0.
|
||||
*
|
||||
* Returns true and updates `*new_serial_ptr` on success, or false if the call
|
||||
* timed out.
|
||||
*/
|
||||
struct timespec;
|
||||
bool __system_property_wait(const prop_info* pi,
|
||||
uint32_t old_serial,
|
||||
uint32_t* new_serial_ptr,
|
||||
const struct timespec* relative_timeout)
|
||||
__INTRODUCED_IN_FUTURE;
|
||||
|
||||
/* Initialize the system properties area in read only mode.
|
||||
* Should be done by all processes that need to read system
|
||||
* properties.
|
||||
|
|
|
@ -30,6 +30,7 @@
|
|||
#define _INCLUDE_SYS_SYSTEM_PROPERTIES_H
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
#include <stdbool.h>
|
||||
#include <stddef.h>
|
||||
#include <stdint.h>
|
||||
|
||||
|
@ -68,6 +69,25 @@ void __system_property_read_callback(const prop_info *pi,
|
|||
int __system_property_foreach(void (*propfn)(const prop_info* pi, void* cookie), void* cookie)
|
||||
__INTRODUCED_IN(19);
|
||||
|
||||
/*
|
||||
* Waits for the specific system property identified by `pi` to be updated
|
||||
* past `old_serial`. Waits no longer than `relative_timeout`, or forever
|
||||
* if `relaive_timeout` is null.
|
||||
*
|
||||
* If `pi` is null, waits for the global serial number instead.
|
||||
*
|
||||
* If you don't know the current serial, use 0.
|
||||
*
|
||||
* Returns true and updates `*new_serial_ptr` on success, or false if the call
|
||||
* timed out.
|
||||
*/
|
||||
struct timespec;
|
||||
bool __system_property_wait(const prop_info* pi,
|
||||
uint32_t old_serial,
|
||||
uint32_t* new_serial_ptr,
|
||||
const struct timespec* relative_timeout)
|
||||
__INTRODUCED_IN_FUTURE;
|
||||
|
||||
/* Deprecated. In Android O and above, there's no limit on property name length. */
|
||||
#define PROP_NAME_MAX 32
|
||||
/* Deprecated. Use __system_property_read_callback instead. */
|
||||
|
|
|
@ -185,18 +185,11 @@ LIBC {
|
|||
__sym_ntop;
|
||||
__sym_ntos;
|
||||
__sym_ston;
|
||||
__system_properties_init;
|
||||
__system_property_area__; # var
|
||||
__system_property_area_init; # introduced-arm=19 introduced-arm64=21 introduced-mips=19 introduced-mips64=21 introduced-x86=19 introduced-x86_64=21
|
||||
__system_property_area_serial; # introduced=23
|
||||
__system_property_find;
|
||||
__system_property_foreach; # introduced-arm=19 introduced-arm64=21 introduced-mips=19 introduced-mips64=21 introduced-x86=19 introduced-x86_64=21
|
||||
__system_property_get;
|
||||
__system_property_read;
|
||||
__system_property_serial; # introduced-arm=19 introduced-arm64=21 introduced-mips=19 introduced-mips64=21 introduced-x86=19 introduced-x86_64=21
|
||||
__system_property_set; # introduced-arm=12 introduced-arm64=21 introduced-mips=12 introduced-mips64=21 introduced-x86=12 introduced-x86_64=21
|
||||
__system_property_set_filename; # introduced-arm=19 introduced-arm64=21 introduced-mips=19 introduced-mips64=21 introduced-x86=19 introduced-x86_64=21
|
||||
__system_property_wait_any; # introduced-arm=19 introduced-arm64=21 introduced-mips=19 introduced-mips64=21 introduced-x86=19 introduced-x86_64=21
|
||||
__timer_create; # arm x86 mips
|
||||
__timer_delete; # arm x86 mips
|
||||
__timer_getoverrun; # arm x86 mips
|
||||
|
@ -1538,11 +1531,18 @@ LIBC_PRIVATE {
|
|||
LIBC_DEPRECATED {
|
||||
global:
|
||||
__system_property_find_nth;
|
||||
__system_property_wait_any;
|
||||
};
|
||||
|
||||
LIBC_PLATFORM {
|
||||
global:
|
||||
__system_properties_init;
|
||||
__system_property_area__; # var
|
||||
__system_property_add;
|
||||
__system_property_area_init;
|
||||
__system_property_area_serial;
|
||||
__system_property_serial;
|
||||
__system_property_set_filename;
|
||||
__system_property_update;
|
||||
android_net_res_stats_get_info_for_net;
|
||||
android_net_res_stats_aggregate;
|
||||
|
|
|
@ -130,18 +130,11 @@ LIBC {
|
|||
__sym_ntop;
|
||||
__sym_ntos;
|
||||
__sym_ston;
|
||||
__system_properties_init;
|
||||
__system_property_area__; # var
|
||||
__system_property_area_init; # introduced-arm=19 introduced-arm64=21 introduced-mips=19 introduced-mips64=21 introduced-x86=19 introduced-x86_64=21
|
||||
__system_property_area_serial; # introduced=23
|
||||
__system_property_find;
|
||||
__system_property_foreach; # introduced-arm=19 introduced-arm64=21 introduced-mips=19 introduced-mips64=21 introduced-x86=19 introduced-x86_64=21
|
||||
__system_property_get;
|
||||
__system_property_read;
|
||||
__system_property_serial; # introduced-arm=19 introduced-arm64=21 introduced-mips=19 introduced-mips64=21 introduced-x86=19 introduced-x86_64=21
|
||||
__system_property_set; # introduced-arm=12 introduced-arm64=21 introduced-mips=12 introduced-mips64=21 introduced-x86=12 introduced-x86_64=21
|
||||
__system_property_set_filename; # introduced-arm=19 introduced-arm64=21 introduced-mips=19 introduced-mips64=21 introduced-x86=19 introduced-x86_64=21
|
||||
__system_property_wait_any; # introduced-arm=19 introduced-arm64=21 introduced-mips=19 introduced-mips64=21 introduced-x86=19 introduced-x86_64=21
|
||||
__umask_chk; # introduced-arm=18 introduced-arm64=21 introduced-mips=18 introduced-mips64=21 introduced-x86=18 introduced-x86_64=21
|
||||
__vsnprintf_chk; # introduced-arm=17 introduced-arm64=21 introduced-mips=17 introduced-mips64=21 introduced-x86=17 introduced-x86_64=21
|
||||
__vsprintf_chk; # introduced-arm=17 introduced-arm64=21 introduced-mips=17 introduced-mips64=21 introduced-x86=17 introduced-x86_64=21
|
||||
|
@ -1255,11 +1248,18 @@ LIBC_PRIVATE {
|
|||
LIBC_DEPRECATED {
|
||||
global:
|
||||
__system_property_find_nth;
|
||||
__system_property_wait_any;
|
||||
};
|
||||
|
||||
LIBC_PLATFORM {
|
||||
global:
|
||||
__system_properties_init;
|
||||
__system_property_area__; # var
|
||||
__system_property_add;
|
||||
__system_property_area_init;
|
||||
__system_property_area_serial;
|
||||
__system_property_serial;
|
||||
__system_property_set_filename;
|
||||
__system_property_update;
|
||||
android_net_res_stats_get_info_for_net;
|
||||
android_net_res_stats_aggregate;
|
||||
|
|
|
@ -186,18 +186,11 @@ LIBC {
|
|||
__sym_ntop;
|
||||
__sym_ntos;
|
||||
__sym_ston;
|
||||
__system_properties_init;
|
||||
__system_property_area__; # var
|
||||
__system_property_area_init; # introduced-arm=19 introduced-arm64=21 introduced-mips=19 introduced-mips64=21 introduced-x86=19 introduced-x86_64=21
|
||||
__system_property_area_serial; # introduced=23
|
||||
__system_property_find;
|
||||
__system_property_foreach; # introduced-arm=19 introduced-arm64=21 introduced-mips=19 introduced-mips64=21 introduced-x86=19 introduced-x86_64=21
|
||||
__system_property_get;
|
||||
__system_property_read;
|
||||
__system_property_serial; # introduced-arm=19 introduced-arm64=21 introduced-mips=19 introduced-mips64=21 introduced-x86=19 introduced-x86_64=21
|
||||
__system_property_set; # introduced-arm=12 introduced-arm64=21 introduced-mips=12 introduced-mips64=21 introduced-x86=12 introduced-x86_64=21
|
||||
__system_property_set_filename; # introduced-arm=19 introduced-arm64=21 introduced-mips=19 introduced-mips64=21 introduced-x86=19 introduced-x86_64=21
|
||||
__system_property_wait_any; # introduced-arm=19 introduced-arm64=21 introduced-mips=19 introduced-mips64=21 introduced-x86=19 introduced-x86_64=21
|
||||
__timer_create; # arm x86 mips
|
||||
__timer_delete; # arm x86 mips
|
||||
__timer_getoverrun; # arm x86 mips
|
||||
|
@ -1564,11 +1557,18 @@ LIBC_PRIVATE {
|
|||
LIBC_DEPRECATED {
|
||||
global:
|
||||
__system_property_find_nth;
|
||||
__system_property_wait_any;
|
||||
};
|
||||
|
||||
LIBC_PLATFORM {
|
||||
global:
|
||||
__system_properties_init;
|
||||
__system_property_area__; # var
|
||||
__system_property_add;
|
||||
__system_property_area_init;
|
||||
__system_property_area_serial;
|
||||
__system_property_serial;
|
||||
__system_property_set_filename;
|
||||
__system_property_update;
|
||||
android_net_res_stats_get_info_for_net;
|
||||
android_net_res_stats_aggregate;
|
||||
|
|
|
@ -182,18 +182,11 @@ LIBC {
|
|||
__sym_ntop;
|
||||
__sym_ntos;
|
||||
__sym_ston;
|
||||
__system_properties_init;
|
||||
__system_property_area__; # var
|
||||
__system_property_area_init; # introduced-arm=19 introduced-arm64=21 introduced-mips=19 introduced-mips64=21 introduced-x86=19 introduced-x86_64=21
|
||||
__system_property_area_serial; # introduced=23
|
||||
__system_property_find;
|
||||
__system_property_foreach; # introduced-arm=19 introduced-arm64=21 introduced-mips=19 introduced-mips64=21 introduced-x86=19 introduced-x86_64=21
|
||||
__system_property_get;
|
||||
__system_property_read;
|
||||
__system_property_serial; # introduced-arm=19 introduced-arm64=21 introduced-mips=19 introduced-mips64=21 introduced-x86=19 introduced-x86_64=21
|
||||
__system_property_set; # introduced-arm=12 introduced-arm64=21 introduced-mips=12 introduced-mips64=21 introduced-x86=12 introduced-x86_64=21
|
||||
__system_property_set_filename; # introduced-arm=19 introduced-arm64=21 introduced-mips=19 introduced-mips64=21 introduced-x86=19 introduced-x86_64=21
|
||||
__system_property_wait_any; # introduced-arm=19 introduced-arm64=21 introduced-mips=19 introduced-mips64=21 introduced-x86=19 introduced-x86_64=21
|
||||
__timer_create; # arm x86 mips
|
||||
__timer_delete; # arm x86 mips
|
||||
__timer_getoverrun; # arm x86 mips
|
||||
|
@ -1379,11 +1372,18 @@ LIBC_PRIVATE {
|
|||
LIBC_DEPRECATED {
|
||||
global:
|
||||
__system_property_find_nth;
|
||||
__system_property_wait_any;
|
||||
};
|
||||
|
||||
LIBC_PLATFORM {
|
||||
global:
|
||||
__system_properties_init;
|
||||
__system_property_area__; # var
|
||||
__system_property_add;
|
||||
__system_property_area_init;
|
||||
__system_property_area_serial;
|
||||
__system_property_serial;
|
||||
__system_property_set_filename;
|
||||
__system_property_update;
|
||||
android_net_res_stats_get_info_for_net;
|
||||
android_net_res_stats_aggregate;
|
||||
|
|
|
@ -130,18 +130,11 @@ LIBC {
|
|||
__sym_ntop;
|
||||
__sym_ntos;
|
||||
__sym_ston;
|
||||
__system_properties_init;
|
||||
__system_property_area__; # var
|
||||
__system_property_area_init; # introduced-arm=19 introduced-arm64=21 introduced-mips=19 introduced-mips64=21 introduced-x86=19 introduced-x86_64=21
|
||||
__system_property_area_serial; # introduced=23
|
||||
__system_property_find;
|
||||
__system_property_foreach; # introduced-arm=19 introduced-arm64=21 introduced-mips=19 introduced-mips64=21 introduced-x86=19 introduced-x86_64=21
|
||||
__system_property_get;
|
||||
__system_property_read;
|
||||
__system_property_serial; # introduced-arm=19 introduced-arm64=21 introduced-mips=19 introduced-mips64=21 introduced-x86=19 introduced-x86_64=21
|
||||
__system_property_set; # introduced-arm=12 introduced-arm64=21 introduced-mips=12 introduced-mips64=21 introduced-x86=12 introduced-x86_64=21
|
||||
__system_property_set_filename; # introduced-arm=19 introduced-arm64=21 introduced-mips=19 introduced-mips64=21 introduced-x86=19 introduced-x86_64=21
|
||||
__system_property_wait_any; # introduced-arm=19 introduced-arm64=21 introduced-mips=19 introduced-mips64=21 introduced-x86=19 introduced-x86_64=21
|
||||
__umask_chk; # introduced-arm=18 introduced-arm64=21 introduced-mips=18 introduced-mips64=21 introduced-x86=18 introduced-x86_64=21
|
||||
__vsnprintf_chk; # introduced-arm=17 introduced-arm64=21 introduced-mips=17 introduced-mips64=21 introduced-x86=17 introduced-x86_64=21
|
||||
__vsprintf_chk; # introduced-arm=17 introduced-arm64=21 introduced-mips=17 introduced-mips64=21 introduced-x86=17 introduced-x86_64=21
|
||||
|
@ -1255,11 +1248,18 @@ LIBC_PRIVATE {
|
|||
LIBC_DEPRECATED {
|
||||
global:
|
||||
__system_property_find_nth;
|
||||
__system_property_wait_any;
|
||||
};
|
||||
|
||||
LIBC_PLATFORM {
|
||||
global:
|
||||
__system_properties_init;
|
||||
__system_property_area__; # var
|
||||
__system_property_add;
|
||||
__system_property_area_init;
|
||||
__system_property_area_serial;
|
||||
__system_property_serial;
|
||||
__system_property_set_filename;
|
||||
__system_property_update;
|
||||
android_net_res_stats_get_info_for_net;
|
||||
android_net_res_stats_aggregate;
|
||||
|
|
|
@ -182,18 +182,11 @@ LIBC {
|
|||
__sym_ntop;
|
||||
__sym_ntos;
|
||||
__sym_ston;
|
||||
__system_properties_init;
|
||||
__system_property_area__; # var
|
||||
__system_property_area_init; # introduced-arm=19 introduced-arm64=21 introduced-mips=19 introduced-mips64=21 introduced-x86=19 introduced-x86_64=21
|
||||
__system_property_area_serial; # introduced=23
|
||||
__system_property_find;
|
||||
__system_property_foreach; # introduced-arm=19 introduced-arm64=21 introduced-mips=19 introduced-mips64=21 introduced-x86=19 introduced-x86_64=21
|
||||
__system_property_get;
|
||||
__system_property_read;
|
||||
__system_property_serial; # introduced-arm=19 introduced-arm64=21 introduced-mips=19 introduced-mips64=21 introduced-x86=19 introduced-x86_64=21
|
||||
__system_property_set; # introduced-arm=12 introduced-arm64=21 introduced-mips=12 introduced-mips64=21 introduced-x86=12 introduced-x86_64=21
|
||||
__system_property_set_filename; # introduced-arm=19 introduced-arm64=21 introduced-mips=19 introduced-mips64=21 introduced-x86=19 introduced-x86_64=21
|
||||
__system_property_wait_any; # introduced-arm=19 introduced-arm64=21 introduced-mips=19 introduced-mips64=21 introduced-x86=19 introduced-x86_64=21
|
||||
__timer_create; # arm x86 mips
|
||||
__timer_delete; # arm x86 mips
|
||||
__timer_getoverrun; # arm x86 mips
|
||||
|
@ -1378,11 +1371,18 @@ LIBC_PRIVATE {
|
|||
LIBC_DEPRECATED {
|
||||
global:
|
||||
__system_property_find_nth;
|
||||
__system_property_wait_any;
|
||||
};
|
||||
|
||||
LIBC_PLATFORM {
|
||||
global:
|
||||
__system_properties_init;
|
||||
__system_property_area__; # var
|
||||
__system_property_add;
|
||||
__system_property_area_init;
|
||||
__system_property_area_serial;
|
||||
__system_property_serial;
|
||||
__system_property_set_filename;
|
||||
__system_property_update;
|
||||
android_net_res_stats_get_info_for_net;
|
||||
android_net_res_stats_aggregate;
|
||||
|
|
|
@ -130,18 +130,11 @@ LIBC {
|
|||
__sym_ntop;
|
||||
__sym_ntos;
|
||||
__sym_ston;
|
||||
__system_properties_init;
|
||||
__system_property_area__; # var
|
||||
__system_property_area_init; # introduced-arm=19 introduced-arm64=21 introduced-mips=19 introduced-mips64=21 introduced-x86=19 introduced-x86_64=21
|
||||
__system_property_area_serial; # introduced=23
|
||||
__system_property_find;
|
||||
__system_property_foreach; # introduced-arm=19 introduced-arm64=21 introduced-mips=19 introduced-mips64=21 introduced-x86=19 introduced-x86_64=21
|
||||
__system_property_get;
|
||||
__system_property_read;
|
||||
__system_property_serial; # introduced-arm=19 introduced-arm64=21 introduced-mips=19 introduced-mips64=21 introduced-x86=19 introduced-x86_64=21
|
||||
__system_property_set; # introduced-arm=12 introduced-arm64=21 introduced-mips=12 introduced-mips64=21 introduced-x86=12 introduced-x86_64=21
|
||||
__system_property_set_filename; # introduced-arm=19 introduced-arm64=21 introduced-mips=19 introduced-mips64=21 introduced-x86=19 introduced-x86_64=21
|
||||
__system_property_wait_any; # introduced-arm=19 introduced-arm64=21 introduced-mips=19 introduced-mips64=21 introduced-x86=19 introduced-x86_64=21
|
||||
__umask_chk; # introduced-arm=18 introduced-arm64=21 introduced-mips=18 introduced-mips64=21 introduced-x86=18 introduced-x86_64=21
|
||||
__vsnprintf_chk; # introduced-arm=17 introduced-arm64=21 introduced-mips=17 introduced-mips64=21 introduced-x86=17 introduced-x86_64=21
|
||||
__vsprintf_chk; # introduced-arm=17 introduced-arm64=21 introduced-mips=17 introduced-mips64=21 introduced-x86=17 introduced-x86_64=21
|
||||
|
@ -1255,11 +1248,18 @@ LIBC_PRIVATE {
|
|||
LIBC_DEPRECATED {
|
||||
global:
|
||||
__system_property_find_nth;
|
||||
__system_property_wait_any;
|
||||
};
|
||||
|
||||
LIBC_PLATFORM {
|
||||
global:
|
||||
__system_properties_init;
|
||||
__system_property_area__; # var
|
||||
__system_property_add;
|
||||
__system_property_area_init;
|
||||
__system_property_area_serial;
|
||||
__system_property_serial;
|
||||
__system_property_set_filename;
|
||||
__system_property_update;
|
||||
android_net_res_stats_get_info_for_net;
|
||||
android_net_res_stats_aggregate;
|
||||
|
|
Loading…
Reference in a new issue