Searched refs:file (Results 251 - 275 of 1427) sorted by relevance

<<11121314151617181920>>

/haiku-fatelf/src/servers/registrar/mime/
H A DMimeSnifferAddon.cpp34 BMimeSnifferAddon::GuessMimeType(BFile* file, const void* buffer, int32 length, argument
/haiku-fatelf/src/system/libroot/posix/sys/
H A Dflock.c7 #include <sys/file.h>
/haiku-fatelf/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-fatelf/src/tests/kits/media/mp3_reader_test/
H A DFileDataIO.h17 BFile *file; member in class:FileDataIO
/haiku-fatelf/src/tests/kits/media/wav_reader_test/
H A DFileDataIO.h17 BFile *file; member in class:FileDataIO
/haiku-fatelf/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-fatelf/src/tests/misc/
H A Drtti-test.cpp48 // test with artificial classes defined in this file
73 BFile file; local
77 printf("BFile: %p (vtable: %p)\n", &file, *(void**)&file);
81 RTTI_TEST(&file, "BFile");
/haiku-fatelf/src/tools/zip/unix/
H A Dosdep.h4 See the accompanying file LICENSE, version 1999-Oct-05 or later
27 /* Set a file's MIME type. */
29 void setfiletype( const char *file, const char *type );
41 data - compressed or uncompressed file attribute data
52 If a file has absolutely no attributes, there will not be a 'Be' extra field.
/haiku-fatelf/src/apps/debugger/debug_info/
H A DDwarfTeamDebugInfo.cpp63 // We only like images whose file we can play with.
68 // try to load the DWARF file
69 DwarfFile* file;
70 status_t error = fManager->LoadFile(filePath, file);
73 BReference<DwarfFile> fileReference(file, true);
82 fTypeLookup, fTypeCache, file);
/haiku-fatelf/src/add-ons/print/drivers/pdf/source/
H A DMask.cpp68 REPORT(kError, -1, "Could not embed mask in PDF file.");
78 BFile file(name, B_WRITE_ONLY | B_CREATE_FILE | B_ERASE_FILE);
79 if (file.InitCheck() != B_OK) return false;
80 ok = file.Write(Mask(), Length()) == Length();
122 BFile file(FileName(), B_READ_ONLY);
123 if (file.InitCheck() == B_OK && file.GetSize(&size) == B_OK && size == Length()) {
126 bool ok = file.Read(buffer, Length()) == Length() &&
/haiku-fatelf/src/apps/cortex/InfoView/
H A DFileNodeInfoView.cpp64 // if a ref is set for this file-interface display some info
73 BMediaFile file(&nodeFile);
74 if (file.InitCheck() == B_OK)
81 if (file.GetFileFormatInfo(&format) == B_OK)
89 const char *copyRight = file.Copyright();
97 if (file.CountTracks() > 0)
100 for (int32 i = 0; i < file.CountTracks(); i++)
104 BMediaTrack *track = file.TrackAt(i);
156 title += " (no file)";
/haiku-fatelf/src/bin/coreutils/lib/
H A Dopenat.c67 If the named file already exists as a directory, then
73 If the named file does not exist or does not name a directory, then
77 file does not contain a '.' directory. */
102 If the named file without the slash is not a directory, open() must fail
134 Upon successful completion, return a file descriptor. */
136 openat (int fd, char const *file, int flags, ...) argument
152 return openat_permissive (fd, file, flags, mode, NULL);
167 openat_permissive (int fd, char const *file, int flags, mode_t mode, argument
175 if (fd == AT_FDCWD || IS_ABSOLUTE_FILE_NAME (file))
176 return open (file, flag
[all...]
H A Deuidaccess-stat.c1 /* euidaccess-stat -- check if effective user id can access lstat'd file
32 on the file from which stat buffer *ST was obtained, ignoring
37 a stat buffer rather than a file name. Hence, this function
39 whether the file has ACLs or other attributes, or resides on
40 a read-only file system. */
57 return true; /* The file exists. */
61 /* The super-user can read and write any file, and execute any file
67 /* Convert the file's permission bits to traditional form. */
118 char *file; local
[all...]
H A Dse-selinux.in.h32 static inline int matchpathcon (char const *file _GL_UNUSED_PARAMETER,
36 static inline int getfilecon (char const *file _GL_UNUSED_PARAMETER,
39 static inline int lgetfilecon (char const *file _GL_UNUSED_PARAMETER,
45 static inline int setfilecon (char const *file _GL_UNUSED_PARAMETER,
48 static inline int lsetfilecon (char const *file _GL_UNUSED_PARAMETER,
/haiku-fatelf/src/bin/gawk/
H A Dmsg.c8 * This file is part of GAWK, the GNU implementation of the
34 /* err --- print an error message with source line and file and record */
40 char *file; local
59 file = FILENAME_node->var_value->stptr;
61 if (file)
62 (void) fprintf(stderr, "FILENAME=%s ", file);
149 set_loc(const char *file, int line) argument
151 srcfile = file;
155 file = srcfile; line = srcline;
/haiku-fatelf/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-fatelf/src/bin/gdb/gdb/
H A Dgdbarch.c8 This file is part of GDB.
25 /* This file was created with the aid of ``gdbarch.sh''.
32 If editing this file, please also run gdbarch.sh and merge any
34 to this file, modifying gdbarch.sh and using its output may prove
632 gdbarch_dump (struct gdbarch *current_gdbarch, struct ui_file *file) argument
640 fprintf_unfiltered (file,
646 fprintf_unfiltered (file,
652 fprintf_unfiltered (file,
656 fprintf_unfiltered (file,
660 fprintf_unfiltered (file,
2449 gdbarch_print_registers_info(struct gdbarch *gdbarch, struct ui_file *file, struct frame_info *frame, int regnum, int all) argument
2473 gdbarch_print_float_info(struct gdbarch *gdbarch, struct ui_file *file, struct frame_info *frame, const char *args) argument
2497 gdbarch_print_vector_info(struct gdbarch *gdbarch, struct ui_file *file, struct frame_info *frame, const char *args) argument
[all...]
H A Dui-file.h4 This file is part of GDB.
60 extern void *ui_file_data (struct ui_file *file);
71 extern void ui_file_write (struct ui_file *file, const char *buf, long length_buf);
80 extern char *ui_file_xstrdup (struct ui_file *file, long *length);
84 extern long ui_file_read (struct ui_file *file, char *buf, long length_buf);
86 /* Create/open a memory based file. Can be used as a scratch buffer
93 extern struct ui_file *stdio_fileopen (FILE *file);
98 /* Create a file which writes to both ONE and TWO. CLOSE_ONE
100 closed when the new file is closed. */
/haiku-fatelf/src/bin/coreutils/
H A Dbootstrap25 # Ensure file names are sorted consistently across platforms.
52 If the file $0.conf exists in the same directory as this script, its
239 # sorting the new contents of the file and replacing $FILE with the result.
241 file=$1
243 test -f $file || touch $file
244 echo "$str" | sort -u - $file | cmp - $file > /dev/null \
245 || echo "$str" | sort -u - $file -o $file \
[all...]
/haiku-fatelf/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-fatelf/src/add-ons/mail_daemon/inbound_filters/match_header/
H A DRuleFilter.cpp53 RuleFilter::HeaderFetched(const entry_ref& ref, BFile* file) argument
59 if (file->GetAttrInfo("Subject", &info) != B_OK
64 if (file->ReadAttr(fAttribute, B_STRING_TYPE, 0, buffer, info.size) < 0) {
87 file->WriteAttrString("MAIL:filter_flags", &fArg);
91 file->WriteAttr("MAIL:reply_with", B_INT32_TYPE, 0, &fReplyAccount,
/haiku-fatelf/src/add-ons/media/plugins/asf_reader/libasf/
H A Dparse.c1 /* libasf - An Advanced Systems Format media file parser
132 * Takes an initialized asf_file_t structure file as a parameter. Allocates
133 * a new asf_object_header_t in file->header and uses the file->iostream to
139 asf_parse_header(asf_file_t *file) argument
146 file->header = NULL;
147 iostream = &file->iostream;
157 file->header = malloc(sizeof(asf_object_header_t));
158 header = file->header;
271 tmp = asf_parse_header_validate(file, fil
290 asf_parse_data(asf_file_t *file) argument
350 asf_parse_index(asf_file_t *file) argument
[all...]
/haiku-fatelf/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-fatelf/src/bin/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-fatelf/src/tests/add-ons/kernel/file_systems/dos/r5/
H A Ddir.h3 This file may be used under the terms of the Be Sample Code License.
10 status_t findfile_case(nspace *vol, vnode *dir, const char *file,
12 status_t findfile_nocase(nspace *vol, vnode *dir, const char *file,
14 status_t findfile_nocase_duplicates(nspace *vol, vnode *dir, const char *file,
16 status_t findfile_case_duplicates(nspace *vol, vnode *dir, const char *file,
25 int dosfs_walk(void *_vol, void *_dir, const char *file,

Completed in 227 milliseconds

<<11121314151617181920>>