Searched refs:file (Results 1 - 25 of 737) sorted by last modified time

1234567891011>>

/haiku/src/add-ons/mail_daemon/inbound_protocols/imap/
H A DIMAPFolder.cpp35 TemporaryFile(BFile& file) argument
37 fFile(file),
332 /*! Stores the given \a stream into a temporary file using the provided
333 BFile object. A new file will be created, and the \a ref object will
334 point to it. The file will remain open when this method exits without
342 size_t& length, entry_ref& ref, BFile& file)
349 TemporaryFile temporaryFile(file);
354 status = _WriteStream(file, stream, length);
363 message has been fetched. This method also closes the \a file passed in.
366 IMAPFolder::MessageStored(entry_ref& ref, BFile& file, uint3 argument
341 StoreMessage(uint32 fetchFlags, BDataIO& stream, size_t& length, entry_ref& ref, BFile& file) argument
437 StoreBody(uint32 uid, BDataIO& stream, size_t& length, entry_ref& ref, BFile& file) argument
459 BodyStored(entry_ref& ref, BFile& file, uint32 uid) argument
779 _WriteStream(BFile& file, BDataIO& stream, size_t& length) const argument
[all...]
/haiku/src/servers/app/font/
H A DGlobalFontManager.cpp640 BFile file(font->Path(), B_READ_ONLY);
641 if (file.InitCheck() != B_OK) {
647 // We just want the file in the kernel file cache...
648 ssize_t read = file.Read(buffer, bufferSize);
914 // directory. If a valid font file, it adds both the family and the style.
/haiku/src/preferences/screen/
H A DScreenWindow.cpp634 // Write mode of workspace 0 (the boot workspace) to the vesa settings file
640 " file:\n\t");
1259 BFile file; local
1260 status = file.SetTo(path.Path(), B_CREATE_FILE | B_WRITE_ONLY | B_ERASE_FILE);
1268 ssize_t bytesWritten = file.Write(buffer, strlen(buffer));
/haiku/src/kits/tracker/
H A DWidgetAttributeText.cpp88 // format file size value
2060 BFile* file = dynamic_cast<BFile*>(fModel->Node()); local
2061 if (file != NULL) {
2062 BAppFileInfo info(file);
H A DContainerWindow.cpp522 // the file system is very busy right now
2545 // clicked on a pose, show file or volume context menu
2906 BFile file(item->model->EntryRef(), B_READ_ONLY);
2907 if (file.InitCheck() == B_OK) {
2908 BAppFileInfo info(&file);
3693 BFile file; local
3694 if (dir.CreateFile(name, &file) != B_OK)
H A DUtilities.cpp1426 GetAppSignatureFromAttr(BFile* file, char* attr) argument
1434 BAppFileInfo appFileInfo(file);
1437 ssize_t readResult = file->ReadAttr(kAttrAppSignature, B_MIME_STRING_TYPE,
1449 GetAppIconFromAttr(BFile* file, BBitmap* icon, icon_size which) argument
1457 BAppFileInfo appFileInfo(file);
1466 // status_t result = file->GetAttrInfo(attrName, &ainfo);
1470 // ssize_t readResult = file->ReadAttr(attrName, type, 0, buffer,
1482 // result = file->GetAttrInfo(attrName, &ainfo);
1488 // ssize_t readResult = file->ReadAttr(attrName, type, 0, buffer, ainfo.size);
1712 _ThrowOnError(status_t result, const char* DEBUG_ONLY(file),
[all...]
H A DPoseView.cpp1457 // cache up the file type and preferred app
1474 // this handles the case of a file panel when the directory is
1696 // We never want to create poses for those volumes; the file
2641 // file panels as well
3418 // copy the data from the template file
3435 // copy the attributes from the template file
4213 // in order to handle a clipping file, the drag initiator must be able
4303 BFile file(&entry, O_RDONLY);
4304 BNodeInfo mime(&file);
4354 // build a file nam
4599 BFile file; local
4767 BFile file; local
4831 BFile file; local
[all...]
/haiku/src/apps/mediaconverter/
H A DMediaFileInfo.cpp5 // 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/codycam/
H A DVideoConsumer.cpp46 static status_t SetFileType(BFile* file, int32 translator, uint32 type);
708 B_TRANSLATE("Error setting type of output file"));
711 UpdateFtpStatus(B_TRANSLATE("Error writing output file"));
720 UpdateFtpStatus(B_TRANSLATE("Error creating output file"));
746 // ftp the local file to our web site
759 // send the file to the server
793 SetFileType(BFile* file, int32 translator, uint32 type) argument
816 /* use BNodeInfo to set the file type */
817 BNodeInfo ninfo(file);
/haiku/src/apps/aboutsystem/
H A DAboutSystem.cpp1080 BFile file; local
1081 if (file.SetTo(path.Path(), B_READ_ONLY) == B_OK
1082 && appFileInfo.SetTo(&file) == B_OK
2116 // open the app executable file
/haiku/src/add-ons/kernel/file_systems/ramfs/
H A Dkernel_interface.cpp20 // You can alternatively use *this file* under the terms of the the MIT
809 // create the file cookie
821 // fail, if we shall fail, when the file exists
824 // don't create a file over an existing directory or symlink
841 // entry doesn't exist: create a file
842 File *file = NULL; local
843 error = dir->CreateFile(name, &file);
845 node = file;
855 vfs_set_vnode_cache(vnode, file->GetCache());
975 if (File *file
[all...]
/haiku/src/tools/fs_shell/
H A Dvfs.cpp99 /** \brief Structure to manage a mounted file system
190 // file descriptor operation prototypes
478 /** Tries to open the specified file system module.
479 * Accepts a file system name of the form "bfs" or "file_systems/bfs/v1".
480 * Returns a pointer to file system module interface, or NULL if it
503 /** Accepts a file system name of the form "bfs" or "file_systems/bfs/v1"
516 // the name already seems to be the module's file name
650 // The file system has removed the resources of the vnode now, so we can
671 * a file system.
768 * a file syste
2509 struct vnode *dir, *file; local
[all...]
H A Dfssh.cpp331 list_entry(const char* file, const char* name = NULL) argument
336 path = file;
339 file = path.c_str();
341 name = file;
343 // stat the file
345 fssh_status_t error = _kern_read_stat(-1, file, false, &st, sizeof(st));
347 fprintf(stderr, "Error: Failed to stat() \"%s\": %s\n", file,
379 // get file type
402 error = _kern_read_link(-1, file, buffer, &size);
430 // TODO file/director
700 const char *file = argv[argi]; local
739 const char* file = *files; local
950 const char* file = *files; local
1011 const char* file = argv[argi]; local
[all...]
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/data/bin/
H A Dquicktour14 open file:$localizedQuicktour
16 open file:$localizedQuicktourBase
/haiku/src/apps/showimage/
H A DShowImageWindow.cpp183 tool_bar_icon(kIconGoPrevious), B_TRANSLATE("Previous file"));
185 B_TRANSLATE("Next file"));
483 _AddItemMenu(menu, B_TRANSLATE("Previous file"),
485 _AddItemMenu(menu, B_TRANSLATE("Next file"),
685 // quit if file could not be opened
704 // Set width and height attributes of the currently showed file.
1071 BFile file(&fNavigator.CurrentRef(), B_WRITE_ONLY);
1072 if (file.InitCheck() != B_OK)
1074 file.WriteAttr("Media:Rating", B_INT32_TYPE, 0, &rating,
1178 "file o
[all...]
/haiku/src/kits/package/
H A DPackageInfo.cpp259 && (error = archive->FindString("file-name", &fFileName)) == B_OK) {
285 BFile file(&packageInfoEntry, B_READ_ONLY);
286 if ((result = file.InitCheck()) != B_OK)
289 return ReadFromConfigFile(file, listener);
1075 || (error = archive->AddString("file-name", fFileName)) != B_OK) {
1180 // try current package file format version
1195 // try package file format version 1
/haiku/src/preferences/filetypes/
H A DIconView.h101 void SetTo(const entry_ref& file,
H A DIconView.cpp214 BFile file(&ref, B_READ_ONLY);
215 BAppFileInfo info(&file);
216 if (file.InitCheck() == B_OK && info.InitCheck() == B_OK)
267 BFile file; local
268 status_t status = file.SetTo(&ref, B_READ_ONLY);
272 BAppFileInfo info(&file);
1060 BFile file(&fRef, B_READ_ONLY);
1061 if (file.InitCheck() != B_OK)
1065 if (info.SetTo(&file) != B_OK)
1273 BFile file; local
[all...]
/haiku/src/system/kernel/fs/
H A Dvfs.cpp20 #include <sys/file.h>
123 /*! \brief Structure to manage a mounted file system
356 // file descriptor operation prototypes
748 /*! Tries to open the specified file system module.
749 Accepts a file system name of the form "bfs" or "file_systems/bfs/v1".
750 Returns a pointer to file system module interface, or NULL if it
772 /*! Accepts a file system name of the form "bfs" or "file_systems/bfs/v1"
784 // the name already seems to be the module's file name
806 /*! Accepts a list of file system names separated by a colon, one for each
807 layer and returns the file syste
4388 VnodePutter file; local
[all...]
/haiku/src/servers/package/
H A DCommitTransactionHandler.cpp436 // package file system.
457 // use the modification time of the old activations file, if possible
527 // write the old activation file
648 ERROR("Failed to compare new package %s to existing file in "
833 for (int32 i = 0; const BGlobalWritableFileInfo* file = files.ItemAt(i);
835 if (file->IsIncluded() && !contentPaths.Add(file->Path()))
877 for (int32 i = 0; const BGlobalWritableFileInfo* file = files.ItemAt(i);
879 if (file->IsIncluded()) {
880 _AddGlobalWritableFile(package, *file, rootDirector
888 _AddGlobalWritableFile(Package* package, const BGlobalWritableFileInfo& file, const BDirectory& rootDirectory, const BDirectory& extractedFilesDirectory) argument
1749 BFile file; local
[all...]
/haiku/src/apps/terminal/
H A DTermWindow.cpp581 TermWindow::_GetWindowPositionFile(BFile* file, uint32 openMode) argument
596 return file->SetTo(path.Path(), openMode);
606 BFile file; local
607 status = _GetWindowPositionFile(&file, B_READ_ONLY);
611 status = position.Unflatten(&file);
613 file.Unset();
639 BFile file; local
642 // Read the settings file if it exists and is a valid BMessage.
643 status_t status = _GetWindowPositionFile(&file, B_READ_ONLY);
645 status = originalSettings.Unflatten(&file);
[all...]
/haiku/src/apps/haikudepot/util/
H A DAppUtils.cpp106 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/apps/powerstatus/
H A DPowerStatusView.cpp856 PowerStatusReplicant::_GetSettings(BFile& file, int mode) argument
866 return file.SetTo(path.Path(), mode);
875 BFile file; local
876 if (_GetSettings(file, B_READ_ONLY) != B_OK)
880 if (settings.Unflatten(&file) < B_OK)
890 BFile file; local
891 if (_GetSettings(file, B_WRITE_ONLY | B_CREATE_FILE | B_ERASE_FILE) != B_OK)
898 settings.Flatten(&file, &size);
/haiku/src/apps/deskcalc/
H A DCalcView.cpp832 BFile file; local
837 if (file.SetTo(&ref, B_READ_ONLY) == B_OK) {
838 read = file.Read(buffer, sizeof(buffer) - 1);
1473 BFile file(&appRef, B_READ_ONLY);
1474 BAppFileInfo appInfo(&file);

Completed in 201 milliseconds

1234567891011>>