mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-08-09 19:29:15 +00:00
include: make all functions __hidden
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
This commit is contained in:
parent
9265ae82df
commit
2d7f5dcd9a
@ -21,7 +21,9 @@
|
|||||||
#ifndef _LXC_FEXECVE_H
|
#ifndef _LXC_FEXECVE_H
|
||||||
#define _LXC_FEXECVE_H
|
#define _LXC_FEXECVE_H
|
||||||
|
|
||||||
|
#include "../lxc/compiler.h"
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
extern int fexecve(int fd, char *const argv[], char *const envp[]);
|
|
||||||
|
__hidden extern int fexecve(int fd, char *const argv[], char *const envp[]);
|
||||||
|
|
||||||
#endif /* _LXC_FEXECVE_H */
|
#endif /* _LXC_FEXECVE_H */
|
||||||
|
@ -26,7 +26,9 @@
|
|||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <grp.h>
|
#include <grp.h>
|
||||||
|
|
||||||
extern int getgrgid_r(gid_t gid, struct group *gr, char *buf, size_t size,
|
#include "../lxc/compiler.h"
|
||||||
|
|
||||||
|
__hidden extern int getgrgid_r(gid_t gid, struct group *gr, char *buf, size_t size,
|
||||||
struct group **res);
|
struct group **res);
|
||||||
|
|
||||||
#endif /* _GETGRGID_R_H */
|
#endif /* _GETGRGID_R_H */
|
||||||
|
@ -32,6 +32,8 @@
|
|||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
extern ssize_t getline(char **outbuf, size_t *outsize, FILE *fp);
|
#include "../lxc/compiler.h"
|
||||||
|
|
||||||
|
__hidden extern ssize_t getline(char **outbuf, size_t *outsize, FILE *fp);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -21,6 +21,8 @@
|
|||||||
#ifndef _LXCMNTENT_H
|
#ifndef _LXCMNTENT_H
|
||||||
#define _LXCMNTENT_H
|
#define _LXCMNTENT_H
|
||||||
|
|
||||||
|
#include "../lxc/compiler.h"
|
||||||
|
|
||||||
#if IS_BIONIC
|
#if IS_BIONIC
|
||||||
struct mntent
|
struct mntent
|
||||||
{
|
{
|
||||||
@ -32,20 +34,21 @@ struct mntent
|
|||||||
int mnt_passno;
|
int mnt_passno;
|
||||||
};
|
};
|
||||||
|
|
||||||
extern struct mntent *getmntent (FILE *stream);
|
__hidden extern struct mntent *getmntent(FILE *stream);
|
||||||
extern struct mntent *getmntent_r (FILE *stream, struct mntent *mp, char *buffer, int bufsiz);
|
__hidden extern struct mntent *getmntent_r(FILE *stream, struct mntent *mp,
|
||||||
|
char *buffer, int bufsiz);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !defined(HAVE_SETMNTENT) || IS_BIONIC
|
#if !defined(HAVE_SETMNTENT) || IS_BIONIC
|
||||||
FILE *setmntent (const char *file, const char *mode);
|
__hidden FILE *setmntent(const char *file, const char *mode);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !defined(HAVE_ENDMNTENT) || IS_BIONIC
|
#if !defined(HAVE_ENDMNTENT) || IS_BIONIC
|
||||||
int endmntent (FILE *stream);
|
__hidden int endmntent(FILE *stream);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !defined(HAVE_HASMNTOPT) || IS_BIONIC
|
#if !defined(HAVE_HASMNTOPT) || IS_BIONIC
|
||||||
extern char *hasmntopt (const struct mntent *mnt, const char *opt);
|
__hidden extern char *hasmntopt(const struct mntent *mnt, const char *opt);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -12,8 +12,8 @@ extern "C" {
|
|||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
#include <sys/socket.h>
|
#include <sys/socket.h>
|
||||||
|
|
||||||
#include "compiler.h"
|
#include "../lxc/compiler.h"
|
||||||
#include "memory_utils.h"
|
#include "../lxc/memory_utils.h"
|
||||||
|
|
||||||
struct netns_ifaddrs {
|
struct netns_ifaddrs {
|
||||||
struct netns_ifaddrs *ifa_next;
|
struct netns_ifaddrs *ifa_next;
|
||||||
|
@ -6,12 +6,15 @@
|
|||||||
#include <termios.h>
|
#include <termios.h>
|
||||||
#include <sys/ioctl.h>
|
#include <sys/ioctl.h>
|
||||||
|
|
||||||
|
#include "../lxc/memory_utils.h"
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Create pseudo tty ptx pty pair with @__name and set terminal
|
* Create pseudo tty ptx pty pair with @__name and set terminal
|
||||||
* attributes according to @__termp and @__winp and return handles for both
|
* attributes according to @__termp and @__winp and return handles for both
|
||||||
* ends in @__aptx and @__apts.
|
* ends in @__aptx and @__apts.
|
||||||
*/
|
*/
|
||||||
extern int openpty(int *ptx, int *pty, char *name, const struct termios *termp,
|
__hidden extern int openpty(int *ptx, int *pty, char *name,
|
||||||
|
const struct termios *termp,
|
||||||
const struct winsize *winp);
|
const struct winsize *winp);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -32,10 +32,12 @@
|
|||||||
#include <linux/resource.h>
|
#include <linux/resource.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
|
|
||||||
|
#include "../lxc/memory_utils.h"
|
||||||
|
|
||||||
#define RLIM_SAVED_CUR RLIM_INFINITY
|
#define RLIM_SAVED_CUR RLIM_INFINITY
|
||||||
#define RLIM_SAVED_MAX RLIM_INFINITY
|
#define RLIM_SAVED_MAX RLIM_INFINITY
|
||||||
|
|
||||||
int prlimit(pid_t, int, const struct rlimit*, struct rlimit*);
|
__hidden int prlimit(pid_t, int, const struct rlimit *, struct rlimit *);
|
||||||
int prlimit64(pid_t, int, const struct rlimit64*, struct rlimit64*);
|
__hidden int prlimit64(pid_t, int, const struct rlimit64 *, struct rlimit64 *);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -20,6 +20,6 @@
|
|||||||
License along with the GNU C Library; if not, see
|
License along with the GNU C Library; if not, see
|
||||||
<https://www.gnu.org/licenses/>. */
|
<https://www.gnu.org/licenses/>. */
|
||||||
|
|
||||||
#include "compiler.h"
|
#include "../lxc/compiler.h"
|
||||||
|
|
||||||
__hidden extern char *strchrnul(const char *s, int c_in);
|
__hidden extern char *strchrnul(const char *s, int c_in);
|
||||||
|
@ -22,8 +22,9 @@
|
|||||||
#ifndef _STRLCAT_H
|
#ifndef _STRLCAT_H
|
||||||
#define _STRLCAT_H
|
#define _STRLCAT_H
|
||||||
|
|
||||||
|
#include "../lxc/compiler.h"
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
extern size_t strlcat(char *src, const char *append, size_t len);
|
__hidden extern size_t strlcat(char *src, const char *append, size_t len);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -22,8 +22,9 @@
|
|||||||
#ifndef _STRLCPY_H
|
#ifndef _STRLCPY_H
|
||||||
#define _STRLCPY_H
|
#define _STRLCPY_H
|
||||||
|
|
||||||
|
#include "../lxc/compiler.h"
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
extern size_t strlcpy(char *, const char *, size_t);
|
__hidden extern size_t strlcpy(char *, const char *, size_t);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user