OSDN Git Service
(root)
/
pf3gnuchains
/
sourceware.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8588d66
)
* callback.c (fdbad): Return EBADF rather than EINVAL for bad
author
kevinb
<kevinb>
Sat, 26 Feb 2011 07:28:57 +0000
(07:28 +0000)
committer
kevinb
<kevinb>
Sat, 26 Feb 2011 07:28:57 +0000
(07:28 +0000)
file descriptors.
sim/common/ChangeLog
patch
|
blob
|
history
sim/common/callback.c
patch
|
blob
|
history
diff --git
a/sim/common/ChangeLog
b/sim/common/ChangeLog
index
11f1d34
..
b88fc32
100644
(file)
--- a/
sim/common/ChangeLog
+++ b/
sim/common/ChangeLog
@@
-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>
* hw-alloc.c (hw_alloc_data): Delete zalloc_p.
diff --git
a/sim/common/callback.c
b/sim/common/callback.c
index
8f8aa9c
..
f811304
100644
(file)
--- a/
sim/common/callback.c
+++ b/
sim/common/callback.c
@@
-121,7
+121,7
@@
fdbad (p, fd)
{
if (fd < 0 || fd > MAX_CALLBACK_FDS || p->fd_buddy[fd] < 0)
{
- p->last_errno = E
INVAL
;
+ p->last_errno = E
BADF
;
return -1;
}
return 0;