Searched refs:file (Results 351 - 375 of 737) sorted by relevance

<<11121314151617181920>>

/haiku/src/add-ons/kernel/file_systems/netfs/server/
H A DFDManager.cpp39 // ask for a bunch more file descriptors
131 FDManager::SetFile(BFile* file, const char* path, uint32 openMode) argument
133 status_t error = file->SetTo(path, openMode);
137 error = file->SetTo(path, openMode);
/haiku/src/tests/kits/app/bmessage/
H A DMessageSpeedTest.cpp163 BFile file(&entry, B_READ_WRITE | B_CREATE_FILE); \
164 file.Write(buffer.Buffer(), buffer.BufferLength()); \
206 BFile file(&entry, B_READ_WRITE | B_CREATE_FILE); \
207 file.Write(buffer.Buffer(), buffer.BufferLength()); \
235 BFile file(&entry, B_READ_ONLY); \
238 file.GetSize(&size); \
240 file.Read(buffer, size); \
253 file.Unset(); \
277 BFile file(&entry, B_READ_ONLY); \
280 file
[all...]
/haiku/src/tests/kits/app/broster/testapps/
H A DRosterBroadcastTestApp1.cpp142 // find app file and get signature from resources
147 // init app file
148 BFile file; local
149 error = file.SetTo(path, B_READ_ONLY);
153 if (file.ReadAttrString("signature", &signatureString) == B_OK
159 printf("ERROR: Couldn't init app file: %s\n", strerror(error));
H A DRosterLaunchTestApp1.cpp135 // find app file and get signature from resources
140 // init app file
141 BFile file; local
142 error = file.SetTo(path, B_READ_ONLY);
146 if (file.ReadAttrString("signature", &signatureString) == B_OK
152 printf("ERROR: Couldn't init app file: %s\n", strerror(error));
H A DRosterWatchingTestApp1.cpp142 // find app file and get signature from resources
147 // init app file
148 BFile file; local
149 error = file.SetTo(path, B_READ_ONLY);
153 if (file.ReadAttrString("signature", &signatureString) == B_OK
159 printf("ERROR: Couldn't init app file: %s\n", strerror(error));
/haiku/headers/os/storage/
H A DResources.h25 BResources(const BFile* file,
36 status_t SetTo(const BFile* file,
65 status_t WriteTo(BFile* file);
/haiku/src/kits/print/
H A DPrinterDriverAddOn.cpp136 BFile file(spoolFile, B_READ_WRITE);
146 parameters.AddInt32("file", (addr_t)&file);
149 BMessage* message = (*func)(&file, spoolFolder, &parameters);
/haiku/src/apps/expander/
H A DPasswordAlert.cpp98 BFile file; local
99 if (file.SetTo(path.Path(), B_READ_ONLY) == B_OK) {
101 if (resources.SetTo(&file) == B_OK) {
/haiku/src/add-ons/mail_daemon/inbound_protocols/pop3/
H A DPOP3.cpp192 BString fileName = "Downloading file... uid: ";
197 BFile file(&entry, B_READ_WRITE | B_CREATE_FILE | B_ERASE_FILE);
198 error = file.InitCheck();
200 printf("POP3: Can't create file %s\n ", path.Path());
203 BMailMessageIO mailIO(this, &file, toRetrieve);
216 ProcessMessageFetched(ref, file, attributes);
227 ProcessHeaderFetched(ref, file, attributes);
232 if (file.WriteAttrString("MAIL:unique_id", &uidStr) < 0)
235 file.WriteAttr("MAIL:size", B_INT32_TYPE, 0, &size, sizeof(int32));
236 write_read_attr(file, B_UNREA
[all...]
/haiku/src/system/libroot/os/
H A Ddebug.c257 _debuggerAssert(const char *file, int line, const char *message) argument
262 file, line, message);
264 debug_printf("%" B_PRId32 ": ASSERT: %s:%d %s\n", find_thread(NULL), file,
H A Dfs_attr.cpp25 open_attr_dir(int file, const char *path, bool traverse) argument
29 int fd = _kern_open_attr_dir(file, path, traverse);
66 // file.
74 // The new Haiku way is to use fs_open_attr() to get a regular file handle
/haiku/src/servers/bluetooth/
H A DDeskbarReplicant.cpp74 BFile file(info.name, B_READ_ONLY);
75 if (file.InitCheck() < B_OK)
78 BResources resources(&file);
/haiku/src/tests/kits/game/simple_game_sound_test/
H A DSimpleSoundTest.cpp81 entry_ref file; local
82 if (msg->FindRef("refs", i, &file) == B_OK)
84 BSimpleGameSound * sound = new BSimpleGameSound(&file);
/haiku/src/apps/terminal/
H A DThemeWindow.cpp53 B_TRANSLATE("Save to file" B_UTF8_ELLIPSIS),
131 BFile file(path.Path(), B_WRITE_ONLY | B_CREATE_FILE | B_ERASE_FILE);
137 file.Write(buffer, len);
143 file.Write(buffer, len);
/haiku/src/kits/debugger/dwarf/
H A DLineNumberProgram.cpp123 state.file = dataReader.ReadUnsignedLEB128(0);
177 dataReader.ReadUnsignedLEB128(0); // file length
178 state.file = -1;
211 state.file = 1;
/haiku/src/add-ons/media/media-add-ons/opensound/
H A DOpenSoundAddOn.cpp386 BFile file(path.Path(), B_READ_WRITE | B_CREATE_FILE | B_ERASE_FILE);
387 if (file.InitCheck() == B_OK)
388 fSettings.Flatten(&file);
402 BFile file(path.Path(), B_READ_ONLY);
403 if ((file.InitCheck() == B_OK) && (fSettings.Unflatten(&file) == B_OK))
407 PRINT(("Error unflattening settings file %s\n", path.Path()));
/haiku/src/kits/storage/mime/
H A DSnifferRules.cpp11 \file SnifferRules.cpp
161 BFile file; local
164 // from the file to fully accomodate all of our currently
172 // Next read that many bytes (or fewer, if the file isn't
181 err = file.SetTo(ref, B_READ_ONLY);
183 bytes = file.Read(buffer, bytes);
190 err = GuessMimeType(&file, buffer, bytes, type);
427 \param file The file to sniff. May be \c NULL. \a buffer is always given.
438 SnifferRules::GuessMimeType(BFile* file, cons argument
[all...]
/haiku/src/system/boot/platform/bios_ia32/
H A Dlong.cpp297 driver_settings_file* file = gKernelArgs.driver_settings; local
299 while (file != NULL) {
300 driver_settings_file* next = file->next;
301 fix_address(file->next);
302 fix_address(file->buffer);
303 file = next;
/haiku/src/system/libnetwork/netresolv/isc/
H A Dev_streams.c20 /* ev_streams.c - implement asynch stream file IO for the eventlib
79 if (evSelectFD(opaqueCtx, fd, EV_WRITE, writable, new, &new->file) < 0)
113 if (evSelectFD(opaqueCtx, fd, EV_READ, readable, new, &new->file) < 0)
202 if (old->file.opaque)
203 evDeselectFD(opaqueCtx, old->file);
263 evDeselectFD(opaqueCtx, str->file);
264 str->file.opaque = NULL;
319 /*! \file */
/haiku/src/add-ons/media/media-add-ons/radeon/
H A DTheater200.cpp104 FILE* file; local
117 file = fopen(micro_path, "r");
118 if (file == NULL) {
119 PRINT(("Cannot open microcode file\n"));
125 if (fread(microc_headp, sizeof(struct rt200_microc_head), 1, file) != 1)
127 PRINT(("Cannot read header from file: %s\n", micro_path));
147 ret = fread(&curr_seg->num_bytes, 4, 1, file);
148 ret += fread(&curr_seg->download_dst, 4, 1, file);
149 ret += fread(&curr_seg->crc_val, 4, 1, file);
152 PRINT(("Cannot read segment from microcode file
[all...]
/haiku/src/kits/storage/
H A DFileIO.cpp13 BFileIO::BFileIO(FILE* file, bool takeOverOwnership) argument
15 fFile(file),
/haiku/src/tests/kits/storage/
H A DEntryTest.h91 // Creates the given file
92 void CreateFile(const char *file);
93 // Creates the given file
95 // Removes the given file if it exists
96 void RemoveFile(const char *file);
97 // Checks, whether a file exists.
/haiku/src/add-ons/index_server/fulltext/
H A DFullTextAnalyser.cpp116 BFile file(&ref, B_READ_ONLY);
118 if (BTranslatorRoster::Default()->Identify(&file, NULL, &translatorInfo, 0,
/haiku/src/servers/print/
H A DPrintServerApp.cpp478 // update our pref file
498 file.
511 file.
549 PrintServerApp::OpenSettings(BFile& file, const char* name, bool forReading) argument
556 && file.SetTo(path.Path(), openMode) == B_OK;
563 BFile file; local
564 if (OpenSettings(file, kSettingsName, true)) {
565 fSettings->Load(&file);
574 BFile file; local
575 if (OpenSettings(file, kSettingsNam
[all...]
/haiku/src/servers/media/
H A DMediaFilesManager.cpp112 BFile file; local
113 status = _OpenSettingsFile(file,
118 return settings.Flatten(&file);
435 MediaFilesManager::_OpenSettingsFile(BFile& file, int mode) argument
452 return file.SetTo(path.Path(), mode);
462 BFile file; local
463 status_t status = _OpenSettingsFile(file, B_READ_ONLY);
468 status = settings.Unflatten(&file);

Completed in 245 milliseconds

<<11121314151617181920>>