Commit Graph

575 Commits

Author SHA1 Message Date
Tyler Dauwalder
0524d8feef - Added DirectoryIterator.cpp and Utils.cpp to the build
- Added kernel utils to header search path


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3946 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-10 19:55:50 +00:00
Waldemar Kornewald
06a35e5e82 Added some comments.
Added lcp_packet structure.
Changed reference style.
Changed some names.
Added general events.
Completed most events.
Copy constructors and assign operators are now private (just to be on the safe side ;).
SendToDevice() now checks if the packet is small enough.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3930 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-10 11:08:44 +00:00
Philippe Houdoin
2754c9f637 Update after recents net_stack_driver.h changes and make build again.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3928 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-10 01:15:40 +00:00
Ingo Weinhold
dfe606b688 Some changes due to changes in the API. Added disk system iteration.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3909 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-08 23:33:57 +00:00
Ingo Weinhold
671a745561 Modified the visitor implementation a bit. The Visit() with the BPartition* argument now also gets the level of the partition in the hierarchy.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3900 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-08 18:26:15 +00:00
Ingo Weinhold
c54d68a84e Should have waited a few more minutes... Renamed the methods {B,K}Partition::Is{Mountable,Partitionable}() to Contains{File,Partitioning}System(). Similar change for the respective flags (B_PARTITION_{MOUNTABLE,PARTITIONABLE}).
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3899 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-08 17:38:45 +00:00
Ingo Weinhold
fb28706b69 Re-enabled Disk Device API test. Well, almost the complete old code is commented out. ;-)
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3885 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-06 23:14:00 +00:00
Ingo Weinhold
865fc3ef0f Defined a pseudo target for disk system modules.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3884 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-06 23:12:05 +00:00
Waldemar Kornewald
0491e1650c Initial checkin of ppp stack.
Still far from being complete.
Comments are welcome.

In brief: Stack will be modular and written in C++.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3875 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-06 16:46:29 +00:00
Axel Dörfler
307303f592 Forget to complete the comment here, too...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3859 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-05 13:41:46 +00:00
Axel Dörfler
ee01d86fb8 Added the implementation of strnlen() and strlcat() as they are not part
of the R5 libroot.so.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3856 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-05 13:26:03 +00:00
Ingo Weinhold
2386ff94ad Added missing include.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3854 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-05 12:30:23 +00:00
Tyler Dauwalder
51848a1ea2 Added CS0String.cpp and Icb.cpp
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3836 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-04 06:25:00 +00:00
Ingo Weinhold
5b489f6f16 Got rid of the List template class in the disk device manager source dir. Instead we use the Vector based Kernel Utils classes now. Various related changes.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3810 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-02 16:29:33 +00:00
Ingo Weinhold
aabf9e6b16 Oops, seems that I forgot to commit the header for VectorMapTest. It utilizes the OrderedMapTest class and doesn't do any testing by itself anymore.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3809 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-02 16:25:47 +00:00
Philippe Houdoin
239aa01846 Moved ethernet and loopback "interface" module to new net_layer API.
Added an skeleton arp net layer.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3808 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-02 12:58:38 +00:00
Philippe Houdoin
800e122ddc Merge net_protocol and net_interface modules API into a single net_layer one...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3807 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-02 12:57:02 +00:00
Philippe Houdoin
3945152869 datalink.[c|h] -> layers_manager.[c|h]
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3806 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-02 12:53:03 +00:00
Ingo Weinhold
a9083a5d91 Templatized the VectorMapTest class. It's now called OrderedMapTest
and allows to test arbitrary map implementations as long as their
entries are ordered. Added a test for the ImplicitKey strategy for
VectorMap.

Just to make a statement: Our tool chain sucks! It took me three hours
fighting with the compiler until I got a version that didn't make it
run into internal compiler errors or unimplemented features. *sigh*


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3803 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-02 03:24:16 +00:00
Ingo Weinhold
76aa3218cb Added unit tests for VectorMap.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3794 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-01 20:38:32 +00:00
Ingo Weinhold
b3cb5e6061 Some more thorough checking of Find(), which revealed small problems.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3753 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-30 00:56:16 +00:00
Ingo Weinhold
97f7fee9ef Added unit tests for VectorSet.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3752 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-30 00:54:43 +00:00
Ingo Weinhold
c303352a8e Added unit tests for the Vector implementation.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3745 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-29 19:46:22 +00:00
Ingo Weinhold
18c5b0ca7b Added kernel utils test to the build.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3714 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-28 15:52:24 +00:00
Ingo Weinhold
d2f5407bb8 Added an empty test for AVLTreeMap, but uncommented it, since it doesn't compile with our broken compiler.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3713 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-28 15:51:58 +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
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
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
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
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
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
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
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
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
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
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
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
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