diff options
| author | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2024-10-31 16:27:12 +0100 |
|---|---|---|
| committer | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2024-10-31 16:27:12 +0100 |
| commit | 5be04ec2ceb1df77afbca4fcbf9e92a712612d6f (patch) | |
| tree | 2b2e1c71dffae827c8e45cd4cccc375093d03486 /gl/mountlist.h | |
| parent | 6d1d1dac32841d5ca6ee51bb09b30a6c604b17e2 (diff) | |
| download | monitoring-plugins-5be04ec.tar.gz | |
Sync with the latest Gnulib code (d4ec02b3cc)
Diffstat (limited to 'gl/mountlist.h')
| -rw-r--r-- | gl/mountlist.h | 21 |
1 files changed, 18 insertions, 3 deletions
diff --git a/gl/mountlist.h b/gl/mountlist.h index aed7f887..9728e38b 100644 --- a/gl/mountlist.h +++ b/gl/mountlist.h | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | /* mountlist.h -- declarations for list of mounted file systems | 1 | /* mountlist.h -- declarations for list of mounted file systems |
| 2 | 2 | ||
| 3 | Copyright (C) 1991-1992, 1998, 2000-2005, 2009-2023 Free Software | 3 | Copyright (C) 1991-1992, 1998, 2000-2005, 2009-2024 Free Software |
| 4 | Foundation, Inc. | 4 | Foundation, Inc. |
| 5 | 5 | ||
| 6 | This program is free software: you can redistribute it and/or modify | 6 | This program is free software: you can redistribute it and/or modify |
| @@ -17,9 +17,19 @@ | |||
| 17 | along with this program. If not, see <https://www.gnu.org/licenses/>. */ | 17 | along with this program. If not, see <https://www.gnu.org/licenses/>. */ |
| 18 | 18 | ||
| 19 | #ifndef MOUNTLIST_H_ | 19 | #ifndef MOUNTLIST_H_ |
| 20 | # define MOUNTLIST_H_ | 20 | #define MOUNTLIST_H_ |
| 21 | |||
| 22 | /* This file uses _GL_ATTRIBUTE_MALLOC. */ | ||
| 23 | #if !_GL_CONFIG_H_INCLUDED | ||
| 24 | # error "Please include config.h first." | ||
| 25 | #endif | ||
| 26 | |||
| 27 | #include <sys/types.h> | ||
| 28 | |||
| 29 | #ifdef __cplusplus | ||
| 30 | extern "C" { | ||
| 31 | #endif | ||
| 21 | 32 | ||
| 22 | # include <sys/types.h> | ||
| 23 | 33 | ||
| 24 | /* A mount table entry. */ | 34 | /* A mount table entry. */ |
| 25 | struct mount_entry | 35 | struct mount_entry |
| @@ -40,4 +50,9 @@ struct mount_entry *read_file_system_list (bool need_fs_type) | |||
| 40 | _GL_ATTRIBUTE_MALLOC; | 50 | _GL_ATTRIBUTE_MALLOC; |
| 41 | void free_mount_entry (struct mount_entry *entry); | 51 | void free_mount_entry (struct mount_entry *entry); |
| 42 | 52 | ||
| 53 | |||
| 54 | #ifdef __cplusplus | ||
| 55 | } | ||
| 56 | #endif | ||
| 57 | |||
| 43 | #endif | 58 | #endif |
