/haiku/src/apps/mediaconverter/ |
H A D | MediaFileInfo.cpp | 5 // This file may be used under the terms of the Be Sample Code License. 18 MediaFileInfo::MediaFileInfo(BMediaFile* file) argument 20 LoadInfo(file); 25 MediaFileInfo::LoadInfo(BMediaFile* file) argument 28 if (!file) 38 int32 tracks = file->CountTracks(); 44 track = file->TrackAt(i); 139 ret = file->ReleaseTrack(track);
|
/haiku/src/apps/mail/ |
H A D | MailApp.cpp | 144 // Find and read settings file. 267 BNode file(&ref); 270 if (file.InitCheck() == B_OK) 271 file.ReadAttrString(B_MAIL_ATTR_TO, &string); 602 BFile file; local 618 file.SetTo(&ref, O_RDONLY); 619 if (file.InitCheck() == B_NO_ERROR) { 620 BNodeInfo node(&file); 627 /* Got a People contact info file, see if it has an Email address. */ 633 if (file 834 BFile file; local 933 BFile file; local 994 BFile file; local 1132 BFile file; local [all...] |
/haiku/src/tools/translation/stxtinfo/ |
H A D | stxtinfo.cpp | 9 // styled text information as an attribute of the file and it is this 15 // to read the styles information from the contents of the file, assuming 108 PrintStylesAttribute(BFile &file) argument 113 if (file.GetAttrInfo(kAttrName, &info) != B_OK) 130 ssize_t amtread = file.ReadAttr(kAttrName, B_RAW_TYPE, 0, 179 PrintStxtInfo(BFile &file) argument 190 nread = file.Read(buffer, kstxtsize); 243 if (file.Read(buffer, ktxtsize) != static_cast<ssize_t>(ktxtsize)) { 287 seekresult = file.Seek(txtheader.header.data_size, SEEK_CUR); 301 read = file [all...] |
/haiku/src/apps/midiplayer/ |
H A D | MidiPlayerWindow.cpp | 327 BFile file(SETTINGS_FILE, B_READ_ONLY); 328 if (file.InitCheck() != B_OK || file.Lock() != B_OK) 331 file.ReadAttr("Scope", B_BOOL_TYPE, 0, &fScopeEnabled, sizeof(bool)); 332 file.ReadAttr("Reverb", B_INT32_TYPE, 0, &fReverbMode, sizeof(int32)); 333 file.ReadAttr("Volume", B_INT32_TYPE, 0, &fWindowX, sizeof(int32)); 334 file.ReadAttr("WindowX", B_FLOAT_TYPE, 0, &fWindowX, sizeof(float)); 335 file.ReadAttr("WindowY", B_FLOAT_TYPE, 0, &fWindowY, sizeof(float)); 337 file.Unlock(); 344 BFile file(SETTINGS_FIL [all...] |
/haiku/src/add-ons/kernel/file_systems/fat/ |
H A D | file.cpp | 3 This file may be used under the terms of the Be Sample Code License. 13 #include "file.h" 116 buffer[0x0b] = node->mode; // file attributes 138 buffer[0x1c] = node->st_size & 0xff; // file size 237 DPRINTF(0, ("setting file mode to %o\n", st->st_mode)); 246 DPRINTF(0, ("setting file size to %" B_PRIdOFF "\n", st->st_size)); 248 dprintf("dosfs_wstat: can't set file size of directory!\n"); 251 dprintf("dosfs_wstat: desired file size exceeds fat limit\n"); 280 // As a file's modification time is also set when it is created, 332 DPRINTF(0, ("can't open file fo 517 vnode *dir = (vnode *)_dir->private_node, *file; local 813 vnode *file, *file2; local 1091 vnode *dir = (vnode *)_dir->private_node, *file; local [all...] |
/haiku/src/kits/mail/ |
H A D | MailProtocol.cpp | 193 BMailProtocol::ProcessHeaderFetched(entry_ref& ref, BFile& file, argument 196 BMailFilterAction action = _ProcessHeaderFetched(ref, file, attributes); 198 file << attributes; 205 BMailProtocol::NotifyBodyFetched(const entry_ref& ref, BFile& file, argument 208 _NotifyBodyFetched(ref, file, attributes); 209 file << attributes; 214 BMailProtocol::ProcessMessageFetched(entry_ref& ref, BFile& file, argument 217 BMailFilterAction action = _ProcessHeaderFetched(ref, file, attributes); 219 _NotifyBodyFetched(ref, file, attributes); 220 file << attribute 228 NotifyMessageReadyToSend(const entry_ref& ref, BFile& file) argument 236 NotifyMessageSent(const entry_ref& ref, BFile& file) argument 299 _ProcessHeaderFetched(entry_ref& ref, BFile& file, BMessage& attributes) argument 359 _NotifyBodyFetched(const entry_ref& ref, BFile& file, BMessage& attributes) argument [all...] |
/haiku/src/preferences/filetypes/ |
H A D | FileTypes.cpp | 51 status_t _Open(BFile* file, int32 mode); 95 BFile file; local 96 if (_Open(&file, B_READ_ONLY) != B_OK) 100 if (settings.Unflatten(&file) == B_OK) { 115 BFile file; 116 if (_Open(&file, B_CREATE_FILE | B_ERASE_FILE | B_WRITE_ONLY) != B_OK) 119 fMessage.Flatten(&file); 171 Settings::_Open(BFile* file, int32 mode) argument 179 return file->SetTo(path.Path(), mode); 227 BFile file; local 487 is_application(BFile& file) argument 503 is_resource(BFile& file) argument [all...] |
/haiku/src/system/libroot/posix/glibc/libio/ |
H A D | iopopen.c | 2 This file is part of the GNU C Library. 20 As a special exception, if you link the code in this file with 24 however invalidate any other reasons why the executable file 55 struct _IO_FILE_plus file; member in struct:_IO_proc_file 180 new_f->fpx.file.file._lock = &new_f->lock; 182 fp = &new_f->fpx.file.file; 184 _IO_JUMPS (&new_f->fpx.file) = &_IO_proc_jumps; 185 _IO_new_file_init (&new_f->fpx.file); [all...] |
/haiku/src/tests/add-ons/print/ppd/ui/ |
H A D | PrinterSelection.cpp | 154 FileItem* file = (FileItem*)fVendors->ItemAt(index); local 155 if (file != NULL) { 156 FillPrinters(file->GetFile()); 162 FileItem* file = (FileItem*)fPrinters->ItemAt(index); local 163 if (file != NULL) { 165 copy.AddString("file", file->GetFile());
|
/haiku/src/tests/servers/app/archived_view/ |
H A D | main.cpp | 73 BFile file("/tmp/archived_view", 75 status_t err = file.InitCheck(); 77 printf("error creating file for archiving: %s\n", strerror(err)); 86 err = archive.Flatten(&file); 151 BFile file("/tmp/archived_view", B_READ_ONLY); 152 if (file.InitCheck() == B_OK) { 153 printf("found archive file\n"); 155 if (archive.Unflatten(&file) == B_OK) {
|
/haiku/src/tests/system/kernel/unit/ |
H A D | TestContext.h | 112 inline void AssertFailed(const char* file, int line, 115 inline void AssertFailed(const char* file, int line, 168 TestContext::AssertFailed(const char* file, int line, const char* function, argument 171 Error("ASSERT FAILED at %s:%d %s: %s\n", file, line, function, condition); 176 TestContext::AssertFailed(const char* file, int line, const char* function, argument 186 Error("ASSERT FAILED at %s:%d %s: %s; %s\n", file, line, function,
|
/haiku/src/apps/debugger/settings/ |
H A D | DebuggerSettingsManager.cpp | 136 // read the settings file 137 BFile file; 138 status_t error = file.SetTo(fSettingsPath.Path(), B_READ_ONLY); 143 error = archive.Unflatten(&file); 191 // open the settings file 192 BFile file; local 193 status_t error = file.SetTo(fSettingsPath.Path(), 198 return archive.Flatten(&file);
|
/haiku/src/tests/kits/interface/bshelf/Container/ |
H A D | TPreferences.cpp | 12 This file may be used under the terms of the Be Sample Code License. 28 // Open the settings file and read the data in. 33 BFile file; local 47 status = file.SetTo(path.Path(), B_READ_ONLY); 50 status = Unflatten(&file); 63 BFile file; local 65 if (file.SetTo(path.Path(), B_WRITE_ONLY | B_CREATE_FILE) == B_OK) 67 Flatten(&file);
|
/haiku/src/tests/kits/interface/bshelf/ShelfInspector/ |
H A D | TPreferences.cpp | 12 This file may be used under the terms of the Be Sample Code License. 29 // Open the settings file and read the data in. 34 BFile file; local 49 status = file.SetTo(path.Path(), B_READ_ONLY); 52 status = Unflatten(&file); 53 // da file eine Datei ist, ruft Unflatten sofort Read() auf 65 BFile file; local 67 if (file.SetTo(path.Path(), B_WRITE_ONLY | B_CREATE_FILE) == B_OK) 69 Flatten(&file); 70 // da file ein [all...] |
/haiku/src/add-ons/media/media-add-ons/multi_audio/ |
H A D | MultiAudioAddOn.cpp | 226 BFile file(path.Path(), B_READ_WRITE | B_CREATE_FILE | B_ERASE_FILE); 227 if (file.InitCheck() == B_OK) 228 fSettings.Flatten(&file); 244 BFile file(path.Path(), B_READ_ONLY); 245 if (file.InitCheck() == B_OK && fSettings.Unflatten(&file) == B_OK) { 248 PRINT(("Error unflattening settings file %s\n", path.Path()));
|
/haiku/src/system/boot/platform/riscv/ |
H A D | start.cpp | 142 driver_settings_file* file = gKernelArgs.driver_settings; local 144 while (file != NULL) { 145 driver_settings_file* next = file->next; 146 fix_address(file->next); 147 fix_address(file->buffer); 148 file = next;
|
/haiku/src/tests/add-ons/print/ppd/test/ |
H A D | PPDConfigApplication.cpp | 51 const char* file; local 59 if (message->FindString("file", &file) == B_OK) { 61 fConfig->Set(file, settings);
|
/haiku/src/tests/kits/storage/testapps/ |
H A D | PathMonitorTest.cpp | 69 printf("******* create file %s *******\n", path); 70 BFile file; local 71 status_t status = file.SetTo(path, B_CREATE_FILE | B_READ_WRITE); 74 file.Write("test", 4); 81 printf("******* remove file %s *******\n", path);
|
/haiku/src/kits/debugger/debug_info/ |
H A D | Function.cpp | 112 Function::LocatableFileChanged(LocatableFile* file) argument 116 file->GetPath(path); 117 if (file->GetLocatedPath(locatedPath) && locatedPath != path) {
|
/haiku/src/bin/ |
H A D | listres.cpp | 96 BFile file(argv[i], B_READ_ONLY); 98 status_t status = file.InitCheck(); 100 fprintf(stderr, "%s: opening file failed for \"%s\": %s\n", 106 status = resources.SetTo(&file);
|
/haiku/src/tests/kits/net/service/ |
H A D | FileTest.cpp | 57 BFile file(tmpl, O_WRONLY | O_CREAT); 58 CHK(file.InitCheck() == B_OK); 63 CHK(file.WriteExactly(content.String(), content.Length()) == B_OK); 65 BUrl url("file://"); 79 request = BUrlProtocolRoster::MakeRequest("file:///", &listener);
|
/haiku/src/kits/print/ |
H A D | PrintTransport.cpp | 133 BFile* file = dynamic_cast<BFile*>(fDataIO); local 134 return fDataIO == NULL || (file != NULL && file->InitCheck() != B_OK);
|
/haiku/src/libs/compat/freebsd_network/ |
H A D | malloc.cpp | 48 _kernel_contigmalloc(const char *file, int line, size_t size, int flags, argument 60 const char* baseName = strrchr(file, '/'); 61 baseName = baseName != NULL ? baseName + 1 : file;
|
/haiku/src/apps/musiccollection/ |
H A D | MusicCollectionWindow.cpp | 54 EntryCreated(WatchedFile* file) argument 56 //ListItem* item1 = new ListItem(file->entry.name, file); 66 BNode node(&file->entry); 93 BString title= (strcmp(buffer, "") == 0) ? file->entry.name 96 ListItem* item = new ListItem(title, file); 97 file->cookie = item; 113 EntryRemoved(WatchedFile* file) argument 115 ListItem* item = (ListItem*)file->cookie; 127 EntryMoved(WatchedFile* file) argument 134 AttrChanged(WatchedFile* file) argument [all...] |
/haiku/src/apps/deskcalc/ |
H A D | CalcApplication.cpp | 90 // locate preferences file 93 printf("no preference file found.\n"); 122 // flatten entire acrhive and write to settings file 127 "error creating file: %s\n", strerror(ret)); 134 "to file: %s\n", strerror(ret)); 141 CalcApplication::_InitSettingsFile(BFile* file, bool write) argument 154 ret = file->SetTo(prefsPath.Path(), 157 ret = file->SetTo(prefsPath.Path(), B_READ_ONLY);
|