Home
last modified time | relevance | path

Searched refs:fileptr (Results 1 – 25 of 377) sorted by relevance

12345678910>>...16

/dports/science/cgribex/cgribex-1.9.4/src/
H A Dfile.c299 if ( fileptr ) file_init_entry(fileptr); in file_new_entry()
405 if ( fileptr ) bufferType = fileptr->bufferType; in fileGetBufferType()
415 if ( fileptr ) retval = fflush(fileptr->fp); in fileFlush()
527 fileptr->bufferPos = fileptr->bufferEnd + 1; in fileSetPos()
530 fileptr->bufferPtr = fileptr->buffer + position - fileptr->bufferStart; in fileSetPos()
561 fileptr->bufferPos = fileptr->bufferEnd + 1; in fileSetPos()
576 if ( fileptr->position < fileptr->size ) in fileSetPos()
639 if ( fileptr ) name = fileptr->name; in fileInqName()
649 if ( fileptr ) mode = fileptr->mode; in fileInqMode()
926 fileptr->bufferPtr = fileptr->buffer; in file_fill_buffer()
[all …]
H A DgribFile.c66 void *fileptr = filePtr(fileID); in gribFileSeek() local
70 ch = filePtrGetc(fileptr); in gribFileSeek()
89 unsigned read3ByteMSBFirst(void *fileptr) in read3ByteMSBFirst() argument
101 void *fileptr = filePtr(fileID); in gribReadSize() local
106 int gribversion = filePtrGetc(fileptr); in gribReadSize()
120 int flag = filePtrGetc(fileptr); in gribReadSize()
127 gdssize = read3ByteMSBFirst(fileptr); in gribReadSize()
134 bmssize = read3ByteMSBFirst(fileptr); in gribReadSize()
161 gdssize = read3ByteMSBFirst(fileptr); in gribReadSize()
169 bmssize = read3ByteMSBFirst(fileptr); in gribReadSize()
[all …]
/dports/science/cdo/cdo-2.0.0/libcdi/src/
H A Dfile.c251 fileptr->self = file_from_pointer(fileptr); in file_init_entry()
280 if (fileptr) file_init_entry(fileptr); in file_new_entry()
384 return fileptr ? fflush(fileptr->fp) : 0; in fileFlush()
477 fileptr->bufferCnt = (size_t)(fileptr->bufferEnd - fileptr->position) + 1; in file_seek_buffer()
478 fileptr->bufferPtr = fileptr->buffer + fileptr->position - fileptr->bufferStart; in file_seek_buffer()
514 if (fileptr->position < fileptr->size) in fileSetPos()
567 return fileptr ? fileptr->name : NULL; in fileInqName()
574 return fileptr ? fileptr->mode : 0; in fileInqMode()
809 … if ((nread + fileptr->bufferPos) > fileptr->size) nread = fileptr->size - fileptr->bufferPos; in file_fill_buffer()
844 fileptr->bufferPtr = fileptr->buffer; in file_fill_buffer()
[all …]
/dports/devel/gindent/indent-2.2.12/src/
H A Dcode_io.c253 if (fileptr.data != 0) in read_file()
255 fileptr.data = xrealloc(fileptr.data, in read_file()
269 size = read (fd, fileptr.data + fileptr.size - size_to_read, in read_file()
292 xfree(fileptr.data); in read_file()
303 fileptr.size = size; in read_file()
308 fileptr.name = xrealloc(fileptr.name, (unsigned)namelen + 1); in read_file()
318 if ((fileptr.size>0) && (fileptr.data[fileptr.size - 1] != EOL)) in read_file()
320 fileptr.data[fileptr.size] = EOL; in read_file()
321 fileptr.size++; in read_file()
324 fileptr.data[fileptr.size] = EOS; in read_file()
[all …]
/dports/games/atr3d/atr3d/
H A Dfileutils.cpp8 void ReadVariables(FILE *fileptr,
11 int IgnoreCommentsAndSpaces(FILE *fileptr, char *c);
13 int GoToEndOfLine(FILE *fileptr);
16 void ReadVariables(FILE *fileptr, in ReadVariables() argument
38 if (IgnoreCommentsAndSpaces(fileptr, c)) { in GetWord()
43 while((*c=fgetc(fileptr)) != EndOfWord) { in GetWord()
56 int IgnoreCommentsAndSpaces(FILE *fileptr, char *c) in IgnoreCommentsAndSpaces() argument
58 while((*c=fgetc(fileptr))!=EOF) { in IgnoreCommentsAndSpaces()
61 if (GoToEndOfLine(fileptr)) { in IgnoreCommentsAndSpaces()
83 int GoToEndOfLine(FILE *fileptr) in GoToEndOfLine() argument
[all …]
/dports/misc/gnuls/coreutils-8.30/src/
H A Dpaste.c191 FILE **fileptr = xnmalloc (nfiles + 1, sizeof *fileptr); in paste_parallel() local
208 fileptr[files_open] = stdin; in paste_parallel()
241 if (fileptr[i]) in paste_parallel()
243 chr = getc (fileptr[i]); in paste_parallel()
267 if (fileptr[i]) in paste_parallel()
282 fileptr[i] = NULL; in paste_parallel()
338 free (fileptr); in paste_parallel()
362 fileptr = stdin; in paste_serial()
367 if (fileptr == NULL) in paste_serial()
378 charold = getc (fileptr); in paste_serial()
[all …]
/dports/sysutils/coreutils/coreutils-8.32/src/
H A Dpaste.c191 FILE **fileptr = xnmalloc (nfiles + 1, sizeof *fileptr); in paste_parallel() local
208 fileptr[files_open] = stdin; in paste_parallel()
241 if (fileptr[i]) in paste_parallel()
243 chr = getc (fileptr[i]); in paste_parallel()
267 if (fileptr[i]) in paste_parallel()
282 fileptr[i] = NULL; in paste_parallel()
338 free (fileptr); in paste_parallel()
362 fileptr = stdin; in paste_serial()
367 if (fileptr == NULL) in paste_serial()
378 charold = getc (fileptr); in paste_serial()
[all …]
/dports/lang/rexx-regina/regina-rexx-3.9.3/
H A Dfiles.c3191 oldp = rx_ftell( fileptr->fileptr ) ; in positioncharfile()
3192 rx_fseek(fileptr->fileptr, 0, SEEK_END) ; in positioncharfile()
3193 endp = rx_ftell( fileptr->fileptr ) ; in positioncharfile()
3382 && rx_fseek(fileptr->fileptr, fileptr->readpos, SEEK_SET )) in readbytes()
3388 fileptr->thispos = fileptr->readpos ; in readbytes()
3511 if (fileptr->thispos != fileptr->writepos) in writebytes()
3515 && rx_fseek(fileptr->fileptr, fileptr->writepos, SEEK_SET )) in writebytes()
3521 fileptr->thispos = fileptr->writepos ; in writebytes()
3566 rc = fflush( fileptr->fileptr ); in writebytes()
3607 fflush( fileptr->fileptr ) ; in writebytes()
[all …]
/dports/science/dakota/dakota-6.13.0-release-public.src-UI/test/
H A Dcontainer_alt.c16 FILE *fileptr; in main() local
30 fileptr = fopen(infile,"r"); in main()
33 fscanf(fileptr,"%d %80s",&num_vars,in_str); in main()
36 fscanf(fileptr,"%lf %80s",&H,in_str); in main()
37 fscanf(fileptr,"%lf %80s",&D,in_str); in main()
40 fscanf(fileptr,"%d %80s",&num_fns,in_str); in main()
44 fscanf(fileptr,"%d %80s",&req[i],in_str); in main()
46 fclose(fileptr); in main()
59 fileptr = fopen(outfile,"w"); in main()
63 fprintf(fileptr,"%23.15e %s",fval[i],valtag[i]); in main()
[all …]
/dports/devel/log4cxx/apache-log4cxx-0.11.0/src/main/cpp/
H A Dfileoutputstream.cpp35 bool append) : pool(), fileptr(open(filename, append, pool)) in IMPLEMENT_LOG4CXX_OBJECT()
61 apr_file_t* fileptr = 0; in open() local
62 apr_status_t stat = fn.open(&fileptr, flags, perm, pool); in open()
69 return fileptr; in open()
74 if (fileptr != NULL && !APRInitializer::isDestructed) in ~FileOutputStream()
76 apr_file_close(fileptr); in ~FileOutputStream()
82 if (fileptr != NULL) in close()
84 apr_status_t stat = apr_file_close(fileptr); in close()
91 fileptr = NULL; in close()
101 if (fileptr == NULL) in write()
[all …]
H A Dfileinputstream.cpp34 FileInputStream::FileInputStream(const LogString& filename) : fileptr(0) in IMPLEMENT_LOG4CXX_OBJECT()
39 FileInputStream::FileInputStream(const logchar* filename) : fileptr(0) in FileInputStream()
50 apr_status_t stat = File().setPath(filename).open(&fileptr, flags, perm, pool); in open()
63 apr_status_t stat = aFile.open(&fileptr, flags, perm, pool); in FileInputStream()
74 if (fileptr != NULL && !APRInitializer::isDestructed) in ~FileInputStream()
76 apr_file_close(fileptr); in ~FileInputStream()
83 apr_status_t stat = apr_file_close(fileptr); in close()
87 fileptr = NULL; in close()
99 apr_status_t stat = apr_file_read(fileptr, buf.current(), &bytesRead); in read()
/dports/textproc/mdocml/mandoc-1.14.5/
H A Dmandoc_msg.c245 static FILE *fileptr = NULL; variable
254 fileptr = fp; in mandoc_msg_setoutfile()
308 if (fileptr == NULL) in mandoc_msg()
311 fprintf(fileptr, "%s:", getprogname()); in mandoc_msg()
313 fprintf(fileptr, " %s:", filename); in mandoc_msg()
316 fprintf(fileptr, "%d:%d:", line, col + 1); in mandoc_msg()
318 fprintf(fileptr, " %s", level_name[level]); in mandoc_msg()
320 fprintf(fileptr, ": %s", type_message[t]); in mandoc_msg()
323 fprintf(fileptr, ": "); in mandoc_msg()
325 vfprintf(fileptr, fmt, ap); in mandoc_msg()
[all …]
/dports/cad/scotch/scotch-6.0.4/src/libscotch/
H A Dcommon_file.c183 filetab[i].fileptr = (filetab[i].modeptr[0] == 'r') ? stdin : stdout; in fileBlockInit()
203 if (filetab[i].fileptr == NULL) /* If unwanted stream, do nothing */ in fileBlockOpen()
210 filetab[i].fileptr = filetab[j].fileptr; /* Share pointer to already processed stream */ in fileBlockOpen()
230 …].modeptr[0] == 'r') ? fileUncompress (filetab[i].fileptr, compval) : fileCompress (filetab[i].fil… in fileBlockOpen()
235 … filetab[i].fileptr = compptr; /* Use processed stream instead of original stream */ in fileBlockOpen()
260 if (filetab[i].fileptr == NULL) { /* If unwanted stream, do nothing */ in fileBlockOpenDist()
270 filetab[i].fileptr = NULL; in fileBlockOpenDist()
279 filetab[i].fileptr = filetab[j].fileptr; /* Share pointer to already processed stream */ in fileBlockOpenDist()
299 …].modeptr[0] == 'r') ? fileUncompress (filetab[i].fileptr, compval) : fileCompress (filetab[i].fil… in fileBlockOpenDist()
326 if ((filetab[i].fileptr != NULL) && /* If stream exists */ in fileBlockClose()
[all …]
H A Dlibrary_graph_map_io_f.c68 const int * const fileptr, \
70 (grafptr, parttab, fileptr, revaptr))
77 if ((filenum = dup (*fileptr)) < 0) { /* If cannot duplicate file descriptor */
104 const int * const fileptr, \
106 (grafptr, mappptr, fileptr, revaptr))
112 if ((filenum = dup (*fileptr)) < 0) { /* If cannot duplicate file descriptor */
139 int * const fileptr, \
141 (grafptr, mappptr, fileptr, revaptr))
147 if ((filenum = dup (*fileptr)) < 0) { /* If cannot duplicate file descriptor */
H A Dvgraph_separate_vw.c87 FILE * restrict fileptr; in vgraphSeparateVw() local
91 if ((fileptr = fopen (nametab, "w+")) == NULL) { in vgraphSeparateVw()
96 …fprintf (fileptr, GNUMSTRING "\n", /* Output size of mapping; test if failure later, … in vgraphSeparateVw()
100 if (fprintf (fileptr, GNUMSTRING "\t%d\n", in vgraphSeparateVw()
104 fclose (fileptr); in vgraphSeparateVw()
109 fclose (fileptr); in vgraphSeparateVw()
/dports/games/moria/umoria/util/scores/
H A Ddelete.c38 FILE *fileptr; variable
135 (void) putc((int)xor_byte, fileptr);
180 c = getc(fileptr) & 0xFF;
191 c = (getc(fileptr) & 0xFF);
193 xor_byte = (getc(fileptr) & 0xFF);
204 c = (getc(fileptr) & 0xFF);
206 xor_byte = (getc(fileptr) & 0xFF);
208 c = (getc(fileptr) & 0xFF);
210 xor_byte = (getc(fileptr) & 0xFF);
226 c = (getc(fileptr) & 0xFF);
[all …]
H A Dprint.c38 FILE *fileptr; variable
137 c = getc(fileptr) & 0xFF;
148 c = (getc(fileptr) & 0xFF);
150 xor_byte = (getc(fileptr) & 0xFF);
161 c = (getc(fileptr) & 0xFF);
163 xor_byte = (getc(fileptr) & 0xFF);
165 c = (getc(fileptr) & 0xFF);
167 xor_byte = (getc(fileptr) & 0xFF);
183 c = (getc(fileptr) & 0xFF);
193 fileptr = file;
/dports/cad/scotch/scotch-6.0.4/src/check/
H A Dtest_scotch_graph_order.c71 FILE * fileptr; in main() local
89 if ((fileptr = fopen (argv[1], "r")) == NULL) { in main()
94 if (SCOTCH_graphLoad (&grafdat, fileptr, -1, 0) != 0) { /* Read source graph */ in main()
99 fclose (fileptr); in main()
112 if ((fileptr = tmpfile ()) == NULL) { /* Open temporary file for resulting output */ in main()
137 SCOTCH_graphOrderSave (&grafdat, &ordedat, fileptr); /* Test ordering data output routines */ in main()
138 SCOTCH_graphOrderSaveMap (&grafdat, &ordedat, fileptr); in main()
139 SCOTCH_graphOrderSaveTree (&grafdat, &ordedat, fileptr); in main()
158 SCOTCH_graphOrderSave (&grafdat, &ordedat, fileptr); /* Test ordering data output routines */ in main()
159 SCOTCH_graphOrderSaveMap (&grafdat, &ordedat, fileptr); in main()
[all …]
/dports/games/libretro-beetle_ngp/beetle-ngp-libretro-74cc0d8/mednafen/ngp/
H A Dflash.c119 uint8_t *fileptr; in do_flash_read() local
128 fileptr = flashdata + sizeof(FlashFileHeader); in do_flash_read()
135 fileptr += sizeof(FlashFileBlockHeader); in do_flash_read()
143 storeB(blocks[i].start_address + j, *fileptr); in do_flash_read()
144 fileptr++; in do_flash_read()
222 uint8_t *flashdata, *fileptr; in make_flash_commit() local
247 fileptr = flashdata + sizeof(FlashFileHeader); in make_flash_commit()
254 memcpy(fileptr, &blocks[i], sizeof(FlashFileBlockHeader)); in make_flash_commit()
255 fileptr += sizeof(FlashFileBlockHeader); in make_flash_commit()
260 *fileptr = loadB(blocks[i].start_address + j); in make_flash_commit()
[all …]
/dports/astro/py-astropy/astropy-5.0/astropy/io/fits/src/
H A Dcompressionmodule.c485 fileptr->Fptr->tableptr = *columns; in tcolumns_from_header()
486 fileptr->Fptr->tfield = tfields; in tcolumns_from_header()
517 Fptr = fileptr->Fptr; in configure_compression()
922 Fptr = (*fileptr)->Fptr; in open_from_hdu()
976 fitsfile* fileptr = NULL; in compression_compress_hdu() local
999 Fptr = fileptr->Fptr; in compression_compress_hdu()
1095 if (fileptr != NULL && fileptr->Fptr != NULL) { in compression_compress_hdu()
1100 if (fileptr != NULL) { in compression_compress_hdu()
1134 fitsfile* fileptr = NULL; in compression_decompress_hdu() local
1202 if (fileptr != NULL && fileptr->Fptr != NULL) { in compression_decompress_hdu()
[all …]
/dports/net-im/tox/c-toxcore-0.2.13/testing/
H A Dafl_toxsave.c13 FILE *fileptr = fopen(argv[1], "rb"); in main() local
14 fseek(fileptr, 0, SEEK_END); in main()
15 long filelen = ftell(fileptr); in main()
16 rewind(fileptr); in main()
20 size_t bytes_read = fread(buffer, filelen, 1, fileptr); in main()
27 fclose(fileptr); in main()
/dports/japanese/xv/xv-3.10a/vms/
H A Ddecompress.c98 char *fileptr; local
107 fileptr = argv[1];
111 strcpy (tempname, fileptr);
113 fileptr = tempname;
117 if ((freopen (fileptr, "r", stdin)) == NULL) {
118 perror (fileptr);
126 fprintf (stderr, "%s: not in compressed format\n", fileptr);
137 fileptr, maxbits, BITS);
143 strcpy (ofname, fileptr);
144 ofname[strlen (fileptr) - 2] = '\0'; /* Strip off .Z */
/dports/graphics/xv-m17n/xv-3.10a/vms/
H A Ddecompress.c98 char *fileptr; local
107 fileptr = argv[1];
111 strcpy (tempname, fileptr);
113 fileptr = tempname;
117 if ((freopen (fileptr, "r", stdin)) == NULL) {
118 perror (fileptr);
126 fprintf (stderr, "%s: not in compressed format\n", fileptr);
137 fileptr, maxbits, BITS);
143 strcpy (ofname, fileptr);
144 ofname[strlen (fileptr) - 2] = '\0'; /* Strip off .Z */
/dports/graphics/xv/xv-3.10a/vms/
H A Ddecompress.c98 char *fileptr; local
107 fileptr = argv[1];
111 strcpy (tempname, fileptr);
113 fileptr = tempname;
117 if ((freopen (fileptr, "r", stdin)) == NULL) {
118 perror (fileptr);
126 fprintf (stderr, "%s: not in compressed format\n", fileptr);
137 fileptr, maxbits, BITS);
143 strcpy (ofname, fileptr);
144 ofname[strlen (fileptr) - 2] = '\0'; /* Strip off .Z */
/dports/emulators/mednafen/mednafen/src/ngp/
H A Dflash.cpp132 const uint8 *fileptr; in do_flash_read() local
146 fileptr = flashdata + sizeof(FlashFileHeader); in do_flash_read()
153 fileptr += sizeof(FlashFileBlockHeader); in do_flash_read()
161 storeB(blocks[i].start_address + j, *fileptr); in do_flash_read()
162 fileptr++; in do_flash_read()
258 uint8 *fileptr; in make_flash_commit() local
284 fileptr = &flashdata[0] + sizeof(FlashFileHeader); in make_flash_commit()
289 memcpy(fileptr, &blocks[i], sizeof(FlashFileBlockHeader)); in make_flash_commit()
290 fileptr += sizeof(FlashFileBlockHeader); in make_flash_commit()
295 *fileptr = loadB(blocks[i].start_address + j); in make_flash_commit()
[all …]

12345678910>>...16