Searched refs:file (Results 101 - 125 of 737) sorted by relevance

1234567891011>>

/haiku/src/add-ons/mail_daemon/outbound_filters/fortune/
H A DFortuneFilter.cpp36 BFile& file);
49 FortuneFilter::MessageReadyToSend(const entry_ref& ref, BFile& file) argument
90 file.SetSize(0);
91 mailMessage.RenderToRFC822(&file);
/haiku/src/kits/midi/
H A DMidiSettings.cpp62 BFile file; local
63 if (file.SetTo(path.Path(), B_WRITE_ONLY | B_CREATE_FILE | B_ERASE_FILE)
72 if (file.InitCheck() != B_OK
73 || file.Write(buffer, bufferSize) != (ssize_t)bufferSize)
/haiku/src/tests/kits/interface/
H A DWidthBufferTest.cpp67 FILE *file = fopen("/boot/beos/etc/termcap", "r"); local
68 if (file != NULL) {
70 while (fgets(buffer, 512, file)) {
75 fclose(file);
/haiku/src/apps/mediaconverter/
H A DMediaFileListView.cpp4 // This file may be used under the terms of the Be Sample Code License.
22 MediaFileListItem::MediaFileListItem(BMediaFile* file, const entry_ref& ref) argument
26 fMediaFile(file)
77 MediaFileListView::AddMediaItem(BMediaFile* file, const entry_ref& ref) argument
79 MediaFileListItem* item = new(std::nothrow) MediaFileListItem(file, ref);
/haiku/headers/private/kernel/boot/platform/openfirmware/
H A Dplatform_kernel_args.h10 # error This file is included from <boot/kernel_args.h> only
/haiku/src/servers/package/
H A DPackageFile.cpp48 // init the file name
53 // open the file and get the node_ref
54 BFile file; local
55 status_t error = file.SetTo(&entryRef, B_READ_ONLY);
59 error = file.GetNodeRef(&fNodeRef);
64 FileDescriptorCloser fd(file.Dup());
/haiku/data/bin/
H A Dwelcome14 open file:$localizedWelcomeFile
16 open file:$localizedWelcomeFileBase
/haiku/src/data/bin/
H A Duserguide15 open file:$localizedUserGuide
17 open file:$localizedUserGuideBase
H A Dquicktour14 open file:$localizedQuicktour
16 open file:$localizedQuicktourBase
/haiku/src/tests/kits/storage/testapps/
H A DNodeMonitorTest.cpp37 fprintf(stderr, "Could not watch file.\n");
78 BFile file; local
79 status_t status = file.SetTo(&entry, B_CREATE_FILE | B_READ_WRITE);
82 file.Write("test", 4);
83 file.Unset();
/haiku/src/system/libroot/posix/glibc/libio/
H A Diofdopen.c2 This file is part of the GNU C Library.
19 As a special exception, if you link the code in this file with
23 however invalidate any other reasons why the executable file
136 new_f->fp.file._lock = &new_f->lock;
141 _IO_no_init (&new_f->fp.file, 0, 0, &new_f->wd,
158 INTUSE(_IO_setb) (&new_f->fp.file, NULL, NULL, 0);
163 new_f->fp.file._flags &= ~_IO_DELETE_DONT_CLOSE;
165 new_f->fp.file._IO_file_flags =
166 _IO_mask_flags (&new_f->fp.file, read_write,
169 return &new_f->fp.file;
[all...]
/haiku/src/apps/cortex/InfoView/
H A DFileNodeInfoView.cpp71 setSubTitle(B_TRANSLATE("Live file-interface node"));
73 // if a ref is set for this file-interface display some info
82 BMediaFile file(&nodeFile);
83 if (file.InitCheck() == B_OK)
90 if (file.GetFileFormatInfo(&format) == B_OK)
98 const char *copyRight = file.Copyright();
106 if (file.CountTracks() > 0)
109 for (int32 i = 0; i < file.CountTracks(); i++)
113 BMediaTrack *track = file.TrackAt(i);
168 title += B_TRANSLATE("(no file)");
[all...]
/haiku/src/tests/kits/media/playsound/
H A Dplaysound.cpp2 * playsound - command line sound file player for Haiku
41 fprintf(stderr, "playsound - command line sound file player for Haiku\n");
52 const char *file; local
92 file = argv[optind];
98 // test if file exists
99 int fd = open(file, O_RDONLY);
101 fprintf(stderr, "Can't open file %s\n", file);
108 BFileGameSound snd(file, loop);
/haiku/src/apps/installer/
H A DCopyEngine.h67 Buffer(BFile* file) argument
69 file(file),
79 delete file;
82 BFile* file; member in struct:CopyEngine::Buffer
/haiku/src/add-ons/kernel/file_systems/fat/
H A Ddir.h3 This file may be used under the terms of the Be Sample Code License.
14 status_t findfile_case(nspace *vol, vnode *dir, const char *file,
16 status_t findfile_nocase(nspace *vol, vnode *dir, const char *file,
18 status_t findfile_nocase_duplicates(nspace *vol, vnode *dir, const char *file,
20 status_t findfile_case_duplicates(nspace *vol, vnode *dir, const char *file,
30 status_t dosfs_walk(fs_volume *_vol, fs_vnode *_dir, const char *file,
/haiku/src/add-ons/mail_daemon/inbound_filters/spam_filter/
H A DSpamFilter.cpp70 SpamFilter::HeaderFetched(entry_ref& ref, BFile& file, BMessage& attributes) argument
72 _CheckForSpam(file);
78 SpamFilter::BodyFetched(const entry_ref& ref, BFile& file, BMessage& attributes) argument
88 if (file.GetAttrInfo("MAIL:classification", &attributeInfo) == B_OK)
91 _CheckForSpam(file);
96 SpamFilter::_CheckForSpam(BFile& file) argument
109 file.GetSize(&dataSize);
111 file.Read(stringBuffer, dataSize);
130 file.WriteAttrString("MAIL:classification", &classificationString);
133 // attached to the eventual output file
282 _AddSpamToSubject(BNode& file, float spamRatio) argument
[all...]
/haiku/src/tests/add-ons/kernel/file_systems/random_file_actions/
H A Drandom_file_actions.cpp153 "Performs some random file actions for file system testing.\n"
158 " -f, --file-count=<count>\tThe maximal number of files to create.\n"
162 " -m, --max-file-size=<size>\tThe maximal file size of the files.\n"
170 " -n, --no-cache\t\tDisables the file cache when doing I/O on\n"
171 "\t\t\t\ta file.\n"
315 // in the append case, we need to check the file size
318 error("stat file failed: %s\n", strerror(errno));
390 check_file(const struct entry& file) argument
455 const struct entry& file = *i; local
566 struct entry file; local
632 struct entry& file = files[choose_index(files)]; local
653 struct entry& file = files[choose_index(files)]; local
679 struct entry& file = files[choose_index(files)]; local
[all...]
/haiku/src/tools/translation/tiffinfo/
H A Dtiffinfo.cpp9 // the TIFF file, for every image in the file. Also, for some fields,
51 // The actual value or the file offset
168 print_ifd_value(IFDEntry &entry, BFile &file, swap_action swp) argument
319 ssize_t nread = file.ReadAt(entry.longval, ascfield, entry.count);
331 ssize_t nread = file.ReadAt(entry.longval, &rational, 8);
344 ssize_t nread = file.ReadAt(entry.longval, &srational, 8);
450 report_ifd_entries(BFile &file, uint16 entrycount, swap_action swp) argument
459 off_t offset = file.Position();
461 ssize_t nread = file
491 report_ifd(BFile &file, uint32 ifdoffset, swap_action swp) argument
[all...]
/haiku/src/system/libnetwork/netresolv/resolv/
H A Dres_debug.c145 fp_resstat(const res_state statp, FILE *file) { argument
148 fprintf(file, ";; res options:");
151 fprintf(file, " %s", p_option(mask));
152 putc('\n', file);
159 int pflag, FILE *file)
176 fprintf(file, ";; memory allocation failure\n");
185 fprintf(file, ";; ns_parserr: %s\n",
189 putc('\n', file);
193 fprintf(file, ";; %s SECTION:\n",
196 fprintf(file, ";;\
157 do_section(const res_state statp, ns_msg *handle, ns_sect section, int pflag, FILE *file) argument
289 res_pquery(const res_state statp, const u_char *msg, int len, FILE *file) argument
361 p_cdnname(const u_char *cp, const u_char *msg, int len, FILE *file) argument
375 p_cdname(const u_char *cp, const u_char *msg, FILE *file) argument
405 p_fqname(const u_char *cp, const u_char *msg, FILE *file) argument
[all...]
/haiku/src/kits/debugger/files/
H A DFileManager.cpp151 LocatableFile* file = _GetFile(directoryPath, name); local
152 if (file == NULL)
155 // try to auto-locate the file
156 if (LocatableDirectory* directory = file->Parent()) {
160 file->GetPath(path);
161 _LocateEntry(file, path, true, true);
166 _LocateEntryInParentDir(file, locatedDirectoryPath, true);
170 return file;
241 LocatableFile* file = dynamic_cast<LocatableFile*>(entry); local
242 if (file
301 LocatableFile* file = dynamic_cast<LocatableFile*>(entry); local
489 SourceFile* file; member in struct:FileManager::SourceFileEntry
639 LocatableFile* file = fSourceDomain->GetFile(directory, relativePath); local
649 LocatableFile* file = fSourceDomain->GetFile(path); local
681 LoadSourceFile(LocatableFile* file, SourceFile*& _sourceFile) argument
798 _LocateFileIfMapped(const BString& sourcePath, LocatableFile* file) argument
[all...]
/haiku/src/tests/kits/mail/
H A Dheader_test.cpp60 format_filter(BFile& file) argument
66 if (file.GetSize(&size) == B_OK) {
70 file.Read(buffer, size);
144 BFile file(&entry, B_READ_ONLY);
145 if (file.InitCheck() != B_OK) {
146 fprintf(stderr, "could not open file: %s\n",
147 strerror(file.InitCheck()));
154 BBufferIO bufferIO(&file, 8192, false);
160 format_filter(file);
163 parse_fields(file, 819
[all...]
/haiku/src/system/libroot/posix/unistd/
H A Dexec.cpp145 execvp(const char* file, char* const argv[]) argument
147 return execvpe(file, argv, environ);
152 execvpe(const char* file, char* const argv[], char* const environment[]) argument
154 // let do_exec() handle cases where file is a path (or invalid)
155 if (file == NULL || strchr(file, '/') != NULL)
156 return do_exec(file, argv, environment, true);
158 // file is just a leaf name, so we have to look it up in the path
161 status_t status = __look_up_in_path(file, path);
196 execlp(const char* file, cons argument
[all...]
/haiku/src/apps/haikudepot/model/
H A DPackageScreenshotRepository.cpp37 the cache. It will load the data into a file before loading it in order to
56 FILE* file = fopen(temporaryFilePathStr, "rb"); local
58 if (file == NULL) {
59 HDERROR("unable to open the screenshot file for read at [%s]", temporaryFilePathStr);
64 BFileIO fileIo(file, true); // takes ownership
69 // even if the temporary file cannot be deleted, still return that it was OK.
72 HDERROR("unable to delete the temporary file [%s]", temporaryFilePathStr);
189 FILE* file = fopen(pathStr, "wb"); local
191 if (file == NULL) {
192 HDERROR("unable to open the screenshot file fo
225 FILE* file = fopen(pathStr, "rb"); local
[all...]
/haiku/src/apps/haikudepot/ui_generic/
H A Dsupport.cpp40 BFile file(path.Path(), B_READ_ONLY);
41 ret = file.InitCheck();
43 ret = message->Unflatten(&file);
72 BFile file(path.Path(), B_WRITE_ONLY | B_CREATE_FILE | B_ERASE_FILE);
73 ret = file.InitCheck();
75 ret = message->Flatten(&file);
/haiku/src/libs/compat/freebsd_network/
H A Dmutex.c83 _mtx_assert(struct mtx *m, int what, const char *file, int line) argument
91 m, file, line);
95 m, file, line);
98 m, file, line);
104 m, file, line);
107 panic("unknown mtx_assert at %s:%d", file, line);

Completed in 156 milliseconds

1234567891011>>