Commit Graph

2253 Commits

Author SHA1 Message Date
Matthew Wilber e1403feb25 added a few little tests, made style changes in order to fit on printed pages more easily, added some TODOs
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2089 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-11-26 04:22:33 +00:00
Axel Dörfler 98138634aa Added the private ioctl calls to get the 64-bit create and modified time.
Most probably these are used by the kernel to identify changes in a shared
library or something like this.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2088 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-11-25 23:51:03 +00:00
Axel Dörfler cb0a9fe094 Fixed a stupid bug, used Inode::Name() without locking.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2087 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-11-25 23:30:54 +00:00
Axel Dörfler 2ad0108fbe Now uses Inode::GetName() and strlcpy().
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2086 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-11-25 18:43:11 +00:00
Axel Dörfler c0f2928e7d Now uses Inode::GetName() where appropriate.
Fixed a bigger race condition when matching against the name index.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2085 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-11-25 18:42:40 +00:00
Axel Dörfler 97d569f0de Now uses strlcpy() rather than strcpy() where appropriate.
The inode is now locked in bfs_close() (when the indices are updated).
Moved the special cases for INODE_NO_CACHE and INODE_CHKBFS_RUNNING into
bfs_free_cookie() - should probably do that with the index update as well.
Updated some comments.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2084 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-11-25 18:07:35 +00:00
Axel Dörfler 0606e6e197 Added a new method Inode::GetName() which safely copies the inode's name
to the provided buffer.
Inode::Name() no longer locks the small_data region anymore.
Added ASSERTs that the small_data region is locked for the methods requiring
that.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2083 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-11-25 17:38:19 +00:00
Axel Dörfler d88937ace2 Added a SimpleLock.IsLocked() method.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2082 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-11-25 17:36:53 +00:00
Axel Dörfler 0f374ebc88 Added a strlcpy() call for usage in BeOS (OpenBeOS has it built-in already).
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2081 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-11-25 17:35:21 +00:00
Axel Dörfler d369893781 Removed the usage of Inode::Name() in the debug output.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2080 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-11-25 17:33:43 +00:00
Axel Dörfler bb5a5c05ec Added a document describing/specifying the (future) boot process for
OpenBeOS on x86 systems.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2079 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-11-25 13:58:24 +00:00
DarkWyrm 2dc78c1fc1 #Include tweaks
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2078 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-11-25 01:54:53 +00:00
shadow303 8081366ed4 Fix up cursor stuff
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2077 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-11-24 22:02:37 +00:00
DarkWyrm 380f52921d Adding initial BWindow implementation by John Hedditch
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2076 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-11-24 12:03:44 +00:00
Michael Phipps 42ff0425a7 Fixed more bugs; simpleTest now seems to work correctly.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2075 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-11-24 05:12:50 +00:00
Michael Phipps cc22bcb449 Fixed some bugs. Yet another checkpoint.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2074 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-11-24 04:16:06 +00:00
beveloper 08d612b66b media_server.h was missing.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2073 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-11-24 00:50:15 +00:00
Stefano Ceccherini dab5a2c577 Forgot those :)
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2072 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-11-24 00:27:34 +00:00
beveloper 41ba915d42 various small changes
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2071 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-11-24 00:27:09 +00:00
Stefano Ceccherini a4cd2d3f33 Huge commit. Fixed screen preflet. It does work now. Still has some minor bugs, but it's fully functional.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2070 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-11-24 00:26:55 +00:00
Axel Dörfler 673ecc16e5 Added some more output (that should help users not that familiar with BFS).
Now supports fixing errors as well (and introduced a new option -e to fix
some additional errors).


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2069 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-11-23 18:39:25 +00:00
beveloper d8dd74308e Optimized (yes, we shouldn't do it now) to consume less power on P4,
and to have better performance on Hyper Threading systems. Should be
backward compatible with all x86 systems, according to Intel documentation.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2068 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-11-23 17:43:36 +00:00
jrand f7081347c5 Adding the first tests for BPolygon.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2067 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-11-23 04:42:57 +00:00
DarkWyrm f0577aea09 Complete server update.
Fix for garbage text in window titles
Updates to decorator and API


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2066 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-11-23 01:23:43 +00:00
Axel Dörfler 2b99433ef9 Added a basic "chkbfs" command to the repository, doesn't fix anything yet,
though (boy, I am so lazy...).
Cleaned up the Jamfile a bit.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2065 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-11-22 20:15:12 +00:00
shatty d470934c95 fixed changing color reset font bug and made the menus update for font and family and font size
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2064 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-11-22 09:32:34 +00:00
shatty 8776558763 update font menu for color based on selection or cursor location
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2063 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-11-22 09:04:25 +00:00
shatty 8f63353baf lots of font related changes to reduce memory consumption and speed up initialization. also fixes for word wrapping screen width.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2062 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-11-22 07:52:00 +00:00
shatty 0b46ec9848 improved soft wrapping, now saves alignment and wrapping states
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2061 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-11-22 05:53:58 +00:00
Axel Dörfler fea5713c6d Added a comment about live-queries in Inode::Create().
Some style cleanups.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2060 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-11-22 03:45:01 +00:00
Axel Dörfler b5a0c65c19 Added support for aborted "chkbfs" runs (so that they won't do any harm).
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2059 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-11-22 03:32:53 +00:00
Axel Dörfler f512ce4233 Added a new inode flag INODE_CHKBFS_RUNNING to detect aborted chkbfs processes.
bfs_read_vnode() will now wait for half a second at maximum until it returns
the B_BUSY error (so that live queries will like it better).


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2058 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-11-22 03:31:34 +00:00
Axel Dörfler edd77cc706 Added a missing newline.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2057 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-11-21 21:27:55 +00:00
Axel Dörfler 5254026ba2 Removed the logic for freeing the inode's space from bfs_remove_vnode(); now
instead calls Inode::Free().
If INODE_DONT_FREE_SPACE was set, bfs_remove_vnode() forgot to delete the
inode before returning B_OK.
bfs_read_vnode() will now return the exact error Inode::InitCheck() returned.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2056 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-11-21 20:45:52 +00:00
Axel Dörfler 11a8dbc63a Completely worked over the inode creation mechanism. Now more work is delegated
to the InodeAllocator class (initialization of the inode, tree creation for
containers).
The InodeAllocator class now frees all the space the inode occupies, including
the B+tree if it's a container (by calling the new Inode::Free() method).
Inode::Free() implementation (logic removed from bfs_remove_vnode()).
Now secures the inode from being loaded by setting the INODE_NOT_READY flag
(completely handled by the InodeAllocator class).
The inode is now removed from its parent if something went wrong after it
had been added.
Utilizes the new BPlusTree::Remove() method where appropriate.
Inode::GetAttribute() now checks if the inode opened is really an attribute.
Inode::InitCheck() now fails with B_BUSY if the INODE_NOT_READY flag is set.
InodeAllocator::Keep() now writes back the inode.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2055 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-11-21 20:42:44 +00:00
Axel Dörfler 9fec50f9db Added new Inode::Free() method which frees all space associated with an
inode.
Some style cleanups.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2054 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-11-21 20:34:04 +00:00
Axel Dörfler 8a3e35d8c3 AllocationBlock::Allocate() still had the 0xffff thing implemented, now
also the numBlocks parameter is ASSERTed - when compiled with DEBUG turned
off, BFS will enter the kernel debugger in this case (through the use of
the DIE() macro).
Same for AllocationBlock::Free() (but the 0xffff mode was already removed
there).


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2053 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-11-21 20:32:54 +00:00
Axel Dörfler 98887c634e Symbolic link data streams (for long symlinks) now are located in the same
allocation group as the inode, if possible.
Moved the group used blocks info maintaining code into AllocationGroup::Allocate()
and AllocationGroup::Free() (instead of letting the BlockAllocator class do
the work).
Removed the buggy and useless extra 0xffff mode for AllocationBlock::Allocate()
and AllocationBlock::Free(), both methods now ASSERT their parameter range.
Changed some comments, style cleanups.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2052 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-11-21 20:27:57 +00:00
Axel Dörfler def426bce2 Added a BPlusTree::Remove() inline method for strings.
Style cleanups.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2051 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-11-21 20:22:36 +00:00
Axel Dörfler 2edddca0dc Removed the unused INODE_EMPTY flag, and introduced a new INODE_NOT_READY
flag which is used during construction of an inode.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2050 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-11-21 20:21:28 +00:00
Axel Dörfler 696b26708c The Locker class now uses ASSERT() to be sure the semaphore could be locked.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2049 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-11-21 20:20:12 +00:00
Axel Dörfler 537e538aa6 Added two new macros, ASSERT(), and DIE().
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2048 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-11-21 20:15:25 +00:00
jerl1 eac71506d6 Some correction, and class BMidiStore.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2047 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-11-21 19:23:22 +00:00
Matthew Wilber ef3a275d0f added some more testing, modified some existing testing, made style changes
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2046 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-11-21 05:06:40 +00:00
shatty e81d8d7a95 character set and registry
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2045 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-11-21 01:37:18 +00:00
shatty 6cd1da58ba set the default save as directory appropriately
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2044 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-11-20 23:43:33 +00:00
shatty e2344ee25b fix command line execution - thanks BGA
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2043 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-11-20 23:29:00 +00:00
shatty b7b9d38498 open a new empty document on re-launch
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2042 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-11-20 22:40:28 +00:00
Ingo Weinhold fbd28219aa Merged in FreeType 2.1.2 -> 2.1.3 differences. Resolved conflicts.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2041 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-11-20 21:40:01 +00:00
Ingo Weinhold 389d57611d This commit was generated by cvs2svn to compensate for changes in r2038,
which included commits to RCS files with non-trunk default branches.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2039 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-11-20 19:21:05 +00:00