Back to index

lightning-sunbird  0.9+nobinonly
Functions | Variables
op_noacc.c File Reference
#include "prinit.h"
#include "prmem.h"
#include "prio.h"
#include "prerror.h"
#include <stdio.h>
#include "plgetopt.h"

Go to the source code of this file.


int main (int argc, char **argv)
 The Xalan testcases app.


static PRFileDescerr01
PRIntn error_code

Function Documentation

int main ( int  argc,
char **  argv 

The Xalan testcases app.

Definition at line 68 of file op_noacc.c.


#ifdef XP_MAC
#ifdef XP_PC
    printf("op_noacc: Test not valid on MS-Windows.\n\tNo concept of 'mode' on Open() call\n");

       err01 = PR_Open("err01.tmp", PR_CREATE_FILE | PR_RDWR, 0);
       if (err01 == NULL) 
              if (PR_GetError() == PR_NO_ACCESS_RIGHTS_ERROR) {
                            printf ("error code is %d\n",PR_GetError());
                            printf ("PASS\n");
                     return 0;
              else {
                     printf ("FAIL\n");
                     return 1;

Variable Documentation

PRFileDesc* err01 [static]

Definition at line 65 of file op_noacc.c.

PRIntn error_code

Definition at line 66 of file op_noacc.c.