Back to index

lightning-sunbird  0.9+nobinonly
Defines | Functions | Variables
priometh.c File Reference
#include "primpl.h"
#include <string.h>

Go to the source code of this file.

Defines

#define AMASK   ((PRPtrdiff)7) /* mask for alignment of PRNetAddr */
#define _SENDFILE_BUFSIZE   (16 * 1024)

Functions

PRIntn _PR_InvalidInt (void)
PRInt16 _PR_InvalidInt16 (void)
PRInt64 _PR_InvalidInt64 (void)
PRStatus _PR_InvalidStatus (void)
PRFileDesc_PR_InvalidDesc (void)
 PR_IMPLEMENT (PRDescType)
 PR_IMPLEMENT (PRStatus)
 PR_IMPLEMENT (PRInt32)
 PR_IMPLEMENT (PRInt64)
 PR_IMPLEMENT (PRFileDesc *)

Variables

PRIOMethods _pr_faulty_methods

Define Documentation

#define _SENDFILE_BUFSIZE   (16 * 1024)
#define AMASK   ((PRPtrdiff)7) /* mask for alignment of PRNetAddr */

Function Documentation

Definition at line 122 of file priometh.c.

{
    PR_ASSERT(!"I/O method is invalid");
    PR_SetError(PR_INVALID_METHOD_ERROR, 0);
    return NULL;
}  /* _PR_InvalidDesc */
PRIntn _PR_InvalidInt ( void  )

Definition at line 84 of file priometh.c.

{
    PR_ASSERT(!"I/O method is invalid");
    PR_SetError(PR_INVALID_METHOD_ERROR, 0);
    return -1;
}  /* _PR_InvalidInt */

Definition at line 91 of file priometh.c.

{
    PR_ASSERT(!"I/O method is invalid");
    PR_SetError(PR_INVALID_METHOD_ERROR, 0);
    return -1;
}  /* _PR_InvalidInt */

Definition at line 98 of file priometh.c.

{
    PRInt64 rv;
    LL_I2L(rv, -1);
    PR_ASSERT(!"I/O method is invalid");
    PR_SetError(PR_INVALID_METHOD_ERROR, 0);
    return rv;
}  /* _PR_InvalidInt */

Definition at line 111 of file priometh.c.

{
    PR_ASSERT(!"I/O method is invalid");
    PR_SetError(PR_INVALID_METHOD_ERROR, 0);
    return PR_FAILURE;
}  /* _PR_InvalidDesc */

Definition at line 129 of file priometh.c.

{
    return file->methods->file_type;
}

Definition at line 134 of file priometh.c.

{
    return (fd->methods->close)(fd);
}

Definition at line 139 of file priometh.c.

{
       return((fd->methods->read)(fd,buf,amount));
}

Definition at line 154 of file priometh.c.

{
       return((fd->methods->seek64)(fd, offset, whence));
}

Definition at line 196 of file priometh.c.

{
       return((fd->methods->accept)(fd,addr,timeout));
}

Variable Documentation

Definition at line 45 of file priometh.c.