Mercurial > hg > octave-shane > gnulib-hg
annotate lib/mountlist.h @ 17587:344018b6e5d7
maint: update copyright
I ran 'make update-copyright'.
Signed-off-by: Eric Blake <eblake@redhat.com>
author | Eric Blake <eblake@redhat.com> |
---|---|
date | Wed, 01 Jan 2014 00:04:40 -0700 |
parents | 62bc285cb037 |
children |
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 |
17587 | 3 Copyright (C) 1991-1992, 1998, 2000-2005, 2009-2014 Free Software |
12559
c2cbabec01dd
update nearly all FSF copyright year lists to include 2010
Jim Meyering <meyering@redhat.com>
parents:
12518
diff
changeset
|
4 Foundation, Inc. |
5 | 5 |
9309
bbbbbf4cd1c5
Change copyright notice from GPLv2+ to GPLv3+.
Bruno Haible <bruno@clisp.org>
parents:
5907
diff
changeset
|
6 This program is free software: you can redistribute it and/or modify |
5 | 7 it under the terms of the GNU General Public License as published by |
9309
bbbbbf4cd1c5
Change copyright notice from GPLv2+ to GPLv3+.
Bruno Haible <bruno@clisp.org>
parents:
5907
diff
changeset
|
8 the Free Software Foundation; either version 3 of the License, or |
bbbbbf4cd1c5
Change copyright notice from GPLv2+ to GPLv3+.
Bruno Haible <bruno@clisp.org>
parents:
5907
diff
changeset
|
9 (at your option) any later version. |
5 | 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 | |
9309
bbbbbf4cd1c5
Change copyright notice from GPLv2+ to GPLv3+.
Bruno Haible <bruno@clisp.org>
parents:
5907
diff
changeset
|
17 along with this program. If not, see <http://www.gnu.org/licenses/>. */ |
5 | 18 |
5632
f2a6ab91acad
* mountlist.h (MOUNTLIST_H_): New macro, to protect against double
Paul Eggert <eggert@cs.ucla.edu>
parents:
5159
diff
changeset
|
19 #ifndef MOUNTLIST_H_ |
5851 | 20 # define MOUNTLIST_H_ |
5632
f2a6ab91acad
* mountlist.h (MOUNTLIST_H_): New macro, to protect against double
Paul Eggert <eggert@cs.ucla.edu>
parents:
5159
diff
changeset
|
21 |
5851 | 22 # include <stdbool.h> |
23 # include <sys/types.h> | |
5159 | 24 |
5 | 25 /* A mount table entry. */ |
26 struct mount_entry | |
27 { | |
12421
e8d2c6fc33ad
Use spaces for indentation, not tabs.
Bruno Haible <bruno@clisp.org>
parents:
9309
diff
changeset
|
28 char *me_devname; /* Device node name, including "/dev/". */ |
e8d2c6fc33ad
Use spaces for indentation, not tabs.
Bruno Haible <bruno@clisp.org>
parents:
9309
diff
changeset
|
29 char *me_mountdir; /* Mount point directory name. */ |
e8d2c6fc33ad
Use spaces for indentation, not tabs.
Bruno Haible <bruno@clisp.org>
parents:
9309
diff
changeset
|
30 char *me_type; /* "nfs", "4.2", etc. */ |
e8d2c6fc33ad
Use spaces for indentation, not tabs.
Bruno Haible <bruno@clisp.org>
parents:
9309
diff
changeset
|
31 dev_t me_dev; /* Device number of me_mountdir. */ |
e8d2c6fc33ad
Use spaces for indentation, not tabs.
Bruno Haible <bruno@clisp.org>
parents:
9309
diff
changeset
|
32 unsigned int me_dummy : 1; /* Nonzero for dummy file systems. */ |
e8d2c6fc33ad
Use spaces for indentation, not tabs.
Bruno Haible <bruno@clisp.org>
parents:
9309
diff
changeset
|
33 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
|
34 unsigned int me_type_malloced : 1; /* Nonzero if me_type was malloced. */ |
5 | 35 struct mount_entry *me_next; |
36 }; | |
37 | |
5159 | 38 struct mount_entry *read_file_system_list (bool need_fs_type); |
17446
62bc285cb037
mountlist: add support for deallocating returned list entries
Pádraig Brady <P@draigBrady.com>
parents:
17249
diff
changeset
|
39 void free_mount_entry (struct mount_entry *entry); |
1447 | 40 |
1445
d59bd56497f1
(REMOTE_FS_TYPE): New macro.
Jim Meyering <jim@meyering.net>
parents:
650
diff
changeset
|
41 #endif |