diff options
author | Bruno Haible <bruno@clisp.org> | 2018-10-16 21:25:00 +0200 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2018-10-18 01:46:16 +0200 |
commit | e96dcbcbc5142bd04c6c2e9e4595d9bea910fb3b (patch) | |
tree | 0b1c69856a2b7423a3db669edb24125f100e5aea /lib/mountlist.c | |
parent | a2ae04a08f6da63181cbadfffab537f98d987d55 (diff) | |
download | gnulib-e96dcbcbc5142bd04c6c2e9e4595d9bea910fb3b.tar.gz |
fsusage, mountlist, getloadavg, getgroups: Remove support for Ultrix.
* m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't define
STAT_STATFS2_FS_DATA.
* lib/fsusage.c: Remove STAT_STATFS2_FS_DATA case.
* m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't define
MOUNTED_GETMNT.
* lib/mountlist.c: Remove MOUNTED_GETMNT case.
* lib/getloadavg.c (decstation): Remove definition and case.
* m4/getgroups.m4 (AC_FUNC_GETGROUPS): Mention NeXTstep, not Ultrix.
* lib/getgroups.c: Likewise.
* doc/posix-functions/getgroups.texi: Likewise.
* lib/time.in.h: Update comments.
Diffstat (limited to 'lib/mountlist.c')
-rw-r--r-- | lib/mountlist.c | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/lib/mountlist.c b/lib/mountlist.c index 01ad309f3f..9a94f42c79 100644 --- a/lib/mountlist.c +++ b/lib/mountlist.c @@ -84,11 +84,6 @@ # include <sys/statvfs.h> #endif -#ifdef MOUNTED_GETMNT /* (obsolete) Ultrix */ -# include <sys/mount.h> -# include <sys/fs_types.h> -#endif - #ifdef MOUNTED_FS_STAT_DEV /* Haiku, also (obsolete) BeOS */ # include <fs_info.h> # include <dirent.h> @@ -647,35 +642,6 @@ read_file_system_list (bool need_fs_type) } #endif /* MOUNTED_GETMNTINFO2 */ -#ifdef MOUNTED_GETMNT /* (obsolete) Ultrix */ - { - int offset = 0; - int val; - struct fs_data fsd; - - while (errno = 0, - 0 < (val = getmnt (&offset, &fsd, sizeof (fsd), NOSTAT_MANY, - (char *) 0))) - { - me = xmalloc (sizeof *me); - me->me_devname = xstrdup (fsd.fd_req.devname); - me->me_mountdir = xstrdup (fsd.fd_req.path); - me->me_mntroot = NULL; - me->me_type = gt_names[fsd.fd_req.fstype]; - me->me_type_malloced = 0; - me->me_dummy = ME_DUMMY (me->me_devname, me->me_type); - me->me_remote = ME_REMOTE (me->me_devname, me->me_type); - me->me_dev = fsd.fd_req.dev; - - /* Add to the linked list. */ - *mtail = me; - mtail = &me->me_next; - } - if (val < 0) - goto free_then_fail; - } -#endif /* MOUNTED_GETMNT. */ - #if defined MOUNTED_FS_STAT_DEV /* Haiku, also (obsolete) BeOS */ { /* The next_dev() and fs_stat_dev() system calls give the list of |