|
From: Julian S. <js...@ac...> - 2005-10-02 19:04:31
|
I've been looking a little at ML_(fd_allowed), in syswrap-generic.c.
This function decides which fds syscalls are allowed to create/use,
so that V's own fds don't get trashed.
This is a good thing; however I'm not sure I understand the logic.
- the first conditional reads
if ( (fd < 0 || fd >= VG_(fd_hard_limit) || fd == VG_(clo_log_fd))
&& VG_(showing_core_errors)() ) {
... stuff ...
return False;
}
which seems to imply that some part of the decision rests on
what VG_(showing_core_errors)() produces, iow on what sounds
like a setting in the error-displaying options. That seems a
little odd.
- what does the "Bool soft" parameter mean?
Can anyone clarify?
J
|