Searched refs:file (Results 476 - 500 of 738) sorted by relevance

<<11121314151617181920>>

/haiku/src/apps/packageinstaller/
H A DPackageItem.cpp72 // Uncompressed file size in package info corrupted
493 PackageItem::ParseData(uint8* buffer, BFile* file, uint64 originalSize, argument
499 parser_debug(" Found file data.\n");
523 ret = inflate_file_to_file(fPackage, compressed, file, original);
625 // for the retargetting of install file locations.
676 parser_debug(" Found file (script) data.\n");
884 BFile file; local
890 ret = file.SetTo(destination.Path(),
898 ret = file.SetTo(destination.Path(), B_WRITE_ONLY | B_CREATE_FILE);
909 ret = file
[all...]
/haiku/src/kits/package/
H A DRepositoryConfig.cpp92 BFile file(&entry, B_WRITE_ONLY | B_CREATE_FILE | B_ERASE_FILE);
93 status_t result = file.InitCheck();
124 if ((result = file.Write(configString.String(), size)) < size)
/haiku/src/bin/
H A Dsetversion.cpp325 BFile file; local
326 status_t status = file.SetTo(argv[1], B_READ_WRITE);
331 status = info.SetTo(&file);
/haiku/src/build/libbe/storage/
H A DMimeType.cpp6 \file MimeType.cpp
379 // we have a file, read the first 4 bytes
380 BFile file;
382 if (file.SetTo(ref, B_READ_ONLY) == B_OK
383 && file.Read(buffer, 4) == 4) {
387 // we couldn't open or read the file
H A DDirectory.cpp188 // prevent that our file descriptor goes away in _SetTo()
416 BDirectory::CreateFile(const char* path, BFile* file, bool failIfExists) argument
425 BFile* realFile = file ? file : &tmpFile;
431 if (error != B_OK && file) // mimic R5 behavior
432 file->Unset();
499 //! Closes the BDirectory's file descriptor.
/haiku/src/kits/storage/
H A DResourceStrings.cpp6 \file ResourceStrings.cpp
43 file referred to by the supplied entry_ref.
44 \param ref the entry_ref referring to the resource file
104 to another file.
125 /*! \brief Re-initialized the BResourceStrings object to the file referred to
128 application file.
129 \param ref the entry_ref referring to the resource file
147 BFile file(&fileRef, B_READ_ONLY);
148 error = file.InitCheck();
152 error = fResources->SetTo(&file);
[all...]
H A DDirectory.cpp194 // prevent that our file descriptor goes away in _SetTo()
436 BDirectory::CreateFile(const char* path, BFile* file, bool failIfExists) argument
445 BFile* realFile = file ? file : &tmpFile;
451 if (error != B_OK && file) // mimic R5 behavior
452 file->Unset();
532 //! Closes the BDirectory's file descriptor.
/haiku/src/apps/terminal/
H A DTermApp.cpp224 // Works Only Launced by Double-Click file, or Drags file to App.
232 BFile file;
233 if (file.SetTo(&ref, B_READ_WRITE) != B_OK)
236 BNodeInfo info(&file);
240 // if App opened by Pref file
347 //" -p, --preference load preference file\n"
/haiku/src/kits/tracker/
H A DModel.cpp39 // use a more efficient way of storing file type and preferred app strings
557 // regular file
669 // promote from volume to file system root
927 PRINT(("%s, %s:updating icon because file type changed\n",
988 BFile file(&entry, O_RDONLY);
989 BNodeInfo mime(&file);
1100 BFile file(EntryRef(), O_RDONLY);
1101 BAppFileInfo handlerInfo(&file);
1144 // we already know this model supports the file as a supertype,
1177 BFile file(EntryRe
[all...]
H A DFindPanel.cpp298 FindWindow::IsQueryTemplate(BNode* file) argument
301 if (BNodeInfo(file).GetType(type) != B_OK)
344 // make a file name that is legal under bfs and hfs - possibly could
410 FindWindow::SaveQueryAttributes(BNode* file, bool queryTemplate) argument
412 ThrowOnError(BNodeInfo(file).SetType(
417 file->WriteAttr(kAttrQueryLastChange, B_INT32_TYPE, 0, &currentTime,
420 file->WriteAttr("_trk/recentQuery", B_INT32_TYPE, 0, &tmp, sizeof(int32));
425 FindWindow::SaveQueryAsAttributes(BNode* file, BEntry* entry, argument
431 BContainerWindow::SetLayoutState(file, oldAttributes);
435 // and the file'
3416 FILE* file = fopen(path.Path(), "r"); local
[all...]
/haiku/src/system/libnetwork/netresolv/isc/
H A Deventlib_p.h20 /*! \file
84 #define EV_CONN_SELECTED 0x0002 /*%< evSelectFD(conn->file). */
86 evFileID file; member in struct:evConn
129 evFileID file; member in struct:evStream
172 struct { evFile *this; int eventmask; } file; member in union:evEvent_p::__anon19
/haiku/src/tools/fs_shell/
H A Dcommand_cp.cpp128 const struct fssh_stat &st, File *&file) = 0;
401 // create the file
414 HostFile *file = new HostFile; local
415 error = file->Init(path, fd, st);
417 delete file;
421 _file = file;
533 // TODO: check if the file system supports attributes, and fail
766 // create the file
780 GuestFile *file = new GuestFile; local
781 error = file
1156 File *file = NULL; local
[all...]
/haiku/src/apps/mail/
H A DContent.cpp721 BFile file(&ref, B_READ_ONLY);
722 if (file.InitCheck() == B_OK) {
727 file.GetSize(&size);
734 ssize_t bytesRead = file.Read(signature, size);
1132 BFile file(&ref, B_READ_ONLY);
1133 if (file.InitCheck() == B_OK) {
1134 BNodeInfo node(&file);
1139 file.GetSize(&size);
1148 if (file.Read(text, size) < B_OK) {
1149 puts("could not read from file");
[all...]
/haiku/src/tests/add-ons/translators/pngtranslator/
H A DPNGTranslatorTest.cpp108 BFile file; local
112 CPPUNIT_ASSERT(file.SetTo(fullpath.String(), B_READ_ONLY) == B_OK);
117 CPPUNIT_ASSERT(proster->Identify(&file, NULL, &ti) == B_OK);
126 CPPUNIT_ASSERT(proster->Identify(&file, NULL, &ti, 0, NULL,
136 CPPUNIT_ASSERT(proster->Identify(&file, NULL, &ti, 0, NULL,
240 // Perform translations on every file in the array
/haiku/src/tests/add-ons/translators/stxttranslator/
H A DSTXTTranslatorTest.cpp68 0.5f, 0.5f, "Be styled text file", "text/x-vnd.Be-stxt");
75 0.4f, 0.6f, "Plain text file", "text/plain");
87 BFile file; local
89 CPPUNIT_ASSERT(file.SetTo(paths[i], B_READ_ONLY) == B_OK);
94 CPPUNIT_ASSERT(proster->Identify(&file, NULL, &ti) == B_OK);
103 CPPUNIT_ASSERT(proster->Identify(&file, NULL, &ti, 0, NULL,
113 CPPUNIT_ASSERT(proster->Identify(&file, NULL, &ti, 0, NULL,
151 "Plain text file", "text/plain");
162 "Plain text file", "text/plain");
173 "Plain text file", "tex
[all...]
/haiku/src/kits/package/hpkg/
H A DPackageReaderImpl.cpp268 context->errorOutput->PrintError("Error: Invalid file type for "
322 // open file
325 ErrorOutput()->PrintError("Error: Failed to open package file \"%s\": "
337 BFdIO* file = new(std::nothrow) BFdIO(fd, keepFD); local
338 if (file == NULL) {
344 return Init(file, true, flags);
349 PackageReaderImpl::Init(BPositionIO* file, bool keepFile, uint32 flags, argument
354 B_HPKG_MINOR_VERSION>(file, keepFile, header, flags);
/haiku/src/apps/mediaplayer/playlist/
H A DPlaylistWindow.cpp47 // Maintaining a playlist file on disk is a bit tricky. The playlist ref should
305 editMenu->AddItem(new BMenuItem(B_TRANSLATE("Move file to Trash"),
418 BFile file(&tempEntry, B_CREATE_FILE | B_ERASE_FILE | B_WRITE_ONLY);
419 if (file.InitCheck() != B_OK) {
422 errorMessage << strerror(file.InitCheck());
434 status_t ret = fPlaylist->Flatten(&file);
449 BNodeInfo info(&file);
/haiku/src/tests/kits/storage/virtualdrive/
H A Dvirtualdrive.cpp30 [2:07] <geist> when you open the file in the driver, use stat() to see if it's a file. if it is, call ioctl 10000 on the underlying file
32 [2:08] <geist> bfs is probably doing the same algorithm, and seeing that you are a device and not a file, and so it doesn't call 10000 on you
35 [2:09] <geist> bfs is the only fs that's reasonably safe being reentered like that, but only if the underlying one is opened with the cache disabled on that file
36 [2:09] <geist> that ioctl is used on the swap file as well
77 char file[B_PATH_NAME_LENGTH]; member in struct:device_info
164 info.file[0] = '\0';
184 // open the file
191 // get the file siz
[all...]
/haiku/src/tests/add-ons/translators/tgatranslator/
H A DTGATranslatorTest.cpp124 BFile file; local
126 CPPUNIT_ASSERT(file.SetTo(pinfo[i].imagePath, B_READ_ONLY) == B_OK);
131 CPPUNIT_ASSERT(proster->Identify(&file, NULL, &ti) == B_OK);
140 CPPUNIT_ASSERT(proster->Identify(&file, NULL, &ti, 0, NULL,
150 CPPUNIT_ASSERT(proster->Identify(&file, NULL, &ti, 0, NULL,
281 // Perform translations on every file in the array
/haiku/src/add-ons/mail_daemon/outbound_protocols/smtp/
H A DSMTP.cpp74 ** taken from the file rfc2104.txt
450 BFile file(&ref, B_READ_WRITE);
451 status_t status = file.InitCheck();
456 file >> header;
468 NotifyMessageReadyToSend(ref, file);
469 status = Send(to, from, &file);
472 NotifyMessageSent(ref, file);
475 file.GetSize(&size);
/haiku/src/tools/translation/inspector/
H A DImageView.cpp186 // write the image file there
200 BFile file(&dir, filename, B_WRITE_ONLY | B_CREATE_FILE);
201 chk = file.InitCheck();
204 chk = proster->Translate(&stream, NULL, NULL, &file, B_TGA_FORMAT);
208 B_TRANSLATE("Sorry, unable to write the image file."),
548 BFile file(&ref, B_READ_ONLY);
549 chk = file.InitCheck();
563 chk = proster->Identify(&file, &ioExtension, &tinfo, 0, NULL,
568 chk = proster->Translate(&file, &tinfo, &ioExtension, &outstream,
584 // Set the name of the Window to reflect the file nam
[all...]
/haiku/src/preferences/time/
H A DZoneView.cpp587 BFile file(&entry, B_READ_ONLY);
588 if (file.InitCheck() == B_OK) {
590 file.Read(buffer, 6);
607 BFile file(path.Path(), B_CREATE_FILE | B_ERASE_FILE | B_WRITE_ONLY);
608 if (file.InitCheck() == B_OK) {
610 file.Write("gmt", 3);
612 file.Write("local", 5);
/haiku/src/apps/cortex/NodeManager/
H A DNodeRef.cpp75 // [e.moon 29sep99] added 'file'
83 file(_file ? new entry_ref(*_file) : 0) {}
86 if(file) delete file;
92 if(file) delete file;
93 file = new entry_ref(*_file);
97 entry_ref* file; member in struct:NodeRef::addon_hint
243 // access file being played
245 // or if the node has no associated file
262 setFile( const entry_ref& file, bigtime_t* outDuration) argument
1615 _setAddonHint( const dormant_node_info* info, const entry_ref* file) argument
[all...]
/haiku/src/apps/mediaplayer/media_node_framework/audio/
H A DAudioProducer.cpp59 static BMediaFile* file = NULL; local
61 if (file == NULL) {
71 file = new BMediaFile(&ref, &fileFormat);
82 track = file->CreateTrack(&format, &info);
86 file->CommitHeader();
89 return track != NULL ? file : NULL;
198 if (BMediaFile* file = init_media_file(fPreferredFormat, &track)) {
199 printf("deleting file...\n");
201 file->ReleaseTrack(track);
202 file
[all...]
/haiku/src/apps/sudoku/
H A DSudokuView.cpp144 FILE* file = fopen(path.Path(), "r");
145 if (file == NULL)
154 while (fgets(line, sizeof(line), file) != NULL
158 fclose(file);
167 fclose(file);
215 BFile file; local
216 status_t status = file.SetTo(&ref, B_WRITE_ONLY | B_CREATE_FILE
221 return SaveTo(file, exportAs);
228 BFile* file = dynamic_cast<BFile*>(&stream); local
232 if (file)
[all...]

Completed in 370 milliseconds

<<11121314151617181920>>