[PATCH] klibc_fixups: remove unneeded stuff

This commit is contained in:
kay.sievers@vrfy.org
2005-04-26 23:48:48 -07:00
committed by Greg KH
parent 03fd7a3ad3
commit 733677e2c2
6 changed files with 4 additions and 52 deletions
-1
View File
@@ -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 = \
-9
View File
@@ -1,9 +0,0 @@
#ifdef __KLIBC__
#ifndef _MALLOC_H
#define _MALLOC_H
#include <stdlib.h>
#endif /* _MALLOC_H */
#endif /* __KLIBC__ */
-39
View File
@@ -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__ */
+1
View File
@@ -27,6 +27,7 @@
* delete function. Otherwise dlist will just use free.
*/
#include "stdlib.h"
#include "dlist.h"
/*
+3 -2
View File
@@ -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;
-1
View File
@@ -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>