Searched refs:file (Results 1 - 25 of 737) sorted by relevance

1234567891011>>

/haiku/data/config/boot/
H A DUserBootscript6 for file in $HOME/config/settings/boot/launch/*
8 /bin/open "$file" &
15 # This file is a standard bash script. For more information regarding shell
/haiku/src/tests/kits/media/mp3_reader_test/
H A DFileDataIO.cpp4 : file(new BFile(filepath, open_mode))
10 delete file;
16 return file->Read(buffer, size);
22 return file->Write(buffer, size);
/haiku/src/tests/kits/media/wav_reader_test/
H A DFileDataIO.cpp4 : file(new BFile(filepath, open_mode))
10 delete file;
16 return file->Read(buffer, size);
22 return file->Write(buffer, size);
/haiku/src/servers/package/
H A DPackageFileManager.cpp43 PackageFile* file = fFilesByEntryRef.Lookup(entryRef); local
44 if (file != NULL) {
45 if (file->AcquireReference() > 0) {
46 _file = file;
51 fFilesByEntryRef.Remove(file);
54 file = new(std::nothrow) PackageFile;
55 if (file == NULL)
58 status_t error = file->Init(entryRef, this);
60 delete file;
64 fFilesByEntryRef.Insert(file);
86 PackageFileMoved(PackageFile* file, const node_ref& newDirectory) argument
101 RemovePackageFile(PackageFile* file) argument
[all...]
/haiku/src/tests/kits/storage/
H A DFileTest.cpp81 BFile file; local
82 CPPUNIT_ASSERT( file.InitCheck() == B_NO_INIT );
102 static void testInit(const InitTestCase& tc, BFile& file) argument
104 CPPUNIT_ASSERT( file.InitCheck() == tc.initCheck );
114 BFile file(tc.filename,
119 testInit(tc, file);
134 BFile file(refToPass,
139 testInit(tc, file);
154 BFile file(entryToPass,
159 testInit(tc, file);
211 testInit(const InitTestCase& tc, BFile& file) argument
225 BFile file; local
247 BFile file; local
269 BFile file; local
291 BFile file; local
315 BFile file; local
351 BFile file; local
510 BFile file; local
557 BFile file; local
622 BFile file; local
660 BFile file; local
668 BFile file; local
[all...]
/haiku/src/add-ons/print/transports/print_to_file/
H A Dprint_transport.cpp2 // Print to file transport add-on.
41 status_t AddFile(BFile * file);
62 BFile *file = new BFile(); local
63 AddFile(file);
64 return file;
67 BFile *file = new BFile(&ref, B_WRITE_ONLY | B_CREATE_FILE | B_ERASE_FILE); local
68 if ( file->InitCheck() != B_OK ) {
69 // invalid file selected
72 AddFile(file);
73 return file;
88 AddFile(BFile * file) argument
[all...]
/haiku/src/tests/add-ons/kernel/file_systems/bfs/
H A Dbfs_attribute_iterator_test.cpp3 * This file may be used under the terms of the MIT License.
42 add_attributes(BFile& file, int32 start, int32 count) argument
47 file.WriteAttr(name, B_INT32_TYPE, 0, &index, sizeof(int32));
53 remove_attributes(BFile& file, int32 start, int32 count) argument
58 file.RemoveAttr(name);
64 add_marker_attribute(BFile& file, int32 index) argument
68 file.WriteAttr(name, B_INT32_TYPE, 0, &index, sizeof(int32));
73 remove_marker_attribute(BFile& file, int32 index) argument
77 file.RemoveAttr(name);
82 test_remove_attributes(BFile& file, int3 argument
134 test_add_attributes(BFile& file, int32 start, int32 count, int32 addAt, int32 addIndex1, int32 addIndex2) argument
191 BFile file; local
[all...]
/haiku/src/libs/compat/freebsd_network/compat/sys/
H A Dlock.h11 #define MPASS3(ex, file, line) MPASS4(ex, #ex, file, line)
12 #define MPASS4(ex, what, file, line) \
13 KASSERT((ex), ("assert %s failed at %s:%d", what, file, line))
/haiku/src/tools/unflatten/
H A Dunflatten.cpp12 BFile file; local
18 if (B_OK != file.SetTo(argv[1], O_RDONLY)) {
22 if (B_OK != msg.Unflatten(&file)) {
/haiku/src/system/libroot/posix/unistd/
H A Dhostname.cpp44 int file = open(path, O_WRONLY | O_CREAT, 0644); local
45 if (file < 0)
49 ftruncate(file, nameSize + 1);
51 if (write(file, hostName, nameSize) != (ssize_t)nameSize
52 || write(file, "\n", 1) != 1) {
53 close(file);
57 close(file);
65 // look up hostname from network settings hostname file
73 int file = open(path, O_RDONLY); local
74 if (file <
[all...]
/haiku/src/system/libroot/posix/glibc/libio/
H A Diovdprintf.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
42 tmpfil.file._lock = NULL;
44 _IO_no_init (&tmpfil.file, _IO_USER_LOCK, 0, &wd, &INTUSE(_IO_wfile_jumps));
50 if (INTUSE(_IO_file_attach) (&tmpfil.file, d) == NULL)
55 tmpfil.file._IO_file_flags =
56 (_IO_mask_flags (&tmpfil.file, _IO_NO_READS,
60 done = INTUSE(_IO_vfprintf) (&tmpfil.file, format, arg);
62 _IO_FINISH (&tmpfil.file);
[all...]
/haiku/src/kits/debugger/dwarf/
H A DDwarfManager.cpp28 while (DwarfFile* file = fFiles.RemoveHead())
29 file->ReleaseReference();
45 DwarfFile* file = _state.dwarfFile; local
47 if (file == NULL) {
48 file = new(std::nothrow) DwarfFile;
49 if (file == NULL)
51 fileReference.SetTo(file, true);
52 _state.dwarfFile = file;
54 fileReference.SetTo(file);
58 error = file
[all...]
/haiku/src/system/boot/platform/riscv/
H A DFwCfg.cpp76 FwCfgFile file; local
77 ReadBytes((uint8_t*)&file, sizeof(file));
78 file.size = B_BENDIAN_TO_HOST_INT32(file.size);
79 file.select = B_BENDIAN_TO_HOST_INT16(file.select);
80 file.reserved = B_BENDIAN_TO_HOST_INT16(file.reserved);
82 dprintf("size: %" B_PRIu32 "\n", file
91 ThisFile(FwCfgFile& file, uint16_t dir, const char *name) argument
110 FwCfgFile file; local
[all...]
/haiku/src/system/kernel/util/
H A Dhostname.cpp44 int file = open(path, O_WRONLY | O_CREAT, 0644); local
45 if (file < 0)
50 if (write(file, hostName, nameSize) != (ssize_t)nameSize
51 || write(file, "\n", 1) != 1) {
52 close(file);
56 close(file);
64 // look up hostname from network settings hostname file
72 int file = open(path, O_RDONLY); local
73 if (file < 0)
78 int length = read(file, hostNam
[all...]
/haiku/src/preferences/time/
H A DTimeSettings.cpp42 BFile file(path.Path(), B_READ_ONLY);
43 if (file.InitCheck() == B_OK) {
45 if (file.Read(&tmp, sizeof(BPoint)) == sizeof(BPoint))
63 BFile file(path.Path(), B_WRITE_ONLY | B_CREATE_FILE);
64 if (file.InitCheck() == B_OK)
65 file.Write(&leftTop, sizeof(BPoint));
/haiku/src/system/libroot/posix/glibc/include/
H A Dfcntl.h9 extern int __libc_open64 (const char *file, int oflag, ...);
10 extern int __libc_open (const char *file, int oflag, ...);
12 extern int __libc_creat (const char *file, mode_t mode);
/haiku/src/tests/add-ons/kernel/file_systems/bfs/rename/
H A Drename.c12 int file; local
19 file = open("__file", O_CREAT | O_TRUNC | O_WRONLY);
20 if (file < 0)
22 close(file);
30 // create a file in that directory
31 file = open("__directory/1", O_CREAT | O_WRONLY);
32 close(file);
37 printf(" %s\n",rename("__file", "__directory") ? "Could not rename file!" : "Rename succeeded.");
43 // rename the file and try to remove the directory
45 printf(" %s\n", rename("__file","__directory") ? "Could not rename file!"
[all...]
/haiku/build/scripts/
H A Dgenerate_CountryFlags.sh9 for file in *
11 id=`echo "$file" | cut -b -2`
12 name=`echo "${file%%.*}" | cut -b 4-`
16 tail -n +3 "$file" >> $destination
/haiku/src/preferences/screen/
H A DScreenSettings.cpp31 BFile file(path.Path(), B_READ_ONLY);
32 if (file.InitCheck() == B_OK)
33 file.Read(&offset, sizeof(BPoint));
50 BFile file(path.Path(), B_WRITE_ONLY | B_CREATE_FILE);
51 if (file.InitCheck() == B_OK)
52 file.Write(&offset, sizeof(BPoint));
/haiku/src/preferences/printers/
H A DScreenSettings.cpp31 BFile file(path.Path(), B_READ_ONLY);
32 if (file.InitCheck() == B_OK)
33 file.Read(&offset, sizeof(BPoint));
50 BFile file(path.Path(), B_WRITE_ONLY | B_CREATE_FILE);
51 if (file.InitCheck() == B_OK)
52 file.Write(&offset, sizeof(BPoint));
/haiku/src/apps/text_search/
H A DModel.cpp62 BFile file; local
63 status_t status = _OpenFile(&file, PREFS_FILE);
67 status = file.Lock();
73 if (file.ReadAttr("RecurseDirs", B_INT32_TYPE, 0, &value,
77 if (file.ReadAttr("RecurseLinks", B_INT32_TYPE, 0, &value,
81 if (file.ReadAttr("SkipDotDirs", B_INT32_TYPE, 0, &value,
85 if (file.ReadAttr("CaseSensitive", B_INT32_TYPE, 0, &value,
89 if (file.ReadAttr("RegularExpression", B_INT32_TYPE, 0, &value,
93 if (file.ReadAttr("TextOnly", B_INT32_TYPE, 0, &value, sizeof(int32)) > 0)
96 if (file
126 BFile file; local
234 BFile file; local
266 BFile file; local
304 _OpenFile(BFile* file, const char* name, uint32 openMode, directory_which which, BVolume* volume) const argument
[all...]
/haiku/src/add-ons/print/drivers/postscript/
H A DPPDParser.cpp16 PPDParser::PPDParser(BFile& file) argument
18 InitData(file);
24 BFile file(&dir, fname, B_READ_ONLY);
25 InitData(file);
31 BFile file(path.Path(), B_READ_ONLY);
32 InitData(file);
37 PPDParser::InitData(BFile& file) argument
39 // Check if file exists...
40 if ((fInitErr = file.InitCheck()) != B_OK)
43 // Read entire file int
[all...]
/haiku/src/apps/debuganalyzer/util/
H A DDataSource.cpp40 BFile* file = new(std::nothrow) BFile; local
41 if (file == NULL)
44 status_t error = OpenFile(*file);
46 delete file;
50 *_io = file;
77 PathDataSource::OpenFile(BFile& file) argument
79 return file.SetTo(fPath.Path(), B_READ_ONLY);
119 EntryRefDataSource::OpenFile(BFile& file) argument
121 return file.SetTo(&fRef, B_READ_ONLY);
/haiku/src/kits/mail/
H A DMailFilter.cpp25 BMailFilter::HeaderFetched(entry_ref& ref, BFile& file, BMessage& attributes) argument
32 BMailFilter::BodyFetched(const entry_ref& ref, BFile& file, argument
45 BMailFilter::MessageReadyToSend(const entry_ref& ref, BFile& file) argument
51 BMailFilter::MessageSent(const entry_ref& ref, BFile& file) argument
/haiku/src/bin/addattr/
H A DaddAttr.h14 status_t addAttr(const char* file, type_code attrType, const char* attrName,

Completed in 129 milliseconds

1234567891011>>