mirror of
https://github.com/systemd/systemd.git
synced 2025-03-19 22:50:17 +03:00
[PATCH] klibc_fixups: remove unneeded stuff
This commit is contained in:
parent
03fd7a3ad3
commit
733677e2c2
1
Makefile
1
Makefile
@ -202,7 +202,6 @@ ifeq ($(strip $(USE_KLIBC)),true)
|
||||
|
||||
HEADERS += \
|
||||
klibc_fixups/klibc_fixups.h \
|
||||
klibc_fixups/mntent.h \
|
||||
klibc_fixups/pwd.h
|
||||
|
||||
KLIBC_FIXUP_OBJS = \
|
||||
|
@ -1,9 +0,0 @@
|
||||
#ifdef __KLIBC__
|
||||
|
||||
#ifndef _MALLOC_H
|
||||
#define _MALLOC_H
|
||||
|
||||
#include <stdlib.h>
|
||||
|
||||
#endif /* _MALLOC_H */
|
||||
#endif /* __KLIBC__ */
|
@ -1,39 +0,0 @@
|
||||
#ifdef __KLIBC__
|
||||
|
||||
#ifndef _MNTENT_H
|
||||
#define _MNTENT_H
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
struct mntent
|
||||
{
|
||||
char *mnt_fsname;
|
||||
char *mnt_dir;
|
||||
char *mnt_type;
|
||||
char *mnt_opts;
|
||||
int mnt_freq;
|
||||
int mnt_passno;
|
||||
};
|
||||
|
||||
static inline FILE *setmntent (const char *file, const char *mode)
|
||||
{
|
||||
return (FILE *) 1;
|
||||
}
|
||||
|
||||
static inline struct mntent *getmntent (FILE *stream)
|
||||
{
|
||||
static struct mntent mntent = {
|
||||
.mnt_dir = "/sys",
|
||||
.mnt_type = "sysfs"
|
||||
};
|
||||
|
||||
return &mntent;
|
||||
}
|
||||
|
||||
static inline int endmntent (FILE *stream)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
#endif /* _MNTENT_H */
|
||||
#endif /* __KLIBC__ */
|
@ -27,6 +27,7 @@
|
||||
* delete function. Otherwise dlist will just use free.
|
||||
|
||||
*/
|
||||
#include "stdlib.h"
|
||||
#include "dlist.h"
|
||||
|
||||
/*
|
||||
|
@ -50,9 +50,10 @@
|
||||
|
||||
* Just use the dlist_(insert|delete)_(before|after) macros if you do not want
|
||||
* to think about it.
|
||||
|
||||
*/
|
||||
#include <malloc.h>
|
||||
|
||||
#include <stddef.h>
|
||||
|
||||
typedef struct dl_node {
|
||||
struct dl_node *prev;
|
||||
struct dl_node *next;
|
||||
|
@ -28,7 +28,6 @@
|
||||
#include <unistd.h>
|
||||
#include <string.h>
|
||||
#include <ctype.h>
|
||||
#include <mntent.h>
|
||||
#include <dirent.h>
|
||||
#include <sys/stat.h>
|
||||
#include <fcntl.h>
|
||||
|
Loading…
x
Reference in New Issue
Block a user