aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2023-07-13 08:06:26 +0100
committerRon Yorston <rmy@pobox.com>2023-07-13 08:06:26 +0100
commitbd978d0256fd3a67de1a7dd54f1a37f9435be363 (patch)
treecb869384a533ac0d95fe787d75be6c050e1e7c1a /include
parentb2901ce8efa050da00e0f3a73f3be9bf9402deea (diff)
parentd70256a5c719439cc6fab6a4571c1bb46178e4c7 (diff)
downloadbusybox-w32-bd978d0256fd3a67de1a7dd54f1a37f9435be363.tar.gz
busybox-w32-bd978d0256fd3a67de1a7dd54f1a37f9435be363.tar.bz2
busybox-w32-bd978d0256fd3a67de1a7dd54f1a37f9435be363.zip
Merge branch 'busybox' into merge
Diffstat (limited to 'include')
-rw-r--r--include/libbb.h4
-rw-r--r--include/rtc_.h18
2 files changed, 22 insertions, 0 deletions
diff --git a/include/libbb.h b/include/libbb.h
index 5c4a01e8d..ae10c3bf0 100644
--- a/include/libbb.h
+++ b/include/libbb.h
@@ -1345,6 +1345,8 @@ void set_task_comm(const char *comm) FAST_FUNC;
1345#endif 1345#endif
1346void exit_SUCCESS(void) NORETURN FAST_FUNC; 1346void exit_SUCCESS(void) NORETURN FAST_FUNC;
1347void _exit_SUCCESS(void) NORETURN FAST_FUNC; 1347void _exit_SUCCESS(void) NORETURN FAST_FUNC;
1348void exit_FAILURE(void) NORETURN FAST_FUNC;
1349void _exit_FAILURE(void) NORETURN FAST_FUNC;
1348 1350
1349/* Helpers for daemonization. 1351/* Helpers for daemonization.
1350 * 1352 *
@@ -1575,6 +1577,8 @@ int hush_main(int argc, char** argv) IF_SHELL_HUSH(MAIN_EXTERNALLY_VISIBLE);
1575/* If shell needs them, they exist even if not enabled as applets */ 1577/* If shell needs them, they exist even if not enabled as applets */
1576int echo_main(int argc, char** argv) IF_ECHO(MAIN_EXTERNALLY_VISIBLE); 1578int echo_main(int argc, char** argv) IF_ECHO(MAIN_EXTERNALLY_VISIBLE);
1577int sleep_main(int argc, char **argv) IF_SLEEP(MAIN_EXTERNALLY_VISIBLE); 1579int sleep_main(int argc, char **argv) IF_SLEEP(MAIN_EXTERNALLY_VISIBLE);
1580/* See disabled "config ASH_SLEEP" in ash.c */
1581#define ENABLE_ASH_SLEEP 0
1578int printf_main(int argc, char **argv) IF_PRINTF(MAIN_EXTERNALLY_VISIBLE); 1582int printf_main(int argc, char **argv) IF_PRINTF(MAIN_EXTERNALLY_VISIBLE);
1579int test_main(int argc, char **argv) 1583int test_main(int argc, char **argv)
1580#if ENABLE_TEST || ENABLE_TEST1 || ENABLE_TEST2 1584#if ENABLE_TEST || ENABLE_TEST1 || ENABLE_TEST2
diff --git a/include/rtc_.h b/include/rtc_.h
index 24ff5363f..782966090 100644
--- a/include/rtc_.h
+++ b/include/rtc_.h
@@ -46,6 +46,17 @@ struct linux_rtc_wkalrm {
46 struct linux_rtc_time time; /* time the alarm is set to */ 46 struct linux_rtc_time time; /* time the alarm is set to */
47}; 47};
48 48
49struct rtc_param {
50 uint64_t param;
51 union {
52 uint64_t uvalue;
53 int64_t svalue;
54 uint64_t ptr;
55 };
56 uint32_t index;
57 uint32_t __pad;
58};
59
49/* 60/*
50 * ioctl calls that are permitted to the /dev/rtc interface, if 61 * ioctl calls that are permitted to the /dev/rtc interface, if
51 * any of the RTC drivers are enabled. 62 * any of the RTC drivers are enabled.
@@ -71,12 +82,19 @@ struct linux_rtc_wkalrm {
71#define RTC_WKALM_SET _IOW('p', 0x0f, struct linux_rtc_wkalrm)/* Set wakeup alarm*/ 82#define RTC_WKALM_SET _IOW('p', 0x0f, struct linux_rtc_wkalrm)/* Set wakeup alarm*/
72#define RTC_WKALM_RD _IOR('p', 0x10, struct linux_rtc_wkalrm)/* Get wakeup alarm*/ 83#define RTC_WKALM_RD _IOR('p', 0x10, struct linux_rtc_wkalrm)/* Get wakeup alarm*/
73 84
85#define RTC_PARAM_GET _IOW('p', 0x13, struct rtc_param) /* Get parameter */
86#define RTC_PARAM_SET _IOW('p', 0x14, struct rtc_param) /* Set parameter */
87
74/* interrupt flags */ 88/* interrupt flags */
75#define RTC_IRQF 0x80 /* any of the following is active */ 89#define RTC_IRQF 0x80 /* any of the following is active */
76#define RTC_PF 0x40 90#define RTC_PF 0x40
77#define RTC_AF 0x20 91#define RTC_AF 0x20
78#define RTC_UF 0x10 92#define RTC_UF 0x10
79 93
94#define RTC_PARAM_FEATURES 0
95#define RTC_PARAM_CORRECTION 1
96#define RTC_PARAM_BACKUP_SWITCH_MODE 2
97
80POP_SAVED_FUNCTION_VISIBILITY 98POP_SAVED_FUNCTION_VISIBILITY
81 99
82#endif 100#endif