/macosx-10.10.1/ruby-106/ruby/sample/ |
H A D | mpart.rb | 28 ofp = open(sprintf("%s.%s%02d", basename, extname, part), "w") 29 printf(ofp, "%s part%02d/%02d\n", basename, part, parts) 30 ofp.write("BEGIN--cut here--cut here\n") 32 ofp.write(i) 35 ofp.write("END--cut here--cut here\n") 36 ofp.close 41 ofp.write("END--cut here--cut here\n") 42 ofp.close
|
/macosx-10.10.1/ncurses-44/ncurses/ncurses/tinfo/ |
H A D | setbuf.c | 101 _nc_set_buffer(FILE *ofp, bool buffered) argument 103 /* optional optimization hack -- do before any output to ofp */ 112 fflush(ofp); 114 setmode(ofp, O_BINARY); 139 (void) setvbuf(ofp, buf_ptr, buf_len, buf_len ? _IOFBF : _IOLBF); 141 (void) setvbuf(ofp, buf_ptr, buf_len ? _IOFBF : _IOLBF, buf_len); 144 (void) setbuffer(ofp, buf_ptr, (int) buf_len);
|
H A D | make_keys.c | 71 make_keys(FILE *ifp, FILE *ofp) argument 93 fprintf(ofp, "\t{ %4d, %-*.*s },\t/* %s */\n", 103 write_list(FILE *ofp, const char **list) argument 106 fprintf(ofp, "%s\n", *list++);
|
/macosx-10.10.1/bash-94.1.2/bash-3.2/examples/loadables/ |
H A D | print.c | 28 static FILE *ofp; variable 112 ofp = (ofd == 1) ? stdout : fdopen (dup (ofd), "w"); 131 fprintf (ofp, "%s", l->word->word); 133 fprintf (ofp, " "); 136 fprintf (ofp, "\n"); 137 fflush (ofp); 141 r = printargs (list, ofp); 143 fprintf (ofp, "\n"); 145 fclose (ofp); 150 printargs (list, ofp) [all...] |
/macosx-10.10.1/text_cmds-88/csplit/ |
H A D | csplit.c | 102 FILE *ofp; local 197 ofp = newfile(); 198 while ((p = csplit_getline()) != NULL && fputs(p, ofp) != EOF) 201 printf("%jd\n", (intmax_t)ftello(ofp)); 202 if (fclose(ofp) != 0) 296 toomuch(FILE *ofp, long n) argument 326 if (ftello(ofp) < (off_t)sizeof(buf)) 327 rewind(ofp); 329 fseeko(ofp, -(off_t)sizeof(buf), SEEK_CUR); 330 if (ferror(ofp)) 362 FILE *ofp; local 441 FILE *ofp; local [all...] |
/macosx-10.10.1/file_cmds-242/compress/ |
H A D | compress.c | 205 FILE *ifp = NULL, *ofp = NULL; local 227 if ((ofp = zopen(out, "w", bits)) == NULL) { 232 if (fwrite(buf, 1, nr, ofp) != nr) { 243 if (fclose(ofp)) { 247 ofp = NULL; 282 err: if (ofp) { 285 (void)fclose(ofp); 296 FILE *ifp, *ofp; local 307 ofp = NULL; 328 if ((ofp [all...] |
/macosx-10.10.1/xnu-2782.1.97/SETUP/config/ |
H A D | mkmakefile.c | 70 void do_machdep(FILE *ofp); 170 FILE *ifp, *ofp; local 186 ofp = fopen(path("Makefile"), "w"); 187 if (ofp == 0) { 191 fprintf(ofp, "SOURCE_DIR=%s\n", source_directory); 193 fprintf(ofp, "export CONFIG_DEFINES ="); 195 fprintf(ofp, " -DGPROF"); 199 fprintf(ofp, " -D%s=\"%s\"", op->op_name, op->op_value); 201 fprintf(ofp, " -D%s", op->op_name); 202 fprintf(ofp, "\ 592 do_machdep(FILE *ofp) argument [all...] |
/macosx-10.10.1/patch_cmds-17/patch/ |
H A D | patch.c | 123 static FILE *ofp = NULL; /* output file pointer */ variable 300 fclose(ofp); 301 ofp = NULL; 337 if (ofp) 338 fclose(ofp); 339 ofp = NULL; 831 fputs(not_defined, ofp); 834 fputs(else_defined, ofp); 837 fputs(pfetch(old), ofp); local 847 fputs(else_defined, ofp); 854 fputs(pfetch(new), ofp); local 873 fputs(pfetch(old), ofp); local 883 fputs(pfetch(new), ofp); local 909 fputs(pfetch(new), ofp); local [all...] |
/macosx-10.10.1/text_cmds-88/uniq/ |
H A D | uniq.c | 79 FILE *ifp, *ofp; local 133 ofp = stdout; 137 ofp = file(argv[1], "w"); 150 show(ofp, prevline); 170 show(ofp, prevline); 174 show(ofp, prevline); 183 show(ofp, prevline); 210 show(FILE *ofp, wchar_t *str) argument 214 (void)fprintf(ofp, "%4d %ls\n", repeats + 1, str); 216 (void)fprintf(ofp, " [all...] |
/macosx-10.10.1/OpenLDAP-499.27/OpenLDAP/servers/slapd/shell-backends/ |
H A D | shellutil.c | 86 write_entry( struct ldop *op, struct ldentry *entry, FILE *ofp ) 91 fprintf( ofp, "dn: %s\n", entry->lde_dn ); 95 fprintf( ofp, "%s: %s\n", (*app)->lda_name, *valp ); 99 fputc( '\n', ofp ); 152 parse_input( FILE *ifp, FILE *ofp, struct ldop *op ) argument 158 write_result( ofp, LDAP_OTHER, NULL, "Empty Input" ); 163 write_result( ofp, LDAP_UNWILLING_TO_PERFORM, NULL, 193 write_result( ofp, LDAP_OTHER, NULL, "Bad scope" ); 199 write_result( ofp, LDAP_OTHER, NULL, "Bad alias deref" ); 205 write_result( ofp, LDAP_OTHE [all...] |
H A D | shellutil.h | 103 void write_entry( struct ldop *op, struct ldentry *entry, FILE *ofp ); 107 int parse_input( FILE *ifp, FILE *ofp, struct ldop *op );
|
H A D | passwd-shell.c | 48 static void pwdfile_search LDAP_P(( struct ldop *op, FILE *ofp )); 113 pwdfile_search( struct ldop *op, FILE *ofp ) 125 write_entry( op, entry, ofp ); 129 write_entry( op, entry, ofp ); 136 write_result( ofp, LDAP_SUCCESS, NULL, NULL );
|
/macosx-10.10.1/ncurses-44/ncurses/ncurses/base/ |
H A D | lib_newterm.c | 122 newterm(NCURSES_CONST char *name, FILE *ofp, FILE *ifp) argument 131 T((T_CALLED("newterm(\"%s\",%p,%p)"), name, ofp, ifp)); 140 if (setupterm(name, fileno(ofp), &errret) != ERR) { 156 ofp,
|
/macosx-10.10.1/dtrace-147/libctf/ |
H A D | ctf_types.c | 65 ctf_file_t *ofp = fp; local 81 return (ctf_set_errno(ofp, ECTF_NOTSOU)); 116 ctf_file_t *ofp = fp; local 130 return (ctf_set_errno(ofp, ECTF_NOTENUM)); 176 ctf_file_t *ofp = fp; local 188 return (ctf_set_errno(ofp, ECTF_CORRUPT)); 453 ctf_file_t *ofp = fp; local 467 return (ctf_set_errno(ofp, ECTF_NOTREF)); 481 ctf_file_t *ofp = fp; local 491 return (ctf_set_errno(ofp, ECTF_NOTYP 508 ctf_file_t *ofp = fp; local 652 ctf_file_t *ofp = fp; local 702 ctf_file_t *ofp = fp; local 730 ctf_file_t *ofp = fp; local 767 ctf_file_t *ofp = fp; local [all...] |
/macosx-10.10.1/tcl-105/tcl_ext/tkimg/tkimg/sun/ |
H A D | sun.c | 119 static void rle_startwrite (tkimg_MFile *ofp); 121 static int rle_fwrite (char *ptr, int sz, int nelem, tkimg_MFile *ofp); 123 static int rle_fputc (int val, tkimg_MFile *ofp); 124 static int rle_putrun (int n, int val, tkimg_MFile *ofp); 125 static void rle_endwrite (tkimg_MFile *ofp); 128 static Boln write_sun_header (tkimg_MFile *ofp, SUNHEADER *sunhdr); 131 static Boln write_sun_cols (tkimg_MFile *ofp, SUNHEADER *sunhdr, UByte *colormap); 177 static Boln writeUInt (tkimg_MFile *ofp, UInt c) argument 185 if (4 != tkimg_Write(ofp, (const char *)buf, 4)) { 305 static void rle_startwrite (tkimg_MFile *ofp) argument 335 rle_fputc(int val, tkimg_MFile *ofp) argument 368 rle_putrun(int n, int val, tkimg_MFile *ofp) argument 402 rle_endwrite(tkimg_MFile *ofp) argument 452 write_sun_header(tkimg_MFile *ofp, SUNHEADER *sunhdr) argument [all...] |
/macosx-10.10.1/gpatch-3/patch/ |
H A D | patch.c | 55 FILE *ofp; member in struct:outstate 192 do_ed_script (outstate.ofp); 272 if (outstate.ofp && ! outfile) 274 fclose (outstate.ofp); 275 outstate.ofp = 0; 331 if (outstate.ofp) 333 fclose (outstate.ofp); 334 outstate.ofp = 0; 449 if (outstate.ofp && (ferror (outstate.ofp) || fclos [all...] |
/macosx-10.10.1/gssd-64/ |
H A D | gssd_util.c | 902 fmt_parse(char *out_buffer, char **obp, const char *ofp, va_list *ap) argument 911 rerr = regexec(&pre, ofp, PRF_FIELDS, match, 0); 917 tconv = ofp[match[PRF_TYPE].rm_so]; 919 mstr = &ofp[match[PRF_WHOLE_MATCH].rm_so]; 932 if (ofp[i] == '#') { 938 ofp[match[PRF_WIDTH].rm_so] == '*') 942 ofp[match[PRF_PREC_SPEC].rm_so] == '*') 967 va_next(ap, ofp, match); /* Eat the arguments printed */ 969 ofp += match[PRF_WHOLE_MATCH].rm_eo; 971 return (ofp); 978 const char *ofp = fmt; local [all...] |
/macosx-10.10.1/tcl-105/tcl_ext/memchan/memchan/win/ |
H A D | nmakehlp.c | 487 FILE *ofp = fopen("version.vc", "w"); 489 fprintf(ofp, "TCL_DOTVERSION\t= %0.1f\nTCL_VERSION\t= %u\n", 492 fprintf(ofp, "TK_DOTVERSION\t= %0.1f\nTK_VERSION\t= %u\n", 494 fclose(ofp); 480 FILE *ofp = fopen("version.vc", "w"); local
|
/macosx-10.10.1/cups-408/cups/scheduler/ |
H A D | dirsvc.c | 1681 cups_file_t *ofp, /* Original file pointer */ local 1688 if ((ofp = cupsFileOpen(LPDConfigFile + 9, "r")) == NULL) 1699 cupsFileClose(ofp); 1707 while (cupsFileGets(ofp, line, sizeof(line))) 1720 cupsFileClose(ofp); 1768 cups_file_t *ofp, /* Original file pointer */ local 1776 if ((ofp = cupsFileOpen(SMBConfigFile + 8, "r")) == NULL) 1787 cupsFileClose(ofp); 1797 while (cupsFileGets(ofp, line, sizeof(line))) 1810 cupsFileClose(ofp); [all...] |
/macosx-10.10.1/ncurses-44/ncurses/test/ |
H A D | gdc.c | 167 FILE *ofp = stdout; local 198 || newterm(name, ofp, ifp) == 0) {
|
/macosx-10.10.1/text_cmds-88/sort/ |
H A D | sort.c | 1458 FILE *ofp, char const *output_file) 1506 if (! ofp) 1507 ofp = xfopen (output_file, "w"); 1530 write_bytes (saved.text, saved.length, ofp, output_file); 1559 write_bytes (smallest->text, smallest->length, ofp, output_file); 1630 write_bytes (saved.text, saved.length, ofp, output_file); 1634 xfclose (ofp, output_file); 1457 mergefps(char **files, size_t ntemps, size_t nfiles, FILE *ofp, char const *output_file) argument
|
/macosx-10.10.1/Heimdal-398.1.2/lib/hcrypto/libtommath/mtest/ |
H A D | mpi.h | 182 void mp_print(mp_int *mp, FILE *ofp);
|
/macosx-10.10.1/ruby-106/ruby/ext/readline/ |
H A D | readline.c | 479 rb_io_t *ofp; local 483 GetOpenFile(output, ofp); 484 rl_outstream = rb_io_stdio_file(ofp);
|
/macosx-10.10.1/xnu-2782.1.97/bsd/kern/ |
H A D | kern_descrip.c | 2561 struct fileproc *ofp; local 2569 if ((ofp = fdp->fd_ofiles[old]) == NULL || 2574 fg_ref(ofp); 2577 error = mac_file_check_dup(proc_ucred(p), ofp->f_fglob, new); 2579 fg_drop(ofp); 2592 fg_drop(ofp); 2597 nfp->f_fglob = ofp->f_fglob; 4634 struct fileproc *ofp, *fp; local 4786 if ((ofp = *fpp) != NULL && 4789 if (FILEPROC_TYPE(ofp) ! [all...] |
/macosx-10.10.1/dtrace-147/libdtrace/ |
H A D | dt_cc.c | 1954 FILE *ofp = tmpfile(); local 1969 if (argv == NULL || ofp == NULL || tfp == NULL) { 2011 (void) snprintf(opath, sizeof (opath), "/dev/fd/%d", fileno(ofp)); 2079 (void) fflush(ofp); 2080 (void) fseek(ofp, 0, SEEK_SET); 2081 return (ofp); 2086 (void) fclose(ofp);
|