MH shared functions. More...
#include "config.h"
#include <errno.h>
#include <fcntl.h>
#include <inttypes.h>
#include <limits.h>
#include <stdbool.h>
#include <stdio.h>
#include <sys/stat.h>
#include <unistd.h>
#include "mutt/lib.h"
#include "core/lib.h"
#include "shared.h"
#include "globals.h"
#include "mdata.h"
Go to the source code of this file.
Functions | |
mode_t | mh_umask (struct Mailbox *m) |
Create a umask from the mailbox directory. | |
bool | mh_mkstemp (struct Mailbox *m, FILE **fp, char **tgt) |
Create a temporary file. | |
MH shared functions.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.
Definition in file shared.c.
mode_t mh_umask | ( | struct Mailbox * | m | ) |
Create a umask from the mailbox directory.
m | Mailbox |
num | Umask |
Definition at line 49 of file shared.c.
bool mh_mkstemp | ( | struct Mailbox * | m, |
FILE ** | fp, | ||
char ** | tgt | ||
) |
Create a temporary file.
[in] | m | Mailbox to create the file in |
[out] | fp | File handle |
[out] | tgt | File name |
true | Success |
false | Failure |
Definition at line 73 of file shared.c.