diff options
Diffstat (limited to 'newlib/libc/reent')
-rw-r--r-- | newlib/libc/reent/closer.c | 2 | ||||
-rw-r--r-- | newlib/libc/reent/execr.c | 6 | ||||
-rw-r--r-- | newlib/libc/reent/fcntlr.c | 2 | ||||
-rw-r--r-- | newlib/libc/reent/fstat64r.c | 2 | ||||
-rw-r--r-- | newlib/libc/reent/fstatr.c | 2 | ||||
-rw-r--r-- | newlib/libc/reent/gettimeofdayr.c | 2 | ||||
-rw-r--r-- | newlib/libc/reent/isattyr.c | 2 | ||||
-rw-r--r-- | newlib/libc/reent/linkr.c | 2 | ||||
-rw-r--r-- | newlib/libc/reent/lseek64r.c | 2 | ||||
-rw-r--r-- | newlib/libc/reent/lseekr.c | 2 | ||||
-rw-r--r-- | newlib/libc/reent/mkdirr.c | 2 | ||||
-rw-r--r-- | newlib/libc/reent/open64r.c | 2 | ||||
-rw-r--r-- | newlib/libc/reent/openr.c | 2 | ||||
-rw-r--r-- | newlib/libc/reent/readr.c | 2 | ||||
-rw-r--r-- | newlib/libc/reent/renamer.c | 2 | ||||
-rw-r--r-- | newlib/libc/reent/sbrkr.c | 2 | ||||
-rw-r--r-- | newlib/libc/reent/signalr.c | 2 | ||||
-rw-r--r-- | newlib/libc/reent/stat64r.c | 2 | ||||
-rw-r--r-- | newlib/libc/reent/statr.c | 2 | ||||
-rw-r--r-- | newlib/libc/reent/unlinkr.c | 2 | ||||
-rw-r--r-- | newlib/libc/reent/writer.c | 2 |
21 files changed, 23 insertions, 23 deletions
diff --git a/newlib/libc/reent/closer.c b/newlib/libc/reent/closer.c index deb34b0..2d72b2a 100644 --- a/newlib/libc/reent/closer.c +++ b/newlib/libc/reent/closer.c @@ -45,7 +45,7 @@ _close_r (ptr, fd) errno = 0; if ((ret = _close (fd)) == -1 && errno != 0) - ptr->_errno = errno; + _REENT_ERRNO(ptr) = errno; return ret; } diff --git a/newlib/libc/reent/execr.c b/newlib/libc/reent/execr.c index 59b6122..541fb86 100644 --- a/newlib/libc/reent/execr.c +++ b/newlib/libc/reent/execr.c @@ -54,7 +54,7 @@ _execve_r (struct _reent *ptr, errno = 0; if ((ret = _execve (name, argv, env)) == -1 && errno != 0) - ptr->_errno = errno; + _REENT_ERRNO(ptr) = errno; return ret; } @@ -86,7 +86,7 @@ _fork_r (struct _reent *ptr) errno = 0; if ((ret = _fork ()) == -1 && errno != 0) - ptr->_errno = errno; + _REENT_ERRNO(ptr) = errno; return ret; } @@ -118,7 +118,7 @@ _wait_r (struct _reent *ptr, errno = 0; if ((ret = _wait (status)) == -1 && errno != 0) - ptr->_errno = errno; + _REENT_ERRNO(ptr) = errno; return ret; } diff --git a/newlib/libc/reent/fcntlr.c b/newlib/libc/reent/fcntlr.c index cd19d22..f60aa09 100644 --- a/newlib/libc/reent/fcntlr.c +++ b/newlib/libc/reent/fcntlr.c @@ -49,7 +49,7 @@ _fcntl_r (struct _reent *ptr, errno = 0; if ((ret = _fcntl (fd, cmd, arg)) == -1 && errno != 0) - ptr->_errno = errno; + _REENT_ERRNO(ptr) = errno; return ret; } diff --git a/newlib/libc/reent/fstat64r.c b/newlib/libc/reent/fstat64r.c index c546f5c..a049206 100644 --- a/newlib/libc/reent/fstat64r.c +++ b/newlib/libc/reent/fstat64r.c @@ -55,7 +55,7 @@ _fstat64_r (struct _reent *ptr, errno = 0; if ((ret = _fstat64 (fd, pstat)) == -1 && errno != 0) - ptr->_errno = errno; + _REENT_ERRNO(ptr) = errno; return ret; } diff --git a/newlib/libc/reent/fstatr.c b/newlib/libc/reent/fstatr.c index ec906c9..9a02e9a 100644 --- a/newlib/libc/reent/fstatr.c +++ b/newlib/libc/reent/fstatr.c @@ -53,7 +53,7 @@ _fstat_r (ptr, fd, pstat) errno = 0; if ((ret = _fstat (fd, pstat)) == -1 && errno != 0) - ptr->_errno = errno; + _REENT_ERRNO(ptr) = errno; return ret; } diff --git a/newlib/libc/reent/gettimeofdayr.c b/newlib/libc/reent/gettimeofdayr.c index 9b982a9..aa60e5e 100644 --- a/newlib/libc/reent/gettimeofdayr.c +++ b/newlib/libc/reent/gettimeofdayr.c @@ -60,7 +60,7 @@ _gettimeofday_r (struct _reent *ptr, errno = 0; if ((ret = _gettimeofday (ptimeval, ptimezone)) == -1 && errno != 0) - ptr->_errno = errno; + _REENT_ERRNO(ptr) = errno; return ret; } diff --git a/newlib/libc/reent/isattyr.c b/newlib/libc/reent/isattyr.c index f21bf25..f769455 100644 --- a/newlib/libc/reent/isattyr.c +++ b/newlib/libc/reent/isattyr.c @@ -50,7 +50,7 @@ _isatty_r (ptr, fd) errno = 0; if ((ret = _isatty (fd)) == -1 && errno != 0) - ptr->_errno = errno; + _REENT_ERRNO(ptr) = errno; return ret; } diff --git a/newlib/libc/reent/linkr.c b/newlib/libc/reent/linkr.c index b22da5f..169b6ee 100644 --- a/newlib/libc/reent/linkr.c +++ b/newlib/libc/reent/linkr.c @@ -51,7 +51,7 @@ _link_r (struct _reent *ptr, errno = 0; if ((ret = _link (old, new)) == -1 && errno != 0) - ptr->_errno = errno; + _REENT_ERRNO(ptr) = errno; return ret; } diff --git a/newlib/libc/reent/lseek64r.c b/newlib/libc/reent/lseek64r.c index 40769fb..c9afd01 100644 --- a/newlib/libc/reent/lseek64r.c +++ b/newlib/libc/reent/lseek64r.c @@ -50,7 +50,7 @@ _lseek64_r (struct _reent *ptr, errno = 0; if ((ret = _lseek64 (fd, pos, whence)) == (_off64_t) -1 && errno != 0) - ptr->_errno = errno; + _REENT_ERRNO(ptr) = errno; return ret; } diff --git a/newlib/libc/reent/lseekr.c b/newlib/libc/reent/lseekr.c index ac2daaa..77e66b8 100644 --- a/newlib/libc/reent/lseekr.c +++ b/newlib/libc/reent/lseekr.c @@ -47,7 +47,7 @@ _lseek_r (struct _reent *ptr, errno = 0; if ((ret = _lseek (fd, pos, whence)) == (_off_t) -1 && errno != 0) - ptr->_errno = errno; + _REENT_ERRNO(ptr) = errno; return ret; } diff --git a/newlib/libc/reent/mkdirr.c b/newlib/libc/reent/mkdirr.c index fd72df6..cf66a24 100644 --- a/newlib/libc/reent/mkdirr.c +++ b/newlib/libc/reent/mkdirr.c @@ -48,7 +48,7 @@ _mkdir_r (struct _reent *ptr, errno = 0; if ((ret = _mkdir (path, mode)) == -1 && errno != 0) - ptr->_errno = errno; + _REENT_ERRNO(ptr) = errno; return ret; } diff --git a/newlib/libc/reent/open64r.c b/newlib/libc/reent/open64r.c index 84bd67e..fe288d0 100644 --- a/newlib/libc/reent/open64r.c +++ b/newlib/libc/reent/open64r.c @@ -52,7 +52,7 @@ _open64_r (ptr, file, flags, mode) errno = 0; if ((ret = _open64 (file, flags, mode)) == -1 && errno != 0) - ptr->_errno = errno; + _REENT_ERRNO(ptr) = errno; return ret; } diff --git a/newlib/libc/reent/openr.c b/newlib/libc/reent/openr.c index c6a7db5..8243154 100644 --- a/newlib/libc/reent/openr.c +++ b/newlib/libc/reent/openr.c @@ -48,7 +48,7 @@ _open_r (struct _reent *ptr, errno = 0; if ((ret = _open (file, flags, mode)) == -1 && errno != 0) - ptr->_errno = errno; + _REENT_ERRNO(ptr) = errno; return ret; } diff --git a/newlib/libc/reent/readr.c b/newlib/libc/reent/readr.c index 7fccefd..b2ae300 100644 --- a/newlib/libc/reent/readr.c +++ b/newlib/libc/reent/readr.c @@ -47,7 +47,7 @@ _read_r (struct _reent *ptr, errno = 0; if ((ret = (_ssize_t)_read (fd, buf, cnt)) == -1 && errno != 0) - ptr->_errno = errno; + _REENT_ERRNO(ptr) = errno; return ret; } diff --git a/newlib/libc/reent/renamer.c b/newlib/libc/reent/renamer.c index 5420dc4..7e1e111 100644 --- a/newlib/libc/reent/renamer.c +++ b/newlib/libc/reent/renamer.c @@ -49,7 +49,7 @@ _rename_r (struct _reent *ptr, #ifdef HAVE_RENAME errno = 0; if ((ret = _rename (old, new)) == -1 && errno != 0) - ptr->_errno = errno; + _REENT_ERRNO(ptr) = errno; #else if (_link_r (ptr, old, new) == -1) return -1; diff --git a/newlib/libc/reent/sbrkr.c b/newlib/libc/reent/sbrkr.c index 21c4bd9..ec948fe 100644 --- a/newlib/libc/reent/sbrkr.c +++ b/newlib/libc/reent/sbrkr.c @@ -49,7 +49,7 @@ _sbrk_r (struct _reent *ptr, errno = 0; if ((ret = (char *)(_sbrk (incr))) == (void *) -1 && errno != 0) - ptr->_errno = errno; + _REENT_ERRNO(ptr) = errno; return ret; } diff --git a/newlib/libc/reent/signalr.c b/newlib/libc/reent/signalr.c index 345910e..863ae74 100644 --- a/newlib/libc/reent/signalr.c +++ b/newlib/libc/reent/signalr.c @@ -51,7 +51,7 @@ _kill_r (struct _reent *ptr, errno = 0; if ((ret = _kill (pid, sig)) == -1 && errno != 0) - ptr->_errno = errno; + _REENT_ERRNO(ptr) = errno; return ret; } diff --git a/newlib/libc/reent/stat64r.c b/newlib/libc/reent/stat64r.c index b64736e..160d08e 100644 --- a/newlib/libc/reent/stat64r.c +++ b/newlib/libc/reent/stat64r.c @@ -53,7 +53,7 @@ _stat64_r (struct _reent *ptr, errno = 0; if ((ret = _stat64 (file, pstat)) == -1 && errno != 0) - ptr->_errno = errno; + _REENT_ERRNO(ptr) = errno; return ret; } diff --git a/newlib/libc/reent/statr.c b/newlib/libc/reent/statr.c index 9388e02..99453e7 100644 --- a/newlib/libc/reent/statr.c +++ b/newlib/libc/reent/statr.c @@ -53,7 +53,7 @@ _stat_r (struct _reent *ptr, errno = 0; if ((ret = _stat (file, pstat)) == -1 && errno != 0) - ptr->_errno = errno; + _REENT_ERRNO(ptr) = errno; return ret; } diff --git a/newlib/libc/reent/unlinkr.c b/newlib/libc/reent/unlinkr.c index 41bac01..495e65b 100644 --- a/newlib/libc/reent/unlinkr.c +++ b/newlib/libc/reent/unlinkr.c @@ -45,7 +45,7 @@ _unlink_r (struct _reent *ptr, errno = 0; if ((ret = _unlink (file)) == -1 && errno != 0) - ptr->_errno = errno; + _REENT_ERRNO(ptr) = errno; return ret; } diff --git a/newlib/libc/reent/writer.c b/newlib/libc/reent/writer.c index 704aba1..ac2217c 100644 --- a/newlib/libc/reent/writer.c +++ b/newlib/libc/reent/writer.c @@ -47,7 +47,7 @@ _write_r (struct _reent *ptr, errno = 0; if ((ret = (_ssize_t)_write (fd, buf, cnt)) == -1 && errno != 0) - ptr->_errno = errno; + _REENT_ERRNO(ptr) = errno; return ret; } |