Lines Matching defs:file

5  * The contents of this file are subject to the Mozilla Public License Version
6 * 1.1 (the "License"); you may not use this file except in compliance with
24 * Alternatively, the contents of this file may be used under the terms of
28 * of those above. If you wish to allow use of your version of this file only
30 * use your version of this file under the terms of the MPL, indicate your
33 * the provisions above, a recipient may use your version of this file under
214 static void _MY_Assert(const char *s, const char *file, PRIntn ln)
218 PR_Assert(s, file, ln);
413 PRFileDesc *file = NULL;
441 ("\tProcessRequest(0x%p): unexpected end of file\n", me));
452 file = PR_Open(
454 if (NULL == file)
462 ("\tProcessRequest(0x%p): open file timeout\n", me));
466 TEST_ASSERT(NULL != file);
514 ("\tProcessRequest(0x%p): write %d bytes to file\n", me, netbytes));
515 bytes = PR_Write(file, buffer, netbytes);
524 ("\t\tProcessRequest(0x%p): write file timeout\n", me));
536 rv = PR_Close(file);
539 file = NULL;
544 file = PR_Open(descriptor->filename, PR_RDONLY, 0);
545 if (NULL == file)
553 ("\t\tProcessRequest(0x%p): open file timeout\n",
559 ("\t\tProcessRequest(0x%p): other file open error (%u, %u)\n",
563 TEST_ASSERT(NULL != file);
573 ("\tProcessRequest(0x%p): read %d bytes from file\n", me, filebytes));
574 bytes = PR_Read(file, buffer, filebytes);
582 ("\t\tProcessRequest(0x%p): read file timeout\n", me));
586 ("\t\tProcessRequest(0x%p): other file error (%d, %d)\n",
620 rv = PR_Close(file);
623 file = NULL;
627 if (NULL != file) PR_Close(file);