10029 Commits

Author SHA1 Message Date
Rudolf Cornelissen
abf9325a35 move_overlay() confirmed working fully OK.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10227 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev10227
2004-11-25 13:09:48 +00:00
Rudolf Cornelissen
56b937bfb6 finished move_overlay(). Still untested though..
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10226 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev10226
2004-11-25 12:33:56 +00:00
Stefano Ceccherini
8b7faba29f Made double buffering a compile time option (disabled by default as there is some issues with it)
Made widthbuffer a compile time option (disabled by default).
Some minor changes.
Updated the "known bugs" section


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10225 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev10225
2004-11-25 11:00:50 +00:00
Rudolf Cornelissen
12a8acf64d setup move_overlay() functionality (part 2), not yet ready..
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10224 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev10224
2004-11-25 10:19:03 +00:00
Axel Dörfler
bc1994c4fb Our uname currently returns "Intel" as machine - changed SetupEnvironment
to take that into account.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10223 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev10223
2004-11-25 03:23:16 +00:00
Axel Dörfler
f6c4b97ace It now accepts a directory as argument that will be the target of the build files.
When you specify this directory, no image file will be created.
Added the listarea command.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10222 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev10222
2004-11-25 03:15:18 +00:00
Axel Dörfler
1e32802a52 New call new_fd_etc() which accepts a starting index for where to search for free FDs.
Implemented F_DUPFD support for fcntl() - we no longer see any redirection errors when
booting into Haiku.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10221 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev10221
2004-11-25 02:56:35 +00:00
Axel Dörfler
e3e06dd847 Added new new_fd_etc() call.
Cleaned up included headers.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10220 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev10220
2004-11-25 02:53:28 +00:00
Axel Dörfler
ecd4e1445d Different compilers produce differently sized binaries: removed the PCI
bus manager from the floppy image - it's not really needed yet, and with
all the debug output, it cuts some 300 kB from the final image.
If you're floppy image did not work anymore in Bochs, try now.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10219 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev10219
2004-11-25 02:20:48 +00:00
Jérôme Duval
d35e7ce4c2 clock is now local by default
timezone is now set even if not rtc time setting is found


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10218 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev10218
2004-11-24 23:17:34 +00:00
Jérôme Duval
766dfdaf6c fixed system_time_offset and sTimeOffset
added some trace


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10217 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev10217
2004-11-24 22:54:50 +00:00
DarkWyrm
9655bd6c06 Removed a couple of deadlocks caused by missing DisplayDriver unlocks
remove possible NULL pointer crash in LayerData
Added low-level clipping to ViewDriver
Some minor UI tweaks to WinBorder


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10216 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev10216
2004-11-24 20:07:41 +00:00
DarkWyrm
eb740ad17f Disabled code for cursor config until API settles
Added low-level clipping support to decorator preview
Added comments to clarify disabled cursor and color set support


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10215 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev10215
2004-11-24 20:03:14 +00:00
Axel Dörfler
f19955303e _user_set_area_protection() did not set any B_KERNEL_*_AREA protection.
_user_create_area() and _user_clone_area() now inherit the read/write protection
for the kernel, too - before, it was always mapped read/write in the kernel,
but there is no reason to do that.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10214 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev10214
2004-11-24 18:57:20 +00:00
Axel Dörfler
4bc2682135 First go at set_area_protection() - does work for everything but changing
a read-only area to read/write.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10213 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev10213
2004-11-24 18:22:17 +00:00
Axel Dörfler
983377dc3d Now only uses the file name instead of the full path as area base name.
Calls set_area_protection() after relocating the images to make them
read-only for real.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10212 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev10212
2004-11-24 18:15:20 +00:00
Axel Dörfler
bb59e8a636 The boot loader test now builds again fine.
Removed -fcheck-memory-usage for now.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10211 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev10211
2004-11-24 16:23:48 +00:00
Jérôme Duval
fd575d8737 added a symlink for more
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10210 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev10210
2004-11-23 17:12:51 +00:00
Rudolf Cornelissen
cfab0cc0c8 small logging update
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10209 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev10209
2004-11-23 15:00:09 +00:00
Rudolf Cornelissen
03b720e76e added move_overlay() related info to shared_info.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10208 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev10208
2004-11-23 14:27:14 +00:00
Rudolf Cornelissen
da1bc0f07d started implementation of move_overlay(): to be continued..
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10207 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev10207
2004-11-23 14:25:29 +00:00
Axel Dörfler
7d86dc0e79 Added grep, cat, and less.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10206 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev10206
2004-11-23 04:47:19 +00:00
Axel Dörfler
40ab990937 vm_cache_resize() can now resize all caches - and therefore, it now accepts
an off_t as size argument.
Implemented new function vm_cache_write_modified() which will write all
dirty pages of this cache back to disk (using the new vm_page_write_modified()
function).
Fixed warnings when compiled with debug output.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10205 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev10205
2004-11-23 03:34:04 +00:00
Axel Dörfler
86b5aa8df9 Implemented new function vm_page_write_modified() that writes all dirty
pages in a cache back using the store's write method. Doesn't optimize
disk access yet.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10204 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev10204
2004-11-23 03:30:02 +00:00
Axel Dörfler
257d99f228 Renamed readwrite() to cache_io(), and readwrite_pages() to pages_io().
While we can tolerate the device driver to ignore the bytes argument when we
read from the device, we cannot do this for writes - now the code actually
takes this into account. Also added a comment about what to do when our own
driver is fixed :)
Implemented file_cache_sync().
file_cache_set_size() now uses vm_cache::virtual_size instead of the now
removed vnode_store::size. Also, it now resizes the vm_cache as well, so
that any no longer used pages are freed.
write_to_cache() now puts all pages in the modified list, so that they
can be written back easily.
Improved debug output.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10203 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev10203
2004-11-23 03:27:45 +00:00
Axel Dörfler
3aacbe700a Removed the vnode_store::size field - it's no longer needed. Instead,
vm_cache::virtual_size is now used by the file cache code.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10202 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev10202
2004-11-23 03:22:35 +00:00
Axel Dörfler
3e5bf45013 attr_dir_open() now checks if the FS call is implemented at all.
dec_vnode_ref_count() now deletes the cache *after* calling the file system's
remove/release vnode function. Also, it will now write back any pending
changes in that cache before removing it.
Some cleanup.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10201 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev10201
2004-11-23 03:20:20 +00:00
Axel Dörfler
e0ee16403e Added prototype for vm_cache_write_modified().
Changed size argument of vm_cache_resize() from size_t to off_t.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10200 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev10200
2004-11-23 03:17:39 +00:00
Axel Dörfler
583e12c489 Added vm_page_write_modified() prototype.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10199 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev10199
2004-11-23 03:16:10 +00:00
Axel Dörfler
e057f978ce Inode::FillPendingRequests() could fill the requests in the wrong team context.
Now, it will only notify the read requests do gather the data.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10198 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev10198
2004-11-23 02:57:34 +00:00
Axel Dörfler
48f8c4e477 file_cache_create() fails when it's called before the vnode is created.
Inode::SetFileSize() now changes the size of the cache as well.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10197 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev10197
2004-11-23 01:40:44 +00:00
Axel Dörfler
41eca62b69 Fixed debug build.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10196 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev10196
2004-11-23 01:38:44 +00:00
Axel Dörfler
8c6a62c60c Now implements bfs_write_pages().
Changed some debug stuff.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10195 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev10195
2004-11-23 01:38:02 +00:00
Jérôme Duval
378a243ecc move from use of boot_time to use of system_time_offset
remove _get_tzfilename


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10194 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev10194
2004-11-23 00:20:30 +00:00
Jérôme Duval
2ecad4070b now use _kern_get_tzfilename
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10193 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev10193
2004-11-23 00:19:22 +00:00
Jérôme Duval
177fdbb034 renamed rtc_boot_time to rtc_system_time_offset
move code from use of boot_time to use of system_time_offset
added _user_get_tzfilename


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10192 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev10192
2004-11-23 00:16:24 +00:00
Jérôme Duval
10a832f235 removed fields not needed any more in userland
boot_time is now system_time_offset


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10191 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev10191
2004-11-23 00:11:33 +00:00
Jérôme Duval
0018ac6a37 added _user_get_tzfilename
renamed rtc_boot_time to rtc_system_time_offset


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10190 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev10190
2004-11-23 00:10:18 +00:00
Jérôme Duval
6f8c05c381 added _kern_get_tzfilename
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10189 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev10189
2004-11-23 00:06:49 +00:00
Jérôme Duval
50f370818a added clockconfig
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10188 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev10188
2004-11-22 23:33:56 +00:00
Jérôme Duval
21d7f34c42 added clockconfig on startup
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10187 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev10187
2004-11-22 23:33:02 +00:00
Jérôme Duval
e2383c107d fixed offset sign, gmt clock is working
this should be factored in kernel core to only have a system_time_offset


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10186 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev10186
2004-11-22 21:54:24 +00:00
Axel Dörfler
92a076fcce Journal::FlushLogAndBlocks() no longer uses Journal::Lock() but the lock directly.
That avoids starting a new transaction for no reason (which wouldn't do any harm,
but still, it's not necessary to do that at all).
log_entry::cached_blocks is no longer maintained or needed.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10185 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev10185
2004-11-22 20:49:55 +00:00
Axel Dörfler
1d20e0608e Inode::Create() allowed to create a symlink "above" a file.
Also, it did not check the access permissions if the file already existed.
Removed check for INODE_NO_CACHE, as this no longer applies.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10184 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev10184
2004-11-22 20:30:24 +00:00
Axel Dörfler
8039d342ec path & toPath don't seem to be too clear. Fixed order or arguments to the
kernel syscall and renamed them to be less confusing.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10183 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev10183
2004-11-22 20:29:07 +00:00
Axel Dörfler
cd3931efde Added find_directory() test application. Unlike the other tests, it only
tests the libroot.so implementation, so it has to be run under Haiku to
test its implementation (it only prints out all directories, anyway).


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10182 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev10182
2004-11-22 17:44:11 +00:00
Axel Dörfler
4cd43d200d Removed R5 compatibility stuff, as it's not needed in our libroot.
Moved test main() into separate file under tests/.
Fixed warnings, some cleanup.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10181 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev10181
2004-11-22 17:42:38 +00:00
Jérôme Duval
b39d4ade08 modified tzset to use the global tzfilename when no TZ env variable is found
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10180 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev10180
2004-11-22 17:35:13 +00:00
Jérôme Duval
56d0b9b6db added _get_tzfilename
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10179 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev10179
2004-11-22 17:33:43 +00:00
Jérôme Duval
f92e8b3361 added a clockconfig bin tool
it is only tested on R5, but should make its way on Haiku too


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10178 a95241bf-73f2-0310-859d-f6bbb57e9c96
hrev10178
2004-11-22 17:26:28 +00:00