Mercurial > hg > octave-shane > gnulib-hg
annotate lib/mountlist.h @ 5632:f2a6ab91acad
* mountlist.h (MOUNTLIST_H_): New macro, to protect against double
inclusion.
Include <sys/types.h>, for dev_t.
(ME_DUMMY, ME_REMOTE): Move from here....
* mountlist.c (ME_DUMMY, ME_REMOTE): To here.
(ME_DUMMY): Count "subfs" as a dummy. Problem reported by
Dmitry V. Levin.
Include mountlist.h first, to test the interface.
author | Paul Eggert <eggert@cs.ucla.edu> |
---|---|
date | Tue, 01 Feb 2005 23:56:46 +0000 |
parents | a535859efd14 |
children | a48fb0e98c8c |
rev | line source |
---|---|
5159 | 1 /* mountlist.h -- declarations for list of mounted file systems |
4397
c6450308f123
Assume C89, so PARAMS isn't needed.
Paul Eggert <eggert@cs.ucla.edu>
parents:
3983
diff
changeset
|
2 |
5632
f2a6ab91acad
* mountlist.h (MOUNTLIST_H_): New macro, to protect against double
Paul Eggert <eggert@cs.ucla.edu>
parents:
5159
diff
changeset
|
3 Copyright (C) 1991, 1992, 1998, 2000, 2001, 2002, 2003, 2004, 2005 |
f2a6ab91acad
* mountlist.h (MOUNTLIST_H_): New macro, to protect against double
Paul Eggert <eggert@cs.ucla.edu>
parents:
5159
diff
changeset
|
4 Free Software Foundation, Inc. |
5 | 5 |
6 This program is free software; you can redistribute it and/or modify | |
7 it under the terms of the GNU General Public License as published by | |
8 the Free Software Foundation; either version 2, or (at your option) | |
9 any later version. | |
10 | |
11 This program is distributed in the hope that it will be useful, | |
12 but WITHOUT ANY WARRANTY; without even the implied warranty of | |
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
14 GNU General Public License for more details. | |
15 | |
16 You should have received a copy of the GNU General Public License | |
650
b4ef1c1a0171
update FSF address in copyright
Jim Meyering <jim@meyering.net>
parents:
5
diff
changeset
|
17 along with this program; if not, write to the Free Software Foundation, |
b4ef1c1a0171
update FSF address in copyright
Jim Meyering <jim@meyering.net>
parents:
5
diff
changeset
|
18 Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ |
5 | 19 |
5632
f2a6ab91acad
* mountlist.h (MOUNTLIST_H_): New macro, to protect against double
Paul Eggert <eggert@cs.ucla.edu>
parents:
5159
diff
changeset
|
20 #ifndef MOUNTLIST_H_ |
f2a6ab91acad
* mountlist.h (MOUNTLIST_H_): New macro, to protect against double
Paul Eggert <eggert@cs.ucla.edu>
parents:
5159
diff
changeset
|
21 #define MOUNTLIST_H_ |
f2a6ab91acad
* mountlist.h (MOUNTLIST_H_): New macro, to protect against double
Paul Eggert <eggert@cs.ucla.edu>
parents:
5159
diff
changeset
|
22 |
5159 | 23 #include <stdbool.h> |
5632
f2a6ab91acad
* mountlist.h (MOUNTLIST_H_): New macro, to protect against double
Paul Eggert <eggert@cs.ucla.edu>
parents:
5159
diff
changeset
|
24 #include <sys/types.h> |
5159 | 25 |
5 | 26 /* A mount table entry. */ |
27 struct mount_entry | |
28 { | |
29 char *me_devname; /* Device node pathname, including "/dev/". */ | |
30 char *me_mountdir; /* Mount point directory pathname. */ | |
31 char *me_type; /* "nfs", "4.2", etc. */ | |
32 dev_t me_dev; /* Device number of me_mountdir. */ | |
5159 | 33 unsigned int me_dummy : 1; /* Nonzero for dummy file systems. */ |
1454 | 34 unsigned int me_remote : 1; /* Nonzero for remote fileystems. */ |
4839
72b30d7ed3c6
Catch size calculation overflow problem on Alphas running OSF/1.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4397
diff
changeset
|
35 unsigned int me_type_malloced : 1; /* Nonzero if me_type was malloced. */ |
5 | 36 struct mount_entry *me_next; |
37 }; | |
38 | |
5159 | 39 struct mount_entry *read_file_system_list (bool need_fs_type); |
1447 | 40 |
1445
d59bd56497f1
(REMOTE_FS_TYPE): New macro.
Jim Meyering <jim@meyering.net>
parents:
650
diff
changeset
|
41 #endif |