* exceptions.cc (interruptible): Remove obsolete tests.

(sigreturn): Construct pseudo-frame-pointer so that signal handler can figure
out where to put return address when signals are coming in quickly.
* path.cc (cwdstuff::get): Allow length 0 buffer length when buffer when NULL.
This commit is contained in:
Christopher Faylor
2000-11-02 02:15:02 +00:00
parent 69f9407faa
commit e2fa502354
3 changed files with 46 additions and 35 deletions

View File

@@ -2899,7 +2899,11 @@ cwdstuff::get (char *buf, int need_posix, int with_chroot, unsigned ulen)
{
MALLOC_CHECK;
if (ulen == 0)
if (ulen)
/* nothing */;
else if (buf == NULL)
ulen = (unsigned) -1;
else
{
set_errno (EINVAL);
goto out;