1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6 /***********************************************************************
10 ** Description: Test Program to verify the PR_NO_ACCESS_RIGHTS_ERROR in PR_Open
12 ** Modification History:
13 ** 03-June-97 AGarcia- Initial version
14 ***********************************************************************/
16 /***********************************************************************
18 ***********************************************************************/
19 /* Used to get the command line option */
27 static PRFileDesc
*err01
;
30 int main(int argc
, char **argv
)
33 printf("op_noacc: Test not valid on MS-Windows.\n\tNo concept of 'mode' on Open() call\n");
39 err01
= PR_Open("err01.tmp", PR_CREATE_FILE
| PR_RDWR
, 0);
41 int error
= PR_GetError();
42 printf ("error code is %d\n", error
);
43 if (error
== PR_NO_ACCESS_RIGHTS_ERROR
) {