/haiku/src/preferences/filetypes/ |
H A D | PreferredAppMenu.cpp | 198 // this file type! 217 BFile file(&ref, B_READ_ONLY); 218 status_t status = file.InitCheck(); 224 // get preferred app from file 225 BNodeInfo nodeInfo(&file); 232 // get MIME type from file 242 BAppFileInfo appInfo(&file); 259 "file") 289 "\"%s\" does not support this file type.\n"
|
/haiku/headers/posix/ |
H A D | spawn.h | 41 extern int posix_spawnp(pid_t *pid, const char *file, 46 /* file actions functions */
|
/haiku/src/add-ons/kernel/file_systems/ramfs/ |
H A D | Directory.h | 31 status_t CreateFile(const char *name, File **file);
|
/haiku/src/apps/text_search/ |
H A D | Model.h | 119 status_t _OpenFile(BFile* file, const char* name,
|
/haiku/src/apps/screenshot/ |
H A D | Utility.cpp | 81 /*! Save the screenshot to the file with the specified filename and type. 82 Note that any existing file with the same filename will be overwritten 108 // Create the file 109 BFile file(fileNameString, B_CREATE_FILE | B_ERASE_FILE | B_WRITE_ONLY); 110 if (file.InitCheck() != B_OK) 113 // Write the screenshot bitmap to the file 116 status_t status = roster->Translate(&stream, NULL, NULL, &file, imageType, 126 // Set the file MIME attribute (don't mind too much if this fails) 127 BNodeInfo nodeInfo(&file);
|
/haiku/src/add-ons/media/media-add-ons/mixer/ |
H A D | MixerSettings.h | 24 void SetSettingsFile(const char *file);
|
H A D | MixerSettings.cpp | 57 MixerSettings::SetSettingsFile(const char *file) argument 61 fSettingsFile = new BPath(file); 363 // if we don't have a settings file, don't continue 384 BFile file(fSettingsFile->Path(), B_READ_WRITE | B_CREATE_FILE); 385 file.Write(buffer, length); 408 // if we don't have a settings file, don't continue 414 BFile file(fSettingsFile->Path(), B_READ_WRITE); 416 file.GetSize(&size); 419 TRACE("MixerSettings: no settings file\n"); 424 if (size != file [all...] |
/haiku/src/kits/tracker/ |
H A D | Bitmaps.cpp | 57 BFile file(&info.name[0], B_READ_ONLY); 61 BFile file(name.String(), B_READ_ONLY); 63 if (file.InitCheck() == B_OK) 64 fResources.SetTo(&file);
|
/haiku/src/system/libnetwork/netresolv/resolv/ |
H A D | res_query.c | 401 char *file, *cp1, *cp2; local 408 file = getenv("HOSTALIASES"); 409 if (file == NULL || (fp = fopen(file, "re")) == NULL) 437 /*! \file */
|
H A D | res_data.c | 177 fp_query(const u_char *msg, FILE *file) { argument 178 fp_nquery(msg, PACKETSZ, file); 182 fp_nquery(const u_char *msg, int len, FILE *file) { argument 186 res_pquery(&_nres, msg, len, file); 362 /*! \file */
|
/haiku/src/kits/debugger/dwarf/ |
H A D | LineNumberProgram.h | 49 int32 file; member in struct:LineNumberProgram::State 60 // when file is set to -1
|
/haiku/src/preferences/time/ |
H A D | NetworkTimeView.cpp | 210 BFile file(path.Path(), B_READ_ONLY); 211 if ((status = file.InitCheck()) != B_OK) 215 if ((status = load.Unflatten(&file)) != B_OK) 236 BFile file(path.Path(), B_WRITE_ONLY | B_CREATE_FILE | B_ERASE_FILE); 237 if ((status = file.InitCheck()) != B_OK) 240 file.SetSize(0); 242 return fMessage.Flatten(&file);
|
/haiku/src/apps/mail/ |
H A D | Enclosures.cpp | 205 BFile file(&ref, O_RDONLY); 206 if (file.InitCheck() == B_OK && file.IsFile()) { 470 BFile file(&fRef, O_RDONLY); 473 if (entry.GetPath(&path) == B_OK && file.InitCheck() == B_OK) { 475 file.GetSize(&bytes); 479 BNodeInfo info(&file);
|
H A D | Signature.cpp | 552 BFile file; local 561 file.SetTo(&ref, O_RDONLY); 562 if (file.InitCheck() == B_NO_ERROR) { 563 node = new BNodeInfo(&file); 566 file.GetSize(&size); 569 file.Read(text, size);
|
/haiku/src/add-ons/screen_savers/message/ |
H A D | Message.cpp | 40 FILE *file = popen("/bin/fortune", "r"); local 41 if (file) { 44 while (!feof(file)) { 45 bytesRead = fread(buf, 1, 512, file); 48 pclose(file);
|
/haiku/src/apps/haikudepot/server/ |
H A D | AbstractServerProcess.cpp | 195 FILE* file = fopen(pathStr, "rb"); local 197 if (file == NULL) { 198 HDERROR("[%s] unable to find the meta data file at [%s]", Name(), 203 BFileIO rawInput(file, true); // takes ownership 208 // if the file extension ends with '.gz' then the data will be 235 large file, this method will download the file to a temporary file and 236 then it can rename the file to the final target file [all...] |
/haiku/src/bin/unzip/ |
H A D | beos.c | 4 See the accompanying file LICENSE, version 2000-Apr-09 or later 44 /* For the new post-DR8 file attributes */ 89 struct dirent *file; variable in typeref:struct:dirent 126 while ((file = readdir(wild_dir)) != (struct dirent *)NULL) { 127 if (file->d_name[0] == '.' && wildname[0] != '.') 129 if (match(file->d_name, wildname, 0)) { /* 0 == case sens. */ 132 strcpy(matchname+dirnamelen, file->d_name); 134 strcpy(matchname, file->d_name); 144 * searchable, but filespec was not wild and file is readable) */ 161 while ((file [all...] |
/haiku/src/servers/net/ |
H A D | NetServer.cpp | 583 // Store resolver settings in resolv.conf file, while maintaining any 591 FILE* file = fopen(path.Path(), "r+"); 593 if (file == NULL) { 595 file = fopen(path.Path(), "w"); 596 if (file == NULL) { 610 while (fgets(resolveConfBuffer, sizeResolveConfBuffer, file)) { 613 fclose(file); 622 if (feof(file) != 0) { 623 // No static entries found, close and re-open as new file 624 fclose(file); [all...] |
/haiku/src/add-ons/kernel/file_systems/fat/ |
H A D | dir.cpp | 3 This file may be used under the terms of the Be Sample Code License. 17 #include "file.h" 28 static status_t findfile(nspace *vol, vnode *dir, const char *file, 90 if (buffer[0xb] == 0xf) { // long file name 93 dprintf("invalid long file name: reserved fields munged\n"); 118 dprintf("error in long file name: hash values don't match\n"); 158 dprintf("error: long file name too long\n"); 164 dprintf("error: long file name (%s) hash and short file name " 289 // weird case where ./.. are stored as long file name 304 findfile_case(nspace *vol, vnode *dir, const char *file, ino_t *vnid, vnode **node) argument 312 findfile_nocase(nspace *vol, vnode *dir, const char *file, ino_t *vnid, vnode **node) argument 320 findfile_nocase_duplicates(nspace *vol, vnode *dir, const char *file, ino_t *vnid, vnode **node, bool *dups_exist) argument 328 findfile_case_duplicates(nspace *vol, vnode *dir, const char *file, ino_t *vnid, vnode **node, bool *dups_exist) argument 336 findfile(nspace *vol, vnode *dir, const char *file, ino_t *vnid, vnode **node, bool check_case, bool check_dups, bool *dups_exist) argument 1034 dosfs_walk(fs_volume *_vol, fs_vnode *_dir, const char *file, ino_t *_vnid) argument [all...] |
/haiku/src/kits/mail/ |
H A D | MailSettings.cpp | 93 BFile file; local 94 status = file.SetTo(path.Path(), B_READ_ONLY); 100 status = settings.Unflatten(&file); 852 BFile file(&fAccountFile, B_READ_ONLY); 853 status_t status = file.InitCheck(); 857 settings.Unflatten(&file); 908 BFile file(&fAccountFile, B_READ_WRITE | B_CREATE_FILE | B_ERASE_FILE); 909 status = file.InitCheck(); 912 return settings.Flatten(&file);
|
/haiku/src/apps/people/ |
H A D | PictureView.cpp | 468 // needed to pass data via file 555 BFile file(&dir, name.String(), B_WRITE_ONLY | B_CREATE_FILE 558 if (file.InitCheck() == B_OK 559 && roster->Translate(&stream, NULL, NULL, &file, 561 BNodeInfo nodeInfo(&file); 565 BString text = B_TRANSLATE("The file '%name%' could not " 583 BFile file; local 584 status_t status = file.SetTo(ref, B_READ_ONLY); 589 status = file.GetSize(&fileSize); 605 status = roster->Identify(&file, [all...] |
/haiku/docs/develop/kits/storage/resources/ |
H A D | ResourcesFormat.tex | 41 attributes resources are part of the file contents and thus do not require a 42 special file system handling, but rather a special file format. 44 (resource files), on the other hand these are file formats extended to 49 Section \ref{file-formats} explains how the resources format is embedded in 50 different file formats. Section \ref{resources-format} discusses the resources 59 \label{file-formats} 61 In all file formats described in this section the resources are being located 68 after the magic number identifying the file format: 127 In an ELF file, resource [all...] |
/haiku/src/add-ons/screen_savers/slideshowsaver/ |
H A D | SlideShowSaver.cpp | 107 // load settings from the settings file 294 BFile file(&ref, B_READ_ONLY); 303 if (proster->Identify(&file, &ioExtension, &info, 0, NULL, 309 if (proster->Translate(&file, &info, &ioExtension, &outstream, 349 // 2. The last file in the directory is found (for find next or find first) 350 // 3. The first file in the directory is found (for find prev) 375 BFile file(pref, B_READ_ONLY); 376 if (file.InitCheck() != B_OK) 389 if (proster->Identify(&file, &ioExtension, &info, 0, NULL,
|
/haiku/src/servers/index/ |
H A D | VolumeWatcher.cpp | 365 BFile file(path.Path(), B_READ_ONLY); 366 if (file.InitCheck() != B_OK) 370 file.WriteAttr(kEnabledAttr, B_UINT32_TYPE, 0, &enabled, sizeof(uint32)); 388 BFile file(path.Path(), B_READ_WRITE | B_CREATE_FILE | B_ERASE_FILE); 389 if (file.InitCheck() != B_OK) 393 file.WriteAttr(kEnabledAttr, B_UINT32_TYPE, 0, &enabled, sizeof(uint32));
|
/haiku/src/apps/mediaplayer/ |
H A D | MainApp.cpp | 116 // store the current file panel ref in the global settings 173 // The user dropped a file (or files) on this app's icon, 174 // or double clicked a file that's handled by this app. 315 // The user canceled a file panel, but store at least the current 316 // file panel folder. 370 // #pragma mark - file panels 507 BFile file(path.Path(), B_WRITE_ONLY | B_CREATE_FILE | B_ERASE_FILE); 508 if (file.InitCheck() != B_OK) 511 message->Flatten(&file); 524 BFile file(pat [all...] |