Searched refs:file (Results 676 - 700 of 737) sorted by relevance

<<21222324252627282930

/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/bin/unzip/
H A Dunzpriv.h4 See the accompanying file LICENSE, version 2000-Apr-09 or later
13 This header file contains private (internal) macros, typedefs, prototypes
178 # define LONGINT off_t /* Amdahl UTS nonsense ("extended file types") */
298 # include <fcntl.h> /* extra code to deal with our extra file */
441 # include <sys/file.h> /* MTS uses this instead of fcntl.h */
451 # define FOPWT "w" /* open file for writing in TEXT mode */
534 # include <sys/file.h>
581 # include <file.h> /* same things as fcntl.h has */
1239 #define MPN_NOMEM 10<<8 /* error - out of memory, file skipped */
1251 #define DISPL_8 5 /* display file commen
[all...]
/haiku/src/kits/debugger/controllers/
H A DTeamDebugger.cpp103 virtual void LocatableFileChanged(LocatableFile* file) argument
354 // create file manager
2130 // We have a source file, so get the address for the source
2148 // No source file (or we failed getting the statement), so try
2351 _NotifyUser("Write Core File", "Failed to write core file: %s",
2410 LocatableFile* file = NULL; local
2412 file = fFileManager->GetTargetFile(imageInfo.Name());
2413 BReference<LocatableFile> imageFileReference(file, true);
2416 status_t error = fTeam->AddImage(imageInfo, file, &image);
2451 // get the source file, i
[all...]
/haiku/src/preferences/backgrounds/
H A DBackgroundsView.cpp775 BFile file(path.Path(), B_READ_WRITE | B_CREATE_FILE | B_ERASE_FILE);
801 fSettings.Flatten(&file);
816 BFile file(path.Path(), B_READ_ONLY);
817 if (file.InitCheck() != B_OK)
820 if (fSettings.Unflatten(&file) != B_OK) {
821 printf("Error unflattening settings file %s\n", path.Path());
/haiku/src/kits/media/
H A DMediaRoster.cpp3022 BMediaRoster::SetRefFor(const media_node& file_interface, const entry_ref& file, argument
3035 request.device = file.device;
3036 request.directory = file.directory;
3037 strcpy(request.name, file.name);
3087 const entry_ref& file, BMimeType* mimeType, float* _capability)
3102 request.device = file.device;
3103 request.directory = file.directory;
3104 strcpy(request.name, file.name);
3118 /*! This is the generic "here's a file, now can someone please play it"
3122 BMediaRoster::SniffRef(const entry_ref& file, uint6 argument
3086 SniffRefFor(const media_node& file_interface, const entry_ref& file, BMimeType* mimeType, float* _capability) argument
[all...]
H A DMediaAddOn.cpp565 BMediaAddOn::SniffRef(const entry_ref &file, BMimeType *mimeType, argument
649 // declared here to remove them from the class header file
/haiku/src/tests/kits/app/broster/
H A DLaunchTester.cpp151 BFile file; local
152 CHK(file.SetTo(filename, B_READ_WRITE) == B_OK);
154 CHK(appFileInfo.SetTo(&file) == B_OK);
163 file.WriteAttrString("signature", &signatureString);
178 BFile file; local
179 CHK(file.SetTo(filename, B_READ_WRITE) == B_OK);
181 CHK(nodeInfo.SetTo(&file) == B_OK);
225 BFile file; local
226 CHK(file.SetTo(filename, B_READ_WRITE) == B_OK);
228 CHK(appFileInfo.SetTo(&file)
[all...]
/haiku/src/add-ons/kernel/file_systems/websearchfs/
H A Dwebsearchfs.c81 /** Publishes some entries in the root vnode: a query template, the readme file, and a People file of the author.
313 static status_t websearchfs_walk(fs_volume *_volume, fs_vnode *_base, const char *file, ino_t *vnid) argument
319 TRACE("walk(%" B_PRId32 ", %" B_PRId64 ", %s)\n", ns->nsid, (int64)(base?base->vnid:-1), file);
323 if (!file) {
325 } else if (!strcmp(file, "..")) {
331 } else if (!strcmp(file, ".")) { /* root dir */
339 (sll_compare_func)compare_fs_node_by_name, (void *)file);
676 * @param mkdir create a directory instead of a file
739 new_lock(&(n->l), mkdir?"websearchfs dir":"websearchfs file");
[all...]
/haiku/src/add-ons/kernel/file_systems/bfs/
H A Dkernel_interface.cpp3 * This file may be used under the terms of the MIT License.
7 //! file system interface to Haiku's vnode layer
374 // The file system check functionality uses this flag to prevent the space
559 // make sure the extent ends with the last official file
588 bfs_lookup(fs_volume* _volume, fs_vnode* _directory, const char* file, argument
605 status = tree->Find((uint8*)file, (uint16)strlen(file), _vnodeID);
607 //PRINT(("bfs_walk() could not find %lld:\"%s\": %s\n", directory->BlockNumber(), file, strerror(status)));
609 entry_cache_add_missing(volume->ID(), directory->ID(), file);
614 entry_cache_add(volume->ID(), directory->ID(), file, *_vnodeI
1985 bfs_write_attr_stat(fs_volume* _volume, fs_vnode* file, void* cookie, const struct stat* stat, int statMask) argument
[all...]
/haiku/src/apps/webpositive/
H A DBrowserWindow.cpp143 "file",
932 BFile file(&ref, B_READ_ONLY);
934 if (_ReadURLAttr(file, url)) {
1937 /*! If fileName is an empty BString, a valid file name will be derived from title.
1944 // Determine the file name if one was not provided
2015 // Replace the standard Be-bookmark file icons with the argument icons,
2064 "bookmark file.\n\nError: %error", "Don't translate variable "
2189 BFile file(&entry, B_READ_ONLY);
2190 if (_ReadURLAttr(file, storedURL)) {
2216 // At least preserve the entry file handl
[all...]
/haiku/src/system/libroot/posix/glibc/libio/
H A Dfileops.c2 This file is part of the GNU C Library.
20 As a special exception, if you link the code in this file with
24 however invalidate any other reasons why the executable file
83 in external file system is normally _IO_read_end, except in putback
86 the file as a whole corresponding to eGptr(). (?)
93 that _IO_read_end corresponds to the external file position.)
101 The OS file position corresponds to that of egptr().
133 /* POSIX.1 allows another file handle to be used to change the position
134 of our file descriptor. Hence we actually don't know the actual
136 fp->file
[all...]
/haiku/src/servers/registrar/
H A DShutdownProcess.cpp1042 // init an app file info
1043 BFile file; local
1044 status_t error = file.SetTo(&info->ref, B_READ_ONLY);
1047 "open file for app %s: %s\n", info->signature,
1053 error = appFileInfo.SetTo(&file);
1056 "init app file info for app %s: %s\n", info->signature,
/haiku/src/libs/icon/
H A DIconUtils.cpp634 BFile file; local
635 status = file.SetTo(path.Path(), B_READ_ONLY);
640 status = resources.SetTo(&file);
/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/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.cpp89 // format file size value
2058 BFile* file = dynamic_cast<BFile*>(fModel->Node()); local
2059 if (file != NULL) {
2060 BAppFileInfo info(file);
/haiku/src/add-ons/print/transports/ipp/
H A DIppContent.h431 void setRawData(const char *file, int size = -1);
/haiku/src/kits/storage/mime/
H A DTextSnifferAddon.cpp55 TextSnifferAddon::GuessMimeType(BFile* file, const void* buffer, int32 length, argument
76 // #pragma mark - ascmagic.c from the BSD file tool
78 * The following code has been taken from version 4.17 of the BSD file tool,
79 * file ascmagic.c, modified for our purpose.
91 * notice immediately at the beginning of the file, without modification,
110 * ASCII magic -- file types that we know based on keywords
111 * that can appear anywhere in the file.
117 * international characters, now subsumed into this file.
232 * this must be done to disambiguate tar archives' ./file
236 * of macros, so this test might possibly fail on such a file
[all...]
/haiku/src/libs/uuid/
H A Dgen_uuid.c45 #include <sys/file.h>
/haiku/src/apps/installer/
H A DCopyEngine.cpp70 // ask for a bunch more file descriptors so that nested copying works well
379 // the existing destination was a file instead of a directory.
443 // copy file data
559 ssize_t written = buffer->file->Write(buffer->buffer,
/haiku/src/tests/kits/net/service/
H A Dtestserver.py480 file=sys.stderr)
/haiku/headers/os/media/
H A DMediaRoster.h276 // Finding a suitable node to playback a file:
282 const entry_ref& file,
292 // This is the generic "here's a file, now can someone please play it"
/haiku/src/tests/kits/net/netservices2/
H A Dtestserver.py480 file=sys.stderr)
/haiku/src/apps/cortex/NodeManager/
H A DNodeManager.cpp1050 // to create a node capable of playing a given media file.
1053 const entry_ref& file,
1073 file,
1089 // * Set file to play
1094 file,
1107 (*outRef)->_setAddonHint(&info, &file);
1193 // connections involving a file-interface node aren't removed
1052 instantiate( const entry_ref& file, uint64 requireNodeKinds, NodeRef** outRef, bigtime_t timeout, uint32 nodeFlags, bigtime_t* outDuration) argument
/haiku/src/apps/showimage/
H A DShowImageView.cpp830 // needed to pass data via file
948 BFile file(dir, name, B_WRITE_ONLY | B_CREATE_FILE | B_ERASE_FILE);
949 if (file.InitCheck() != B_OK)
951 if (roster->Translate(&stream, NULL, NULL, &file, format->type) < B_OK)
954 BNodeInfo info(&file);
964 snprintf(buffer, sizeof(buffer), B_TRANSLATE("The file '%s' could not "

Completed in 409 milliseconds

<<21222324252627282930