/haiku/src/tests/kits/storage/virtualdrive/ |
H A D | mkvirtualdrive.cpp | 18 "Usage: %s [ --install ] [ --size <size> ] <file>\n" 96 install_file(const char *file, off_t size) argument 111 strcpy(info.file_name, file); 143 printf("File `%s' registered as device `%s'.\n", file, info.device_name); 197 printf("Device `%s' points to file `%s'.\n", info.device_name, info.file_name); 277 // parse rest (the file name) 282 const char *file = argv[argIndex]; local 287 error = install_file(file, size); 290 error = uninstall_file(file, immediately); 293 error = info_for_device(file); [all...] |
/haiku/src/servers/registrar/ |
H A D | RecentEntries.cpp | 163 \param fileTypes An array of file type filters. These file types are 189 // Filter by file type 266 RecentEntries::Save(FILE* file, const char *description, const char *tag) argument 268 if (file == NULL || description == NULL || tag == NULL) 271 fprintf(file, "# %s\n", description); 274 Roster settings file, we need to collect all the signatures 313 fprintf(file, "%s %s", tag, escapedPath); 320 fprintf(file, " \"%s\" %" B_PRId32, entry->sig.c_str(), 331 fprintf(file, "\ [all...] |
/haiku/src/servers/input/ |
H A D | MouseSettings.cpp | 96 BFile file(path.Path(), B_READ_ONLY); 97 if (file.InitCheck() < B_OK) 100 if (file.ReadAt(0, &fSettings, sizeof(mouse_settings)) 312 BFile file(path.Path(), B_READ_ONLY); 313 if (file.InitCheck() < B_OK) 318 if (message.Unflatten(&file) == B_OK) { 362 BFile file(path.Path(), B_WRITE_ONLY | B_CREATE_FILE | B_ERASE_FILE); 363 status = file.InitCheck(); 369 message.Flatten(&file);
|
/haiku/src/kits/storage/ |
H A D | ResourceFile.cpp | 8 \file ResourceFile.cpp 44 // recognized file types (indices into kFileTypeNames) 57 "x86 resource file", 58 "PPC resource file", 59 "ELF object file", 60 "PEF object file", 61 "empty file", 78 read_exactly(BPositionIO& file, off_t position, void* buffer, size_t size, argument 81 ssize_t read = file.ReadAt(position, buffer, size); 95 write_exactly(BPositionIO& file, off_ argument 240 SetTo(BFile* file, bool clobber) argument 378 _InitFile(BFile& file, bool clobber) argument 457 _InitELFFile(BFile& file) argument 506 _InitELFXFile(BFile& file, uint64 fileSize) argument 681 _InitPEFFile(BFile& file, const PEFContainerHeader& pefHeader) argument 1298 BFile* file = fFile.File(); local [all...] |
H A D | Resources.cpp | 46 // supplied file. 47 BResources::BResources(const BFile* file, bool clobber) argument 55 SetTo(file, clobber); 60 // file referenced by the supplied path. 74 // file referenced by the supplied ref. 96 // the supplied file. 98 BResources::SetTo(const BFile* file, bool clobber) argument 102 if (file) { 103 error = file->InitCheck(); 105 fFile = *file; 386 WriteTo(BFile* file) argument [all...] |
/haiku/src/kits/mail/ |
H A D | c_mail_api.cpp | 135 BFile file(ref, O_RDONLY); 136 status_t status = file.InitCheck(); 140 BEmailMessage mail(&file);
|
/haiku/headers/private/debugger/debug_info/ |
H A D | TeamDebugInfo.h | 71 status_t LoadSourceCode(LocatableFile* file, 74 void ClearSourceCode(LocatableFile* file); 90 Function* FunctionAtSourceLocation(LocatableFile* file,
|
/haiku/src/libs/print/libprint/ |
H A D | Transport.cpp | 126 BFile* file = dynamic_cast<BFile*>(fDataStream); local 127 return file != NULL && file->InitCheck() != B_OK;
|
/haiku/src/bin/ |
H A D | version.cpp | 22 "Returns the version of a file.\n\n" 35 BFile file(filename, O_RDONLY); 36 if (file.InitCheck() != B_OK) { 37 printf("Couldn't get file info!\n"); 41 BAppFileInfo info(&file); 43 printf("Couldn't get file info!\n");
|
/haiku/headers/os/game/ |
H A D | SimpleGameSound.h | 16 BSimpleGameSound(const entry_ref* file, 19 BSimpleGameSound(const char* file, 40 status_t Init(const entry_ref* file);
|
/haiku/src/tests/kits/interface/bshelf/Container/ |
H A D | ContainerApplication.cpp | 35 if ( (fRemove == true) && (fTest == false) ) // delete backing store file 50 BFile file; local 51 file.SetTo(&ref,B_ERASE_FILE); // erase file 52 file.Unset();
|
/haiku/headers/private/package/hpkg/ |
H A D | PackageFileHeapAccessorBase.h | 75 BPositionIO* file, off_t heapOffset, 92 void SetFile(BPositionIO* file) argument 93 { fFile = file; }
|
/haiku/src/add-ons/mail_daemon/inbound_filters/notifier/ |
H A D | NotifierFilter.cpp | 37 BFile& file, BMessage& attributes); 57 NotifyFilter::HeaderFetched(entry_ref& ref, BFile& file, argument 62 if (file.ReadAttr("MAIL:status", B_STRING_TYPE, 0, statusString, 256) < 0)
|
/haiku/src/apps/haikudepot/util/ |
H A D | AppUtils.cpp | 106 BFile file(&info.ref, B_READ_ONLY); 108 if (file.InitCheck() != B_OK) { 109 HDERROR("Unable to access the application info file"); 113 BAppFileInfo appFileInfo(&file);
|
/haiku/src/servers/app/ |
H A D | DesktopSettings.cpp | 110 // TODO: add support for old app_server_settings file as well 122 BFile file; local 123 status = file.SetTo(path.Path(), B_READ_ONLY); 126 status = settings.Unflatten(&file); 150 status = file.SetTo(path.Path(), B_READ_ONLY); 153 status = settings.Unflatten(&file); 202 status = file.SetTo(path.Path(), B_READ_ONLY); 205 status = settings.Unflatten(&file); 231 status = file.SetTo(path.Path(), B_READ_ONLY); 234 status = settings.Unflatten(&file); 362 BFile file; local 390 BFile file; local 408 BFile file; local 423 BFile file; local 464 BFile file; local [all...] |
/haiku/headers/libs/x86emu/x86emu/ |
H A D | prim_x86_gcc.h | 33 * Description: This file defines a few x86 macros that can be used by the 46 #error This file is intended to be used by gcc on i386 or x86-64 system
|
/haiku/headers/private/kernel/disk_device_manager/ |
H A D | KFileDiskDevice.h | 36 static status_t _RegisterDevice(const char *file, const char *device);
|
/haiku/src/add-ons/media/media-add-ons/usb_vision/ |
H A D | TunerLocale.h | 2 * This file is a part of BeOS USBVision driver project. 5 * This file may be used under the terms of the BSD License 36 status_t LoadLocale(const char *file);
|
/haiku/src/add-ons/translators/raw/ |
H A D | main.cpp | 39 BFile file; local 40 status_t status = file.SetTo(argv[i], B_READ_ONLY); 42 fprintf(stderr, "Cannot read file %s: %s\n", argv[i], 47 DCRaw raw(file); 56 fprintf(stderr, "Could not identify file %s: %s\n", 95 // write data to file 115 status_t status = translator.DerivedTranslate(&file, NULL,
|
/haiku/src/apps/showimage/ |
H A D | ShowImageSettings.h | 44 bool _OpenSettingsFile(BFile* file, bool forReading);
|
/haiku/src/apps/sudoku/ |
H A D | SudokuWindow.h | 30 status_t _OpenSettings(BFile& file, uint32 mode);
|
/haiku/src/kits/device/ |
H A D | JoystickTweaker.cpp | 161 FILE *file = fopen(configFilePath.String(), "r"); local 162 if (file == NULL) 166 while (fgets(line, sizeof(line), file) != NULL) { 174 fclose(file);
|
/haiku/src/servers/print/ |
H A D | Settings.cpp | 103 Settings::Save(BFile* file) argument 123 message.Flatten(file); 128 Settings::Load(BFile* file) argument 131 if (message.Unflatten(file) == B_OK) {
|
/haiku/src/tools/update_package_requires/ |
H A D | update_package_requires.cpp | 44 "info file using the available package information from the given\n" 45 "repository cache file <repository>.\n", 110 DIE(error, "failed to read repository cache file \"%s\"", 134 DIE(error, "failed to read package info file \"%s\"", packageInfoPath); 163 FILE* file = fopen(packageInfoPath, "w"); local 164 if (file == NULL) { 165 DIE(errno, "failed to open package info file \"%s\" for writing", 169 if (fwrite(configString.String(), configString.Length(), 1, file) != 1) { 170 DIE(errno, "failed to write updated package info file \"%s\"", 174 fclose(file); [all...] |
/haiku/headers/private/storage/mime/ |
H A D | MimeSnifferAddonManager.h | 42 virtual float GuessMimeType(BFile* file,
|