mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-13 20:10:02 +08:00
* callback.c (fdbad): Return EBADF rather than EINVAL for bad
file descriptors.
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
2011-02-25 Kevin Buettner <kevinb@redhat.com>
|
||||||
|
|
||||||
|
* callback.c (fdbad): Return EBADF rather than EINVAL for bad
|
||||||
|
file descriptors.
|
||||||
|
|
||||||
2011-02-14 Mike Frysinger <vapier@gentoo.org>
|
2011-02-14 Mike Frysinger <vapier@gentoo.org>
|
||||||
|
|
||||||
* hw-alloc.c (hw_alloc_data): Delete zalloc_p.
|
* hw-alloc.c (hw_alloc_data): Delete zalloc_p.
|
||||||
|
@ -121,7 +121,7 @@ fdbad (p, fd)
|
|||||||
{
|
{
|
||||||
if (fd < 0 || fd > MAX_CALLBACK_FDS || p->fd_buddy[fd] < 0)
|
if (fd < 0 || fd > MAX_CALLBACK_FDS || p->fd_buddy[fd] < 0)
|
||||||
{
|
{
|
||||||
p->last_errno = EINVAL;
|
p->last_errno = EBADF;
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
|
Reference in New Issue
Block a user