Commit Graph

3192 Commits

Author SHA1 Message Date
Axel Dörfler
1792510380 Fixed the pipe creation and made it secure against very fast threads, as
suggested by Ingo.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3704 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-28 02:44:20 +00:00
Axel Dörfler
f0df28e20e Now makes use of C++ features, still no reading or writing, though.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3703 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-27 23:04:36 +00:00
Axel Dörfler
2aa93388f3 C++ for the kernel added to the build.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3702 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-27 23:03:45 +00:00
Axel Dörfler
fb68886768 C++ for the kernel.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3701 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-27 22:58:58 +00:00
Ingo Weinhold
cbbec57f71 Oops, our TOP is named OBOS_TOP.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3700 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-27 17:38:12 +00:00
Michael Pfeiffer
2a76289ea7 Bug fixes.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3699 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-27 17:23:52 +00:00
Michael Pfeiffer
cfab67cd80 Updated version 2.0 bookmark file.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3698 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-27 17:22:57 +00:00
Michael Pfeiffer
a952b1a530 Added ImageCache.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3697 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-27 17:20:57 +00:00
Michael Pfeiffer
3759446ddd Clean up.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3696 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-27 17:19:46 +00:00
Michael Pfeiffer
2e07400817 Link destionation includes rectangle on page.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3695 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-27 17:19:35 +00:00
Michael Pfeiffer
61594003dd Added option to show bookmarks expanded or collapsed.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3694 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-27 17:19:17 +00:00
Axel Dörfler
9d1b8268b8 Removed unused headers.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3693 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-27 16:53:33 +00:00
Axel Dörfler
c05acf62ee Big cleanup of the cbuf implementation to fit better into our style guide.
Renamed cbuf_get_len() to cbuf_get_length().
Fixed a bug in cbuf_get_length() that would have returned an error code in
a size_t (now returns 0 in that case).


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3692 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-27 16:42:31 +00:00
Stefano Ceccherini
15cfed465c Fixed sort_rects(). Rects are sorted by their top value, not by their left as I tought in the first place. I had already fixed or_region_no_x, I just forgot to update sort_rects().
Fixed a typing bug in PrintToStream().
Added a comment.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3689 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-27 06:21:50 +00:00
Axel Dörfler
ebb226d544 Removed now unused headers (prototypes are now in builtin_fs.h).
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3688 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-27 03:50:26 +00:00
Axel Dörfler
87357f1456 Added the pipefs to the build.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3687 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-27 03:49:31 +00:00
Axel Dörfler
ba6ecd2852 Removed unused headers.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3686 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-27 03:49:13 +00:00
Axel Dörfler
e189e20f7e Simplified the vnode creation procedure.
Removed unused headers. Some cleanup.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3685 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-27 03:48:32 +00:00
Axel Dörfler
ecb21fa760 Now bootstraps the pipe file system.
Updated due to recursive_lock_init() change.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3684 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-27 03:46:27 +00:00
Axel Dörfler
5843ebfbda Added very basic pipefs implementation - only handles files right now
(creation, deletion), no reading/writing allowed (or even started),
no select support.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3683 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-27 03:44:28 +00:00
Axel Dörfler
91caecf659 Now gives its tm rlock a name - note, this doesn't check the return code
of this function!


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3681 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-27 03:28:12 +00:00
Axel Dörfler
a5bc38081e Will no longer fail if the recursive_lock couldn't be created - that does
*not* change the previous behaviour (well, I added some debug output), since
the former recursive_lock_create() did always return B_OK, no matter if the
lock could be initialized or not.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3680 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-27 03:27:12 +00:00
Axel Dörfler
783f7b5ccd Now gives its recursive lock a name and checks its return code.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3679 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-27 03:25:24 +00:00
Axel Dörfler
b652f04990 Removed the pools.c file from the build, since it's a) not used anymore,
and b) doesn't compile due to the latest lock changes (see lock.c 1.7).


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3678 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-27 03:24:37 +00:00
Axel Dörfler
68fe151fb9 Fixed the return code of recursive_lock_init() (formerly known as
recursive_lock_create()) - this reveals bugs in other parts of the system (VM),
but those won't be fixed for now (because of VM2).
Added the possibility of giving a recursive lock a name.
Moved the functions for benaphores and rw-locks to this file (they were
part of the lock.h header as defines).
Removed unused headers.
Small cleanup.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3677 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-27 03:22:57 +00:00
Axel Dörfler
e59c643b47 Implemented the pipe() command - ready for the upcoming pipefs implementation.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3675 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-27 02:55:15 +00:00
haydentech
99966f7887 Namespace/gcc3 fixes
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3671 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-26 15:39:32 +00:00
haydentech
5d5860e4f1 3 changes to remove infinite loops or crashes
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3670 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-26 15:36:06 +00:00
Stefano Ceccherini
0147056b81 Added a partial implementation of BRegion
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3669 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-26 10:09:01 +00:00
Matthew Wilber
d1de8bd2d4 info window now shows useful information about the currently open image. This information includes bitmap colorspace and dimensions, image type and translator name and version
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3668 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-26 03:25:51 +00:00
beveloper
8df36cdd65 Added experimental copying of the left channel from either input 1 or 0,
there seem to be some resampling related bugs


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3667 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-25 21:27:00 +00:00
haydentech
3aa0c906ba Fixed a crasher in setFocus() and some dead code in ResizeTo()
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3666 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-25 20:50:42 +00:00
haydentech
97c931825e Plugged some holes in the last checkin
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3665 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-25 19:40:45 +00:00
beveloper
78563dcaec use sample size when calculating channel offsets, no more buffer overruns
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3664 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-25 18:04:34 +00:00
beveloper
16cecbde36 some workarounds, fMixStartTime is now always 0,
delay mix thread if timesource has negative time,
calculate correct time and frame base for mix thread


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3663 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-25 16:21:41 +00:00
Jérôme Duval
c8c8057167 Here is an alpha version. Restart media services still crashes the app
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3662 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-25 10:36:38 +00:00
beveloper
b9bc85776c added mixing thread, as well as start and stop
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3660 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-25 00:19:49 +00:00
Axel Dörfler
320b131c05 Now with all obstacles removed, added the bootloader heap test to the build.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3659 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-25 00:15:43 +00:00
Axel Dörfler
db48f1ebbe Now it does also build on non-BeOS platforms...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3658 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-25 00:14:14 +00:00
Axel Dörfler
4182dd7c6e This fixes the incorrect inclusion of our stdio.h header - it will now include
the platform native stdio.h on BeOS and Linux.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3657 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-25 00:11:11 +00:00
Ingo Weinhold
0843d5108a Minor changes. The file for the file device lives now in ~/tmp instead of /tmp to be persistent.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3655 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-25 00:06:46 +00:00
Ingo Weinhold
7eb12758ed * Fixed the locking functions: A lock also requires a reference to be
kept.
* Fixed find_{disk_device,partition}().
* Implemented delete_partition(). The device/partition management functions
  should now be complete.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3654 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-25 00:04:55 +00:00
Ingo Weinhold
86e8beea7d Added boolean parameter to IsReadLocked() to specify when a write lock shall not be considered as read lock.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3653 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-25 00:00:34 +00:00
Ingo Weinhold
eba400a809 We need the virtualdrive header for the file disk device stuff.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3652 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-24 23:58:25 +00:00
Ingo Weinhold
f5650b0a07 No real change. Added and removed debug output. :-)
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3651 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-24 23:57:33 +00:00
Ingo Weinhold
b23394f957 * Implemented what was left to do for KDiskDevice and KPartition
management regarding removal and deletion of objects.
* Fixed the file disk system related stuff. KFileDiskSystem now uses the
  virtualdrive driver. The former method was seemed simple and brilliant,
  but the B_SET_PARTITION ioctl wouldn't work.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3650 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-24 23:56:16 +00:00
Ingo Weinhold
7a424c3923 * Renamed virtualdrive.c to .cpp to be able to use the saner syntax.
* Improved the driver: It now publishes a control device and ten `data'
  devices. Via an ioctl one can assign an arbitrary file to a free data
  device. (The devices are published in /dev/misc instead of /dev/disk to
  prevent them from being scanned by the Tracker and DriveSetup.)
* Added a small command line tool to (un)register files that way.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3649 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-24 23:45:03 +00:00
Axel Dörfler
cc74989eb6 Utilizes the new BuildPlatformTest rule - added a comment on how to build
this test correctly with the current posix headers.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3648 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-24 22:58:35 +00:00
beveloper
7b0daf5cca allocate mixer buffers of the correct size,
place incoming data in input specific mix buffer


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3646 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-24 22:41:02 +00:00
beveloper
299d70ad2d added helper functions for buffer<->framerate<->duration conversions
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3645 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-24 22:39:13 +00:00
Axel Dörfler
e548161b59 A Jamfile for the heapTest.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3644 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-24 18:11:25 +00:00
Axel Dörfler
4f621b0aa3 Jamfile to build the thing
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3643 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-24 18:10:19 +00:00
Axel Dörfler
1f001dfa88 A test application for the boot loader heap allocator.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3642 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-24 18:09:30 +00:00
Axel Dörfler
1b4a09278b A simple heap implementation for the boot loader - already tested, and working well.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3641 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-24 18:05:54 +00:00
DarkWyrm
a8c44e89f8 Added a *serious* speedup to window move code
Added a couple more empty message handlers to ServerWindow
Improved DefaultDecorator - works better now
DisplayDriver::CopyRegion added and implemented it for ViewDriver


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3637 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-24 13:55:18 +00:00
Stefano Ceccherini
4f4f381f93 hrm... this should be rdef, not rsrc
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3636 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-24 10:24:39 +00:00
Stefano Ceccherini
359a1af6c0 Some more cleanups... finally fixed the multi workspace refresh bug.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3635 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-24 10:01:58 +00:00
DarkWyrm
6ef98483f5 Removed some bugs to allow the server to run. We can now display (but not play with) a real BWindow!
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3634 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-24 01:01:20 +00:00
DarkWyrm
44e0bbe4be Removed some compiler warnings
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3633 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-24 00:14:33 +00:00
Ingo Weinhold
b4ec16d069 Removed the disk scanner tests from the build.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3629 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-23 16:54:02 +00:00
Ingo Weinhold
6ab18748f3 Removed invocations of UsePublicHeaders, which was a no-op anyway.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3628 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-23 16:53:22 +00:00
DarkWyrm
6b76dd01f5 Can get replies as PortMessages now
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3627 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-23 13:18:39 +00:00
Tyler Dauwalder
1fe39d4d37 Tests for the SinglyLinkedList class.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3626 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-23 05:57:47 +00:00
Tyler Dauwalder
17befbdd60 Add-on for the KernelUtils test suite.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3625 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-23 05:57:01 +00:00
Tyler Dauwalder
97d879b51e Jamfile for the kernel utils tests
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3624 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-23 05:56:38 +00:00
shadow303
b511995b2f gcc3 fixes & other minor tweaks
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3619 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-23 02:54:52 +00:00
shadow303
3368f55060 Add partial handling of graphics messages
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3618 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-23 02:53:55 +00:00
shadow303
c27b0019d6 gcc3 cleanup & fix stupid mistake
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3617 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-23 02:48:28 +00:00
Matthew Wilber
ce5a2573d3 added beginnings of InfoWindow -- window that displays as much info as possible for currently open document
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3616 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-23 02:20:43 +00:00
Ingo Weinhold
24d57dc067 Added KFileDiskDevice and the file with the disk device type strings.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3614 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-22 23:28:04 +00:00
Ingo Weinhold
38cf1a986c Small fixes. Make use of the types of types defined in <DiskDeviceTypes.h>.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3613 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-22 23:27:00 +00:00
Ingo Weinhold
1dc16d7092 Added BFS module.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3612 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-22 23:17:26 +00:00
Ingo Weinhold
d6788c75c2 Dump()s the devices now and creates a file disk system.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3611 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-22 23:17:02 +00:00
Ingo Weinhold
4ab0785cd8 Ported the BFS module over to the new disk device manager API. It still lives here to not interfere with Axel's FS add-on. Should be merged some day.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3610 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-22 23:15:37 +00:00
Ingo Weinhold
e38b62f20d Fixed a bug I recently introduced.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3609 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-22 23:13:08 +00:00
Ingo Weinhold
62b9e141e1 Added a find_disk_system(). I first thought, this might be a good idea, but I'm not so sure anymore.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3608 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-22 23:12:20 +00:00
Ingo Weinhold
9007acaee3 Added Dump(). Small fixes.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3605 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-22 23:04:56 +00:00
Ingo Weinhold
fcf461b32c Implemented the scanning functionality.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3604 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-22 23:03:58 +00:00
Ingo Weinhold
b22221ad17 Minor changes to the KDiskSystem interface.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3603 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-22 23:03:17 +00:00
Ingo Weinhold
38d5e95af9 Support for creating and deleting (the latter not yet implemented) file disk devices. Added file system addition.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3601 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-22 23:00:20 +00:00
Ingo Weinhold
bdc530c737 Some small adjustments for KFileDiskDevice. Added Dump().
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3600 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-22 22:57:42 +00:00
Ingo Weinhold
242a2cbef2 Define the values in the source file rather than in the header.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3599 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-22 22:55:21 +00:00
Ingo Weinhold
17750c7774 Added a special disk device class, that is responsible for representing
files as disk devices. This will not only be great for testing the
file and partitioning system modules' writing capabilities, it will also
just be a nice feature to have.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3598 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-22 22:54:16 +00:00
DarkWyrm
cd902621dd Minor patch to unbreak the build
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3597 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-22 21:01:57 +00:00
Niels Sascha Reedijk
2c5845b559 Improved the way that version id's were parsed. Also added version id for the
rtl8139D. Phillipe, let's start testing!


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3596 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-22 18:55:13 +00:00
DarkWyrm
21099b6971 Separated PortQueue and PortMessage into separate files.
Added read methods to PortMessage


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3594 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-22 17:17:40 +00:00
beveloper
aa1480c7be cleanup disassembly output by using local labels
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3593 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-21 02:31:58 +00:00
Matthew Wilber
8cfb94cd04 removed tracker to app user feedback, added comments
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3592 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-21 02:15:47 +00:00
beveloper
50be0c99cf GCC is way too smart or buggy and will (at least in this case) remove (optimize away) non __volatile__ asm statements :(
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3591 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-21 02:08:03 +00:00
beveloper
88777023cd support endian adjustment,
other small changes


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3590 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-21 01:57:39 +00:00
beveloper
526735b289 There we go, a dedicated byte swapping class for endian adjustment.
I even throw in a piece of premature optimization.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3589 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-21 01:56:30 +00:00
Matthew Wilber
ca699cf3d4 initial check in for Inspector - image viewer (and later on, hopefully documents in general viewer) for developers of Translators and users of the Translation Kit in general
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3588 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-20 22:23:58 +00:00
beveloper
a4b8db8530 identify mixer channels by a type number (0 to 31)
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3587 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-20 21:39:01 +00:00
beveloper
c6f7aae127 synced
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3586 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-20 21:01:09 +00:00
beveloper
2e9d660756 mixer input buffer assignment and gain setting implemented
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3585 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-20 16:55:19 +00:00
Marc Flerackers
3c4f452b0c Fixed some allocation bugs, and a play bug
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3584 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-20 14:02:46 +00:00
Matthew Wilber
ce189e5c0b added Inspector
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3582 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-20 02:48:47 +00:00
Ingo Weinhold
37faaaded5 Made the (BHandler*, BLooper*,) constructor more robust. Now the looper list is locked and the looper checked for validity.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3581 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-20 00:18:56 +00:00
Ingo Weinhold
adf43596d6 Added missing includes.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3580 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-19 23:58:57 +00:00
Axel Dörfler
f14bae95b6 Renamed "blocks" to "blocksRequested" in Inode::GrowStream() to make its
usage clearer. Also added a comment that explains why it's okay that
blocksNeeded and blocksRequested can be different.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3579 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-19 17:11:53 +00:00
beveloper
5ac4fbd70d clean up of debugging functions
FATAL is now replaced by ERROR and active at DEBUG=1 or above
TRACE is active at 2 or above
PRINT(level, ...) can be used for DEBUG= level or abode
INFO is removed


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3578 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-19 14:53:41 +00:00
Niels Sascha Reedijk
93780ea379 Implemented free hook. The driver now cleanly works when the net_server is restarted via the Network preference panel.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3577 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-19 14:52:59 +00:00
beveloper
e6c7c99fc9 added connecting/disconnecting of inputs/outputs
changed debug functions
added multiaudio format correction
added workaround for broken BeOS R5 media_format:SpecializeTo()
fixed AudioMixer::Connect function to use correct destination
added utility functions
fixed locking bugs


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3575 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-19 14:09:00 +00:00
Philippe Houdoin
a91f266ff3 Hide the accept() trick more deeper: now the stack driver manage the trick himself.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3572 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-19 01:02:50 +00:00
Philippe Houdoin
5d7c65c278 Rollback to original xBSD DNS resolver implementation _res global variable name.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3571 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-19 00:16:09 +00:00
Philippe Houdoin
662c015f8a Fix the undefined _res symbol linker error: we don't link anymore our own libnet.so
against default libs, which include BeOS's libnet.so)!


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3569 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-18 23:30:42 +00:00
Philippe Houdoin
66914f157d Bad duplicate case line killed.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3568 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-18 23:03:08 +00:00
Philippe Houdoin
e5fb9ab8da Trying to be quicker than shatty to add more ids, courtesy of pulse 1.08 on bebits.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3567 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-18 21:40:15 +00:00
Niels Sascha Reedijk
26e367740a Fix an issue where the _res symbol is undeclared due to another symbol with
the same name somewhere else( I think). At least it works now.  Renamed
to _resolve_configuration (probably will never clash with anything else ever)


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3565 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-18 19:03:37 +00:00
Axel Dörfler
4a9d9dfa14 Added new RecursiveLock and RecursiveLocker classes.
Added file system global locking around creating, deleting, and renaming
inodes - that's not nice, but since we have only sequential journal access,
it won't hurt concurrency much. The locks are needed to prevent certain
things from happening like two threads could theoretically create the same
file twice (one of them would have failed, but relatively late in the process).
Anyway, a better locking scheme will be implemented at a later date, but maybe
not for R1.
Small cleanup.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3562 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-18 15:11:31 +00:00
Niels Sascha Reedijk
6ad250bc87 In theory the driver should now work. though I'm not really buying it yet, I
think that it shouldn't drop any packets anymore (only delay them)
- I implemented a packet wrap, so after 64k the driver will start over again
- I fixed a bug where packets with the largest ethernet frame size (1514)
  weren't accepted.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3561 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-18 10:45:52 +00:00
Axel Dörfler
274e6fefaa Removed the new_vnode() timeout for busy vnodes.
Fixed the op-description send_notification() gives - notify_listener() now
only prints out the op value, since it will call send_notification() anyway.
The tracker doesn't try to query files on B_ATTR_CHANGED or when node == 0,
or name == NULL.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3560 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-18 00:01:12 +00:00
Axel Dörfler
55288b8eda Added a sys_open_entry_ref() call to the VFS layer.
Implemented the beginnings of a Tracker like mode in the fs_shell - started
and stopped using the new "tracker" command; it will get all notifications
the file system sends.
Right now it's very simple, it just opens the file, does a stat(), and closes
the file again, and guess what, I could reproduce our favourite problem with
it!! So it will be finally fixed in the next few days.
Some cleanups.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3559 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-17 22:02:23 +00:00
Ingo Weinhold
09eceed9b8 Added support for installing the networking stuff. Use: jam [un]install-networking.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3557 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-17 18:15:52 +00:00
Niels Sascha Reedijk
1a20f41c7e I DID IT
Sorry for the enthousiasm. For the first time in my life a made a driver
somewhat work. There's still a major list of things to do, but at least I
feel safer now that this is working. I can already do pings. Moreover, I'm
doing this commit with my own driver. I'm just ashamed for the major mistake
I made that took me so much time to find. I'm off sending this beast to
testers.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3555 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-17 14:02:51 +00:00
Niels Sascha Reedijk
b1045c6e31 Fix dprintf warnings
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3554 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-17 13:42:32 +00:00
Matthew Wilber
60afeeca54 initial check in for PPMTranslator from BeOS R5 sample-code folder
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3551 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-17 00:17:30 +00:00
Matthew Wilber
fae8d042d5 added PPMTranslator
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3550 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-17 00:15:26 +00:00
Axel Dörfler
dcec969499 get_driver_settings_string() now returns the new B_BUFFER_OVERFLOW code
if the buffer is too small for the settings string.
Added/changed some comments.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3548 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-16 22:17:09 +00:00
Axel Dörfler
5133bded7f Fixed some warnings that occured with -Wall - the tests should be compiled
with this by default, like the whole project, too.
Removed the B_FILE_NAME_LENGTH definition, since our headers are now correct.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3546 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-16 19:56:33 +00:00
Axel Dörfler
4a893da100 Added a license to the top of the file.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3545 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-16 19:33:05 +00:00
Axel Dörfler
6ab6d0fda4 Changed one of the built-in settings strings to test the new '=' behaviour.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3544 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-16 17:13:56 +00:00
Axel Dörfler
b1b0cf9114 The '=' symbol can now be used without surrounding white space: it will
be accepted between the parameter name and its first value - but it will
be added to any other values for compatibility reasons.
put_string() now correctly quotes strings if needed - the new put_chars()
function puts out a string unchanged (both only used internally anyway).
Added some comments.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3543 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-16 17:13:10 +00:00
Marc Flerackers
7ea7a8928a BMenuField
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3542 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-16 08:32:55 +00:00
Marc Flerackers
53056ca585 *** empty log message ***
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3541 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-16 08:17:19 +00:00
Marc Flerackers
b7fdea42f4 *** empty log message ***
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3540 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-16 08:05:30 +00:00
Marc Flerackers
67105bd61c Fixes
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3539 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-16 07:58:45 +00:00
Marc Flerackers
007ed8c58b Compilation fixes and BOutlineListView
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3538 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-16 07:55:04 +00:00
Marc Flerackers
43802569fe Fixes
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3537 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-16 07:43:42 +00:00
Marc Flerackers
9cb2dbe29d Fixes
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3536 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-16 07:27:24 +00:00
Marc Flerackers
0e06ebe5d7 Lots of changes
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3535 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-16 06:49:36 +00:00
Marc Flerackers
8053a364e1 Assynchronous mouse hooks and correct handling of BRadioButtons in BBox-en :)
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3534 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-16 06:37:33 +00:00
Marc Flerackers
64603764f9 *** empty log message ***
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3533 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-16 06:33:32 +00:00
Axel Dörfler
2c67210865 Added two more ToDo items so that I do not forget about them.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3531 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-15 21:14:27 +00:00
Axel Dörfler
659b432cab Now also uses CHECK_MALLOC to enable memory checking instead of MALLOC_DEBUG
directly.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3529 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-15 20:27:53 +00:00
Axel Dörfler
e5c72c1505 Added the memory checking support in the Jamfile; use "CHECK_MALLOC=1 jam"
to activate it.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3528 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-15 20:26:20 +00:00
Niels Sascha Reedijk
a068a53e10 Update TODO accordingly
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3527 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-15 20:10:43 +00:00
Niels Sascha Reedijk
99e393eacc I have changed the way packet reception is handled. Instead of managing it at
the interrupt handler, now it is done in the read_hook itself. This means that
less memory is used because the packet reception isn't double-buffered anymore.
It also wasn't the performance it I'd expect it to be (probably thanks to BeOS
scheduling!). The problem with the strange loss of around 50% of the packets
remains.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3526 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-15 20:10:09 +00:00
beveloper
7ee2c8049c Internal API rewritten, BMediaNode and derived classes functionality implemented.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3525 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-15 18:17:56 +00:00
Matthew Wilber
8636b80151 changed identify string from "TIFF Image*" to "TIFF image*" so that it is more like Be's
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3524 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-15 16:45:34 +00:00
Matthew Wilber
8397ee2c8b added support for Fax Group 3 TIFF images that use the EOL ends on a byte boundary option and changed identify string from "TIFF Image*" to "TIFF image*" (more like Be's)
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3523 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-15 16:43:54 +00:00
Axel Dörfler
4a5e9fec88 Updated some comments.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3522 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-15 13:23:38 +00:00
Axel Dörfler
7862de2e87 Removed the old driver_settings.c file.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3521 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-15 13:22:50 +00:00
Axel Dörfler
5d25f8fb7b Added the new kernel_os_main.o to the kernel build.
Replaced the "hostname" app with the "tls_test" in the standard build.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3520 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-15 13:17:01 +00:00
Axel Dörfler
1907b4d0ca Added libroot/os/driver_settings.c to the build - this is now also part
of the new kernel_os_main.o object file.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3519 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-15 13:14:36 +00:00
Axel Dörfler
3e758cd63f Removed the core/driver_settings.c from the kernel build.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3518 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-15 13:13:24 +00:00
Axel Dörfler
25ce6eff93 Added a driver_settings test application. It parses all settings in
~/config/settings/kernel/drivers first, and then (re)parses some built-in
settings strings.
Use "-v" to enable verbose output.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3517 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-15 13:08:14 +00:00
Axel Dörfler
7fc8f0544e Fixed addition of empty parameters in certain situations.
Improved the output of get_driver_settings_string().
Small cleanup.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3516 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-15 13:03:49 +00:00
Axel Dörfler
b959dda1b7 This replaces kernel/core/driver_settings.c - its functionality will now
be available to userland applications as well.
Furthermore, the API & grammar has been extended. There is now a '=' allowed
between the key and its values. Also, '\n' can now be replaced with ';'. These
changes allow flat driver_settings strings.
It doesn't work perfectly right now, but it's a start. A test application
will be added soon, the kernel file will be removed soon as well, and the
build updated.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3515 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-15 04:06:43 +00:00
Matthew Wilber
239df88d60 added test for image that uses T4 fill EOL byte
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3514 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-15 02:43:54 +00:00
Matthew Wilber
b87195f2a4 added signed types, fixed printing for unsigned types, added more detail for some fields, other minor improvements
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3513 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-15 02:42:04 +00:00
Ingo Weinhold
5e56ad436e Delete the disk device manager when done. This is not only good practice, but also allows the manager to unpublish all partitions.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3512 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-14 00:13:06 +00:00
Ingo Weinhold
e5e5ddc13a ep_scan_partition(): Removed erroneous check for cookie (it's unused here), and fixed child index counting.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3511 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-14 00:12:12 +00:00
Ingo Weinhold
08427f8cfc Publish partitions in _ScanPartition() and unpublish them in the destructor.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3510 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-14 00:08:56 +00:00
Ingo Weinhold
f7672ebc25 * Made {Publish,Unpublish}Device() virtual and implemented them in
KPartition and as no-ops in KDiskDevice.
* Prefixed partition names with "obos_" to not interfere with R5's
  partition names.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3509 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-14 00:06:57 +00:00
Ingo Weinhold
205248dd7a Didn't deal correctly with files containing more than one module. Fixed.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3508 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-13 22:11:44 +00:00
Ingo Weinhold
5609b2963b Added "shared" headers for BObjectList.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3507 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-13 22:09:38 +00:00
Ingo Weinhold
2609ebac90 Several fixes necessary to get the partition scanning working.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3506 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-13 22:08:10 +00:00
Ingo Weinhold
07d370e32a Added tiny disk device manager test.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3505 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-13 22:05:48 +00:00
Ingo Weinhold
852d12ef4c Ported the intel partitioning system module to the new interface
(disk device manager) and moved it to a nicer place.
First tests look good, though my hard disk structure doesn't even
have extended partitions. Going to install Linux now...


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3504 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-13 22:01:51 +00:00
shatty
be4ab5d842 use OBOS_CPU_TYPES so compiling with R5 header is still possible
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3503 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-13 19:45:16 +00:00
shatty
8af0e1199f not all iv_model2 are xeon so I changed it back to IV
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3501 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-13 18:26:16 +00:00
shatty
6bc3e59c35 added some more ids, courtesy of pulse 1.06 on bebits
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3498 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-13 18:11:10 +00:00
beveloper
890238390f implemented media_format Matches() and SpecializeTo()
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3496 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-13 16:25:56 +00:00
beveloper
9a232d4e5c added DefaultMediaTheme.cpp
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3495 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-13 13:19:56 +00:00
beveloper
01fa698a92 implemented BParameter::SetValue() and BControllable::SetParameterValue()
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3494 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-13 12:43:52 +00:00
beveloper
76af595aa9 initialize mNode variable
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3493 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-13 12:07:58 +00:00
Axel Dörfler
6836c3cb8c Add a first non-functional version of the default media theme.
Implemented all needed functionality in BMediaTheme to use this default
theme - it's currently disabled, though (or should be).


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3491 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-13 03:56:28 +00:00
beveloper
17488f48b1 Implemented BParameter::GetValue() and BControllable::GetParameterValue()
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3488 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-13 00:42:55 +00:00
Philippe Houdoin
dbafe172c0 Import, on behalf of Niels Reedijk (SF ID: nielx), his RTL8139 network cards driver.
Add a Jamfile to build it (thanks to Axel's sis900 jamfile).


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3487 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-12 23:39:38 +00:00
Ingo Weinhold
ef9b1b52ee Implemented a preliminary disk device scanning in KDiskDeviceManager.
Some changes to KPartition, KDiskDevice, KDiskSystem on this way.
Still missing is KPartition::Publish() and its invocation in
KDiskDeviceManager. Then everything should be in place to start with
porting the scanning parts of our disk system modules.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3486 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-12 22:21:10 +00:00
Axel Dörfler
f3df767f76 Added a BeOS compatible strdup() implementation; unlike other strdup()
implementations (and against its standard behaviour), it does now
handle a NULL string parameter gracefully.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3485 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-12 19:35:33 +00:00
Axel Dörfler
0c6fce04e6 Removed the BSD strdup() routine since it is not BeOS compatible.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3484 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-12 19:34:03 +00:00
Axel Dörfler
6b3445e288 Applied NewOS patch 17xx (its repository is currently down...): now sets
the fs register correctly - not that it should have much effect since it's
rarely used anyway (no reason to might be wrong, though) :)


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3483 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-12 03:41:38 +00:00
Axel Dörfler
241ca61820 Fixed a stupid typo that got in in the last minute.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3482 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-12 02:49:51 +00:00
beveloper
be2a24894f Mixer rewrite, work in progress.
Moved Input and Output handling into the MixerCore class,
format and connection negotiation remains in AudioMixer class.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3481 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-11 23:46:33 +00:00
Ingo Weinhold
ac63679417 Small changes in the header, and implemented everything needed for scanning.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3480 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-11 22:04:34 +00:00
Ingo Weinhold
1bf21e6a40 * Added CreateChild().
* Added Publish/UnpublishDevice(). Not implemented yet.
* small fixes


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3479 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-11 22:03:26 +00:00
Ingo Weinhold
13a452eaee Added an Init() amd dealt with the PrettyName().
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3478 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-11 22:00:59 +00:00
Ingo Weinhold
450c7dd609 Added basic disk system management.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3477 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-11 21:59:27 +00:00
DarkWyrm
e2242e6916 Added rcs, gzip, sed, and associated utilities.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3476 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-11 15:56:10 +00:00
haydentech
98833b15bf Cleaned-up the std namespace support
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3475 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-11 14:34:51 +00:00
haydentech
2e9a7f0c99 Fix unintended code path when debug macros are turned off
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3474 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-11 14:29:46 +00:00
haydentech
93c891b0e6 Removed infinite loop in BSeparatorItem
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3473 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-11 14:19:43 +00:00
haydentech
b7b28df023 Conform more tightly with the BeBook, and fix a few crashing bugs in the process
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3472 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-11 14:13:29 +00:00
Stefano Ceccherini
303dc7b976 Switched to rdef resource format, should finally fix the build.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3471 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-11 06:28:13 +00:00
Axel Dörfler
9bf6c6c63d Work in progress of the BParameterWeb rework; almost every line has been
changed, sorry.
Fixed many bugs in the old implementation, this one is now also endian-aware,
is faster on many things, works with stampTV, ...
Cleaned up a lot, most of it now complies with our style guide. Added a bunch
of helper functions that makes the code much better (to read), and easier to
maintain.
It's not yet completed though - will do that soon.
Also still missing is any documentation about those classes - I will also
work on this.
The changes have to downsides, though:
- I broke compatibility with the R5 flattened format. It shouldn't be a big
  issue, since it was never thought to be put on disk - I will look into
  that, though.
- the previous implementation had a strange policy when the Unflatten()
  methods had reason to fail - it tried to read as much as possible instead
  of just failing and leaving an invalid object behind. The new implementation
  will just fail - the object you called Unflatten() from might not contain
  useful information after this, though.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3470 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-11 03:12:46 +00:00
Ingo Weinhold
ec9690ccf2 Added new files, and we now link against our kernelland_emu library, because modules are used.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3469 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-10 22:47:10 +00:00
Ingo Weinhold
6778f21163 Some fixes in the header and a very basic implementation. In theory the functionality for scanning partitions is implemented, as well as loading/unloading the partition module.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3464 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-10 22:40:09 +00:00
Ingo Weinhold
0b6c74bbe3 Implemented some more bits of KPartition. Added a very useful Open() method.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3463 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-10 22:37:43 +00:00
Ingo Weinhold
f254d01839 Implemented KDiskSystem. Should be almost complete.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3461 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-10 22:36:31 +00:00
Ingo Weinhold
29a37d780d Implemented some basics of KDiskDeviceManager.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3460 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-10 22:35:57 +00:00
Ingo Weinhold
537635f1d1 Implemented basic parts of KDiskDevice.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3459 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-10 22:35:12 +00:00
Ingo Weinhold
be433342af A read-/write locker. Again, something that might also be useful elsewhere in the kernel.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3457 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-10 22:32:33 +00:00
Ingo Weinhold
86ea6f7f9b A slightly modified BLocker. We should provide something like this for the kernel.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3456 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-10 22:29:52 +00:00
Ingo Weinhold
1844af0bfa Mostly empty implementations for the disk device manager classes. Save KPartition which is partially done.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3455 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-09 23:10:09 +00:00
Bruno G. Albuquerque
0be20072c4 Trying to commit it as a binary file.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3452 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-09 12:51:15 +00:00
DarkWyrm
14f0c2cfa2 Removed a minor bug from the InitData server communication code
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3451 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-09 12:36:56 +00:00
Stefano Ceccherini
518c1e3f62 When you changed the refresh rate for all workspaces, then selected "cancel" the changes didn't revert... Fixed. Some more cleanups. Some code (not compiled right now, it works partially) to change the way the example screen is rendered (bitmaps instead of drawing)
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3450 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-09 09:34:12 +00:00
Axel Dörfler
c59538b901 Some cleanups, courtesy of Jack Burton.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3449 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-08 18:37:42 +00:00
Ingo Weinhold
d37e75d958 If our incomplete BMessage (missing sending of messages) is linked into libopenbeos, anything involving the registrar blocks on library initialization (more precisely anything linked against libopenbeos and started while the registrar is running).
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3448 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-07 17:38:32 +00:00
Ingo Weinhold
ae76aede51 Added TestApp.{cpp,h}, since tests using the BTestApp class defined in
libcppunit.so don't work anymore with it, since it uses the BApplication
code of libbe.so. Several tests still fail now, but none crashes.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3447 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-07 17:32:37 +00:00
beveloper
678c20170c added new mixer components
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3446 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-07 01:11:51 +00:00
beveloper
2eb7012d8e added missing header file
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3445 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-06 20:21:54 +00:00
Ingo Weinhold
a3b4d9e9de Removed the tests for version 1.x of the DiskDevice API from the build.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3444 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-06 15:48:40 +00:00
Ingo Weinhold
20ff45e32d Removed version 1.x of the DiskDevice API from the build. Will be replaced by version 2.x in the not so distant future.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3443 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-06 15:47:44 +00:00
Ingo Weinhold
7dec9ee920 Removed the disk_scanner add-ons from the build.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3442 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-06 15:46:10 +00:00
Jérôme Duval
adc3b786d1 ok the right file this time ...
*Volume* methods implemented; tested with SoundPlayerTest.cpp; only valid when connected with R5 AudioMixer


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3440 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-06 14:22:26 +00:00
Jérôme Duval
37ed595f3a *Volume* methods implemented; tested with SoundPlayerTest.cpp; only valid when connected with R5 AudioMixer
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3439 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-06 13:56:44 +00:00
Marc Flerackers
1f46aaf9f1 Check-in for Stefano Ceccherini: cleanup the code a bit, removed the hardcode colors
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3438 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-06 08:48:56 +00:00
beveloper
908eaf852b removed ASSERT
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3437 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-06 01:19:22 +00:00
beveloper
715be7e1d4 added symbols required by BeOS R5 emu10k.media_addon
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3434 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-05 18:01:00 +00:00
beveloper
545124e6a1 disable node stopping on the system mixer
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3432 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-05 16:55:43 +00:00
Ingo Weinhold
0582df0213 Removed the old, nicely working, DiskDevice API support from the registrar. We're going to reimplement it in the kernel.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3430 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-04 21:31:00 +00:00
Ingo Weinhold
32453e90e0 Removed the old, nicely working, DiskDevice API support from the registrar. We're going to reimplement it in the kernel.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3429 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-04 21:20:23 +00:00
beveloper
fb71d3a960 fixed copy&paste errors
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3421 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-04 00:53:15 +00:00
beveloper
9b875fba0c added remaining float_to_*()
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3420 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-04 00:41:02 +00:00
beveloper
88e430cbeb added remaining *_to_float()
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3419 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-04 00:27:48 +00:00
beveloper
7ca83dacf0 added float_to_float resampling
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3418 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-04 00:19:39 +00:00
beveloper
af995aeda6 added symbol Connected__15BBufferConsumerRC12media_sourceRC17media_destinationRC12media_formatP11media_input
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3417 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-03 23:52:14 +00:00
ejakowatz
0cc48ce6f9 Unit tests to ensure robust handling of bogus params to convenience funcs
plus fixes for the bugs they exposes.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3416 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-03 23:22:08 +00:00
beveloper
575526ff34 added a resampling class
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3415 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-03 22:51:00 +00:00
beveloper
b63f90a895 limit max latency
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3414 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-03 21:10:49 +00:00
beveloper
a0703a47ce fixed BSoundPlayer::Stop() bugs exposed by CL-Amp
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3413 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-03 21:02:38 +00:00
beveloper
cc2b59509b fixed format negotiation
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3411 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-03 19:01:53 +00:00
beveloper
a8c2408c09 fixed format setup, CL-Amp works now
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3410 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-03 19:00:34 +00:00
beveloper
69983609f2 fixed format negotiation and added some more debug output
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3409 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-03 18:59:43 +00:00
haydentech
40ceba30d6 Janitorial work and gcc3-related fixes
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3408 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-03 18:42:22 +00:00
haydentech
d2a9d5e5fe Namespace- and gcc3-related fixes
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3407 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-03 18:34:34 +00:00
haydentech
a0a3f269a4 Namespace- and gcc3-related fixes
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3405 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-03 18:29:29 +00:00
ejakowatz
df1b8782c7 Fixes for bugs in BFlattenable convenience functions (revealed by the new
unit tests).


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3404 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-03 04:38:17 +00:00
ejakowatz
c5d8f91d81 Unit tests for BFlattenable convenience functions.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3403 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-03 04:37:06 +00:00
Axel Dörfler
83d0693448 Added some debug output for unimplemented functionality. Cleaned up a bit,
but should probably rewritten - I think it's already too complex now to solve
that whole task.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3402 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-03 02:57:26 +00:00
beveloper
11b92ae72b next event calculation properly based on frames played in performace time now
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3401 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-03 01:15:18 +00:00
beveloper
f180ef79b2 Fixed crash in Cortex caused by BMediaRoster::MakeTimeSourceFor()
returning NULL when asked for the system time source.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3400 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-03 00:06:49 +00:00
beveloper
2de73166b5 fixed crash inside string_for_format()
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3399 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-02 23:54:17 +00:00
beveloper
5c2c238d91 fix detection of Firewire devices
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3398 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-02 21:58:11 +00:00
beveloper
4295907bd1 fixed (hopefully) all latency bugs
fixed BMediaRoster::MakeTimeSourceFor()


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3397 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-01 22:09:26 +00:00
beveloper
5917dd5b85 various timing related bugfixes
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3395 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-01 17:18:24 +00:00
Axel Dörfler
8ea8d0c2bb Fixed queries a bit more (maybe even completely...). In several situations,
the old attribute value wasn't evaluated at all.
Also, Index::Update() got a type code of zero, instead of the real value
in situations where this didn't make any sense.
Minor cleanup in kernel_interface.cpp.
New method Volume::CheckForLiveQuery() that checks if there is a live query
depending on the specified attribute - not yet implemented, but already used;
always returns "true" right now, which doesn't cause any harm but reducing
the speed lightly.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3394 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-01 02:55:33 +00:00
Axel Dörfler
cca15c0166 Added a little more debug output in BPlusTree::Find().
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3393 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-01 02:49:38 +00:00
beveloper
2bff4d995e start node at correct performance time
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3391 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-05-30 20:41:04 +00:00
beveloper
1ab3e01897 bugfixes and debug information
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3390 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-05-30 20:34:48 +00:00
Matthew Wilber
cb455797b8 Now, stxtinfo reads the "styles" attribute that StyleEdit uses. So, this program can now be used to see information about what text styles are used in a text file created by StyledEdit. Also, it still can read the Be styled text format that the STXTTranslator works with.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3389 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-05-30 00:19:47 +00:00
François Revol
d9d219a135 forgot some strings in string_for_format()
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3388 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-05-29 18:15:23 +00:00
François Revol
9126f16df4 string_for_format implemented.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3387 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-05-29 17:46:44 +00:00
beveloper
9bedd42cd1 many fixes to improve timing
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3386 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-05-29 17:28:11 +00:00
ejakowatz
67833f26bc Fixed adding pointers. BMessage::AddPointer() was specifying const void*
as the template param (where everything else was using void*) and
BMessage::AddData() was adding the pointer to the pointer as the data.
Unit tests save the day again!


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3385 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-05-29 06:28:28 +00:00
ejakowatz
8e8e1cf6c1 The libapptest.so and libapptest_r5.so addons were getting so big they
couldn't be loaded anymore (and were causing bdb to crash).  So a stub is
loaded instead (libappteststub/_r5.so) which links directly against the
actual libraries.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3384 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-05-29 05:25:44 +00:00
ejakowatz
7dc2890fbb Unit tests for the Pointer convenience functions.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3383 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-05-29 05:23:41 +00:00
Axel Dörfler
58453f3bbb Now sets the magic value in the check_control structure.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3382 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-05-29 01:04:22 +00:00
Axel Dörfler
c3f10b4674 Added a simple magic field mechanism to make chkbfs calls a little more safe.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3381 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-05-29 01:02:18 +00:00
ejakowatz
87142a1ecf Unit tests for convenience functions for BMessenger.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3380 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-05-28 23:37:54 +00:00
Axel Dörfler
f2024b1158 Fixed debug output in bfs_setflags().
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3379 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-05-28 23:12:18 +00:00
ejakowatz
c48aa159a5 Minor tweaks to try and get the remote object stuff working again.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3370 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-05-28 20:24:29 +00:00
ejakowatz
159d60f9fb Unit tests for plain C string convenience functions. Tweaks elsewhere to
deal with necessary modifications to test core.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3369 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-05-28 20:19:35 +00:00
Tyler Dauwalder
e4edcddbc5 Fixed nothrow declaration and definition to what I think should
be the proper values.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3368 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-05-28 07:35:04 +00:00
Axel Dörfler
a9aa5ee181 Implemented bfs_setflags().
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3367 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-05-28 01:56:24 +00:00
Axel Dörfler
a13beecdee Removed the possibility to create a Semaphore object without specifying
a name - that's mostly done to:
1) force better fitting lock names
2) make the API consistent (the empty ReadWriteLock constructor doesn't
   initialize the lock anymore).


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3366 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-05-28 01:34:18 +00:00
Axel Dörfler
20c74d7d25 Fixed reordering of initializer warning - should compile the fs_shell with
-Wall enabled...


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3365 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-05-28 01:32:40 +00:00
Axel Dörfler
ae58716024 Fixed another bad bug caused by calling get_vnode() on a node currently
being constructed: bfs_read_node() created an Inode object independent from
the one set in new_vnode().
As a work-around (the new VFS layer will introduce some better methods here)
we are now using the bfs_inode.etc field as a pointer to our object - just
like BFS has thought to use this field. If bfs_read_vnode() has to wait for
the inode (because it is being constructed), it will use the "etc" pointer
and don't create it's own Inode object.
Almost all changes made change the API to take this case into account:
- new Inode constructor to be able to be created from a CachedBlock
- CachedBlock now has a Keep() method which suppresses the release_block()
  call when the object is destructed.
- a CachedBlock can now be constructed from the contents of another one (by
  calling the source's Keep() method).
- Inode::InitCheck() no longer checks the integrity of the bfs_inode - this
  is now done by bfs_inode::InitCheck() which is optionally called by the
  former (default).
- moved the inline CachedBlock methods out of the class definition (was
  too crowded to be readable).
- new Inode::Initialize() which is called by all Inode constructors
- an Inode object now sets a better name for its read/write lock.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3364 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-05-28 01:27:27 +00:00
Axel Dörfler
1d9fd63d3a The ReadWriteLock class now has an Initialize() method to initialize the
object after creation. This enables the Inode constructor to set a better
name for the lock.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3363 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-05-28 01:12:38 +00:00
Axel Dörfler
24d6529a93 Journal::LogBlocks() now calls cache_write() if the block is already in the
log entry - this is only necessary if the buffer is not the one of the
CachedBlock object.
Journal::TransactionDone() now properly aborts transactions if possible,
instead of just writing them to disk (does only work if the log entry
was not used by other transactions already).
Added a comment about how to speed up writing the log entries a bit more
(though it's not so easy to do, and might not be much faster).


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3362 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-05-28 01:10:22 +00:00
Axel Dörfler
6c66b99b6b The fs-shell kernel's PANIC() now calls the userland debugger.
Fixed a wrong printf argument (block number is %Ld) in release_block().


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3361 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-05-28 01:04:53 +00:00
Ingo Weinhold
5c35d41aab AddResources must precede the rule for building the target.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3360 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-05-27 15:20:14 +00:00
Tyler Dauwalder
968997db5f new(nothrow) is desired by SLList. My definition of nothrow is
a bit sketchy here, but will work for now until I figure out the
proper way to do it.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3359 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-05-27 08:25:15 +00:00
Tyler Dauwalder
c6b0bb0480 Missed a #include <stdio.h>
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3358 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-05-27 08:23:59 +00:00
Tyler Dauwalder
9b6661b079 Added PartitionMap.cpp to the build.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3357 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-05-27 08:10:56 +00:00
Tyler Dauwalder
0d383564c3 - Added beginnings of volume descriptor sequence walking code.
- Accounted for addition of "udf_" to beginning of on-disk structs.
- Accounted for Block<typename> to MemoryChunk change


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3356 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-05-27 08:06:43 +00:00
Tyler Dauwalder
81d91d069a Added DUMP() and PDUMP() macros.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3355 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-05-27 08:04:28 +00:00
Tyler Dauwalder
56f47960a3 - Prepended each struct name with "udf_" to clarify which structs are actually
on-disk data structures.
- More endian-neutrality conversions
- More dump() functions


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3354 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-05-27 08:03:47 +00:00
Tyler Dauwalder
8a079cf89c Initial checkin. Provides mapping of partition numbers to udf_partition_descriptors.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3353 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-05-27 08:01:52 +00:00
Tyler Dauwalder
15eec8a161 Single-linked list courtesy Mr. Ingo Weinhold, here temporarily
until we get our kernel C++ utils library up and running.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3352 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-05-27 08:01:08 +00:00
Tyler Dauwalder
4627317bcd Initial checkin.
Slightly more typesafe static array type than built-in arrays,
with array length information stored implicitly (i.e. consuming no
physical space in the actual struct) via the arrayLength template
parameter.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3351 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-05-27 07:58:08 +00:00
Tyler Dauwalder
4873cabb06 Renamed Block to MemoryChunk, and got rid of the template
parameter in lieu of using reinterpret_cast, which turns out to
be cleaner all in all.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3350 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-05-27 07:57:02 +00:00
Matthew Wilber
b17c6f4bc0 added BApplication object to TranslationTest so that the call to system_colors() in TGATranslator would succeed
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3349 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-05-27 00:48:53 +00:00
Matthew Wilber
fe2aacfad7 added BApplication object so that the system_colors() function call in BMPTranslator code would succeed
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3348 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-05-27 00:48:00 +00:00
Matthew Wilber
8ec8ccef8e added constructor test where bitmap is passed, changed to use typedef when added tests to the suite to clean things up
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3347 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-05-27 00:30:11 +00:00
Axel Dörfler
a476bfc5b1 Now waits for a whole second on the inode to become unbusy - just in case
there is a slow drive. Note, if the system is heavily used and the thread
waiting for the inode to become unbusy is a real time thread, that time
might be not enough - don't have a better solution at hand though (other
than waiting even longer).


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3346 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-05-26 22:40:14 +00:00
Axel Dörfler
3cfd8472f9 Fixed the ominous "new_vnode() already exists with different cookie" bug,
thanks to Bruno for pointing me in the right direction (that has probably cost
him several hours of his life ;-))!
Yes, it was that complicated to fix it...


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3345 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-05-26 22:36:23 +00:00
Matthew Wilber
96a13ed121 added checking for memory allocation failure in MakeConfigurationView
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3344 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-05-26 18:07:29 +00:00
Matthew Wilber
d7be1587b7 initial check in for stxtinfo, a command line program to display information about Be styled text data
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3343 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-05-26 17:55:27 +00:00
Matthew Wilber
8ceceb19ed added stxtinfo
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3342 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-05-26 17:53:26 +00:00
beveloper
8394328625 lots of boring comparisons
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3341 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-05-26 14:44:28 +00:00
Matthew Wilber
fd6e40cd0e added GetConfigurationMessage test and removed an entry for a test file that doesn't exist
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3340 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-05-26 14:38:27 +00:00
beveloper
21871f384e various bugfixes
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3339 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-05-26 12:58:06 +00:00
beveloper
a4289a95c0 fixed initialization, added debug macros
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3338 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-05-26 12:37:52 +00:00
beveloper
5b4256ce42 removed debugging code
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3337 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-05-26 12:37:05 +00:00
Matthew Wilber
bedcc99335 added GetConfigurationMessage test
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3336 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-05-26 03:26:49 +00:00
Axel Dörfler
b807dfb5b1 Updated the help text for "startquery" & "stopquery" to match reality better.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3335 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-05-26 02:19:06 +00:00
Axel Dörfler
6e14268838 The kernel now has support for setting port&token of a query.
The fs_shell is now able to start up to 10 concurrent live queries. Use
"stopquery" to stop them all or just one of them, "startquery" to initiate
one, and "lsquery" to display them all.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3334 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-05-26 02:16:54 +00:00
Axel Dörfler
b0ff9520c0 The Jamfile now compiles with -fcheck-memory if MALLOC_DEBUG is set. Of course,
jam itself will also be checked then, which cries out loud for a better way to
do this. But hey, it works :-)


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3333 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-05-26 02:14:03 +00:00
Axel Dörfler
470a60786e Updated the ToDo list; thanks to Ingo I know now a little bit more about
float/double queries :-)


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3332 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-05-26 01:51:19 +00:00
Axel Dörfler
6ac535c5c5 Fixed another bad bug in the block allocator: the size of the last block
of the block bitmap could be computed wrong - this could cause all sorts
of errors like: overwriting data, creating the "new_vnode with different
cookie" problem, etc.
Should really be the last bug in that piece of code ;-P


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3331 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-05-26 01:50:34 +00:00
Axel Dörfler
e1d37632bb Now takes changed function of Index::Update() into account - queries on
non-indexed attributes now finally work as they should.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3330 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-05-26 01:47:06 +00:00
Axel Dörfler
ab47860c37 Index::SetTo() now sets fName even if the index initialization failed (for
whatever reason).
Index::Update() is now allowed to be called for those indices - in this case
it will just update all live queries.
Added some comments.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3329 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-05-26 01:45:09 +00:00
Axel Dörfler
09ed3db89a Some minor style changes/clean ups.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3328 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-05-26 01:43:14 +00:00
ejakowatz
18a8d114f5 Tests for BString convenience functions, plus a fix to BMessageField for a
bug revealed by those tests.  Gotta love those unit tests!


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3327 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-05-26 01:12:23 +00:00
Philippe Houdoin
1a3b3db436 Fix some typo in BUILD note.
Update headers to reflect the net_data* -> net_buffer* move


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3326 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-05-26 00:34:13 +00:00
Philippe Houdoin
82238517b4 net_data -> net_buffer update.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3325 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-05-26 00:29:28 +00:00