*: make "pragma GCC visibility push(hidden)" less ugly
This commit is contained in:
parent
327fd47f36
commit
f81e8dbc74
@ -4,11 +4,9 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef COREUTILS_H
|
#ifndef COREUTILS_H
|
||||||
#define COREUTILS_H 1
|
#define COREUTILS_H 1
|
||||||
|
|
||||||
#if __GNUC_PREREQ(4,1)
|
PUSH_AND_SET_FUNCTION_VISIBILITY_TO_HIDDEN
|
||||||
# pragma GCC visibility push(hidden)
|
|
||||||
#endif
|
|
||||||
|
|
||||||
typedef int (*stat_func)(const char *fn, struct stat *ps);
|
typedef int (*stat_func)(const char *fn, struct stat *ps);
|
||||||
|
|
||||||
@ -17,8 +15,6 @@ int cp_mv_stat(const char *fn, struct stat *fn_stat) FAST_FUNC;
|
|||||||
|
|
||||||
mode_t getopt_mk_fifo_nod(char **argv) FAST_FUNC;
|
mode_t getopt_mk_fifo_nod(char **argv) FAST_FUNC;
|
||||||
|
|
||||||
#if __GNUC_PREREQ(4,1)
|
POP_SAVED_FUNCTION_VISIBILITY
|
||||||
# pragma GCC visibility pop
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
* Copyright (C) 1991, 1992 Linus Torvalds
|
* Copyright (C) 1991, 1992 Linus Torvalds
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef _LINUX_EXT2_FS_H
|
#ifndef LINUX_EXT2_FS_H
|
||||||
#define _LINUX_EXT2_FS_H
|
#define LINUX_EXT2_FS_H 1
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Special inode numbers
|
* Special inode numbers
|
||||||
@ -558,4 +558,4 @@ struct ext2_dir_entry_2 {
|
|||||||
#define EXT2_DIR_REC_LEN(name_len) (((name_len) + 8 + EXT2_DIR_ROUND) & \
|
#define EXT2_DIR_REC_LEN(name_len) (((name_len) + 8 + EXT2_DIR_ROUND) & \
|
||||||
~EXT2_DIR_ROUND)
|
~EXT2_DIR_ROUND)
|
||||||
|
|
||||||
#endif /* _LINUX_EXT2_FS_H */
|
#endif
|
||||||
|
@ -9,9 +9,7 @@
|
|||||||
/* Constants and structures */
|
/* Constants and structures */
|
||||||
#include "e2fs_defs.h"
|
#include "e2fs_defs.h"
|
||||||
|
|
||||||
#if __GNUC_PREREQ(4,1)
|
PUSH_AND_SET_FUNCTION_VISIBILITY_TO_HIDDEN
|
||||||
# pragma GCC visibility push(hidden)
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* Iterate a function on each entry of a directory */
|
/* Iterate a function on each entry of a directory */
|
||||||
int iterate_on_dir(const char *dir_name,
|
int iterate_on_dir(const char *dir_name,
|
||||||
@ -46,6 +44,4 @@ extern const char e2attr_flags_sname[];
|
|||||||
#define e2attr_flags_sname_chattr (&e2attr_flags_sname[1])
|
#define e2attr_flags_sname_chattr (&e2attr_flags_sname[1])
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if __GNUC_PREREQ(4,1)
|
POP_SAVED_FUNCTION_VISIBILITY
|
||||||
# pragma GCC visibility pop
|
|
||||||
#endif
|
|
||||||
|
@ -10,9 +10,8 @@
|
|||||||
* GNU Lesser General Public License.
|
* GNU Lesser General Public License.
|
||||||
* %End-Header%
|
* %End-Header%
|
||||||
*/
|
*/
|
||||||
|
#ifndef BLKID_BLKID_H
|
||||||
#ifndef _BLKID_BLKID_H
|
#define BLKID_BLKID_H 1
|
||||||
#define _BLKID_BLKID_H
|
|
||||||
|
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <linux/types.h>
|
#include <linux/types.h>
|
||||||
@ -102,4 +101,4 @@ extern int blkid_parse_tag_string(const char *token, char **ret_type,
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif /* _BLKID_BLKID_H */
|
#endif
|
||||||
|
@ -10,9 +10,8 @@
|
|||||||
* GNU Lesser General Public License.
|
* GNU Lesser General Public License.
|
||||||
* %End-Header%
|
* %End-Header%
|
||||||
*/
|
*/
|
||||||
|
#ifndef BLKID_BLKIDP_H
|
||||||
#ifndef _BLKID_BLKIDP_H
|
#define BLKID_BLKIDP_H 1
|
||||||
#define _BLKID_BLKIDP_H
|
|
||||||
|
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
@ -184,4 +183,4 @@ extern void blkid_free_dev(blkid_dev dev);
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif /* _BLKID_BLKIDP_H */
|
#endif
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/* vi: set sw=4 ts=4: */
|
/* vi: set sw=4 ts=4: */
|
||||||
#if !defined(_BLKID_LIST_H) && !defined(LIST_HEAD)
|
#if !defined(_BLKID_LIST_H) && !defined(LIST_HEAD)
|
||||||
#define _BLKID_LIST_H
|
#define BLKID_LIST_H 1
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
@ -70,4 +70,4 @@ void list_splice(struct list_head *list, struct list_head *head);
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif /* _BLKID_LIST_H */
|
#endif
|
||||||
|
@ -11,9 +11,8 @@
|
|||||||
* GNU Lesser General Public License.
|
* GNU Lesser General Public License.
|
||||||
* %End-Header%
|
* %End-Header%
|
||||||
*/
|
*/
|
||||||
|
#ifndef BLKID_PROBE_H
|
||||||
#ifndef _BLKID_PROBE_H
|
#define BLKID_PROBE_H 1
|
||||||
#define _BLKID_PROBE_H
|
|
||||||
|
|
||||||
#include <linux/types.h>
|
#include <linux/types.h>
|
||||||
|
|
||||||
|
@ -6,8 +6,8 @@
|
|||||||
* instead. This makes upgrade between e2fsprogs versions easy.
|
* instead. This makes upgrade between e2fsprogs versions easy.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef __E2FSBB_H__
|
#ifndef E2FSBB_H
|
||||||
#define __E2FSBB_H__ 1
|
#define E2FSBB_H 1
|
||||||
|
|
||||||
#include "libbb.h"
|
#include "libbb.h"
|
||||||
|
|
||||||
@ -40,4 +40,4 @@ typedef long errcode_t;
|
|||||||
#define WORDS_BIGENDIAN 1
|
#define WORDS_BIGENDIAN 1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif /* __E2FSBB_H__ */
|
#endif
|
||||||
|
@ -13,9 +13,8 @@
|
|||||||
*
|
*
|
||||||
* Copyright (C) 1991, 1992 Linus Torvalds
|
* Copyright (C) 1991, 1992 Linus Torvalds
|
||||||
*/
|
*/
|
||||||
|
#ifndef LINUX_EXT2_FS_H
|
||||||
#ifndef _LINUX_EXT2_FS_H
|
#define LINUX_EXT2_FS_H 1
|
||||||
#define _LINUX_EXT2_FS_H
|
|
||||||
|
|
||||||
#include "ext2_types.h" /* Changed from linux/types.h */
|
#include "ext2_types.h" /* Changed from linux/types.h */
|
||||||
|
|
||||||
@ -567,4 +566,4 @@ struct ext2_dir_entry_2 {
|
|||||||
#define EXT2_DIR_REC_LEN(name_len) (((name_len) + 8 + EXT2_DIR_ROUND) & \
|
#define EXT2_DIR_REC_LEN(name_len) (((name_len) + 8 + EXT2_DIR_ROUND) & \
|
||||||
~EXT2_DIR_ROUND)
|
~EXT2_DIR_ROUND)
|
||||||
|
|
||||||
#endif /* _LINUX_EXT2_FS_H */
|
#endif
|
||||||
|
@ -9,9 +9,8 @@
|
|||||||
* License.
|
* License.
|
||||||
* %End-Header%
|
* %End-Header%
|
||||||
*/
|
*/
|
||||||
|
#ifndef EXT2FS_EXT2_IO_H
|
||||||
#ifndef _EXT2FS_EXT2_IO_H
|
#define EXT2FS_EXT2_IO_H 1
|
||||||
#define _EXT2FS_EXT2_IO_H
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* ext2_loff_t is defined here since unix_io.c needs it.
|
* ext2_loff_t is defined here since unix_io.c needs it.
|
||||||
@ -110,5 +109,4 @@ extern void (*test_io_cb_write_blk)
|
|||||||
extern void (*test_io_cb_set_blksize)
|
extern void (*test_io_cb_set_blksize)
|
||||||
(int blksize, errcode_t err);
|
(int blksize, errcode_t err);
|
||||||
|
|
||||||
#endif /* _EXT2FS_EXT2_IO_H */
|
#endif
|
||||||
|
|
||||||
|
@ -9,9 +9,8 @@
|
|||||||
* License.
|
* License.
|
||||||
* %End-Header%
|
* %End-Header%
|
||||||
*/
|
*/
|
||||||
|
#ifndef EXT2FS_EXT2FS_H
|
||||||
#ifndef _EXT2FS_EXT2FS_H
|
#define EXT2FS_EXT2FS_H 1
|
||||||
#define _EXT2FS_EXT2FS_H
|
|
||||||
|
|
||||||
|
|
||||||
#define EXT2FS_ATTR(x)
|
#define EXT2FS_ATTR(x)
|
||||||
@ -920,4 +919,4 @@ extern blk_t ext2fs_inode_data_blocks(ext2_filsys fs,
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif /* _EXT2FS_EXT2FS_H */
|
#endif
|
||||||
|
@ -13,9 +13,8 @@
|
|||||||
* Definitions for transaction data structures for the buffer cache
|
* Definitions for transaction data structures for the buffer cache
|
||||||
* filesystem journaling support.
|
* filesystem journaling support.
|
||||||
*/
|
*/
|
||||||
|
#ifndef LINUX_JBD_H
|
||||||
#ifndef _LINUX_JBD_H
|
#define LINUX_JBD_H 1
|
||||||
#define _LINUX_JBD_H
|
|
||||||
|
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <linux/types.h>
|
#include <linux/types.h>
|
||||||
@ -233,4 +232,4 @@ extern void journal_brelse_array(struct buffer_head *b[], int n);
|
|||||||
extern void journal_destroy_revoke(journal_t *);
|
extern void journal_destroy_revoke(journal_t *);
|
||||||
|
|
||||||
|
|
||||||
#endif /* _LINUX_JBD_H */
|
#endif
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/* vi: set sw=4 ts=4: */
|
/* vi: set sw=4 ts=4: */
|
||||||
#ifndef _LINUX_LIST_H
|
#ifndef LINUX_LIST_H
|
||||||
#define _LINUX_LIST_H
|
#define LINUX_LIST_H 1
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Simple doubly linked list implementation.
|
* Simple doubly linked list implementation.
|
||||||
|
@ -32,9 +32,8 @@
|
|||||||
* DAMAGE.
|
* DAMAGE.
|
||||||
* %End-Header%
|
* %End-Header%
|
||||||
*/
|
*/
|
||||||
|
#ifndef UUID_UUID_H
|
||||||
#ifndef _UUID_UUID_H
|
#define UUID_UUID_H 1
|
||||||
#define _UUID_UUID_H
|
|
||||||
|
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
|
@ -4,14 +4,12 @@
|
|||||||
*
|
*
|
||||||
* Licensed under the GPL v2 or later, see the file LICENSE in this tarball.
|
* Licensed under the GPL v2 or later, see the file LICENSE in this tarball.
|
||||||
*/
|
*/
|
||||||
#ifndef _BB_INTERNAL_H_
|
#ifndef BUSYBOX_H
|
||||||
#define _BB_INTERNAL_H_ 1
|
#define BUSYBOX_H 1
|
||||||
|
|
||||||
#include "libbb.h"
|
#include "libbb.h"
|
||||||
|
|
||||||
#if __GNUC_PREREQ(4,1)
|
PUSH_AND_SET_FUNCTION_VISIBILITY_TO_HIDDEN
|
||||||
# pragma GCC visibility push(hidden)
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* order matters: used as index into "install_dir[]" in appletlib.c */
|
/* order matters: used as index into "install_dir[]" in appletlib.c */
|
||||||
typedef enum bb_install_loc_t {
|
typedef enum bb_install_loc_t {
|
||||||
@ -71,8 +69,6 @@ int lbb_main(char **argv);
|
|||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if __GNUC_PREREQ(4,1)
|
POP_SAVED_FUNCTION_VISIBILITY
|
||||||
# pragma GCC visibility pop
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif /* _BB_INTERNAL_H_ */
|
#endif
|
||||||
|
@ -1,8 +1,6 @@
|
|||||||
/* vi: set sw=4 ts=4: */
|
/* vi: set sw=4 ts=4: */
|
||||||
|
|
||||||
#if __GNUC_PREREQ(4,1)
|
PUSH_AND_SET_FUNCTION_VISIBILITY_TO_HIDDEN
|
||||||
# pragma GCC visibility push(hidden)
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#define F_IGNORE 0x01 /* %_A */
|
#define F_IGNORE 0x01 /* %_A */
|
||||||
#define F_SETREP 0x02 /* rep count set, not default */
|
#define F_SETREP 0x02 /* rep count set, not default */
|
||||||
@ -55,6 +53,4 @@ dumper_t* alloc_dumper(void) FAST_FUNC;
|
|||||||
extern void bb_dump_add(dumper_t *dumper, const char *fmt) FAST_FUNC;
|
extern void bb_dump_add(dumper_t *dumper, const char *fmt) FAST_FUNC;
|
||||||
extern int bb_dump_dump(dumper_t *dumper, char **argv) FAST_FUNC;
|
extern int bb_dump_dump(dumper_t *dumper, char **argv) FAST_FUNC;
|
||||||
|
|
||||||
#if __GNUC_PREREQ(4,1)
|
POP_SAVED_FUNCTION_VISIBILITY
|
||||||
# pragma GCC visibility pop
|
|
||||||
#endif
|
|
||||||
|
@ -15,18 +15,15 @@
|
|||||||
You should have received a copy of the GNU Lesser General Public
|
You should have received a copy of the GNU Lesser General Public
|
||||||
License along with the GNU C Library; if not, write to the Free
|
License along with the GNU C Library; if not, write to the Free
|
||||||
Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
||||||
02111-1307 USA. */
|
02111-1307 USA.
|
||||||
|
*/
|
||||||
/*
|
/*
|
||||||
* POSIX Standard: 9.2.1 Group Database Access <grp.h>
|
* POSIX Standard: 9.2.1 Group Database Access <grp.h>
|
||||||
*/
|
*/
|
||||||
|
#ifndef BB_GRP_H
|
||||||
|
#define BB_GRP_H 1
|
||||||
|
|
||||||
#ifndef BB_GRP_H
|
PUSH_AND_SET_FUNCTION_VISIBILITY_TO_HIDDEN
|
||||||
#define BB_GRP_H 1
|
|
||||||
|
|
||||||
#if __GNUC_PREREQ(4,1)
|
|
||||||
# pragma GCC visibility push(hidden)
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* This file is #included after #include <grp.h>
|
/* This file is #included after #include <grp.h>
|
||||||
* We will use libc-defined structures, but will #define function names
|
* We will use libc-defined structures, but will #define function names
|
||||||
@ -115,8 +112,6 @@ extern int getgrouplist(const char *__user, gid_t __group,
|
|||||||
of which USER is a member. Also include GROUP. */
|
of which USER is a member. Also include GROUP. */
|
||||||
extern int initgroups(const char *__user, gid_t __group);
|
extern int initgroups(const char *__user, gid_t __group);
|
||||||
|
|
||||||
#if __GNUC_PREREQ(4,1)
|
POP_SAVED_FUNCTION_VISIBILITY
|
||||||
# pragma GCC visibility pop
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -7,8 +7,8 @@
|
|||||||
*
|
*
|
||||||
* Licensed under the GPL version 2, see the file LICENSE in this tarball.
|
* Licensed under the GPL version 2, see the file LICENSE in this tarball.
|
||||||
*/
|
*/
|
||||||
#ifndef __LIBBUSYBOX_H__
|
#ifndef LIBBB_H
|
||||||
#define __LIBBUSYBOX_H__ 1
|
#define LIBBB_H 1
|
||||||
|
|
||||||
#include "platform.h"
|
#include "platform.h"
|
||||||
|
|
||||||
@ -110,9 +110,7 @@ int sysinfo(struct sysinfo* info);
|
|||||||
|
|
||||||
/* Make all declarations hidden (-fvisibility flag only affects definitions) */
|
/* Make all declarations hidden (-fvisibility flag only affects definitions) */
|
||||||
/* (don't include system headers after this until corresponding pop!) */
|
/* (don't include system headers after this until corresponding pop!) */
|
||||||
#if __GNUC_PREREQ(4,1)
|
PUSH_AND_SET_FUNCTION_VISIBILITY_TO_HIDDEN
|
||||||
# pragma GCC visibility push(hidden)
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
#if ENABLE_USE_BB_PWD_GRP
|
#if ENABLE_USE_BB_PWD_GRP
|
||||||
@ -1532,9 +1530,6 @@ extern const char bb_default_login_shell[];
|
|||||||
#define ARRAY_SIZE(x) ((unsigned)(sizeof(x) / sizeof((x)[0])))
|
#define ARRAY_SIZE(x) ((unsigned)(sizeof(x) / sizeof((x)[0])))
|
||||||
|
|
||||||
|
|
||||||
#if __GNUC_PREREQ(4,1)
|
POP_SAVED_FUNCTION_VISIBILITY
|
||||||
# pragma GCC visibility pop
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
#endif /* __LIBBUSYBOX_H__ */
|
|
||||||
|
@ -4,8 +4,8 @@
|
|||||||
|
|
||||||
Licensed under the GPL v2 or later, see the file LICENSE in this tarball.
|
Licensed under the GPL v2 or later, see the file LICENSE in this tarball.
|
||||||
*/
|
*/
|
||||||
#ifndef __PLATFORM_H
|
#ifndef BB_PLATFORM_H
|
||||||
#define __PLATFORM_H 1
|
#define BB_PLATFORM_H 1
|
||||||
|
|
||||||
/* Convenience macros to test the version of gcc. */
|
/* Convenience macros to test the version of gcc. */
|
||||||
#undef __GNUC_PREREQ
|
#undef __GNUC_PREREQ
|
||||||
@ -110,6 +110,16 @@
|
|||||||
# define FAST_FUNC
|
# define FAST_FUNC
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/* Make all declarations hidden (-fvisibility flag only affects definitions) */
|
||||||
|
/* (don't include system headers after this until corresponding pop!) */
|
||||||
|
#if __GNUC_PREREQ(4,1)
|
||||||
|
# define PUSH_AND_SET_FUNCTION_VISIBILITY_TO_HIDDEN _Pragma("GCC visibility push(hidden)")
|
||||||
|
# define POP_SAVED_FUNCTION_VISIBILITY _Pragma("GCC visibility pop")
|
||||||
|
#else
|
||||||
|
# define PUSH_AND_SET_FUNCTION_VISIBILITY_TO_HIDDEN
|
||||||
|
# define POP_SAVED_FUNCTION_VISIBILITY
|
||||||
|
#endif
|
||||||
|
|
||||||
/* ---- Endian Detection ------------------------------------ */
|
/* ---- Endian Detection ------------------------------------ */
|
||||||
|
|
||||||
#if (defined __digital__ && defined __unix__)
|
#if (defined __digital__ && defined __unix__)
|
||||||
@ -371,4 +381,4 @@ static ALWAYS_INLINE char* strchrnul(const char *s, char c)
|
|||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif /* platform.h */
|
#endif
|
||||||
|
@ -21,12 +21,10 @@
|
|||||||
* POSIX Standard: 9.2.2 User Database Access <pwd.h>
|
* POSIX Standard: 9.2.2 User Database Access <pwd.h>
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef BB_PWD_H
|
#ifndef BB_PWD_H
|
||||||
#define BB_PWD_H 1
|
#define BB_PWD_H 1
|
||||||
|
|
||||||
#if __GNUC_PREREQ(4,1)
|
PUSH_AND_SET_FUNCTION_VISIBILITY_TO_HIDDEN
|
||||||
# pragma GCC visibility push(hidden)
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* This file is #included after #include <pwd.h>
|
/* This file is #included after #include <pwd.h>
|
||||||
* We will use libc-defined structures, but will #define function names
|
* We will use libc-defined structures, but will #define function names
|
||||||
@ -107,8 +105,6 @@ extern int fgetpwent_r(FILE *__restrict __stream,
|
|||||||
will expect, but this need not be the format of the password file. */
|
will expect, but this need not be the format of the password file. */
|
||||||
/* UNUSED extern int getpw(uid_t __uid, char *__buffer); */
|
/* UNUSED extern int getpw(uid_t __uid, char *__buffer); */
|
||||||
|
|
||||||
#if __GNUC_PREREQ(4,1)
|
POP_SAVED_FUNCTION_VISIBILITY
|
||||||
# pragma GCC visibility pop
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif /* pwd.h */
|
#endif /* pwd.h */
|
||||||
|
@ -5,13 +5,11 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef BB_RTC_H
|
#ifndef BB_RTC_H
|
||||||
#define BB_RTC_H
|
#define BB_RTC_H 1
|
||||||
|
|
||||||
#include "libbb.h"
|
#include "libbb.h"
|
||||||
|
|
||||||
#if __GNUC_PREREQ(4,1)
|
PUSH_AND_SET_FUNCTION_VISIBILITY_TO_HIDDEN
|
||||||
# pragma GCC visibility push(hidden)
|
|
||||||
#endif
|
|
||||||
|
|
||||||
extern int rtc_adjtime_is_utc(void) FAST_FUNC;
|
extern int rtc_adjtime_is_utc(void) FAST_FUNC;
|
||||||
extern int rtc_xopen(const char **default_rtc, int flags) FAST_FUNC;
|
extern int rtc_xopen(const char **default_rtc, int flags) FAST_FUNC;
|
||||||
@ -71,8 +69,6 @@ struct linux_rtc_wkalrm {
|
|||||||
#define RTC_AF 0x20
|
#define RTC_AF 0x20
|
||||||
#define RTC_UF 0x10
|
#define RTC_UF 0x10
|
||||||
|
|
||||||
#if __GNUC_PREREQ(4,1)
|
POP_SAVED_FUNCTION_VISIBILITY
|
||||||
# pragma GCC visibility pop
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -22,9 +22,7 @@
|
|||||||
#ifndef BB_SHADOW_H
|
#ifndef BB_SHADOW_H
|
||||||
#define BB_SHADOW_H 1
|
#define BB_SHADOW_H 1
|
||||||
|
|
||||||
#if __GNUC_PREREQ(4,1)
|
PUSH_AND_SET_FUNCTION_VISIBILITY_TO_HIDDEN
|
||||||
# pragma GCC visibility push(hidden)
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* This file is #included after #include <shadow.h>
|
/* This file is #included after #include <shadow.h>
|
||||||
* We will use libc-defined structures, but will #define function names
|
* We will use libc-defined structures, but will #define function names
|
||||||
@ -97,8 +95,6 @@ extern int lckpwdf(void);
|
|||||||
/* Unlock password file */
|
/* Unlock password file */
|
||||||
extern int ulckpwdf(void);
|
extern int ulckpwdf(void);
|
||||||
|
|
||||||
#if __GNUC_PREREQ(4,1)
|
POP_SAVED_FUNCTION_VISIBILITY
|
||||||
# pragma GCC visibility pop
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif /* shadow.h */
|
#endif /* shadow.h */
|
||||||
|
@ -1,10 +1,8 @@
|
|||||||
/* vi: set sw=4 ts=4: */
|
/* vi: set sw=4 ts=4: */
|
||||||
#ifndef __UNARCHIVE_H__
|
#ifndef UNARCHIVE_H
|
||||||
#define __UNARCHIVE_H__
|
#define UNARCHIVE_H 1
|
||||||
|
|
||||||
#if __GNUC_PREREQ(4,1)
|
PUSH_AND_SET_FUNCTION_VISIBILITY_TO_HIDDEN
|
||||||
# pragma GCC visibility push(hidden)
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#define ARCHIVE_PRESERVE_DATE 1
|
#define ARCHIVE_PRESERVE_DATE 1
|
||||||
#define ARCHIVE_CREATE_LEADING_DIRS 2
|
#define ARCHIVE_CREATE_LEADING_DIRS 2
|
||||||
@ -150,8 +148,6 @@ void open_transformer(int src_fd, const char *transform_prog) FAST_FUNC;
|
|||||||
#define open_transformer(fd, transformer, transform_prog) open_transformer(fd, transform_prog)
|
#define open_transformer(fd, transformer, transform_prog) open_transformer(fd, transform_prog)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if __GNUC_PREREQ(4,1)
|
POP_SAVED_FUNCTION_VISIBILITY
|
||||||
# pragma GCC visibility pop
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -9,9 +9,8 @@
|
|||||||
* or
|
* or
|
||||||
* |<5 spaces>"\ntext with tabs"....
|
* |<5 spaces>"\ntext with tabs"....
|
||||||
*/
|
*/
|
||||||
|
#ifndef BB_USAGE_H
|
||||||
#ifndef __BB_USAGE_H__
|
#define BB_USAGE_H 1
|
||||||
#define __BB_USAGE_H__
|
|
||||||
|
|
||||||
|
|
||||||
#define NOUSAGE_STR "\b"
|
#define NOUSAGE_STR "\b"
|
||||||
@ -4921,4 +4920,5 @@ USE_FEATURE_TUNCTL_UG( \
|
|||||||
"\nWith no -q, runs continuously monitoring for ARP conflicts," \
|
"\nWith no -q, runs continuously monitoring for ARP conflicts," \
|
||||||
"\nexits only on I/O errors (link down etc)" \
|
"\nexits only on I/O errors (link down etc)" \
|
||||||
|
|
||||||
#endif /* __BB_USAGE_H__ */
|
|
||||||
|
#endif
|
||||||
|
@ -7,9 +7,7 @@
|
|||||||
* Licensed under GPLv2, see file LICENSE in this tarball for details.
|
* Licensed under GPLv2, see file LICENSE in this tarball for details.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#if __GNUC_PREREQ(4,1)
|
PUSH_AND_SET_FUNCTION_VISIBILITY_TO_HIDDEN
|
||||||
# pragma GCC visibility push(hidden)
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* Provides extern declarations of functions */
|
/* Provides extern declarations of functions */
|
||||||
#define DECLARE_STR_CONV(type, T, UT) \
|
#define DECLARE_STR_CONV(type, T, UT) \
|
||||||
@ -171,6 +169,4 @@ uint32_t bb_strtou32(const char *arg, char **endp, int base)
|
|||||||
|
|
||||||
double bb_strtod(const char *arg, char **endp) FAST_FUNC;
|
double bb_strtod(const char *arg, char **endp) FAST_FUNC;
|
||||||
|
|
||||||
#if __GNUC_PREREQ(4,1)
|
POP_SAVED_FUNCTION_VISIBILITY
|
||||||
# pragma GCC visibility pop
|
|
||||||
#endif
|
|
||||||
|
@ -8,20 +8,16 @@
|
|||||||
*
|
*
|
||||||
* Licensed under GPLv2 or later, see file License in this tarball for details.
|
* Licensed under GPLv2 or later, see file License in this tarball for details.
|
||||||
*/
|
*/
|
||||||
#ifndef __BB_REGEX__
|
#ifndef BB_REGEX_H
|
||||||
#define __BB_REGEX__
|
#define BB_REGEX_H 1
|
||||||
|
|
||||||
#include <regex.h>
|
#include <regex.h>
|
||||||
|
|
||||||
#if __GNUC_PREREQ(4,1)
|
PUSH_AND_SET_FUNCTION_VISIBILITY_TO_HIDDEN
|
||||||
# pragma GCC visibility push(hidden)
|
|
||||||
#endif
|
|
||||||
|
|
||||||
char* regcomp_or_errmsg(regex_t *preg, const char *regex, int cflags) FAST_FUNC;
|
char* regcomp_or_errmsg(regex_t *preg, const char *regex, int cflags) FAST_FUNC;
|
||||||
void xregcomp(regex_t *preg, const char *regex, int cflags) FAST_FUNC;
|
void xregcomp(regex_t *preg, const char *regex, int cflags) FAST_FUNC;
|
||||||
|
|
||||||
#if __GNUC_PREREQ(4,1)
|
POP_SAVED_FUNCTION_VISIBILITY
|
||||||
# pragma GCC visibility pop
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -6,14 +6,12 @@
|
|||||||
* Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
|
* Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef __MODUTILS_H__
|
#ifndef MODUTILS_H
|
||||||
#define __MODUTILS_H__
|
#define MODUTILS_H 1
|
||||||
|
|
||||||
#include "libbb.h"
|
#include "libbb.h"
|
||||||
|
|
||||||
#if __GNUC_PREREQ(4,1)
|
PUSH_AND_SET_FUNCTION_VISIBILITY_TO_HIDDEN
|
||||||
# pragma GCC visibility push(hidden)
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* linux/include/linux/module.h has 64, but this is also used
|
/* linux/include/linux/module.h has 64, but this is also used
|
||||||
* internally for the maximum alias name length, which can be quite long */
|
* internally for the maximum alias name length, which can be quite long */
|
||||||
@ -62,8 +60,6 @@ int FAST_FUNC bb_delete_module(const char *module, unsigned int flags);
|
|||||||
int FAST_FUNC bb_init_module_24(const char *module, const char *options);
|
int FAST_FUNC bb_init_module_24(const char *module, const char *options);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if __GNUC_PREREQ(4,1)
|
POP_SAVED_FUNCTION_VISIBILITY
|
||||||
# pragma GCC visibility pop
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -8,9 +8,7 @@
|
|||||||
* Licensed under GPL version 2, see file LICENSE in this tarball for details.
|
* Licensed under GPL version 2, see file LICENSE in this tarball for details.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#if __GNUC_PREREQ(4,1)
|
PUSH_AND_SET_FUNCTION_VISIBILITY_TO_HIDDEN
|
||||||
# pragma GCC visibility push(hidden)
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* opaque structure */
|
/* opaque structure */
|
||||||
struct isrv_state_t;
|
struct isrv_state_t;
|
||||||
@ -36,6 +34,4 @@ void isrv_run(
|
|||||||
int linger_timeout
|
int linger_timeout
|
||||||
);
|
);
|
||||||
|
|
||||||
#if __GNUC_PREREQ(4,1)
|
POP_SAVED_FUNCTION_VISIBILITY
|
||||||
# pragma GCC visibility pop
|
|
||||||
#endif
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/* vi: set sw=4 ts=4: */
|
/* vi: set sw=4 ts=4: */
|
||||||
#ifndef _IP_COMMON_H
|
#ifndef IP_COMMON_H
|
||||||
#define _IP_COMMON_H 1
|
#define IP_COMMON_H 1
|
||||||
|
|
||||||
#include "libbb.h"
|
#include "libbb.h"
|
||||||
#include <asm/types.h>
|
#include <asm/types.h>
|
||||||
@ -13,9 +13,7 @@
|
|||||||
#include <linux/if_link.h>
|
#include <linux/if_link.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if __GNUC_PREREQ(4,1)
|
PUSH_AND_SET_FUNCTION_VISIBILITY_TO_HIDDEN
|
||||||
# pragma GCC visibility push(hidden)
|
|
||||||
#endif
|
|
||||||
|
|
||||||
extern char **ip_parse_common_args(char **argv);
|
extern char **ip_parse_common_args(char **argv);
|
||||||
extern int print_neigh(struct sockaddr_nl *who, struct nlmsghdr *n, void *arg);
|
extern int print_neigh(struct sockaddr_nl *who, struct nlmsghdr *n, void *arg);
|
||||||
@ -34,8 +32,6 @@ extern int do_ipmonitor(char **argv);
|
|||||||
extern int do_multiaddr(char **argv);
|
extern int do_multiaddr(char **argv);
|
||||||
extern int do_multiroute(char **argv);
|
extern int do_multiroute(char **argv);
|
||||||
|
|
||||||
#if __GNUC_PREREQ(4,1)
|
POP_SAVED_FUNCTION_VISIBILITY
|
||||||
# pragma GCC visibility pop
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif /* ip_common.h */
|
#endif
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/* vi: set sw=4 ts=4: */
|
/* vi: set sw=4 ts=4: */
|
||||||
#ifndef __LIBNETLINK_H__
|
#ifndef LIBNETLINK_H
|
||||||
#define __LIBNETLINK_H__ 1
|
#define LIBNETLINK_H 1
|
||||||
|
|
||||||
#include <linux/types.h>
|
#include <linux/types.h>
|
||||||
/* We need linux/types.h because older kernels use __u32 etc
|
/* We need linux/types.h because older kernels use __u32 etc
|
||||||
@ -8,10 +8,7 @@
|
|||||||
#include <linux/netlink.h>
|
#include <linux/netlink.h>
|
||||||
#include <linux/rtnetlink.h>
|
#include <linux/rtnetlink.h>
|
||||||
|
|
||||||
|
PUSH_AND_SET_FUNCTION_VISIBILITY_TO_HIDDEN
|
||||||
#if __GNUC_PREREQ(4,1)
|
|
||||||
# pragma GCC visibility push(hidden)
|
|
||||||
#endif
|
|
||||||
|
|
||||||
struct rtnl_handle
|
struct rtnl_handle
|
||||||
{
|
{
|
||||||
@ -48,8 +45,6 @@ extern int rta_addattr_l(struct rtattr *rta, int maxlen, int type, void *data, i
|
|||||||
|
|
||||||
extern int parse_rtattr(struct rtattr *tb[], int max, struct rtattr *rta, int len) FAST_FUNC;
|
extern int parse_rtattr(struct rtattr *tb[], int max, struct rtattr *rta, int len) FAST_FUNC;
|
||||||
|
|
||||||
#if __GNUC_PREREQ(4,1)
|
POP_SAVED_FUNCTION_VISIBILITY
|
||||||
# pragma GCC visibility pop
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif /* __LIBNETLINK_H__ */
|
#endif
|
||||||
|
@ -1,10 +1,8 @@
|
|||||||
/* vi: set sw=4 ts=4: */
|
/* vi: set sw=4 ts=4: */
|
||||||
#ifndef __LL_MAP_H__
|
#ifndef LL_MAP_H
|
||||||
#define __LL_MAP_H__ 1
|
#define LL_MAP_H 1
|
||||||
|
|
||||||
#if __GNUC_PREREQ(4,1)
|
PUSH_AND_SET_FUNCTION_VISIBILITY_TO_HIDDEN
|
||||||
# pragma GCC visibility push(hidden)
|
|
||||||
#endif
|
|
||||||
|
|
||||||
int ll_remember_index(const struct sockaddr_nl *who, struct nlmsghdr *n, void *arg);
|
int ll_remember_index(const struct sockaddr_nl *who, struct nlmsghdr *n, void *arg);
|
||||||
int ll_init_map(struct rtnl_handle *rth);
|
int ll_init_map(struct rtnl_handle *rth);
|
||||||
@ -14,8 +12,6 @@ const char *ll_idx_n2a(int idx, char *buf);
|
|||||||
/* int ll_index_to_type(int idx); */
|
/* int ll_index_to_type(int idx); */
|
||||||
unsigned ll_index_to_flags(int idx);
|
unsigned ll_index_to_flags(int idx);
|
||||||
|
|
||||||
#if __GNUC_PREREQ(4,1)
|
POP_SAVED_FUNCTION_VISIBILITY
|
||||||
# pragma GCC visibility pop
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif /* __LL_MAP_H__ */
|
#endif
|
||||||
|
@ -1,10 +1,8 @@
|
|||||||
/* vi: set sw=4 ts=4: */
|
/* vi: set sw=4 ts=4: */
|
||||||
#ifndef RT_NAMES_H_
|
#ifndef RT_NAMES_H
|
||||||
#define RT_NAMES_H_ 1
|
#define RT_NAMES_H 1
|
||||||
|
|
||||||
#if __GNUC_PREREQ(4,1)
|
PUSH_AND_SET_FUNCTION_VISIBILITY_TO_HIDDEN
|
||||||
# pragma GCC visibility push(hidden)
|
|
||||||
#endif
|
|
||||||
|
|
||||||
extern const char* rtnl_rtprot_n2a(int id, char *buf, int len);
|
extern const char* rtnl_rtprot_n2a(int id, char *buf, int len);
|
||||||
extern const char* rtnl_rtscope_n2a(int id, char *buf, int len);
|
extern const char* rtnl_rtscope_n2a(int id, char *buf, int len);
|
||||||
@ -17,19 +15,15 @@ extern int rtnl_rtrealm_a2n(uint32_t *id, char *arg);
|
|||||||
extern int rtnl_dsfield_a2n(uint32_t *id, char *arg);
|
extern int rtnl_dsfield_a2n(uint32_t *id, char *arg);
|
||||||
extern int rtnl_rttable_a2n(uint32_t *id, char *arg);
|
extern int rtnl_rttable_a2n(uint32_t *id, char *arg);
|
||||||
|
|
||||||
|
|
||||||
extern const char* ll_type_n2a(int type, char *buf, int len);
|
extern const char* ll_type_n2a(int type, char *buf, int len);
|
||||||
|
|
||||||
extern const char* ll_addr_n2a(unsigned char *addr, int alen, int type,
|
extern const char* ll_addr_n2a(unsigned char *addr, int alen, int type,
|
||||||
char *buf, int blen);
|
char *buf, int blen);
|
||||||
extern int ll_addr_a2n(unsigned char *lladdr, int len, char *arg);
|
extern int ll_addr_a2n(unsigned char *lladdr, int len, char *arg);
|
||||||
|
|
||||||
|
|
||||||
extern const char* ll_proto_n2a(unsigned short id, char *buf, int len);
|
extern const char* ll_proto_n2a(unsigned short id, char *buf, int len);
|
||||||
extern int ll_proto_a2n(unsigned short *id, char *buf);
|
extern int ll_proto_a2n(unsigned short *id, char *buf);
|
||||||
|
|
||||||
#if __GNUC_PREREQ(4,1)
|
POP_SAVED_FUNCTION_VISIBILITY
|
||||||
# pragma GCC visibility pop
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -1,18 +1,14 @@
|
|||||||
/* vi: set sw=4 ts=4: */
|
/* vi: set sw=4 ts=4: */
|
||||||
#ifndef __RTM_MAP_H__
|
#ifndef RTM_MAP_H
|
||||||
#define __RTM_MAP_H__ 1
|
#define RTM_MAP_H 1
|
||||||
|
|
||||||
#if __GNUC_PREREQ(4,1)
|
PUSH_AND_SET_FUNCTION_VISIBILITY_TO_HIDDEN
|
||||||
# pragma GCC visibility push(hidden)
|
|
||||||
#endif
|
|
||||||
|
|
||||||
const char *rtnl_rtntype_n2a(int id, char *buf, int len);
|
const char *rtnl_rtntype_n2a(int id, char *buf, int len);
|
||||||
int rtnl_rtntype_a2n(int *id, char *arg);
|
int rtnl_rtntype_a2n(int *id, char *arg);
|
||||||
|
|
||||||
int get_rt_realms(uint32_t *realms, char *arg);
|
int get_rt_realms(uint32_t *realms, char *arg);
|
||||||
|
|
||||||
#if __GNUC_PREREQ(4,1)
|
POP_SAVED_FUNCTION_VISIBILITY
|
||||||
# pragma GCC visibility pop
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif /* __RTM_MAP_H__ */
|
#endif
|
||||||
|
@ -1,14 +1,12 @@
|
|||||||
/* vi: set sw=4 ts=4: */
|
/* vi: set sw=4 ts=4: */
|
||||||
#ifndef __UTILS_H__
|
#ifndef UTILS_H
|
||||||
#define __UTILS_H__ 1
|
#define UTILS_H 1
|
||||||
|
|
||||||
#include "libnetlink.h"
|
#include "libnetlink.h"
|
||||||
#include "ll_map.h"
|
#include "ll_map.h"
|
||||||
#include "rtm_map.h"
|
#include "rtm_map.h"
|
||||||
|
|
||||||
#if __GNUC_PREREQ(4,1)
|
PUSH_AND_SET_FUNCTION_VISIBILITY_TO_HIDDEN
|
||||||
# pragma GCC visibility push(hidden)
|
|
||||||
#endif
|
|
||||||
|
|
||||||
extern family_t preferred_family;
|
extern family_t preferred_family;
|
||||||
extern smallint show_stats; /* UNUSED */
|
extern smallint show_stats; /* UNUSED */
|
||||||
@ -87,8 +85,6 @@ int dnet_pton(int af, const char *src, void *addr);
|
|||||||
const char *ipx_ntop(int af, const void *addr, char *str, size_t len);
|
const char *ipx_ntop(int af, const void *addr, char *str, size_t len);
|
||||||
int ipx_pton(int af, const char *src, void *addr);
|
int ipx_pton(int af, const char *src, void *addr);
|
||||||
|
|
||||||
#if __GNUC_PREREQ(4,1)
|
POP_SAVED_FUNCTION_VISIBILITY
|
||||||
# pragma GCC visibility pop
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif /* __UTILS_H__ */
|
#endif
|
||||||
|
@ -7,9 +7,7 @@
|
|||||||
* Licensed under GPLv2, see file LICENSE in this tarball for details.
|
* Licensed under GPLv2, see file LICENSE in this tarball for details.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#if __GNUC_PREREQ(4,1)
|
PUSH_AND_SET_FUNCTION_VISIBILITY_TO_HIDDEN
|
||||||
# pragma GCC visibility push(hidden)
|
|
||||||
#endif
|
|
||||||
|
|
||||||
struct hcc {
|
struct hcc {
|
||||||
char *ip;
|
char *ip;
|
||||||
@ -32,6 +30,4 @@ void ipsvd_perhost_remove(int pid);
|
|||||||
//unsigned ipsvd_perhost_setpid(int pid);
|
//unsigned ipsvd_perhost_setpid(int pid);
|
||||||
//void ipsvd_perhost_free(void);
|
//void ipsvd_perhost_free(void);
|
||||||
|
|
||||||
#if __GNUC_PREREQ(4,1)
|
POP_SAVED_FUNCTION_VISIBILITY
|
||||||
# pragma GCC visibility pop
|
|
||||||
#endif
|
|
||||||
|
@ -6,17 +6,14 @@
|
|||||||
*
|
*
|
||||||
* Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
|
* Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
|
||||||
*/
|
*/
|
||||||
|
#ifndef UDHCP_COMMON_H
|
||||||
#ifndef _COMMON_H
|
#define UDHCP_COMMON_H 1
|
||||||
#define _COMMON_H
|
|
||||||
|
|
||||||
#include "libbb.h"
|
#include "libbb.h"
|
||||||
#include <netinet/udp.h>
|
#include <netinet/udp.h>
|
||||||
#include <netinet/ip.h>
|
#include <netinet/ip.h>
|
||||||
|
|
||||||
#if __GNUC_PREREQ(4,1)
|
PUSH_AND_SET_FUNCTION_VISIBILITY_TO_HIDDEN
|
||||||
# pragma GCC visibility push(hidden)
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#define DEFAULT_SCRIPT CONFIG_UDHCPC_DEFAULT_SCRIPT
|
#define DEFAULT_SCRIPT CONFIG_UDHCPC_DEFAULT_SCRIPT
|
||||||
|
|
||||||
@ -103,8 +100,6 @@ int arpping(uint32_t test_ip, uint32_t from_ip, uint8_t *from_mac, const char *i
|
|||||||
# define DEBUG(str, args...) do {;} while (0)
|
# define DEBUG(str, args...) do {;} while (0)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if __GNUC_PREREQ(4,1)
|
POP_SAVED_FUNCTION_VISIBILITY
|
||||||
# pragma GCC visibility pop
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -1,12 +1,9 @@
|
|||||||
/* vi: set sw=4 ts=4: */
|
/* vi: set sw=4 ts=4: */
|
||||||
/* dhcpc.h */
|
/* dhcpc.h */
|
||||||
|
#ifndef UDHCP_DHCPC_H
|
||||||
|
#define UDHCP_DHCPC_H 1
|
||||||
|
|
||||||
#ifndef _DHCPC_H
|
PUSH_AND_SET_FUNCTION_VISIBILITY_TO_HIDDEN
|
||||||
#define _DHCPC_H
|
|
||||||
|
|
||||||
#if __GNUC_PREREQ(4,1)
|
|
||||||
# pragma GCC visibility push(hidden)
|
|
||||||
#endif
|
|
||||||
|
|
||||||
struct client_config_t {
|
struct client_config_t {
|
||||||
uint8_t arp[6]; /* Our arp address */
|
uint8_t arp[6]; /* Our arp address */
|
||||||
@ -49,8 +46,6 @@ int send_release(uint32_t server, uint32_t ciaddr) FAST_FUNC;
|
|||||||
|
|
||||||
int udhcp_recv_raw_packet(struct dhcpMessage *payload, int fd) FAST_FUNC;
|
int udhcp_recv_raw_packet(struct dhcpMessage *payload, int fd) FAST_FUNC;
|
||||||
|
|
||||||
#if __GNUC_PREREQ(4,1)
|
POP_SAVED_FUNCTION_VISIBILITY
|
||||||
# pragma GCC visibility pop
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -1,12 +1,9 @@
|
|||||||
/* vi: set sw=4 ts=4: */
|
/* vi: set sw=4 ts=4: */
|
||||||
/* dhcpd.h */
|
/* dhcpd.h */
|
||||||
|
#ifndef UDHCP_DHCPD_H
|
||||||
|
#define UDHCP_DHCPD_H 1
|
||||||
|
|
||||||
#ifndef _DHCPD_H
|
PUSH_AND_SET_FUNCTION_VISIBILITY_TO_HIDDEN
|
||||||
#define _DHCPD_H
|
|
||||||
|
|
||||||
#if __GNUC_PREREQ(4,1)
|
|
||||||
# pragma GCC visibility push(hidden)
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/************************************/
|
/************************************/
|
||||||
/* Defaults _you_ may want to tweak */
|
/* Defaults _you_ may want to tweak */
|
||||||
@ -134,8 +131,6 @@ void read_leases(const char *file) FAST_FUNC;
|
|||||||
struct option_set *find_option(struct option_set *opt_list, uint8_t code) FAST_FUNC;
|
struct option_set *find_option(struct option_set *opt_list, uint8_t code) FAST_FUNC;
|
||||||
|
|
||||||
|
|
||||||
#if __GNUC_PREREQ(4,1)
|
POP_SAVED_FUNCTION_VISIBILITY
|
||||||
# pragma GCC visibility pop
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -1,11 +1,9 @@
|
|||||||
/* vi: set sw=4 ts=4: */
|
/* vi: set sw=4 ts=4: */
|
||||||
/* options.h */
|
/* options.h */
|
||||||
#ifndef _OPTIONS_H
|
#ifndef UDHCP_OPTIONS_H
|
||||||
#define _OPTIONS_H
|
#define UDHCP_OPTIONS_H 1
|
||||||
|
|
||||||
#if __GNUC_PREREQ(4,1)
|
PUSH_AND_SET_FUNCTION_VISIBILITY_TO_HIDDEN
|
||||||
# pragma GCC visibility push(hidden)
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#define TYPE_MASK 0x0F
|
#define TYPE_MASK 0x0F
|
||||||
|
|
||||||
@ -111,8 +109,6 @@ char *dname_dec(const uint8_t *cstr, int clen, const char *pre) FAST_FUNC;
|
|||||||
uint8_t *dname_enc(const uint8_t *cstr, int clen, const char *src, int *retlen) FAST_FUNC;
|
uint8_t *dname_enc(const uint8_t *cstr, int clen, const char *src, int *retlen) FAST_FUNC;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if __GNUC_PREREQ(4,1)
|
POP_SAVED_FUNCTION_VISIBILITY
|
||||||
# pragma GCC visibility pop
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -25,9 +25,7 @@ OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
|||||||
ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#if __GNUC_PREREQ(4,1)
|
PUSH_AND_SET_FUNCTION_VISIBILITY_TO_HIDDEN
|
||||||
# pragma GCC visibility push(hidden)
|
|
||||||
#endif
|
|
||||||
|
|
||||||
extern unsigned byte_chr(char *s,unsigned n,int c);
|
extern unsigned byte_chr(char *s,unsigned n,int c);
|
||||||
|
|
||||||
@ -100,6 +98,4 @@ struct ERR_svstatus_must_be_20_bytes {
|
|||||||
char ERR_svstatus_must_be_20_bytes[sizeof(svstatus_t) == 20 ? 1 : -1];
|
char ERR_svstatus_must_be_20_bytes[sizeof(svstatus_t) == 20 ? 1 : -1];
|
||||||
};
|
};
|
||||||
|
|
||||||
#if __GNUC_PREREQ(4,1)
|
POP_SAVED_FUNCTION_VISIBILITY
|
||||||
# pragma GCC visibility pop
|
|
||||||
#endif
|
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
/* match.h - interface to shell ##/%% matching code */
|
/* match.h - interface to shell ##/%% matching code */
|
||||||
|
|
||||||
|
PUSH_AND_SET_FUNCTION_VISIBILITY_TO_HIDDEN
|
||||||
|
|
||||||
typedef char *(*scan_t)(char *string, char *match, bool zero);
|
typedef char *(*scan_t)(char *string, char *match, bool zero);
|
||||||
|
|
||||||
char *scanleft(char *string, char *match, bool zero);
|
char *scanleft(char *string, char *match, bool zero);
|
||||||
@ -20,3 +22,5 @@ static inline scan_t pick_scan(char op1, char op2, bool *zero)
|
|||||||
return op1 == op2 ? scanleft : scanright;
|
return op1 == op2 ? scanleft : scanright;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
POP_SAVED_FUNCTION_VISIBILITY
|
||||||
|
@ -72,8 +72,10 @@
|
|||||||
* below for the exact things that are available.
|
* below for the exact things that are available.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef _SHELL_MATH_
|
#ifndef SHELL_MATH_H
|
||||||
#define _SHELL_MATH_
|
#define SHELL_MATH_H 1
|
||||||
|
|
||||||
|
PUSH_AND_SET_FUNCTION_VISIBILITY_TO_HIDDEN
|
||||||
|
|
||||||
#if ENABLE_SH_MATH_SUPPORT_64
|
#if ENABLE_SH_MATH_SUPPORT_64
|
||||||
typedef long long arith_t;
|
typedef long long arith_t;
|
||||||
@ -96,4 +98,6 @@ typedef struct arith_eval_hooks {
|
|||||||
|
|
||||||
arith_t arith(const char *expr, int *perrcode, arith_eval_hooks_t*);
|
arith_t arith(const char *expr, int *perrcode, arith_eval_hooks_t*);
|
||||||
|
|
||||||
|
POP_SAVED_FUNCTION_VISIBILITY
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -21,14 +21,11 @@
|
|||||||
#include "libbb.h"
|
#include "libbb.h"
|
||||||
#include "volume_id.h"
|
#include "volume_id.h"
|
||||||
|
|
||||||
#if __GNUC_PREREQ(4,1)
|
PUSH_AND_SET_FUNCTION_VISIBILITY_TO_HIDDEN
|
||||||
# pragma GCC visibility push(hidden)
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#define dbg(...) ((void)0)
|
#define dbg(...) ((void)0)
|
||||||
/* #define dbg(...) bb_error_msg(__VA_ARGS__) */
|
/* #define dbg(...) bb_error_msg(__VA_ARGS__) */
|
||||||
|
|
||||||
|
|
||||||
/* volume_id.h */
|
/* volume_id.h */
|
||||||
|
|
||||||
#define VOLUME_ID_VERSION 48
|
#define VOLUME_ID_VERSION 48
|
||||||
@ -227,6 +224,4 @@ int volume_id_probe_udf(struct volume_id *id /*,uint64_t off*/);
|
|||||||
|
|
||||||
int volume_id_probe_xfs(struct volume_id *id /*,uint64_t off*/);
|
int volume_id_probe_xfs(struct volume_id *id /*,uint64_t off*/);
|
||||||
|
|
||||||
#if __GNUC_PREREQ(4,1)
|
POP_SAVED_FUNCTION_VISIBILITY
|
||||||
# pragma GCC visibility pop
|
|
||||||
#endif
|
|
||||||
|
Loading…
Reference in New Issue
Block a user