Lines Matching refs:fd_file

192 PRFileDesc *fd_file;
203 fd_file = PR_Open(name, PR_RDWR | PR_CREATE_FILE, 0777);
204 if (fd_file == NULL) {
208 if (PR_Seek(fd_file, offset, PR_SEEK_SET) < 0) {
212 if ((PR_Write(fd_file, buf, len)) < 0) {
217 PR_Close(fd_file);
228 PRFileDesc *fd_file;
239 fd_file = PR_Open(name, PR_RDONLY, 0);
240 if (fd_file == NULL) {
244 if (PR_Seek(fd_file, offset, PR_SEEK_SET) < 0) {
248 if ((PR_Read(fd_file, buf, len)) < 0) {
253 PR_Close(fd_file);
265 PRFileDesc *fd_file;
275 fd_file = PR_Open(pathname, PR_RDWR | PR_CREATE_FILE, 0777);
277 if (fd_file == NULL) {
281 if (PR_GetOpenFileInfo(fd_file, &file_info) < 0) {
324 len = PR_Available(fd_file);
336 if (PR_GetOpenFileInfo(fd_file, &file_info) < 0) {
349 len = PR_Write(fd_file, out_buf->data, CHUNK_SIZE);
355 if (PR_GetOpenFileInfo(fd_file, &file_info) < 0) {
376 len = PR_Available(fd_file);
389 PR_Seek(fd_file, 0, PR_SEEK_SET);
390 len = PR_Available(fd_file);
402 PR_Close(fd_file);
412 fd_file = PR_Open(pathname, PR_RDWR | PR_CREATE_FILE, 0777);
413 len = PR_Write(fd_file, out_buf->data, CHUNK_SIZE);
414 PR_Close(fd_file);
623 PRFileDesc *fd_file;
665 fd_file = PR_Open(pathname, PR_RDWR | PR_CREATE_FILE, 0777);
667 if (fd_file == NULL) {
673 PR_Close(fd_file);
684 fd_file = PR_Open(pathname, PR_RDWR | PR_CREATE_FILE, 0777);
686 if (fd_file == NULL) {
704 fcbpb.ioRefNum = fd_file->secret->md.osfd;
709 PR_Close(fd_file);
720 PR_Close(fd_file);
733 PR_Close(fd_file);
740 PR_Close(fd_file);
760 fd_file = PR_Open(pathname, PR_RDWR | PR_CREATE_FILE, (int)FILE_HIDDEN);
762 if (fd_file == NULL) {
767 PR_Close(fd_file);