summaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
authorFlorian Festi <ffesti@redhat.com>2010-02-03 15:41:58 +0100
committerFlorian Festi <ffesti@redhat.com>2010-02-03 16:27:00 +0100
commit51c96db0464f86901b328899106dd8d4159dd878 (patch)
tree95b401707715cfa774cc42d4379073cf4caca2a7 /misc
parentee35635243f1e282d04066014af6349227cd6498 (diff)
downloadlibrpm-tizen-51c96db0464f86901b328899106dd8d4159dd878.tar.gz
librpm-tizen-51c96db0464f86901b328899106dd8d4159dd878.tar.bz2
librpm-tizen-51c96db0464f86901b328899106dd8d4159dd878.zip
Kill RPMTAG_FSNAMES and RPMTAG_FSSIZES and everything implementing them
Diffstat (limited to 'misc')
-rw-r--r--misc/getmntent.c68
1 files changed, 0 insertions, 68 deletions
diff --git a/misc/getmntent.c b/misc/getmntent.c
deleted file mode 100644
index ae120c772..000000000
--- a/misc/getmntent.c
+++ /dev/null
@@ -1,68 +0,0 @@
-#include "system.h"
-
-#include <rpm/rpmutil.h>
-
-#ifdef __aix__
-#define COMMENTCHAR '*'
-#else
-#define COMMENTCHAR '#'
-#endif
-
-#if HAVE_STRUCT_MNTTAB
-our_mntent * getmntent(FILE *filep) {
- static struct mnttab entry;
- static our_mntent item;
-
- if (!fread(&entry, sizeof(entry), 1, filep)) return NULL;
- item.our_mntdir = entry.mt_filsys;
-
- return &item;
-}
-#else
-our_mntent *getmntent(FILE *filep) {
- static our_mntent item = { NULL };
- char buf[1024], * start;
- char * chptr;
-
- if (item.our_mntdir) {
- free(item.our_mntdir);
- }
-
- while (fgets(buf, sizeof(buf) - 1, filep)) {
- /* chop off \n */
- buf[strlen(buf) - 1] = '\0';
-
- chptr = buf;
- while (isspace(*chptr)) chptr++;
-
- if (*chptr == COMMENTCHAR) continue;
-
-# if __aix__
- /* aix uses a screwed up file format */
- if (*chptr == '/') {
- start = chptr;
- while (*chptr != ':') chptr++;
- *chptr = '\0';
- item.mnt_dir = rstrdup(start);
- return &item;
- }
-# else
- while (!isspace(*chptr) && (*chptr)) chptr++;
- if (!*chptr) return NULL;
-
- while (isspace(*chptr) && (*chptr)) chptr++;
- if (!*chptr) return NULL;
- start = chptr;
-
- while (!isspace(*chptr) && (*chptr)) chptr++;
- *chptr = '\0';
-
- item.our_mntdir = rstrdup(start);
- return &item;
-# endif
- }
-
- return NULL;
-}
-#endif
-