[Xitami] Assertion failed! (continued)

Ronald Eugene Kidd kiddre at ix.netcom.com
Sat Jan 21 01:34:35 CET 2006


Apparently it is failing in this routine:

/*  ---------------------------------------------------------------------[<]
-
    Function: get_file_size

    Synopsis: Returns the size, in bytes, of the specified file or
    directory.  The size of a directory is not a portable concept.  If there
    is an error, returns -1.
    ---------------------------------------------------------------------[>]
-*/

long
get_file_size (
    const char *filename)
{
    struct stat
        stat_buf;

    ASSERT (filename);

#   if (defined (GATES_FILESYSTEM))
    if (system_devicename (filename))
        return (-1);                    /*  Not allowed on device names
*/
#   endif
    if (stat ((char *) filename, &stat_buf) == 0)
        return ((long) stat_buf.st_size);
    else
        return (-1);
}

I’m trying to CGI_STDIN and CGI_STDOUT to read FORM type=”post” controls and
to write the HTML file I want to return to the client.  I’m using Quercus
REXX for the cgi program.  I have traced the execution and found that the
program runs to completion after completing the output file, then the
Assertion failed message appears.

Thanks again,
Ronald Kidd

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.imatix.org/pipermail/xitami/attachments/20060120/20074553/attachment.htm


More information about the Xitami mailing list