Lines Matching defs:fd
57 PRFileDesc *fd;
66 fd = PR_OpenFile(TEMPLATE_FILE_NAME, PR_RDONLY, 0666);
67 nbytes = PR_Read(fd, buf, sizeof(buf));
68 PR_Close(fd);
71 fd = PR_OpenFile("tfil0700.txt", PR_RDWR | PR_CREATE_FILE, 0700);
72 if (NULL == fd) {
77 PR_Write(fd, buf, nbytes);
78 PR_Close(fd);
80 fd = PR_OpenFile("tfil0500.txt", PR_RDWR | PR_CREATE_FILE, 0500);
81 if (NULL == fd) {
86 PR_Write(fd, buf, nbytes);
87 PR_Close(fd);
89 fd = PR_OpenFile("tfil0400.txt", PR_RDWR | PR_CREATE_FILE, 0400);
90 if (NULL == fd) {
95 PR_Write(fd, buf, nbytes);
96 PR_Close(fd);
98 fd = PR_OpenFile("tfil0644.txt", PR_RDWR | PR_CREATE_FILE, 0644);
99 if (NULL == fd) {
104 PR_Write(fd, buf, nbytes);
105 PR_Close(fd);
107 fd = PR_OpenFile("tfil0664.txt", PR_RDWR | PR_CREATE_FILE, 0664);
108 if (NULL == fd) {
113 PR_Write(fd, buf, nbytes);
114 PR_Close(fd);
116 fd = PR_OpenFile("tfil0660.txt", PR_RDWR | PR_CREATE_FILE, 0660);
117 if (NULL == fd) {
122 PR_Write(fd, buf, nbytes);
123 PR_Close(fd);
125 fd = PR_OpenFile("tfil0666.txt", PR_RDWR | PR_CREATE_FILE, 0666);
126 if (NULL == fd) {
131 PR_Write(fd, buf, nbytes);
132 PR_Close(fd);
134 fd = PR_OpenFile("tfil0640.txt", PR_RDWR | PR_CREATE_FILE, 0640);
135 if (NULL == fd) {
140 PR_Write(fd, buf, nbytes);
141 PR_Close(fd);