Searched refs:file (Results 651 - 675 of 737) sorted by relevance

<<21222324252627282930

/haiku/src/system/libnetwork/netresolv/resolv/
H A Dres_send.c77 /*! \file
1135 Aerror(const res_state statp, FILE *file, const char *string, int error, argument
1153 fprintf(file, "res_send: %s ([%s].%s): %s\n",
1160 Perror(const res_state statp, FILE *file, const char *string, int error) { argument
1164 fprintf(file, "res_send: %s: %s\n",
/haiku/src/preferences/filetypes/
H A DIconView.h101 void SetTo(const entry_ref& file,
/haiku/src/tests/add-ons/translators/bmptranslator/
H A DBMPTranslatorTest.cpp30 uint32 fileSize; // file size in bytes
32 uint32 dataOffset; // file offset to actual image
130 BFile file; local
132 CPPUNIT_ASSERT(file.SetTo(pinfo[i].imagePath, B_READ_ONLY) == B_OK);
137 CPPUNIT_ASSERT(proster->Identify(&file, NULL, &ti) == B_OK);
146 CPPUNIT_ASSERT(proster->Identify(&file, NULL, &ti, 0, NULL,
156 CPPUNIT_ASSERT(proster->Identify(&file, NULL, &ti, 0, NULL,
316 // Ignore the fileSize: if it is the case that the actual file size is
318 // Assume the fileSize has nothing to do with the actual size of the file
871 // Perform translations on every file i
[all...]
/haiku/src/kits/app/
H A DApplication.cpp398 BFile file(&ref, B_READ_ONLY);
399 fInitError = fileInfo.SetTo(&file);
403 // compare the file signature and the supplied signature
1533 // don't quit file panels if we haven't been asked for it
1696 BFile file(&ref, B_READ_ONLY);
1697 if (file.InitCheck() != B_OK)
1700 BResources* resources = new (std::nothrow) BResources(&file, false);
/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);
/haiku/src/system/kernel/vm/
H A DVMAnonymousCache.cpp242 swap_file* file = it.Next();) {
243 swap_addr_t total = file->last_slot - file->first_slot;
245 "\n", file->vnode, total, file->bmp->free_slots);
248 freeSwapPages += file->bmp->free_slots;
271 panic("swap_slot_alloc(): no swap file in the system\n");
303 // if this swap file has used more than 90% percent of its space
327 panic("find_swap_file(): can't find swap file for slot %" B_PRIu32 "\n",
555 // we'd risk a deadlock in case we come from the file cach
[all...]
/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/add-ons/media/media-add-ons/reader/
H A DMediaReader.cpp7 // It reads any file and produces one output,
129 const entry_ref & file,
135 status_t status = AbstractFileInterfaceNode::SetRef(file,B_READ_ONLY,create,out_time);
142 // reset the format, and set the requirements imposed by this file
216 // on the current file. (if any)
591 // Okay you asked for it, we'll skip ahead in the file!
733 "The Haiku Media Reader reads a file and produces a multistream.");
796 return B_FILE_ERROR; // some sort of file related error
798 PRINT("\t%ld file bytes read at position %ld.\n",
128 SetRef( const entry_ref & file, bool create, bigtime_t * out_time) argument
/haiku/src/kits/media/
H A DMediaFile.cpp280 // Create and add a track to the media file
311 // Create and add a raw track to the media file (it has no encoder)
341 // Lets you set the copyright info for the entire file
352 // Call this to add user-defined chunks to a file (if they're supported)
382 // This is for controlling file format parameters
510 else if (BFile* file = dynamic_cast<BFile*>(source))
511 fErr = file->InitCheck();
/haiku/src/kits/package/hpkg/
H A DPackageFileHeapWriter.cpp198 BPositionIO* file, off_t heapOffset,
202 PackageFileHeapAccessorBase(errorOutput, file, heapOffset,
197 PackageFileHeapWriter(BErrorOutput* errorOutput, BPositionIO* file, off_t heapOffset, CompressionAlgorithmOwner* compressionAlgorithm, DecompressionAlgorithmOwner* decompressionAlgorithm) argument
H A DPackageWriterImpl.cpp479 PackageWriterImpl::Init(BPositionIO* file, bool keepFile, argument
483 return _Init(file, keepFile, NULL, parameters);
535 // a file descriptor is given -- read the config from there
536 // stat the file to get the file size
560 // use the file name
597 fListener->PrintError("No package-info file found (%s)!\n",
643 PackageWriterImpl::_Init(BPositionIO* file, bool keepFile, const char* fileName, argument
646 status_t result = inherited::Init(file, keepFile, fileName, parameters);
744 // Truncate the file t
[all...]
/haiku/src/system/boot/loader/file_systems/packagefs/
H A Dpackagefs.cpp424 // get the file mode -- filter out write permissions
430 // file
513 File(PackageFile* file) argument
515 fFile(file)
/haiku/src/system/libroot/posix/
H A Dspawn.cpp617 posix_spawnp(pid_t *pid, const char *file, argument
622 return do_posix_spawn(pid, file, file_actions, attrp, argv, envp, true);
/haiku/src/bin/mail_utils/
H A Dmbox2mail.cpp3 * This file may be used under the terms of the MIT License.
16 convenience, all the messages that were from one file are put in a specified
339 * Saves the message text to a file in the output directory. The file name is
369 /* Make a pretend file to hold the message, so the MDR library can use it. */
409 // Generate a file name for the incoming message.
416 // sorting by file name will give all the messages with the same subject in
456 UniqueFileName.Prepend ("Unable to create file \"");
466 /* Write the message contents to the file, use the unchanged original one. */
471 UniqueFileName.Prepend ("Error while writing file \"");
[all...]
/haiku/src/add-ons/kernel/file_systems/userlandfs/server/beos/
H A Dfs_interface.h88 typedef int beos_op_walk(void *ns, void *base, const char *file, char **newpath,
/haiku/headers/private/userlandfs/legacy/
H A Dfsproto.h74 typedef int op_walk(void *ns, void *base, const char *file, char **newpath,
/haiku/src/kits/interface/
H A DShelf.cpp707 BFile *file = new BFile(fEntry, B_READ_WRITE | B_ERASE_FILE); local
708 status = file->InitCheck();
710 delete file;
714 fStream = file;
/haiku/src/kits/tracker/
H A DFSUtils.h72 //! Inform that a file error occurred while copying <name>.
90 // for files: save original attributes on file
100 //! Override to prevent copying of a given file or directory
101 virtual bool SkipEntry(const BEntry*, bool file);
103 //! During a file copy, this is called every time a chunk of data
107 //! This is called when a file is finished copying. Users of this
/haiku/src/bin/bfs_tools/lib/
H A DInode.cpp550 // attributes (of a file)
778 if (pos > fInode->data.size) // reading outside the file
823 // FIXME: truncate size -> should enlargen the file
825 if (pos > fInode->data.size) // writing outside the file
973 BFile file; local
974 status = file.SetTo(path.Path(),
984 ssize_t written = file.Write(buffer, size);
989 return CopyAttributesTo(&file);
/haiku/src/add-ons/tracker/zipomatic/
H A DZipperThread.cpp33 #define B_TRANSLATION_CONTEXT "file:ZipperThread.cpp"
153 BString file = path.Path(); local
/haiku/src/kits/debugger/dwarf/
H A DDebugInfoEntry.cpp120 _file = location->file;
/haiku/src/servers/package/
H A DVolume.cpp346 // First boot processing requested by a magic file left by the OS installer?
943 ERROR("failed to init package for file \"%s\"\n", name);
1035 INFORM("Failed to get activated packages info from activated packages file."
1066 // try reading the activation file
1068 BFile file; local
1069 error = file.SetTo(&entryRef, B_READ_ONLY);
1077 INFORM("Failed to open packages activation file %s: %s\n",
1082 // read the whole file into memory to simplify things
1084 error = file.GetSize(&size);
1086 ERROR("Failed to packages activation file siz
[all...]
/haiku/src/bin/rc/
H A Ddecompile.cpp797 // #pragma mark - file examination
920 BFile file(fileName, B_READ_ONLY);
921 if (file.InitCheck() != B_OK) {
928 if (res.SetTo(&file) != B_OK) {
/haiku/src/kits/storage/
H A DMimeType.cpp896 err = message.AddString("file type", type);
944 err = message.AddString("file type", type);
1027 BMimeType::GuessMimeType(const entry_ref* file, BMimeType* type) argument
1029 status_t err = file && type ? B_OK : B_BAD_VALUE;
1038 err = message.AddRef("file ref", file);
1258 \param types The supported types to be assigned to the file.
1303 /*! Returns a list of mime types associated with the given file extension
1309 \param extension The file extension of interest
/haiku/src/tests/add-ons/print/pcl6/
H A Ddisasm.cpp1250 File file(filename);
1251 if (file.InitCheck()) {
1252 Disasm disasm(&file);
1257 fprintf(stderr, "%s error: could not open file '%s'\n", program, filename);

Completed in 268 milliseconds

<<21222324252627282930