/haiku/src/system/boot/loader/ |
H A D | load_driver_settings.cpp | 45 driver_settings_file* file = (driver_settings_file*)kernel_args_malloc( local 47 if (file == NULL) { 55 strlcpy(file->name, name, sizeof(file->name)); 56 file->buffer = buffer; 57 file->size = stat.st_size; 60 file->next = gKernelArgs.driver_settings; 61 gKernelArgs.driver_settings = file; 140 driver_settings_file* file = (driver_settings_file*)kernel_args_malloc( 142 if (file [all...] |
H A D | stdio.cpp | 85 vfprintf(FILE *file, const char *format, va_list list) argument 87 ConsoleNode *node = (ConsoleNode *)file; 125 fprintf(FILE *file, const char *format, ...) argument 130 int status = vfprintf(file, format, args); 138 fputc(int c, FILE *file) argument 140 if (file == NULL) 147 status = ((ConsoleNode *)file)->Write(&character, 1); 161 fputs(const char *string, FILE *file) argument 163 if (file == NULL) 166 status_t status = ((ConsoleNode *)file) [all...] |
/haiku/src/tools/ |
H A D | create_image.cpp | 27 printf("usage: create_image -i <imagesize> [-c] [-f] <file>\n"); 28 printf(" -i, --imagesize size of raw partition image file\n"); 29 printf(" -f, --file the raw partition image file\n"); 39 const char *file = NULL; local 45 {"file", required_argument, 0, 'f'}, 73 file = optarg; 85 if (file == NULL && optind == argc - 1) 86 file = argv[optind]; 88 if (!imageSize || !file) [all...] |
/haiku/src/tools/gensyscalls/ |
H A D | gensyscallinfos.cpp | 34 "Given the (preprocessed) header file that defines the syscall prototypes " 36 "command generates a source file consisting of syscall infos, which is " 41 " <header> - Input: The preprocessed header file with the\n" 43 " <syscall infos> - Output: The syscall infos source file needed " 46 " <syscall types sizes> - Output: A source file that will by another " 48 " step turned into a header file included by\n" 317 // open the input file 318 ifstream file(filename, ifstream::in); 319 if (!file.is_open()) 322 Tokenizer tokenizer(file); [all...] |
/haiku/src/add-ons/print/drivers/postscript/ |
H A D | PPDParser.h | 18 PPDParser(BFile& file); 29 status_t InitData(BFile& file);
|
/haiku/src/preferences/filetypes/ |
H A D | FileTypes.h | 32 extern bool is_application(BFile& file); 33 extern bool is_resource(BFile& file);
|
/haiku/src/servers/package/ |
H A D | Package.cpp | 21 Package::Package(PackageFile* file) argument 23 fFile(file),
|
/haiku/headers/posix/ |
H A D | assert.h | 6 /* Include guards are only on part of the file, as assert.h is required 34 extern void __assert_fail(const char *assertion, const char *file, 38 extern void __assert_perror_fail(int error, const char *file,
|
/haiku/src/kits/debugger/dwarf/ |
H A D | CompilationUnit.cpp | 110 File* file = new(std::nothrow) File(fileName, DirectoryAt(dirIndex)); local 111 if (file == NULL || file->fileName.Length() == 0 || !fFiles.AddItem(file)) { 112 delete file; 130 if (File* file = fFiles.ItemAt(index)) { 132 *_directory = file->dirName; 133 return file->fileName.String();
|
/haiku/src/add-ons/accelerants/radeon/ |
H A D | settings.cpp | 7 Settings file 45 BFile file( path.Path(), B_READ_ONLY ); 47 if( file.InitCheck() != B_OK ) 52 if( settings.Unflatten( &file ) != B_OK ) 76 BFile file( path.Path(), B_CREATE_FILE | B_WRITE_ONLY ); 78 if( file.InitCheck() != B_OK ) 88 settings.Flatten( &file );
|
/haiku/src/preferences/datatranslations/ |
H A D | DataTranslationsSettings.cpp | 34 BFile file(path.Path(), B_READ_ONLY); 37 if (file.InitCheck() == B_OK 38 && settings.Unflatten(&file) == B_OK) { 56 BFile file(path.Path(), B_WRITE_ONLY | B_CREATE_FILE | B_ERASE_FILE); 57 if (file.InitCheck() == B_OK) 58 settings.Flatten(&file);
|
/haiku/src/tests/kits/app/ |
H A D | DanoMessageTest.cpp | 30 BFile file(argv[i], B_READ_ONLY); 31 if (file.InitCheck() != B_OK) { 32 fprintf(stderr, "Could not open message \"%s\": %s\n", argv[i], strerror(file.InitCheck())); 37 if (file.GetSize(&size) != B_OK) 41 if (file.Read(&magic, sizeof(uint32)) != sizeof(uint32)) 50 status_t status = BPrivate::unflatten_dano_message(magic, file, message);
|
/haiku/src/servers/launch/ |
H A D | InitRealTimeClockJob.cpp | 51 BFile file; local 52 status_t status = file.SetTo(path.Path(), B_READ_ONLY); 54 fprintf(stderr, "Can't open RTC settings file\n"); 59 ssize_t bytesRead = file.Read(buffer, sizeof(buffer)); 61 fprintf(stderr, "Unable to read RTC settings file\n"); 75 BFile file; local 76 status_t status = file.SetTo(path.Path(), B_READ_ONLY); 78 fprintf(stderr, "Can't open Time settings file\n"); 83 status = settings.Unflatten(&file); 85 fprintf(stderr, "Unable to parse Time settings file\ [all...] |
/haiku/src/servers/input/ |
H A D | KeyboardSettings.cpp | 19 BFile file; local 25 if (file.SetTo(path.Path(), B_READ_ONLY) < B_OK) 27 if (file.Read(&fSettings, sizeof(kb_settings)) != sizeof(kb_settings)) 62 BFile file; local 68 if (file.SetTo(path.Path(), B_WRITE_ONLY | B_CREATE_FILE) < B_OK) 71 file.Write(&fSettings, sizeof(kb_settings));
|
/haiku/src/apps/musiccollection/ |
H A D | FileMonitor.cpp | 101 WatchedFile file; local 102 NodeMonitorHandler::make_node_ref(device, node, &file.node); 103 if (fWatchedFileList.find(file.node) != fWatchedFileList.end()) 106 NodeMonitorHandler::make_entry_ref(device, directory, name, &file.entry); 107 fWatchedFileList[file.node] = file; 109 watch_node(&file.node, B_WATCH_NAME | B_WATCH_STAT | B_WATCH_ATTR, this); 110 fListener->EntryCreated(&fWatchedFileList[file.node]); 118 WatchedFile* file = _FindFile(device, node); local 119 if (file 132 WatchedFile* file = _FindFile(device, node); local 144 WatchedFile* file = _FindFile(device, node); local 154 WatchedFile* file = _FindFile(device, node); local [all...] |
/haiku/src/bin/keymap/ |
H A D | Keymap.cpp | 164 dump_map(FILE* file, const char* name, int32* map) argument 166 fprintf(file, "\t%s:\n\t{\n", name); 169 fputs("\t\t", file); 171 fprintf(file, "0x%04" B_PRIx32 ",%s", map[i * 8 + j], 174 fputs("\n", file); 176 fputs("\t},\n", file); 181 dump_keys(FILE* file, const char* name, int32* keys) argument 183 fprintf(file, "\t%s:\n\t{\n", name); 186 fprintf(file, "\t\t"); 188 fprintf(file, " 213 FILE* file = fopen(name, "r"); local 225 LoadSource(FILE* file) argument 519 BFile file; local 563 FILE* file = fopen(name, "w"); local 594 SaveAsSource(FILE* file) argument 621 FILE* file = fopen(fileName, "w"); local 795 _SaveSourceText(FILE* file, text_run_array** _textRuns) argument 804 _SaveSourceText(FILE* file) argument [all...] |
/haiku/src/apps/mail/ |
H A D | MailSupport.cpp | 95 header_len(BFile *file) argument 102 if (file->ReadAttr(B_MAIL_ATTR_HEADER, B_INT32_TYPE, 0, &result, 104 file->GetSize(&size); 107 file->Seek(0, 0); 108 if (file->Read(buffer, size) == size) { 115 file->WriteAttr(B_MAIL_ATTR_HEADER, B_INT32_TYPE, 0, &result, sizeof(int32)); 139 BFile file(&entry, B_READ_ONLY); 140 if (file.InitCheck() == B_OK) { 148 if (file.ReadAttrString(attribute, &value) < B_OK)
|
/haiku/src/add-ons/index_server/audiotags/ |
H A D | AudioTagAnalyser.cpp | 45 BFile file(&ref, B_READ_ONLY); 46 if (file.InitCheck() != B_OK) 50 file.WriteAttr("Audio:Artist", B_STRING_TYPE, 0, cArtist, strlen(cArtist)); 52 file.WriteAttr("Media:Title", B_STRING_TYPE, 0, cTitle, strlen(cTitle)); 54 file.WriteAttr("Audio:Album", B_STRING_TYPE, 0, cAlbum, strlen(cAlbum)); 64 BFile file(&ref, B_READ_ONLY); 65 if (file.InitCheck() != B_OK) 70 file.WriteAttr("Audio:Artist", B_STRING_TYPE, 0, dataString.String(), 73 file.WriteAttr("Media:Title", B_STRING_TYPE, 0, dataString.String(), 76 file [all...] |
/haiku/src/tests/servers/app/code_to_name/ |
H A D | code_to_name.cpp | 48 FILE* file = fopen(path.Path(), "r"); local 49 if (file == NULL) 55 while (fgets(buffer, sizeof(buffer), file) != NULL) { 67 fclose(file); 72 fclose(file);
|
/haiku/src/add-ons/index_server/ |
H A D | IndexServerAddOn.cpp | 60 BFile file(path.Path(), B_READ_ONLY); 61 if (file.InitCheck() != B_OK) 65 file.ReadAttr(kCatchUpEnabledAttr, B_UINT32_TYPE, 0, &value, 68 file.ReadAttr(kSyncPositionAttr, B_INT64_TYPE, 0, 70 file.ReadAttr(kWatchingStartAttr, B_INT64_TYPE, 0, 72 file.ReadAttr(kWatchingPositionAttr, B_INT64_TYPE, 0, 93 BFile file(path.Path(), B_READ_WRITE | B_CREATE_FILE | B_ERASE_FILE); 94 if (file.InitCheck() != B_OK) 98 file.WriteAttr(kCatchUpEnabledAttr, B_UINT32_TYPE, 0, &value, 100 file [all...] |
/haiku/src/tests/add-ons/print/ppd/parser/ |
H A D | PPDFile.cpp | 26 PPDFile::PPDFile(const char* file, PPDFile* previousFile) argument 27 : fFileName(file) 28 , fFile(file, B_READ_ONLY)
|
H A D | PPDFile.h | 33 FileBuffer(BFile* file) : fFile(file), fIndex(0), fSize(0) {} argument 47 // Opens the file for reading. Use IsValid to check if the file could 50 // can be used to store a reference to a previous file. 51 PPDFile(const char* file, PPDFile* previousFile = NULL); 52 // Closes the file. 64 // The previous file from the constructor. 66 // Returns the file name
|
H A D | Parser.h | 39 // Initializes the parser with the file 40 Parser(const char* file); 41 // Returns B_OK if the constructor could open the file 45 // Includes the file for parsing 46 bool Include(const char* file) { return fScanner.Include(file); } argument
|
/haiku/src/apps/haiku3d/mesh/ |
H A D | StaticMesh.cpp | 79 BFile file(fileName, B_WRITE_ONLY | B_CREATE_FILE | B_ERASE_FILE); 81 if (file.InitCheck() != B_OK) { 86 file.Write(&fFaceCount, sizeof(uint32)); 88 file.Write(&fFaces[i].vertexCount, sizeof(uint16)); 90 file.Write(&fFaces[i].v[vi], sizeof(Vertex)); 101 BFile file(fileName, B_READ_ONLY); 103 if (file.InitCheck() != B_OK) { 108 file.Read(&fFaceCount, sizeof(uint32)); 111 file.Read(&fFaces[i].vertexCount, sizeof(uint16)); 113 file [all...] |
/haiku/src/kits/mail/ |
H A D | HaikuMailFormatFilter.h | 21 BMailFilterAction HeaderFetched(entry_ref& ref, BFile& file, 23 void BodyFetched(const entry_ref& ref, BFile& file, 26 void MessageSent(const entry_ref& ref, BFile& file);
|