Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
John McEleney
/
mailutils
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit
81b1c4f8
...
81b1c4f8b9f0c2dc58f5ce84f87eeed66a12eda0
authored
2004-06-04 23:22:53 +0000
by
Sergey Poznyakoff
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
(MU_ERR_BUFSPACE): New error code
1 parent
1439eb8c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
include/mailutils/errno.h
mailbox/muerrno.c
include/mailutils/errno.h
View file @
81b1c4f
/* GNU Mailutils -- a suite of utilities for electronic mail
Copyright (C) 1999, 2000, 2001, 2003 Free Software Foundation, Inc.
Copyright (C) 1999, 2000, 2001, 2003
, 2004
Free Software Foundation, Inc.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
...
...
@@ -95,6 +95,8 @@ extern "C" {
/* Parse error */
#define MU_ERR_NOENT (MU_ERR_BASE + 39)
/* Requested item not found */
#define MU_ERR_BUFSPACE (MU_ERR_BASE + 40)
/* Not enough buffer space */
const
char
*
mu_errname
__P
((
int
e
));
const
char
*
mu_strerror
__P
((
int
e
));
...
...
mailbox/muerrno.c
View file @
81b1c4f
...
...
@@ -97,6 +97,7 @@ mu_errname (int e)
EN
(
MU_ERR_CONN_CLOSED
);
EN
(
MU_ERR_PARSE
);
EN
(
MU_ERR_NOENT
);
EN
(
MU_ERR_BUFSPACE
);
}
snprintf
(
buf
,
sizeof
buf
,
_
(
"Error %d"
),
e
);
...
...
@@ -107,7 +108,6 @@ const char *
mu_strerror
(
int
e
)
{
const
char
*
msg
=
NULL
;
char
*
p
;
switch
(
e
)
{
...
...
@@ -165,6 +165,7 @@ mu_strerror (int e)
ES
(
MU_ERR_CONN_CLOSED
,
_
(
"Connection closed by remote host"
));
ES
(
MU_ERR_PARSE
,
_
(
"Parse error"
));
ES
(
MU_ERR_NOENT
,
_
(
"Requested item not found"
));
ES
(
MU_ERR_BUFSPACE
,
_
(
"Not enough buffer space"
));
}
return
msg
?
msg
:
strerror
(
e
);
...
...
Please
register
or
sign in
to post a comment