/macosx-10.9.5/ruby-104/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.9.5/ncurses-42/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.9.5/bash-92/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.9.5/text_cmds-87/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.9.5/xnu-2422.115.4/SETUP/config/ |
H A D | mkmakefile.c | 71 void do_machdep(FILE *ofp); 208 FILE *ifp, *ofp; local 226 if ((ofp = fopen(path("M.d"), "w")) == NULL) { 231 fclose(ofp); 232 ofp = fopen(path("Makefile"), "w"); 233 if (ofp == 0) { 237 fprintf(ofp, "SOURCE_DIR=%s\n", source_directory); 241 fprintf(ofp, "export IDENT=-D%s -D%s", machinename, allCaps(ident)); 243 fprintf(ofp, "export IDENT=-D%s", allCaps(ident)); 245 fprintf(ofp, " 773 do_machdep(FILE *ofp) argument 831 FILE *tfp, *ofp; local [all...] |
/macosx-10.9.5/file_cmds-230/compress/ |
H A D | compress.c | 204 FILE *ifp = NULL, *ofp = NULL; local 226 if ((ofp = zopen(out, "w", bits)) == NULL) { 231 if (fwrite(buf, 1, nr, ofp) != nr) { 242 if (fclose(ofp)) { 246 ofp = NULL; 281 err: if (ofp) { 284 (void)fclose(ofp); 295 FILE *ifp, *ofp; local 306 ofp = NULL; 327 if ((ofp [all...] |
/macosx-10.9.5/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.9.5/text_cmds-87/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.9.5/OpenLDAP-491.1/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.9.5/ncurses-42/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.9.5/dtrace-118.1/libctf/ |
H A D | ctf_types.c | 62 ctf_file_t *ofp = fp; local 78 return (ctf_set_errno(ofp, ECTF_NOTSOU)); 113 ctf_file_t *ofp = fp; local 127 return (ctf_set_errno(ofp, ECTF_NOTENUM)); 173 ctf_file_t *ofp = fp; local 185 return (ctf_set_errno(ofp, ECTF_CORRUPT)); 450 ctf_file_t *ofp = fp; local 464 return (ctf_set_errno(ofp, ECTF_NOTREF)); 478 ctf_file_t *ofp = fp; local 488 return (ctf_set_errno(ofp, ECTF_NOTYP 505 ctf_file_t *ofp = fp; local 629 ctf_file_t *ofp = fp; local 679 ctf_file_t *ofp = fp; local 707 ctf_file_t *ofp = fp; local 744 ctf_file_t *ofp = fp; local [all...] |
/macosx-10.9.5/tcl-102/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.9.5/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.9.5/gssd-62/ |
H A D | gssd_util.c | 882 fmt_parse(char *out_buffer, char **obp, const char *ofp, va_list *ap) argument 891 rerr = regexec(&pre, ofp, PRF_FIELDS, match, 0); 897 tconv = ofp[match[PRF_TYPE].rm_so]; 899 mstr = &ofp[match[PRF_WHOLE_MATCH].rm_so]; 912 if (ofp[i] == '#') { 918 ofp[match[PRF_WIDTH].rm_so] == '*') 922 ofp[match[PRF_PREC_SPEC].rm_so] == '*') 947 va_next(ap, ofp, match); /* Eat the arguments printed */ 949 ofp += match[PRF_WHOLE_MATCH].rm_eo; 951 return (ofp); 958 const char *ofp = fmt; local [all...] |
/macosx-10.9.5/tcl-102/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.9.5/cups-372.4/cups/scheduler/ |
H A D | dirsvc.c | 1679 cups_file_t *ofp, /* Original file pointer */ local 1686 if ((ofp = cupsFileOpen(LPDConfigFile + 9, "r")) == NULL) 1697 cupsFileClose(ofp); 1705 while (cupsFileGets(ofp, line, sizeof(line))) 1718 cupsFileClose(ofp); 1766 cups_file_t *ofp, /* Original file pointer */ local 1774 if ((ofp = cupsFileOpen(SMBConfigFile + 8, "r")) == NULL) 1785 cupsFileClose(ofp); 1795 while (cupsFileGets(ofp, line, sizeof(line))) 1808 cupsFileClose(ofp); [all...] |
/macosx-10.9.5/ncurses-42/ncurses/test/ |
H A D | gdc.c | 167 FILE *ofp = stdout; local 198 || newterm(name, ofp, ifp) == 0) {
|
/macosx-10.9.5/text_cmds-87/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.9.5/Heimdal-323.92.1/lib/hcrypto/libtommath/mtest/ |
H A D | mpi.h | 182 void mp_print(mp_int *mp, FILE *ofp);
|
/macosx-10.9.5/ruby-104/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.9.5/xnu-2422.115.4/bsd/kern/ |
H A D | kern_descrip.c | 2359 struct fileproc *ofp; local 2367 if ((ofp = fdp->fd_ofiles[old]) == NULL || 2372 fg_ref(ofp); 2375 error = mac_file_check_dup(proc_ucred(p), ofp->f_fglob, new); 2377 fg_drop(ofp); 2390 fg_drop(ofp); 2395 nfp->f_fglob = ofp->f_fglob; 4442 struct fileproc *ofp, *fp; local 4594 if ((ofp = *fpp) != NULL && 4597 if (FILEPROC_TYPE(ofp) ! [all...] |
/macosx-10.9.5/dtrace-118.1/libdtrace/ |
H A D | dt_cc.c | 1944 FILE *ofp = tmpfile(); local 1959 if (argv == NULL || ofp == NULL || tfp == NULL) { 2001 (void) snprintf(opath, sizeof (opath), "/dev/fd/%d", fileno(ofp)); 2088 (void) fflush(ofp); 2089 (void) fseek(ofp, 0, SEEK_SET); 2090 return (ofp); 2095 (void) fclose(ofp);
|