/haiku/src/bin/rc/ |
H A D | rdef.cpp | 115 rdef_add_input_file(const char *file) argument 119 char *temp = strdup(file);
|
/haiku/src/tests/kits/media/media_decoder/ |
H A D | media_decoder.cpp | 36 fprintf(stderr,"supply an input file and an output file:\n"); 40 // open the file using BMediaFile 41 BFile * file = new BFile(argv[1],B_READ_ONLY); local 42 BMediaFile * mf = new BMediaFile(file); 70 // open the output file
|
/haiku/headers/os/storage/ |
H A D | File.h | 20 BFile(const BFile &file); 46 BFile &operator=(const BFile &file); 63 // The file's open mode.
|
/haiku/src/kits/package/hpkg/ |
H A D | PackageWriter.cpp | 109 BPackageWriter::Init(BPositionIO* file, bool keepFile, argument 117 return fImpl->Init(file, keepFile,
|
/haiku/src/kits/debugger/model/ |
H A D | FileSourceCode.cpp | 17 FileSourceCode::FileSourceCode(LocatableFile* file, SourceFile* sourceFile, argument 21 fFile(file),
|
/haiku/src/apps/serialconnect/ |
H A D | SerialApp.cpp | 137 // Do not allow sending if a file transfer is in progress. 174 BFile* file = new BFile(&ref, B_READ_ONLY); local 175 status_t error = file->InitCheck(); 181 fFileSender = new XModemSender(file, &fSerialPort, fWindow); 183 fFileSender = new RawSender(file, &fSerialPort, fWindow); 376 BFile file(path.Path(), B_READ_ONLY); 378 if (message.Unflatten(&file) != B_OK) { 404 BFile file(path.Path(), B_WRITE_ONLY | B_CREATE_FILE); 405 message.Flatten(&file);
|
/haiku/headers/build/os/storage/ |
H A D | File.h | 6 \file File.h 21 access to the file's content data and its attributes. 23 A BFile represents a file in some file system. It implements the 25 file, and is derived of BNode to provide access to the file's attributes. 34 BFile(const BFile &file); 60 BFile &operator=(const BFile &file); 77 //! The file's open mode.
|
/haiku/src/tools/translation/tgainfo/ |
H A D | tgainfo.cpp | 141 print_tga_info(BFile &file) argument 147 if (size > 0 && file.Read(buf, size) != size) { 152 // TGA file header 238 if (file.GetSize(&filesize) == B_OK) { 241 if (file.ReadAt(filesize - TGA_FTR_LEN, tgafooter, TGA_FTR_LEN) == TGA_FTR_LEN) { 260 if (file.ReadAt(extoffset, extbuf, TGA_EXT_LEN) == TGA_EXT_LEN) { 370 printf(B_TRANSLATE("\nError: Unable to get file size\n")); 379 printf(B_TRANSLATE("tgainfo - reports information about a TGA image file\n")); 384 BFile file; local 387 if (file [all...] |
/haiku/src/apps/haikudepot/util/ |
H A D | StorageUtils.cpp | 84 /* This method will append the contents of the file at the supplied path to the 91 BFile file(path.Path(), O_RDONLY); 95 while((buffer_read = file.Read(buffer, FILE_TO_STRING_BUFFER_LEN)) > 0) 105 BFile file(path.Path(), O_WRONLY | O_CREAT | O_APPEND); 108 return file.WriteExactly(cstr, cstrLen); 248 /* This method checks to see if a file object exists at the path specified. If 288 /*! This method will check that it is possible to write to the specified file. 289 This may create the file, write some data to it and then read that data 294 It is assumed here that the directory containing the test file exists. 316 HDTRACE("did delete the candidate file [ [all...] |
/haiku/src/add-ons/media/media-add-ons/esound_sink/ |
H A D | ESDSinkAddOn.cpp | 271 BFile file(path.Path(),B_READ_WRITE|B_CREATE_FILE|B_ERASE_FILE); 272 if(file.InitCheck()==B_OK) 273 fSettings.Flatten(&file); 287 BFile file(path.Path(),B_READ_ONLY); 288 if((file.InitCheck()==B_OK)&&(fSettings.Unflatten(&file)==B_OK)) 292 PRINT(("Error unflattening settings file %s\n",path.Path()));
|
/haiku/src/add-ons/kernel/file_systems/exfat/ |
H A D | Inode.h | 4 * This file may be used under the terms of the MIT License. 69 { _GetTimespec(fFileEntry.file.ModificationDate(), 70 fFileEntry.file.ModificationTime(), timespec); } 72 { _GetTimespec(fFileEntry.file.CreationDate(), 73 fFileEntry.file.CreationTime(), timespec); } 75 { _GetTimespec(fFileEntry.file.AccessDate(), 76 fFileEntry.file.AccessTime(), timespec); }
|
/haiku/src/kits/storage/mime/ |
H A D | AppMetaMimeCreator.cpp | 51 BFile file; local 52 status_t status = file.SetTo(&entry, B_READ_ONLY | O_NOTRAVERSE); 56 bool isDir = file.IsDirectory(); 60 if (isDir || !file.IsFile()) 63 BAppFileInfo appInfo(&file); 69 // non-applications, since we get an error if the file has no 72 status = file.ReadAttrString("BEOS:APP_SIG", &signature);
|
/haiku/src/kits/screensaver/ |
H A D | ScreenSaverSettings.cpp | 43 BFile file(fSettingsPath.Path(), B_READ_ONLY); 44 if (file.InitCheck() != B_OK) 48 if (fSettings.Unflatten(&file) != B_OK) 204 BFile file(fSettingsPath.Path(), 206 if (file.InitCheck() != B_OK || settings.Flatten(&file) != B_OK) 207 fprintf(stderr, "Problem while saving screensaver preferences file!\n");
|
/haiku/src/system/kernel/debug/ |
H A D | safemode_settings.cpp | 32 for (driver_settings_file* file = args->driver_settings; 33 file != NULL; file = file->next) { 34 if (strcmp(settingsName, file->name) == 0) { 35 settings = file->buffer; 180 // Try kernel settings file as a fall back
|
/haiku/src/bin/ |
H A D | clipboard.cpp | 137 " -s, --save=file\tSave clipboard to file (flattened BMessage)\n" 139 " -l, --load=file\tLoad clipboard from file (flattened BMessage)\n" 157 BFile file; local 159 status = file.SetTo(path, B_READ_ONLY); 161 fprintf(stderr, "%s: Could not open file: %s\n", kProgramName, 166 // get BMessage from file 168 status = clipFromFile.Unflatten(&file); 203 BFile file; local [all...] |
/haiku/src/kits/shared/ |
H A D | CommandPipe.cpp | 265 BCommandPipe::ReadLines(FILE* file, LineReader* lineReader) argument 267 // Reads output of file, line by line. Each line is passed to lineReader 270 if (file == NULL || lineReader == NULL) 275 while (!feof(file)) { 279 unsigned char c = fgetc(file); 298 BCommandPipe::ReadLines(FILE* file) argument 332 ReadLines(file, &lineReader);
|
/haiku/src/servers/app/decorator/ |
H A D | DecorManager.cpp | 333 BFile file(path.Path(), B_READ_ONLY); 334 if (file.InitCheck() != B_OK) 338 if (settings.Unflatten(&file) == B_OK) { 371 BFile file(path.Path(), B_READ_WRITE | B_CREATE_FILE | B_ERASE_FILE); 372 if (file.InitCheck() != B_OK) 378 if (settings.Flatten(&file) != B_OK)
|
/haiku/src/servers/app/ |
H A D | CursorSet.cpp | 37 \brief Saves the data in the cursor set to a file 38 \param path Path of the file to save to. 39 \param saveflags BFile open file flags. B_READ_WRITE is implied. 51 BFile file; 52 status_t status = file.SetTo(path, B_READ_WRITE | saveFlags); 56 return Flatten(&file); 61 \brief Loads the data into the cursor set from a file 62 \param path Path of the file to load from. 74 BFile file; 75 status_t status = file [all...] |
/haiku/src/kits/debugger/dwarf/ |
H A D | DwarfUtils.cpp | 242 uint32 file = 0; local 245 bool fileSet = entry->GetDeclarationFile(file); 254 fileSet = entry->GetDeclarationFile(file); 267 fileSet = entry->GetDeclarationFile(file); 275 if (file == 0) 284 const char* fileName = unit->FileAt(file - 1, &directoryName);
|
H A D | AttributeValue.h | 349 uint32 file; member in struct:DeclarationLocation 355 file(0xffffffff), 361 void SetFile(uint32 file) argument 363 this->file = file; 378 return file != 0xffffffff;
|
/haiku/src/system/boot/platform/efi/ |
H A D | start.cpp | 123 driver_settings_file* file = gKernelArgs.driver_settings; local 125 while (file != NULL) { 126 driver_settings_file* next = file->next; 127 fix_address(file->next); 128 fix_address(file->buffer); 129 file = next;
|
/haiku/src/kits/debugger/debug_info/ |
H A D | TeamDebugInfo.cpp | 46 // Instances without source file only equal themselves. 66 // source file must be the same 70 // Instances without source file only equal themselves. 204 // functions will have the same source file and location 326 // create source file hash table 485 LocatableFile* file = info->SourceFile(); local 486 if (file != NULL) { 487 Function* function = FunctionAtSourceLocation(file, 497 // if we already know the file anyways. Currently, when 501 // than all others sharing that same file 584 LoadSourceCode(LocatableFile* file, FileSourceCode*& _sourceCode) argument 809 FunctionAtSourceLocation(LocatableFile* file, const SourceLocation& location) const argument 824 LocatableFile* file = fFileManager->GetSourceFile( local [all...] |
/haiku/src/tests/kits/storage/ |
H A D | DirectoryTest.cpp | 895 // existing entry (file), initialized BDirectory, matching node kind 901 // existing entry (file), initialized BDirectory, mismatching node kind 1025 // existing entry (file), initialized BDirectory, matching node kind 1036 // existing entry (file), initialized BDirectory, mismatching node kind 1401 // file doesn't already exist 1403 BFile file; 1405 CPPUNIT_ASSERT( dir.CreateFile(entryName.c_str(), &file, true) == B_OK ); 1406 CPPUNIT_ASSERT( file.InitCheck() == B_OK ); 1407 file.Unset(); 1408 CPPUNIT_ASSERT( file [all...] |
/haiku/src/servers/mail/ |
H A D | DeskbarView.cpp | 316 BFile file(info.name, B_READ_ONLY); 317 if (file.InitCheck() != B_OK) 320 BResources resources(&file); 413 BFile file; local 414 if (directory.CreateFile("Open Draft", &file) < B_OK) 418 file.WriteAttrString("_trk/qrystr", &string); 420 file.WriteAttrString("_trk/qryinitmime", &string); 421 BNodeInfo(&file).SetType("application/x-vnd.Be-query"); 430 BFile file(&query, B_READ_WRITE | B_CREATE_FILE); 431 if (file [all...] |
/haiku/src/bin/unzip/ |
H A D | api.c | 4 See the accompanying file LICENSE, version 2000-Apr-09 or later 22 int UzpUnzipToMemory(char *zip, char *file, UzpOpts *optflgs, 26 int UzpGrep(char *archive, char *file, char *pattern, int cmd, int SkipBin, 51 #ifdef DLL /* This source file supplies DLL-only interface code. */ 226 int UZ_EXP UzpUnzipToMemory(char *zip, char *file, UzpOpts *optflgs, argument 241 intern_file = (char *)malloc(strlen(file)+1); 248 ISO_TO_INTERN(file, intern_file); 250 # define file intern_file macro 266 r = (unzipToMemory(__G__ zip, file, retstr) <= PK_WARN); 270 # undef file macro 340 unzipToMemory(__GPRO__ char *zip, char *file, UzpBuffer *retstr) argument 452 UzpGrep(char *archive, char *file, char *pattern, int cmd, int SkipBin, UzpCB *UsrFuncts) argument [all...] |