/haiku/src/system/kernel/ |
H A D | usergroup.cpp | 269 update_set_id_user_and_group(Team* team, const char* file) argument 272 status_t status = vfs_read_stat(-1, file, true, &st, false);
|
/haiku/src/build/libroot/ |
H A D | fs.cpp | 79 utimes_helper(File& file, const struct timespec times[2]) argument 82 return file.SetTimes(NULL); 92 if (file.GetStat(st) != 0) 120 return file.SetTimes(timeBuffer); 153 FDFile file(fd); 154 return utimes_helper(file, times); 191 FDPathFile file(fd, path, flag); 192 return utimes_helper(file, times); 684 // open the file 1336 // stat the file [all...] |
/haiku/src/apps/icon-o-matic/ |
H A D | MainWindow.cpp | 238 // If our icon is empty, open the file in this window, 345 // this message comes from the file panel 370 // configure the file panel 388 // next time a file panel is used, in case it was set! 680 BFile file(&ref, B_READ_ONLY); 681 if (file.InitCheck() < B_OK) 704 // try different file types 706 status_t ret = flatImporter.Import(icon, &file); 710 file.Seek(0, SEEK_SET); 712 ret = msgImporter.Import(icon, &file); [all...] |
/haiku/src/apps/people/ |
H A D | PeopleApp.cpp | 11 * This file may be used under the terms of the Be Sample Code License. 275 BFile file(&ref, B_READ_ONLY); 276 if (file.InitCheck() == B_OK)
|
/haiku/src/apps/screenshot/ |
H A D | ScreenshotWindow.cpp | 667 B_TRANSLATE("This file already exists.\n Are you sure you would " 802 BFile file(settingsPath.Path(), B_READ_ONLY); 803 if (file.InitCheck() == B_OK) 804 settings.Unflatten(&file); 857 BFile file(settingsPath.Path(), B_CREATE_FILE | B_ERASE_FILE 859 if (file.InitCheck() == B_OK) { 861 settings.Flatten(&file, &size);
|
/haiku/src/tests/servers/app/drawing_modes/ |
H A D | DrawingModes.cpp | 394 BFile file("DESTINATION.png", 397 r = roster->Translate(&stream, NULL, NULL, &file, pngFormat.type); 399 fprintf(stderr, "Failed to save PNG file for destination\n"); 403 BFile file("SOURCE.png", B_WRITE_ONLY | B_CREATE_FILE | B_ERASE_FILE); 405 r = roster->Translate(&stream, NULL, NULL, &file, pngFormat.type); 407 fprintf(stderr, "Failed to save PNG file for source\n"); 433 BFile file(fileName.Append(".png"), 436 r = roster->Translate(&stream, NULL, NULL, &file, pngFormat.type); 438 fprintf(stderr, "Failed to save PNG file for %s\n",
|
/haiku/src/add-ons/kernel/file_systems/netfs/server/ |
H A D | NetFSServer.cpp | 901 "file: %s - falling back to driver settings.\n", strerror(error)); 903 // fall back to the driver settings file 927 // get the settings file path 940 // open the settings file 941 BFile file; local 942 error = FDManager::SetFile(&file, filePath.Path(), B_READ_ONLY); 948 error = settings.Unflatten(&file); 997 // open the settings file 1002 BFile file; local 1003 error = FDManager::SetFile(&file, filePat [all...] |
/haiku/src/preferences/filetypes/ |
H A D | ApplicationTypeWindow.cpp | 263 // TODO: we could identify the file in case it doesn't have a type... 320 B_TRANSLATE("Save into resource file" B_UTF8_ELLIPSIS), NULL)); 559 BFile file(&entry, B_READ_ONLY); 560 if (file.InitCheck() != B_OK) 563 BAppFileInfo info(&file); 721 BFile file; local 722 status_t status = file.SetTo(&fEntry, B_READ_WRITE); 726 BAppFileInfo info(&file);
|
/haiku/src/bin/network/ftpd/ |
H A D | ftpd.c | 137 int assumeutf8 = 0; /* Assume that server file names are in UTF-8 */ 223 #define LOGCMD(cmd, file) logcmd((cmd), (file), NULL, -1) 225 #define LOGBYTES(cmd, file, cnt) logcmd((cmd), (file), NULL, (cnt)) 757 case 2: /* statistics file */ 1006 * shell as returned by getusershell(). Disallow anyone mentioned in the file 1101 * Check if a user is in the file "fname", 1277 * error occurs (e.g., the "/etc/pam.conf" file is missing) then this 1718 reply(550, "%s: not a plain file 1922 FILE *file; local [all...] |
/haiku/src/apps/deskbar/ |
H A D | StatusView.cpp | 495 BFile file(path.Path(), B_READ_ONLY); 496 if (file.InitCheck() == B_OK) { 501 if (fAddOnSettings.Unflatten(&file) == B_OK) { 960 BFile file; local 961 status_t status = file.SetTo(&ref, B_READ_ONLY); 966 status = file.GetNodeRef(&nodeRef); 1333 BFile file(path.Path(), B_READ_WRITE | B_CREATE_FILE | B_ERASE_FILE); 1334 if ((result = file.InitCheck()) == B_OK) 1335 result = fAddOnSettings.Flatten(&file);
|
H A D | PreferencesWindow.cpp | 387 PreferencesWindow::_InitSettingsFile(BFile* file, bool write) argument 399 status = file->SetTo(prefsPath.Path(), 402 status = file->SetTo(prefsPath.Path(), B_READ_ONLY);
|
/haiku/src/kits/mail/ |
H A D | mail_util.cpp | 830 readfoldedline(FILE *file, char **buffer, size_t *buflen) argument 851 // Read the next character, or end of file, or IO error. 852 if ((c = fgetc(file)) == EOF) { 853 if (ferror (file)) { 858 // Really is end of file. Also make it end of line if there is 886 c = fgetc(file); // Note it's OK to read EOF and ungetc it too. 891 ungetc(c,file); 940 // Really is end of file. Also make it end of line if there is 980 } else // No next line; at the end of the file. Return the line. 1024 // Read the next character, or end of file [all...] |
/haiku/src/add-ons/translators/rtf/ |
H A D | convert.cpp | 629 BFile *file = dynamic_cast<BFile *>(&target); local 632 TextOutput output(header, &target, file != NULL); 640 if (file == NULL) { 647 ssize_t written = file->WriteAttr("styles", B_RAW_TYPE, 0, flattenedRuns, 650 file->RemoveAttr("styles"); 744 // Now we write them to the file
|
/haiku/src/servers/net/ |
H A D | DHCPClient.cpp | 131 uint8 file[128]; member in struct:dhcp_message 225 // options from "file" 226 bytesLeft = sizeof(file) - (cookie.next - file); 239 // handle option overload in file and/or server_name fields. 242 // options from "file" field 244 bytesLeft = sizeof(file); 245 cookie.next = file;
|
/haiku/src/apps/mediaconverter/ |
H A D | MediaConverterWindow.cpp | 5 // This file may be used under the terms of the Be Sample Code License. 173 // file list view box 576 // get selected file format 712 // add menu items for each file format 750 MediaConverterWindow::AddSourceFile(BMediaFile* file, const entry_ref& ref) argument 752 if (!fListView->AddMediaItem(file, ref)) 800 BMediaFile* file = NULL; local 802 bool enabled = GetSourceFileAt(selected, &file, &ref) == B_OK; 812 fInfoView->Update(file, &ref);
|
/haiku/3rdparty/mmu_man/onlinedemo/ |
H A D | haiku.php | 37 // (you will have to move the VncViewer.jar file around) 78 // default arguments: no network, emulate tablet, readonly image file. 530 // redirect output to log file 596 "or open <a href=\"" . $_SERVER['PHP_SELF'] . "?getfile=vncinfo&slot=" . vnc_display() . "\">this file</a>, " .
|
/haiku/src/preferences/media/ |
H A D | MediaWindow.cpp | 214 BFile file(path.Path(), B_READ_WRITE | B_CREATE_FILE | B_ERASE_FILE); 215 if (file.InitCheck() == B_OK) 216 file.Write(buffer, strlen(buffer));
|
/haiku/src/kits/support/ |
H A D | Archivable.cpp | 219 BFile file(info.name, B_READ_ONLY); 220 status_t err = file.InitCheck(); 225 BAppFileInfo appFileInfo(&file);
|
/haiku/src/apps/mediaplayer/playlist/ |
H A D | FilePlaylistItem.cpp | 272 BString locationURI("file://"); 388 BFile file(&entry, B_READ_ONLY); 389 if (file.InitCheck() != B_OK) 409 = new(std::nothrow) SubTitlesSRT(&file, language.String()); 575 // construct the entry to the file in the trash
|
/haiku/src/kits/package/hpkg/ |
H A D | WriterImplBase.cpp | 257 WriterImplBase::Init(BPositionIO* file, bool keepFile, const char* fileName, argument 265 if (file == NULL) { 269 // open file (don't truncate in update mode) 277 fErrorOutput->PrintError("Failed to open %s file \"%s\": %s\n", 286 fFile = file; 478 // global writable file info list 506 // user settings file info list
|
/haiku/src/apps/networkstatus/ |
H A D | NetworkStatusView.cpp | 145 BFile file(info.name, B_READ_ONLY); 146 if (file.InitCheck() < B_OK) 149 BResources resources(&file);
|
/haiku/src/preferences/shortcuts/ |
H A D | ShortcutsWindow.cpp | 63 // Because the "shortcuts_settings" file (SHORTCUTS_SETTING_FILE_NAME) is 66 // with window position information, instead, a separate file is used. 161 B_TRANSLATE("(Choose application with file requester)"), NULL)); 204 // The window settings file is not accepted via B_REFS_RECEIVED; this 205 // is a behind-the-scenes file that the user will never see or 219 // tell ourselves to load this file if it exists 284 // up the file requester 289 "KeySet file!"), 332 // Saves a settings file to (saveEntry). Returns true iff successful. 361 // Appends new entries from the file specifie [all...] |
/haiku/src/system/boot/loader/file_systems/fat/ |
H A D | Directory.cpp | 476 // We only support 8.3 file names ATM. 486 // prepare a directory entry for the new file 517 File* file = new(nothrow) File(fVolume, entryOffset, 519 if (file == NULL) 522 *_node = file;
|
/haiku/src/apps/codycam/ |
H A D | VideoConsumer.cpp | 46 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/soundrecorder/ |
H A D | RecorderWindow.cpp | 172 item->Entry().Remove(); // delete temp file 178 // Clean up currently recording file, if any. 661 // Create a file with a temporary name 668 // Find the file so we can refer to it later 671 ErrorAlert(B_TRANSLATE("Cannot find the temporary file created to " 677 ErrorAlert(B_TRANSLATE("Cannot open the temporary file created to " 727 ErrorAlert(B_TRANSLATE("Cannot get the file to play"), B_ERROR); 791 // User picked a place to put the file. 793 // temporary file), and the name of the 794 // new file t [all...] |