/reactos/sdk/lib/crt/misc/ |
H A D | i10output.c | 44 fp->m, fp->exp, fp->mod); in fpnum_double() 45 if (!fp->m) in fpnum_double() 72 if (fp->m & 1 || fp->mod != FP_ROUND_ZERO) in fpnum_double() 74 if (!(fp->m & 1)) fp->mod = FP_ROUND_DOWN; in fpnum_double() 86 if (fp->m & 1 && fp->mod == FP_ROUND_ZERO) fp->mod = FP_ROUND_EVEN; in fpnum_double() 87 else if (fp->m & 1) fp->mod = FP_ROUND_UP; in fpnum_double() 91 while(fp->m && fp->exp<0) in fpnum_double() 93 if (fp->m & 1 && fp->mod == FP_ROUND_ZERO) fp->mod = FP_ROUND_EVEN; in fpnum_double() 94 else if (fp->m & 1) fp->mod = FP_ROUND_UP; in fpnum_double() 101 if (fp->mod == FP_ROUND_UP || (fp->mod == FP_ROUND_EVEN && fp->m & 1)) in fpnum_double() [all …]
|
/reactos/modules/rosapps/applications/net/ncftp/ncftp/ |
H A D | pref.c | 121 if (fp != NULL) { in SetAnonPass() 134 if (fp != NULL) { in SetAutoAscii() 152 if (fp != NULL) { in SetAutoResume() 165 if (fp != NULL) { in SetAutoSaveChangesToExistingBookmarks() 178 if (fp != NULL) { in SetConfirmClose() 191 if (fp != NULL) { in SetConnTimeout() 204 if (fp != NULL) { in SetCtrlTimeout() 217 if (fp != NULL) { in SetLogSize() 557 FILE *fp; in LoadPrefs() local 701 FILE *fp; in SavePrefs() local [all …]
|
H A D | preffw.c | 47 (void) fprintf(fp, "%s", "\ in WriteDefaultFirewallPrefs() 53 (void) fprintf(fp, "%s", "\ in WriteDefaultFirewallPrefs() 59 (void) fprintf(fp, "%s", "\ in WriteDefaultFirewallPrefs() 65 (void) fprintf(fp, "%s", "\ in WriteDefaultFirewallPrefs() 191 (void) fprintf(fp, "\ in WriteDefaultFirewallPrefs() 200 (void) fprintf(fp, "\ in WriteDefaultFirewallPrefs() 270 FILE *fp, *fp2; in LoadFirewallPrefs() local 301 if (fp != NULL) { in LoadFirewallPrefs() 304 (void) fclose(fp); in LoadFirewallPrefs() 321 if (fp != NULL) { in LoadFirewallPrefs() [all …]
|
H A D | spool.c | 186 FILE *fp; in SpoolX() local 199 fp = fopen(spathname, FOPEN_WRITE_TEXT); in SpoolX() 202 fp = fopen(spathname, FOPEN_WRITE_TEXT); in SpoolX() 205 if (fp == NULL) in SpoolX() 210 if (fprintf(fp, "op=%s\n", op) < 0) in SpoolX() 212 if (fprintf(fp, "hostname=%s\n", host) < 0) in SpoolX() 223 if (fprintf(fp, "pass=%s\n", pass) < 0) in SpoolX() 229 if (fprintf(fp, "xtype=%c\n", xtype) < 0) in SpoolX() 235 if (fprintf(fp, "passive=%d\n", passive) < 0) in SpoolX() 259 if (fclose(fp) < 0) in SpoolX() [all …]
|
H A D | trace.c | 111 FILE *fp; in OpenTrace() local 126 fp = fopen(pathName, FOPEN_WRITE_TEXT); in OpenTrace() 127 if (fp != NULL) { in OpenTrace() 130 (void) setvbuf(fp, gTraceLBuf, _IOLBF, sizeof(gTraceLBuf)); in OpenTrace() 134 (void) fprintf(fp, "SESSION STARTED at: %s", ctime(&gTraceTime)); in OpenTrace() 135 (void) fprintf(fp, " Program Version: %s\n", gVersion + 5); in OpenTrace() 136 (void) fprintf(fp, " Library Version: %s\n", gLibNcFTPVersion + 5); in OpenTrace() 137 (void) fprintf(fp, " Process ID: %u\n", pid); in OpenTrace() 139 (void) fprintf(fp, " Platform: %s\n", gOS); in OpenTrace() 150 (void) fprintf(fp, " Terminal: %s\n", cp); in OpenTrace() [all …]
|
H A D | log.c | 30 FILE *fp; in LogXfer() local 35 fp = fopen(gLogFileName, FOPEN_APPEND_TEXT); in LogXfer() 36 if (fp != NULL) { in LogXfer() 37 (void) fprintf(fp, " %s %s\n", mode, url); in LogXfer() 38 (void) fclose(fp); in LogXfer() 48 FILE *fp; in LogOpen() local 54 fp = fopen(gLogFileName, FOPEN_APPEND_TEXT); in LogOpen() 55 if (fp != NULL) { in LogOpen() 56 (void) fprintf(fp, "%s at %s", host, ctime(&now)); in LogOpen() 57 (void) fclose(fp); in LogOpen()
|
H A D | bookmark.c | 248 if (fp != NULL) in CloseBookmarkFile() 249 (void) fclose(fp); in CloseBookmarkFile() 279 FILE *fp; in OpenBookmarkFile() local 288 if (fp == NULL) { in OpenBookmarkFile() 294 if (fp == NULL) in OpenBookmarkFile() 303 (void) fclose(fp); in OpenBookmarkFile() 345 return(fp); in OpenBookmarkFile() 363 if (fp == NULL) in OpenBookmarkFile() 379 return (fp); in OpenBookmarkFile() 389 FILE *fp; in GetBookmark() local [all …]
|
H A D | pref.h | 30 typedef void (*PrefProc)(int i, const char *const, FILE *const fp); 45 void SetAutoAscii(int t, const char *const val, FILE *const fp); 47 void SetAutoSaveChangesToExistingBookmarks(int t, const char *const val, FILE *const fp); 51 void SetLogSize(int t, const char *const val, FILE *const fp); 52 void SetNoAds(int t, const char *const val, FILE *const fp); 57 void SetRedialDelay(int t, const char *const val, FILE *const fp); 59 void SetSOBufsize(int t, const char *const val, FILE *const fp); 63 void ProcessPrefsFile(FILE *const fp);
|
/reactos/base/applications/regedit/ |
H A D | txtproc.c | 44 txt_fputs(fp, line); in txt_fprintf() 108 txt_newline(fp); in txt_export_binary() 146 txt_newline(fp); in txt_export_data() 190 txt_newline(fp); in txt_export_data() 344 FILE *fp; in txt_export_key() local 356 if (fp) in txt_export_key() 360 fclose(fp); in txt_export_key() 369 FILE *fp; in txt_export_all() local 375 if (!fp) in txt_export_all() 395 txt_newline(fp); in txt_export_all() [all …]
|
H A D | regproc.c | 937 if (!fp) goto cleanup; in get_lineA() 992 if (!fp) goto cleanup; in get_lineW() 1132 fputs(strA, fp); in REGPROC_write_line() 1347 export_newline(fp, unicode); in export_data() 1505 FILE *fp; in export_key() local 1519 if (!fp) in export_key() 1524 fclose(fp); in export_key() 1532 FILE *fp; in export_all() local 1539 if (!fp) in export_all() 1547 fclose(fp); in export_all() [all …]
|
/reactos/sdk/tools/fatten/fatfs/ |
H A D | ff.c | 2572 fp->id = fp->fs->id; in f_open() 2607 remain = fp->fsize - fp->fptr; in f_read() 2641 mem_cpy(rbuff + ((fp->fs->winsect - sect) * SS(fp->fs)), fp->fs->win, SS(fp->fs)); in f_read() 2644 mem_cpy(rbuff + ((fp->dsect - sect) * SS(fp->fs)), fp->buf, SS(fp->fs)); in f_read() 2756 mem_cpy(fp->fs->win, wbuff + ((fp->fs->winsect - sect) * SS(fp->fs)), SS(fp->fs)); in f_write() 2761 mem_cpy(fp->buf, wbuff + ((fp->dsect - sect) * SS(fp->fs)), SS(fp->fs)); in f_write() 2776 if (fp->fptr < fp->fsize && in f_write() 2796 if (fp->fptr > fp->fsize) fp->fsize = fp->fptr; /* Update file size if needed */ in f_write() 3171 fp->fsize = fp->fptr; in f_lseek() 3488 if (fp->fsize > fp->fptr) { in f_truncate() [all …]
|
H A D | ff.h | 213 FRESULT f_close (FIL* fp); /* Close an open file object */ 217 FRESULT f_lseek (FIL* fp, DWORD ofs); /* Move file pointer of a file object */ 218 FRESULT f_truncate (FIL* fp); /* Truncate file */ 219 FRESULT f_sync (FIL* fp); /* Flush cached data of a writing file */ 240 int f_putc (TCHAR c, FIL* fp); /* Put a character to the file */ 243 TCHAR* f_gets (TCHAR* buff, int len, FIL* fp); /* Get a string from the file */ 245 #define f_eof(fp) ((int)((fp)->fptr == (fp)->fsize)) argument 246 #define f_error(fp) ((fp)->err) argument 247 #define f_tell(fp) ((fp)->fptr) argument 248 #define f_size(fp) ((fp)->fsize) argument [all …]
|
/reactos/sdk/lib/3rdparty/libxml2/ |
H A D | xmlmemory.c | 611 fprintf(fp, " NULL"); in xmlMemContentShow() 675 FILE *old_fp = fp; in xmlMemDisplayLast() 680 if (fp == NULL) { in xmlMemDisplayLast() 682 if (fp == NULL) in xmlMemDisplayLast() 706 fclose(fp); in xmlMemDisplayLast() 727 fclose(fp); in xmlMemDisplayLast() 751 if (fp == NULL) { in xmlMemDisplay() 753 if (fp == NULL) in xmlMemDisplay() 783 fclose(fp); in xmlMemDisplay() 803 fclose(fp); in xmlMemDisplay() [all …]
|
/reactos/sdk/tools/mkisofs/schilytools/libschily/stdio/ |
H A D | flag.c | 41 _more_flags(fp) in _more_flags() argument 42 FILE *fp; in _more_flags() 70 _io_get_my_flag(fp) in _io_get_my_flag() argument 71 register FILE *fp; in _io_get_my_flag() 77 return (_more_flags(fp)); 94 _io_set_my_flag(fp, flag) in _io_set_my_flag() argument 95 FILE *fp; in _io_set_my_flag() 103 (void) _more_flags(fp); 119 fl->fl_io = fp; 124 _io_add_my_flag(fp, flag) in _io_add_my_flag() argument [all …]
|
H A D | schilyio.h | 172 # define usg_filbuf(fp) __filbuf(fp) argument 173 # define usg_flsbuf(c, fp) __flsbuf(c, fp) argument 180 # define usg_filbuf(fp) _filbuf(fp) argument 181 # define usg_flsbuf(c, fp) _flsbuf(c, fp) argument
|
/reactos/dll/3rdparty/libjpeg/ |
H A D | rdswitch.c | 86 FILE * fp; in read_quant_tables() local 100 fclose(fp); in read_quant_tables() 107 fclose(fp); in read_quant_tables() 119 fclose(fp); in read_quant_tables() 123 fclose(fp); in read_quant_tables() 177 FILE * fp; in read_scan_script() local 194 fclose(fp); in read_scan_script() 203 fclose(fp); in read_scan_script() 235 fclose(fp); in read_scan_script() 243 fclose(fp); in read_scan_script() [all …]
|
/reactos/dll/3rdparty/libpng/docs/ |
H A D | example.c | 281 FILE *fp; 306 fclose(fp); 314 fclose(fp); 327 fclose(fp); 585 fclose(fp); 742 FILE *fp; 749 if (fp == NULL) 762 fclose(fp); 770 fclose(fp); 781 fclose(fp); [all …]
|
/reactos/sdk/tools/mkisofs/schilytools/libschily/ |
H A D | comerr.c | 62 ex_t *fp; variable 64 fp = malloc(sizeof (*fp)); 65 if (fp == NULL) 68 fp->func = func; 69 fp->arg = arg; 70 fp->next = exfuncs; 71 exfuncs = fp; 335 ex_t *fp; local 338 fp = exfuncs; 340 free(fp);
|
/reactos/modules/rostests/winetests/msvcrt/ |
H A D | file.c | 83 FILE *fp; in test_filbuf() local 89 fclose(fp); in test_filbuf() 108 fclose(fp); in test_filbuf() 268 for (fp=0; fp<strlen(outbuffer); fp++) in test_readmode() 270 fp++; in test_readmode() 287 fp += 2; in test_readmode() 338 for (fp=0; fp<strlen(outbuffer); fp++) in test_readmode() 340 fp++; in test_readmode() 381 FILE *fp; in test_asciimode() local 467 FILE *fp; in test_asciimode2() local [all …]
|
/reactos/win32ss/gdi/gdi32/objects/ |
H A D | efloat.c | 13 #define SIGN(fp) ((fp) & SIGNBIT) argument 14 #define EXP(fp) (((fp) >> 23L) & 0xFF) argument 15 #define MANT(fp) ((fp) & 0x7FFFFFL) argument
|
/reactos/sdk/tools/isohybrid/ |
H A D | isohybrid.c | 605 FILE *fp; in read_mbr_template() local 608 fp = fopen(path, "rb"); in read_mbr_template() 609 if (fp == NULL) in read_mbr_template() 611 clearerr(fp); in read_mbr_template() 612 ret = fread(mbr, 1, MBRSIZE, fp); in read_mbr_template() 613 if (ferror(fp) || ret != MBRSIZE) in read_mbr_template() 615 fclose(fp); in read_mbr_template() 975 FILE *fp = NULL; in main() local 1119 if (fread(&id, 1, 4, fp) != 4) in main() 1206 if (fsync(fileno(fp))) in main() [all …]
|
/reactos/dll/opengl/glu32/src/libnurbs/nurbtess/ |
H A D | directedLine.cc | 758 FILE* fp = fopen(filename, "w"); in writeAllPolygons() local 759 assert(fp); in writeAllPolygons() 762 fprintf(fp, "%i\n", nPolygons); in writeAllPolygons() 785 fprintf(fp,"\n"); in writeAllPolygons() 787 fprintf(fp, "\n"); in writeAllPolygons() 789 fclose(fp); in writeAllPolygons() 795 FILE* fp = fopen(filename, "r"); in readAllPolygons() local 799 assert(fp); in readAllPolygons() 800 result = fscanf(fp, "%i", &nPolygons); in readAllPolygons() 807 result = fscanf(fp, "%i", &nEdges); in readAllPolygons() [all …]
|
/reactos/dll/win32/hnetcfg/ |
H A D | service.c | 289 fw_service *fp; in NetFwService_create() local 293 fp = HeapAlloc( GetProcessHeap(), 0, sizeof(*fp) ); in NetFwService_create() 294 if (!fp) return E_OUTOFMEMORY; in NetFwService_create() 296 fp->INetFwService_iface.lpVtbl = &fw_service_vtbl; in NetFwService_create() 297 fp->refs = 1; in NetFwService_create() 299 *ppObj = &fp->INetFwService_iface; in NetFwService_create() 463 fw_services *fp; in NetFwServices_create() local 467 fp = HeapAlloc( GetProcessHeap(), 0, sizeof(*fp) ); in NetFwServices_create() 468 if (!fp) return E_OUTOFMEMORY; in NetFwServices_create() 471 fp->refs = 1; in NetFwServices_create() [all …]
|
/reactos/sdk/tools/mkisofs/schilytools/mkisofs/ |
H A D | match.c | 99 FILE *fp; local 110 if ((fp = fopen(file, "r")) == NULL) { 114 while (fgets(name, sizeof (name), fp) != NULL) { 134 fclose(fp); 139 fclose(fp); 286 FILE *fp; local 290 if ((fp = fopen(file, "r")) == NULL) { 294 while (fgets(name, sizeof (name), fp) != NULL) { 303 fclose(fp); 308 fclose(fp);
|
/reactos/modules/rosapps/applications/net/tsclient/rdesktop/ |
H A D | xkeymap.c | 147 FILE *fp; in xkeymap_from_locale() local 186 if (fp) in xkeymap_from_locale() 188 fclose(fp); in xkeymap_from_locale() 226 FILE *fp; in xkeymap_open() local 237 if (fp) in xkeymap_open() 245 if (fp) in xkeymap_open() 246 return fp; in xkeymap_open() 253 if (fp) in xkeymap_open() 254 return fp; in xkeymap_open() 262 FILE *fp; in xkeymap_read() local [all …]
|