aboutsummaryrefslogtreecommitdiff
path: root/wcsmbs
diff options
context:
space:
mode:
Diffstat (limited to 'wcsmbs')
-rw-r--r--wcsmbs/mbrtowc.c4
-rw-r--r--wcsmbs/mbsnrtowcs.c4
-rw-r--r--wcsmbs/mbsrtowcs.c4
-rw-r--r--wcsmbs/wcrtomb.c2
-rw-r--r--wcsmbs/wcsnrtombs.c2
-rw-r--r--wcsmbs/wcsrtombs.c2
-rw-r--r--wcsmbs/wcstok.c2
7 files changed, 10 insertions, 10 deletions
diff --git a/wcsmbs/mbrtowc.c b/wcsmbs/mbrtowc.c
index 056f7be..efd382b 100644
--- a/wcsmbs/mbrtowc.c
+++ b/wcsmbs/mbrtowc.c
@@ -62,7 +62,7 @@ __mbrtowc (wchar_t *pwc, const char *s, size_t n, mbstate_t *ps)
if ((byte & 0xc0) == 0x80 || (byte & 0xfe) == 0xfe)
{
/* Oh, oh. An encoding error. */
- errno = EILSEQ;
+ __set_errno (EILSEQ);
return (size_t) -1;
}
@@ -109,7 +109,7 @@ __mbrtowc (wchar_t *pwc, const char *s, size_t n, mbstate_t *ps)
if ((byte & 0xc0) != 0x80)
{
/* Oh, oh. An encoding error. */
- errno = EILSEQ;
+ __set_errno (EILSEQ);
return (size_t) -1;
}
diff --git a/wcsmbs/mbsnrtowcs.c b/wcsmbs/mbsnrtowcs.c
index 2790695..d8c6da6 100644
--- a/wcsmbs/mbsnrtowcs.c
+++ b/wcsmbs/mbsnrtowcs.c
@@ -98,7 +98,7 @@ __mbsnrtowcs (dst, src, nmc, len, ps)
else
{
/* This is an illegal encoding. */
- errno = EILSEQ;
+ __set_errno (EILSEQ);
return (size_t) -1;
}
@@ -110,7 +110,7 @@ __mbsnrtowcs (dst, src, nmc, len, ps)
if ((byte & 0xc0) != 0x80)
{
/* This is an illegal encoding. */
- errno = EILSEQ;
+ __set_errno (EILSEQ);
return (size_t) -1;
}
diff --git a/wcsmbs/mbsrtowcs.c b/wcsmbs/mbsrtowcs.c
index d7305d6..276d125 100644
--- a/wcsmbs/mbsrtowcs.c
+++ b/wcsmbs/mbsrtowcs.c
@@ -93,7 +93,7 @@ __mbsrtowcs (dst, src, len, ps)
else
{
/* This is an illegal encoding. */
- errno = EILSEQ;
+ __set_errno (EILSEQ);
return (size_t) -1;
}
@@ -105,7 +105,7 @@ __mbsrtowcs (dst, src, len, ps)
if ((byte & 0xc0) != 0x80)
{
/* This is an illegal encoding. */
- errno = EILSEQ;
+ __set_errno (EILSEQ);
return (size_t) -1;
}
diff --git a/wcsmbs/wcrtomb.c b/wcsmbs/wcrtomb.c
index 052a5b9..f5d9f7e 100644
--- a/wcsmbs/wcrtomb.c
+++ b/wcsmbs/wcrtomb.c
@@ -56,7 +56,7 @@ __wcrtomb (char *s, wchar_t wc, mbstate_t *ps)
if (wc < 0 || wc > 0x7fffffff)
{
/* This is no correct ISO 10646 character. */
- errno = EILSEQ;
+ __set_errno (EILSEQ);
return (size_t) -1;
}
diff --git a/wcsmbs/wcsnrtombs.c b/wcsmbs/wcsnrtombs.c
index fb50a11..f014914 100644
--- a/wcsmbs/wcsnrtombs.c
+++ b/wcsmbs/wcsnrtombs.c
@@ -68,7 +68,7 @@ __wcsnrtombs (dst, src, nwc, len, ps)
if (wc < 0 || wc > 0x7fffffff)
{
/* This is no correct ISO 10646 character. */
- errno = EILSEQ;
+ __set_errno (EILSEQ);
return (size_t) -1;
}
diff --git a/wcsmbs/wcsrtombs.c b/wcsmbs/wcsrtombs.c
index 999e291..ac54e74 100644
--- a/wcsmbs/wcsrtombs.c
+++ b/wcsmbs/wcsrtombs.c
@@ -64,7 +64,7 @@ __wcsrtombs (dst, src, len, ps)
if (wc < 0 || wc > 0x7fffffff)
{
/* This is no correct ISO 10646 character. */
- errno = EILSEQ;
+ __set_errno (EILSEQ);
return (size_t) -1;
}
diff --git a/wcsmbs/wcstok.c b/wcsmbs/wcstok.c
index 42df619..553c431 100644
--- a/wcsmbs/wcstok.c
+++ b/wcsmbs/wcstok.c
@@ -34,7 +34,7 @@ wcstok (wcs, delim, save_ptr)
if (wcs == NULL)
if (*save_ptr == NULL)
{
- errno = EINVAL;
+ __set_errno (EINVAL);
return NULL;
}
else