Home
last modified time | relevance | path

Searched refs:file (Results 1 – 25 of 224) sorted by relevance

123456789

/picolibc-latest/test/
Dtest-ungetc-ftell.c47 FILE *file; in main() local
51 file = fopen( TEST_FILE_NAME, "wb" ); in main()
52 if( file == NULL ) return 1; in main()
53 fputs(str, file); in main()
54 fclose(file); in main()
56 file = fopen( TEST_FILE_NAME, "rb" ); in main()
57 if(file == NULL) return 1; in main()
59 first = fgetc(file); in main()
62 start = ftell(file); in main()
65 ungetc(first, file); // Use ungetc to put the character back in main()
[all …]
Dtest-fgets-eof.c50 FILE *file; in main() local
53 file = fopen( TEST_FILE_NAME, "w" ); in main()
54 if(file == NULL) return 1; in main()
55 fputs(string, file); in main()
56 fclose(file); in main()
58 file = fopen( TEST_FILE_NAME, "r" ); in main()
59 if(file == NULL) return 1; in main()
62 pchar = fgets( line, 12, file); in main()
78 fclose( file ); in main()
Dtest-wchar.c45 FILE *file; in main() local
50 file = fopen("testfile.dat", "w"); in main()
51 if (file == NULL) return 1; in main()
54 fputws(string, file); in main()
55 fclose(file); in main()
58 file = fopen("testfile.dat", "r"); in main()
63 res = fgetwc(file); in main()
70 if(fgetwc(file) != WEOF) { in main()
/picolibc-latest/dummyhost/
Diob.c45 dummy_putc(char c, FILE *file) in dummy_putc() argument
48 (void) file; in dummy_putc()
53 dummy_getc(FILE *file) in dummy_getc() argument
55 (void) file; in dummy_getc()
60 dummy_flush(FILE *file) in dummy_flush() argument
62 (void) file; in dummy_flush()
/picolibc-latest/newlib/libc/stdio/
Dfputc.c92 FILE * file) in fputc() argument
95 CHECK_INIT(ptr, file); in fputc()
96 _newlib_flockfile_start (file); in fputc()
97 result = putc ( ch, file); in fputc()
98 _newlib_flockfile_end (file); in fputc()
Dstdio.tex18 @chapter Input and Output (@file{stdio.h})
27 The corresponding declarations are in @file{stdio.h}.
43 * Function clearerr:: Clear file or stream error indicator
44 * Function diprintf:: Print to a file descriptor (integer only)
45 * Function dprintf:: Print to a file descriptor
46 * Function fclose:: Close a file
48 * Function fdopen:: Turn an open file into a stream
49 * Function feof:: Test for end of file
51 * Function fflush:: Flush buffered file output
52 * Function fgetc:: Get a character from a file or stream
[all …]
Dflockfile.c40 flockfile(FILE *file) in flockfile() argument
42 (void) file; in flockfile()
43 _flockfile(file); in flockfile()
Dfunlockfile.c40 funlockfile(FILE *file) in funlockfile() argument
42 (void) file; in funlockfile()
43 _funlockfile(file); in funlockfile()
Dfputc_u.c34 FILE * file) in fputc_unlocked() argument
36 CHECK_INIT(ptr, file); in fputc_unlocked()
37 return putc_unlocked ( ch, file); in fputc_unlocked()
/picolibc-latest/newlib/libc/tinystdio/
Dfdevopen.c103 cf->file.flags = __SCLOSE; in fdevopen()
107 cf->file.get = get; in fdevopen()
108 cf->file.flags |= __SRD; in fdevopen()
112 cf->file.put = put; in fdevopen()
113 cf->file.flush = flush; in fdevopen()
114 cf->file.flags |= __SWR; in fdevopen()
Dfileno.c39 fileno(FILE *file) in fileno() argument
41 if (file->flags & __SBUF) { in fileno()
42 struct __file_bufio *pf = (struct __file_bufio *) file; in fileno()
Dfdopen.c62 __bufio_lock_init(&(bf->xfile.cfile.file)); in fdopen()
65 (void) fseeko(&(bf->xfile.cfile.file), 0, SEEK_END); in fdopen()
67 return &(bf->xfile.cfile.file); in fdopen()
/picolibc-latest/newlib/libc/machine/spu/
Dassert.c16 __assert_func (const char *file, in __assert_func() argument
23 failedexpr, file, line, in __assert_func()
36 __assert (const char *file, in __assert() argument
40 __assert_func (file, line, NULL, failedexpr); in __assert()
Dfreopen.c41 const char *file; member
51 freopen (const char *__restrict file, in freopen() argument
60 args.file = file; in freopen()
Dfopen.c41 const char* file; member
49 fopen (const char *__restrict file, in fopen() argument
64 args.file = file; in fopen()
/picolibc-latest/newlib/libc/stdio64/
Dstdio64.tex18 @chapter Large File Input and Output (@file{stdio.h})
26 The corresponding declarations are in @file{stdio.h}.
29 * Function fdopen64:: Turn open large file into a stream
30 * Function fopen64:: Open a large file
31 * Function freopen64:: Open a large file using an existing file descriptor
32 * Function fsetpos64:: Restore position of a large stream or file
33 * Function fgetpos64:: Get position of a large stream or file
34 * Function ftello64:: Return position in a large stream or file
35 * Function fseeko64:: Set large file position
36 * Function tmpfile64:: Create a temporary large file
/picolibc-latest/semihost/fake/
Dfake_io.c41 fake_putc(char c, FILE *file) in fake_putc() argument
43 (void) file; in fake_putc()
49 fake_getc(FILE *file) in fake_getc() argument
51 (void) file; in fake_getc()
/picolibc-latest/semihost/machine/x86/
De9_io.c41 e9_putc(char c, FILE *file) in e9_putc() argument
43 (void) file; in e9_putc()
49 e9_getc(FILE *file) in e9_getc() argument
51 (void) file; in e9_getc()
/picolibc-latest/semihost/machine/powerpc/
Dpowerpc_io.c43 powerpc_putc(char c, FILE *file) in powerpc_putc() argument
46 (void) file; in powerpc_putc()
51 powerpc_getc(FILE *file) in powerpc_getc() argument
53 (void) file; in powerpc_getc()
/picolibc-latest/semihost/machine/msp430/
Dmsp430-iob.c42 msp430_putc(char c, FILE *file) in msp430_putc() argument
44 (void) file; in msp430_putc()
52 msp430_getc(FILE *file) in msp430_getc() argument
54 (void) file; in msp430_getc()
/picolibc-latest/semihost/machine/sh/
Dsh_io.c42 sh_putc(char c, FILE *file) in sh_putc() argument
44 (void) file; in sh_putc()
54 sh_getc(FILE *file) in sh_getc() argument
56 (void) file; in sh_getc()
/picolibc-latest/newlib/libc/machine/nvptx/
Dassert.c25 __assert_func (const char *file, in __assert_func() argument
36 __assert (const char *file, in __assert() argument
40 __assert_func (file, line, NULL, failedexpr); in __assert()
/picolibc-latest/.github/
DDockerfile-zephyr20 for file in `cat /zephyr-files.txt`; do \
21 echo "Fetching $file"; \
22 wget "$file" || exit 1; \
23 echo "Unpacking $file"; \
24 tar xf `basename "$file"`; \
25 echo "Removing $file"; \
26 rm `basename "$file"`; \
/picolibc-latest/newlib/doc/
Dmakedocbook.py41 print('*' * 40, file=sys.stderr)
42 print(stage, file=sys.stderr)
43 print('*' * 40, file=sys.stderr)
44 print('%s' % s, file=sys.stderr)
45 print('*' * 40, file=sys.stderr)
152 print("performing command '%s'" % c, file=sys.stderr)
157 print("command '%s' is not recognized" % c, file=sys.stderr)
168 print('FUNCTION %s' % l, file=sys.stderr)
209 print(namelist, file=sys.stderr)
256 print('INDEX %s' % l, file=sys.stderr)
[all …]
/picolibc-latest/semihost/machine/sparc/
Dsparc_iob.c87 sparc_putc(char c, FILE *file) in sparc_putc() argument
89 (void) file; in sparc_putc()
100 sparc_getc(FILE *file) in sparc_getc() argument
102 (void) file; in sparc_getc()

123456789