Commit Graph

2444 Commits

Author SHA1 Message Date
Alexander von Gluck IV
fbf800f60c add rdef for services preference panel
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40315 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-01-29 16:01:44 +00:00
Alexander von Gluck IV
8422bd4a5e style cleanup; added missing public source headers
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40314 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-01-29 15:42:20 +00:00
Alexander von Gluck IV
28e96d8542 re-organize interface listitem drawing to be more efficent; move profile management button into profile drop-down
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40312 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-01-28 22:36:13 +00:00
Alexander von Gluck IV
f74b3ec2d0 clean up calculations of ListViewItem positions in Interfaces add-on; remove delete profile option which doesn't make sense
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40311 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-01-28 20:21:06 +00:00
Clemens Zeidler
550ffadf08 Add two more test, cleanup.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40299 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-01-27 21:50:42 +00:00
Oliver Tappe
733c783dc9 more work on package kit:
* rip BRepositoryHeader out of BRepositoryConfig and add support
  for it to BRepositoryCache
* implement repository removal
* some minor cleanups


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40290 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-01-25 19:36:09 +00:00
Oliver Tappe
7d7ed9bf4b Mostly style-related changes to package kit:
* drop 'Haiku' namespace
* rename 'Package' namespace to 'BPackageKit'
* renamed all public classes to begin with a 'B'
* renamed BPackageKit::Roster to BPackageKit::BPackageRoster to not
  clash with the BRoster from the application kit.
* fix some instances of public headers including private ones

Some functional changes, too:
* JobQueue now removes and deletes dependants of failed jobs 
  automatically
* JobQueue supports waiting for jobs to become runnable
* added a couple of InitCheck() methods where they make sense
  and invoke those in users of these classes



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40287 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-01-25 17:07:27 +00:00
Oliver Tappe
500bb6305c * WIP-commit of the first parts of the package kit and the pkgman
(console-)tool


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40261 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-01-21 22:18:58 +00:00
Philippe Houdoin
28b7d1d410 Switched to new BNetwork* classes.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40239 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-01-17 11:21:12 +00:00
Ingo Weinhold
4535495d80 Merged the signals branch into trunk, with these changes:
* The team and thread kernel structures have been renamed to Team and Thread
  respectively and moved into the new BKernel namespace.
* Several (kernel add-on) sources have been converted from C to C++ since
  private kernel headers are included that are no longer C compatible.

Changes after merging:
* Fixed gcc 2 build (warnings mainly in the scary firewire bus manager).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40196 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-01-10 21:54:38 +00:00
Oliver Tappe
cda7f65b32 * add fseek_test, which exposes a problem described in #3145
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40054 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-01-01 18:56:06 +00:00
Ingo Weinhold
d23cadce4c [_{kern,user}_]{start,stop}_system_watching()
-> [_{kern,user}_]{start,stop}_watching_system()


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39872 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-16 17:01:23 +00:00
Ingo Weinhold
09d6a5822a Added a test program for the system watching mechanism.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39863 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-16 01:50:27 +00:00
Clemens Zeidler
b1f9962bae Fix ALM test.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39830 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-13 18:52:41 +00:00
Axel Dörfler
5e383e0e63 * Fixed typo.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39813 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-11 00:00:38 +00:00
Philippe Houdoin
56ee7ad5f5 Fix gcc4 build.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39799 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-10 08:35:35 +00:00
Axel Dörfler
c416526666 * Parse the additional information elements the station sends in order to
retrieve the WLAN cipher/key configuration. Might not work perfectly yet; so
  far I've only seen WPA2, and WPA networks.
* Have wlan_test show this extra info.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39792 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-09 22:33:34 +00:00
Axel Dörfler
c9761e828d * Now you can specify the network via MAC address as well using the new
BNetworkAddress link address parser.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39780 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-09 00:07:26 +00:00
Axel Dörfler
8cc57b8b81 * Added a small test application for the WLAN part of the BNetworkDevice.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39775 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-08 22:56:38 +00:00
Axel Dörfler
7c10ef0cf9 * Implemented a new test program for AF_LINK level sockets based on udp_echo.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39720 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-04 14:27:34 +00:00
Axel Dörfler
fc958868b4 * Added some unit tests for BNetworkAddress.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39694 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-01 17:33:09 +00:00
Axel Dörfler
52702ce24d * indent is obviously only 2 spaces.
* BTW, the tests work on GCC4 just fine, only the GCC2 build doesn't work, so
  it's likely to be a newly introduced compiler problem as those tests worked
  under BeOS fine.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39674 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-29 18:51:33 +00:00
Axel Dörfler
8a8c62d587 * Build fix for GCC4.
* Use CPPUNIT_ASSERT() instead of assert() in unit tests.
* Minor cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39673 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-29 18:46:58 +00:00
Axel Dörfler
d463afccb1 * Build fix for GCC4.
* Use printf() instead of the std::cout stuff.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39672 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-29 18:05:32 +00:00
Clemens Zeidler
81c40be9fc Simplify the Pinwheel demo according to the last commit.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39642 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-26 04:23:13 +00:00
Axel Dörfler
06d8bb6f83 * Coding style cleanup, added license. No functional change.
* Note that our tests currently don't work because overloading BTestShell
  doesn't seem to work (the overridden LoadDynamicSuites() is never called).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39634 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-25 21:04:56 +00:00
Axel Dörfler
fed22d2a04 * Fixed build; the width buffer test seems to be gone.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39633 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-25 21:00:56 +00:00
Axel Dörfler
742d83e3d2 * Fixed warning.
* Automatic whitespace cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39632 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-25 21:00:25 +00:00
Axel Dörfler
e3feb1f8af * Added a new AS_DUMP_BITMAPS command.
* Extended app_server_debug command to be able to send it, too.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39599 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-23 21:50:12 +00:00
Axel Dörfler
1d219b3a25 * Added AS_DUMP_ALLOCATOR command that dumps an applications memory allocator to
the syslog/serial output.
* Added app_server_debug command that currently just sends this command to the
  specified teams.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39441 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-15 21:25:03 +00:00
Oliver Tappe
de2e54ace0 Adjust tzset() implementation to better follow the POSIX specs and
make some more perl tests happy.
* no longer expect a ICU timezone ID in the TZ environment variable,
  but only expect this format if the TZ-value is starting with ':'
* accept "standard" TZ-values like "EST5" (of which only "EST" is
  relevant to us) - if such a value is specified, we hardcode the
  timezone name to the given value, no matter how ICU calls it
* adjust tests accordingly


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39415 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-13 01:13:38 +00:00
Stephan Aßmus
08e6655afe Patch by kaliber (ticket #6333): Removed many instances of
passing an additional -Wall to the compiler, which may actually
have unwanted effects. -Wall is standard by the build system.
Also, -Wno-multichar was passed unnecessarily for Haiku targets.
I didn't remove it for the bfs_shell, hope this is what Ingo meant
in the ticket.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39314 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-05 20:31:11 +00:00
Ingo Weinhold
ea5a105b2d Fixed spelling.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39312 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-05 19:43:10 +00:00
Ingo Weinhold
09bd92c5c0 * Source text_setup with explicitly given current directory path component.
Apparently the source semantics has changed, as the that wasn't necessary
  in older OpenSuse versions.
* Replaced gcc invocations in the test scripts with with
  compile_{lib,program}[_dl]() shell functions defined in test_setup.
* Build libraries with -fPIC, so we don't get complaints for x86_64.

Apparently the runtime loader semantics has changed in OpenSuse 11.2 compared
to older versions. Some tests don't pass any longer (respectively even crash).
Would be interesting to know what happens on a current FreeBSD.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39308 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-05 16:38:44 +00:00
Ingo Weinhold
f085f5b012 * checksumfs_write_stat(): Actually add the node to the transaction as the
comment claims. Spotted by Axel.
* Added preallocate() slot to gCheckSumFSVnodeOps.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39283 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-03 20:42:17 +00:00
Matt Madia
ae7af41e11 Related updates for *.c -> *.cpp
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39247 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-10-31 22:06:19 +00:00
Matt Madia
04c448da78 Specify the location for the musepack headers. Other build issues remain.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39246 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-10-31 21:48:18 +00:00
Matt Madia
8c1e391d95 Updates per r34417.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39245 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-10-31 21:36:35 +00:00
Matt Madia
6fbeafabbd Updates relating to r28261. Allows TeamMonitorTest to build.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39239 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-10-31 18:42:00 +00:00
Philippe Houdoin
1c9f7a4117 Fix the optional file to send over transport handling.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39227 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-10-31 10:44:56 +00:00
Philippe Houdoin
ecb7d9282a Add an option to print discoveried ports,
if the transport add-on support this feature.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39188 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-10-29 16:21:49 +00:00
Clemens Zeidler
831d929e8c Cleanup OptionalBuildFeatures and add CLucene as optional build feature / fix dependencies.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39176 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-10-28 20:57:11 +00:00
Clemens Zeidler
59cad21bf2 Add a simple CLucene search app written by Ankur Sethi. I just made some smaller modifications. Don't look at the coding style, it is just for testing at the moment, this has to be integrate somewhere else anyway, there is no point to fix it at this state. There are also some memory leaks...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39173 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-10-28 15:32:44 +00:00
Stephan Aßmus
766bc131b4 Integrated the test from the "Services Kit" GSoC project. The urlRequest tests
don't currently compile since not all of the Services Kit classes are included
in the build ATM.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39163 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-10-27 14:16:51 +00:00
Philippe Houdoin
2ca94d9be9 Small change lost in the void: search in common addons dir too.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39152 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-10-26 09:26:41 +00:00
Clemens Zeidler
c2f0a314a0 Rename ReplaceObjectiveFunction to SwapObjectiveFunction I think this makes it more clear that the old function is not deleted.
Cleanup Jamfile.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38960 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-10-13 05:44:52 +00:00
Alex Wilson
675ffabd70 Layout update for LookTest, fixes #6648.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38953 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-10-12 08:49:18 +00:00
Oliver Tappe
fdb863b626 * added tests for wcwidth() to locale_test that expose the pretty
drastic failure to handle anything else than ascii chars.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38934 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-10-10 15:07:36 +00:00
Clemens Zeidler
cad0c434c7 Refactor LinearSpec a bit, make it more difficult to leak the objective function.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38888 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-10-04 22:27:02 +00:00
Clemens Zeidler
d9c5a02fff Put liblinprog.so into a static library and compile it into libalm.so.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38886 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-10-04 19:32:35 +00:00
Clemens Zeidler
37344020ef - Add a alternative method to setup a group layout. BLayoutItem / BView are wrapped into a GroupItem. GroupItem overloads the | (horizontal tiling) and / (vertical tiling) operators. In this manner you can create a group layout using these operators, e.g. GroupItem item = GroupItem(button1) | (GroupItem(button2) / GroupItem(button3)); would layout button1 at the left and button2 and button3 at the right in a vertical layout. All the layout information is stored in the GroupItem item, to setup the final layout you have to call BuildLayout(item). If you like it it could also be added to the BGroupLayout.
- Add operator test app.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38877 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-10-03 20:05:52 +00:00
Jérôme Duval
97176323ed removed ffsb
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38869 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-10-02 11:50:05 +00:00
Clemens Zeidler
70e2076135 - Add helper functions to get the tabs of a view or a layout item.
- AddView only require the top, left tabs now.
- Remove the TwoViews test and replace it with a slightly more complex test.
- Merge XTab and YTab files into one header file.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38860 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-09-30 01:32:48 +00:00
Axel Dörfler
0945b14311 * Made the "cdda_text" test application compile again.
* Improved error output.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38843 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-09-29 09:17:14 +00:00
Jérôme Duval
23395e2082 add ffsb (Flexible File System Benchmark) to the build (gcc4 only).
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38803 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-09-23 17:55:34 +00:00
Clemens Zeidler
9576365d8f - Replace the obsolete AddArea functions by AddView functions.
- Add an additional layout approach for the Pinwheel which leads to the same result.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38794 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-09-23 07:18:49 +00:00
Clemens Zeidler
96e2013e70 Add inset and spacing to BALMLayout. Each Area is able to overwrite this global values and use his own inset. Add spacing and inset to the tests.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38792 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-09-23 00:53:33 +00:00
Clemens Zeidler
3ccba98ce3 Adjust the test apps.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38791 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-09-23 00:04:50 +00:00
Clemens Zeidler
06f960fcf6 Clean up.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38777 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-09-22 05:04:36 +00:00
Clemens Zeidler
a85cd05590 Adjust tests to use the SetExplicitAlignment function.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38776 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-09-22 04:54:11 +00:00
Clemens Zeidler
f5dc380d11 Fix warnings and some coding style issues.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38773 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-09-21 23:37:31 +00:00
Clemens Zeidler
8d9b6ef428 - Rename BALMLayout.* file to ALMLayout.*.
- Fix some copyrights.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38771 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-09-21 23:31:50 +00:00
Clemens Zeidler
c87bbc398c The BButton's have a max and min size which were previously ignore by ALM. Set an expicite button size to make the tests work after the last BALMLayout changes.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38770 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-09-21 23:22:17 +00:00
Clemens Zeidler
b8c3b029e4 Some style fixes.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38754 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-09-21 07:08:10 +00:00
Clemens Zeidler
6c0294819a Fix ALM tests.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38751 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-09-20 22:48:49 +00:00
Oliver Tappe
4a0b7d1bd0 * don't try to check __isctype((char)255), as it will clash with
neutral/identity value at -1 (EOF)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38707 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-09-18 15:51:37 +00:00
Oliver Tappe
611e1071a7 * add ctype-related tests that expose the cause of #6599
* fix warnings

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38704 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-09-18 14:31:13 +00:00
Oliver Tappe
338ddd836f Closing #6499:
* add missing getsubopt() POSIX-function
* added corresponding test


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38650 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-09-14 18:43:24 +00:00
Oliver Tappe
5d46644f18 * added tests for localized numerical formatting via printf()
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38622 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-09-12 17:21:28 +00:00
Ingo Weinhold
e13706775f Whitespace cleanup.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38612 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-09-12 11:22:15 +00:00
Ingo Weinhold
c1a1df8d83 Typo: & used instead of &&.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38609 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-09-12 09:58:49 +00:00
Ingo Weinhold
66c75febfd Missing parentheses.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38608 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-09-12 09:57:59 +00:00
Ingo Weinhold
a738ca2c55 Build fix.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38607 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-09-12 09:57:26 +00:00
Oliver Tappe
69b46b571e * improved ParseDateTest to check several different timezones
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38605 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-09-11 18:32:34 +00:00
Oliver Ruiz Dorantes
8235dffe80 Last message key was closing the socket earlier than I expected
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38419 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-28 16:07:59 +00:00
Clemens Zeidler
e71b4c11de Add a simple BWindowStack test app.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38172 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-17 06:50:35 +00:00
Oliver Tappe
560b10ff88 Implement tzset(), gmtime(), localtime() and mktime() on top of ICU
* no longer keep a separate time-backend, since the implementation needs to
  access (data of) the locale backend anyway
* moved more stuff from localtime_fading_out.c to localtime.cpp
* added respective tests to locale_test
* added two more tests copied from glibc, test_time.c and tst-mktime.c


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38162 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-16 21:14:23 +00:00
Axel Dörfler
757a6d2587 * Added the IPv6 test programs as part of Atis latest patch.
* Added an ipv6_ prefix to all test apps, as their names clashed with existing
  test apps.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38019 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-11 12:34:44 +00:00
Philippe Houdoin
6eba591215 Import GLSL brick demo (small change: no glew, which one day we should support though).
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37921 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-05 10:46:08 +00:00
Philippe Houdoin
3f7aeed212 Don't link with libstdc++ for plain C samples.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37920 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-05 10:43:56 +00:00
Philippe Houdoin
2d189f198f Add code to test leaving game mode to return to window mode...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37902 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-04 14:38:13 +00:00
Philippe Houdoin
92f5c6a2f7 Display mode options should be set too before entering game mode!
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37877 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-03 17:33:08 +00:00
Philippe Houdoin
e70782a501 Slow down a bit the cube spinning, and fix a warning.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37874 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-03 16:28:32 +00:00
Philippe Houdoin
24ca4df9de * Group all GLUT exit cleanup tasks in one place, __glutExitCleanup().
* Automatically leave game mode if it's still active at exit
 * Remove explicit game mode cleanup from testbed app.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37822 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-07-30 15:18:09 +00:00
Philippe Houdoin
6e55a1104a Expand to dump game mode attributes, clean exit and changing game mode string anytime.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37821 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-07-30 12:17:11 +00:00
Michael Pfeiffer
ff973abc41 * Align the scaled picture at the top to the unscaled
one.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37819 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-07-30 09:20:09 +00:00
Michael Pfeiffer
8247141f14 * Added testDrawScaledPicture which exposes a bug
drawing a scaled picture at an offset. The offset
  needs to be scaled too, but isn't right now.
* Fixed testDrawLargeBitmap. The bounds were negative.
* Added testFontRotation. Works fine.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37818 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-07-30 09:12:57 +00:00
Philippe Houdoin
9e332eb5ef Add a quick and dirty GLUT game mode testbed
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37808 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-07-29 14:33:22 +00:00
Adrien Destugues
e88fbde60b * Fix some issues in collators archiving and key computation
* The test now pass. But unarchiving still isn't working and restores the default collator instead of the archved one.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37787 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-07-28 14:23:08 +00:00
Adrien Destugues
2c6ebfaaea * Fix collator text
* Fix archiving/unarchiving to provide at least a valid object. However, ICU archiving system doesn't look like it's working well.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37784 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-07-28 13:16:11 +00:00
Oliver Tappe
60656c54d1 * don't use B_USE_POSITIVE_POSIX_ERRORS in libroot, let any interested party
use that and the posix_error_mapper

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37737 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-07-25 17:20:39 +00:00
Oliver Tappe
a4823efd7d Fix problems with sed and gcc caused by reintegration of posix-locale:
* support invocation of ctype/wctype macros with EOF/WEOF (-1), which would
  access more or less random memory before - I don't know why this worked
  more or less reliably for the POSIX locale, but it didn't for any other


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37730 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-07-24 16:20:52 +00:00
Oliver Tappe
a3f665982e * reintegrated posix-locale
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37725 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-07-23 23:13:00 +00:00
Axel Dörfler
aa552b077a * Some cleanup.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37717 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-07-23 13:11:55 +00:00
Stephan Aßmus
80e6909dd1 * Style cleanup.
* Include correct header for strcmp().


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37695 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-07-22 13:54:36 +00:00
Stephan Aßmus
9ea2a07cf3 Patch by Karvjorm: Fix build of the window_creation app_server test. Thanks!
Closes ticket #6358.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37694 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-07-22 13:35:18 +00:00
Ingo Weinhold
e82b1340a7 * checksumfs_lookup(): The flags return parameter was never set, leading to
weird behavior when running in kernel.
* checksumfs_io(): Try to lock with timeout when the request is VIP. This
  works around a potential quasi-deadlock: Most write support FS hooks
  potentially allocate memory (e.g. in block_cache_get*()) while holding a
  write lock to a node. When memory is low they have to wait for pages to
  become available. The page writer might block on such node which in turn
  would prevent modified pages from becoming eligible for recycling. Should
  only in rare low memory cases have led to a problem.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37687 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-07-22 12:20:45 +00:00
Axel Dörfler
2baeb60077 * Fixed the application to actually take the host argument into account, sigh.
* Cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37686 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-07-22 12:09:44 +00:00
Ingo Weinhold
6fc498dafd Added ReadLockWithTimeout().
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37685 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-07-22 11:50:15 +00:00
Ingo Weinhold
3555a42f18 Typo in debug output.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37684 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-07-22 11:49:50 +00:00
Ingo Weinhold
539ec8ff1e * File::_UpdateLevelInfos(): Fixed child count computation. Was incorrect (0)
for multiple of kFileBlockMaxCount block counts.
* File::_GrowTree(): The inner loop of the level addition part was bogus.
  Apparently I never tested with files >= 2 MB before.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37683 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-07-22 11:49:28 +00:00
Ingo Weinhold
4e08fb8589 Added rw_lock_read_lock_with_timeout().
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37680 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-07-22 11:10:48 +00:00
Ingo Weinhold
4bfbcb535d checksumfs_io(): We are responsible for calling notify_io_request() when we
decide to fail for some reason.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37662 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-07-21 16:32:59 +00:00
Ingo Weinhold
fb2d716a99 Added support for using underlying devices -- we need to get the size with
the B_GET_GEOMETRY ioctl instead.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37658 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-07-21 15:29:29 +00:00
Ingo Weinhold
8cb1303cfa * Cleaned up debug output.
* _AllocateInGroup(): Fixed incorrect checks. The allocation group counts the
  free, not the used blocks.
* _AllocateInBitmapBlock(): Fixed allocation loop. It was neither incrementing
  the array pointer, nor resetting the bit offset.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37656 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-07-21 15:28:03 +00:00
Ingo Weinhold
1e7497da42 Debug output.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37655 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-07-21 15:23:46 +00:00
Ingo Weinhold
4701667eb2 Get{Writable,Zero}(): Fixed return values. The type is bool not status_t.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37654 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-07-21 15:23:29 +00:00
Ingo Weinhold
94b89e4bcc Debug output.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37653 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-07-21 15:16:36 +00:00
Ingo Weinhold
8f6bf75670 * Resize(): Resize the file cache before trying to fill the added space with
zeroes.
* Compute and propagate the check sums of the written file data to the
  underlying device.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37641 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-07-21 09:58:48 +00:00
Ingo Weinhold
9bc87c767b Block does now register writable blocks with Transaction. On commit
Transaction sets the check sums for the changed blocks on the underlying
device, respectively reverts them on roll-back.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37639 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-07-20 23:21:26 +00:00
Ingo Weinhold
8d591ecc41 * Added CHECKSUM_DEVICE_IOCTL_GET_CHECK_SUM ioctl.
* Added some debug output.
* CheckSumCache::_GetBlock(): Fixed incorrect check. The method could return
  an arbitrary block.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37638 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-07-20 23:16:46 +00:00
Ingo Weinhold
7514b57ebf Added Data() getter and an assignment operator getting a raw buffer.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37637 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-07-20 23:14:48 +00:00
Ingo Weinhold
5520ec0ea0 Enable -Werror.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37636 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-07-20 23:13:51 +00:00
Axel Dörfler
02e7b23f38 * Some ICMP test applications originally written by Yin Qiu as part of
GSoC 2008. I've reworked them a bit to let them compile without warnings
  (or at all), and give better error messages.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37634 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-07-20 21:20:36 +00:00
Ingo Weinhold
0f9dda9f00 Moved Block implementation to its own source file.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37633 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-07-20 21:19:11 +00:00
Ingo Weinhold
decde2b030 * _Free[InBitmapBlock](): Don't use Block::Discard() (block_cache_discard()).
It doesn't have the intended semantics (reverting the change). The caller
  is now expected to roll back the transaction.
* AllocateExactly(): Don't try to revert a partially successful allocation.
  The caller is expected to roll back the transaction.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37632 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-07-20 21:11:56 +00:00
Ingo Weinhold
8794d8c48f * Volume::Create{File,Directory,SymLink}():
- Simplified by using the new common _CreateNode(). Changed the constructors
    slightly -- the block index is now set via a separate SetBlockIndex()
    method.
  - The block allocated for the node was not cleared. At least for directories
    that is required, though.
* Added attribute support:
  - Refactored/extended {open,create}_file() and DirCookie a bit, so they can
    also be used for attributes/attribute directories.
  - Implemented all relevant attribute FS hooks.
  - Node::DeletingNode(): Changed interface (it creates the transaction(s) as
    needed, now and doesn't return the error code anymore. The base class
    implementation frees the attribute directory, the Directory implementation
    also unlinks all entries and frees the entry tree.
* checksumfs_write_stat(): B_STAT_MODE was not handled.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37626 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-07-20 17:13:34 +00:00
Ingo Weinhold
7461b83d3b Removed unused checksumfs_node::content. We use the rest of the node block
for managing the content.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37624 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-07-20 17:01:24 +00:00
Ingo Weinhold
72e9c2846a * Added flags for removing/unremoving the node.
* Added more optional notification parameters to Commit().
* Added some handy methods.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37623 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-07-20 16:59:53 +00:00
Ingo Weinhold
c6bc0bdd73 When opening the device read-write failed, retry read-only.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37614 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-07-20 08:44:30 +00:00
Ingo Weinhold
e828231248 Added node monitoring support.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37601 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-07-19 15:31:08 +00:00
Ingo Weinhold
4b53c2ba4f Implemented hooks write_fs_info(), sync(), set_flags(), fsync(), access().
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37595 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-07-19 13:58:03 +00:00
Ingo Weinhold
1e0016e1a9 BlockAllocator didn't update the freeBlocks field in the superblock. So after
unmounting and remounting the number of free blocks could be off.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37588 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-07-19 11:59:22 +00:00
Ingo Weinhold
284f17739e Open the underlying file (or device) with O_NOCACHE. This works around a
potential page writer deadlock.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37587 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-07-19 11:57:57 +00:00
Ingo Weinhold
470934be8c Implemented link() hook.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37582 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-07-19 10:49:29 +00:00
Ingo Weinhold
69d34a505b Implemented rename() hook.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37579 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-07-19 10:27:26 +00:00
Ingo Weinhold
5b3d789879 File::GetFileVecs():
* Added debug output.
* Rounding up the size argument could cause an overflow. Use uint64 and block
  indexes, now.
* The iteration index wasn't incremented in the main loop.
* The in-block index was ignored when filling the first vector. Shouldn't
  really matter since we pass back complete blocks only, so the file map
  should never supply an unaligned offset, but anyway.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37573 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-07-19 01:19:44 +00:00
Ingo Weinhold
a628d23613 Prevent creation of entries in unlinked directories.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37563 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-07-18 13:17:43 +00:00
Oliver Tappe
7ad694e346 Some more ICU-related improvements:
* updated icu-devel package to 4.4.1
* create appropriate devel lib links when icu-devel is being installed
  (which only works during build, not when using installoptionalpackage)
* dropped ICU headers from repository and instead fetch them from the
  icu-devel package when needed during the build
* adjusted Jamfiles that make use of ICU-headers accordingly (hopefully
  I didn't miss any)
* fixed license in OptionalPackage description of icu packages


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37531 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-07-15 21:23:45 +00:00
Ingo Weinhold
87c30de789 * Added a File class for representing regular files. We use a simple block tree
for the data management. Reading/writing (using file cache and file map) is
  implemented, but not exactly well tested yet.
* Renamed SymLink::{Read,Write}() to {Read,Write}SymLink().
* Implemented FS hooks write_stat(), create(), read(), write(), io().
* Added O_TRUNC support to open() hook.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37507 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-07-14 00:12:52 +00:00
Ingo Weinhold
4a6cd3b3f9 * Added some stat data setters.
* Added virtual methods needed for files.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37506 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-07-14 00:04:43 +00:00
Ingo Weinhold
4cc1203416 * Added node locking related flags.
* Added convenience method StartAndAddNode().


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37505 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-07-14 00:03:42 +00:00
Ingo Weinhold
7704e36304 Use RETURN_ERROR() in the free paths, so we see where things go wrong.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37504 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-07-14 00:02:43 +00:00
Adrien Destugues
5098ba1b94 Update ICU to 4.4
* Remove 4.2 sourcecode
 * ICU is now an optional package (mandatory)
 * Adjust the namespaces and libraries names where needed


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37498 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-07-13 19:04:40 +00:00
Ingo Weinhold
06b318ef9b Added symlink support.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37481 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-07-12 16:15:47 +00:00
Ingo Weinhold
a2e7c7417b * Added Transaction class which wraps a block cache transaction and performs
all other operations required to roll back a transaction. Transactions are
  fully serialized -- due to limitations of our block cache and also to keep
  things simple.
* Use a transaction for all write operations.
* Implemented the directory entry management code (a simple tree algorithm).
* Finished/implemented the FS hooks for directory entry lookup, directory
  iteration, creation, and removal.
* Added non-persistent support for node access times.
* Set the user and group IDs on node creation.
* Added permission checks to several FS hooks.
* BlockAllocator::_Free(): The number of freed blocks was subtracted from
  fFreeBlocks instead of added.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37478 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-07-12 13:21:42 +00:00
Oliver Ruiz Dorantes
aa5fca06bf Update l2cap client testcase
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37473 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-07-11 17:15:58 +00:00
Matt Madia
2d6072229e Updates for the Catalog API change.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37456 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-07-10 11:13:26 +00:00
Ingo Weinhold
74956f4385 * Added the beginnings of node support.
* Added the bare minimum of file system hooks to mount the file system. Can't
  do anything more than listing the (empty) root directory yet, though.
* Added Jamfile for building the file system for the userlandfs.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37406 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-07-05 16:53:06 +00:00
Ingo Weinhold
c33b89b3bb Implemented a simple block allocator.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37312 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-06-30 13:27:11 +00:00
Ingo Weinhold
952d6c8cc4 * Moved the checksum device driver to subdir "driver".
* Created a file system module and a disk system add-on. Currently only
  initializing and identifying/scanning is supported.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37300 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-06-29 10:52:16 +00:00
Ingo Weinhold
1e0ea42a25 Beginnings of a test for tracking down the file corruptions that still seem
to occur in current revisions. The working hypothesis is that the corruptions
happen below the file system (i.e. in file/block cache or VM). The intended
setup for the test is a device driver -- a loop device kind of thing -- that
also stores check sums for all blocks and a file system that communicates the
check sums to expect via an independent channel (ioctl) to the driver.
Whenever a block arrives at the driver for writing, the block is checked
against its expected check sum. Initially Axel's idea, BTW.
The device driver is done and working as far as tested (save for
unregistering devices). The file system part is still to be done.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37247 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-06-24 23:38:17 +00:00
Ingo Weinhold
621f42cb59 Fixed build.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37236 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-06-23 18:36:40 +00:00
Ingo Weinhold
7a0dca5c54 Moved SHA256 code to libshared.a.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37235 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-06-23 17:47:07 +00:00
Ingo Weinhold
20a11e0220 The vm_page_num_pages() return type has changed.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37234 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-06-23 16:16:55 +00:00
Stephan Aßmus
14981b2126 Patch by Jorma Karvonen: Fix compiler warnings. Closes #6203, thanks!
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37184 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-06-21 10:03:15 +00:00
Stefano Ceccherini
52de8b0e66 Also add the resource
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37148 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-06-15 11:12:21 +00:00
Philippe Houdoin
1b1ad0b951 Implemented interfaces monitoring and disabled state introduced last week.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37136 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-06-14 22:15:38 +00:00
Oliver Ruiz Dorantes
0559013789 Commit initial version for a l2cap client test
(Style pending)



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37133 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-06-14 20:41:18 +00:00
Stefano Ceccherini
b47e904c1f Add to the build
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37111 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-06-12 07:09:57 +00:00
Stefano Ceccherini
372eb8749c Fix the build
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37110 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-06-12 07:09:45 +00:00
Stefano Ceccherini
3f28966548 Imported MenuWorld beos sample code into the repository.
Wrote a jamfile and did some build fix (but doesn't build yet).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37109 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-06-12 07:03:01 +00:00
Stephan Aßmus
32753ae9b5 Add some columns to judge the look...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37051 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-06-07 21:12:15 +00:00
Michael Pfeiffer
4b5dfd789f * Removed obsolete picture test application.
* Fixed build of print job utilities DumpPrintJob and
  ShowPrintJob.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36920 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-05-24 06:48:13 +00:00
Matt Madia
4eb0cbb044 Updated TR_CONTEXT to be B_TRANSLATE_CONTEXT, relating to #5408.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36733 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-05-07 20:19:06 +00:00
Matt Madia
483e12623e Update TR* to B_TRANSLATE. relates to #5408. To note, prior to this changset,
this was not building. See #5927 for more information.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36732 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-05-07 19:43:30 +00:00
Matt Madia
4ef6cf5d0e Updated to use B_TRANSLATE* macros. relates to #5408.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36699 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-05-07 00:43:51 +00:00
Ithamar R. Adema
037e8a50ff * Switch from using BMenuField to BTabView for panel selection
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36526 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-29 11:59:50 +00:00
Ithamar R. Adema
fd7ccdaca6 * Minor code cleanup
* Added locale support to main window
* Added layout sensitivity to main window



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36514 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-28 04:50:09 +00:00
Ingo Weinhold
fba84f08b8 Small test program that shows Haiku doesn't deal correctly with resizing
mmap()ed files. Also reproduces #5473.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36359 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-19 20:15:32 +00:00
Axel Dörfler
e486a4d0dc * Moved consoled to bin/ - it's not really a test application.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36298 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-15 15:32:00 +00:00
Ingo Weinhold
2385d1bdc8 * Replaced bogus perror() calls with printf()s.
* Automatic whitespace cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36297 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-15 15:25:10 +00:00
Ingo Weinhold
c25c05da25 * Fixed incorrect check: The behavior of pthread_mutex_unlock() is undefined
when called with a default-type mutex owned by another thread.
* Automatic whitespace cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36294 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-15 14:20:02 +00:00
Axel Dörfler
8ef609cc5f * Now actually launch more than one keyboard thread (before that would have
worked only if all drivers were in one directory).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36281 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-15 09:00:11 +00:00
Axel Dörfler
2feb1a7f3a * consoled now opens all drivers that support the debugger mode, and runs a
thread for each of them.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36278 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-15 08:10:13 +00:00
Axel Dörfler
2c49465329 * Removed the at_kbd_io and AT keyboard stuff; this is now done within the PS/2
driver, and that driver is using the raw_key_info structure as well.
* Renamed kb_mouse_driver.h to keyboard_mouse_driver.h.
* Minor cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36267 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-14 19:19:14 +00:00
Axel Dörfler
b26f67513b * Added a test application that show that BFS does not care to fill the space
between the former end of the file and the position of a write with zeros
  as required.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36262 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-14 14:30:34 +00:00
Axel Dörfler
467ce4205b * consoled no longer talks to its own keyboard driver, but uses the new debugger
feature of the usual keyboard drivers (it currently only uses the first one
  always, though, instead of all of them).
* Also, it now loads your current keymap from disk, so you don't need to adapt
  to a different keymap anymore. However, right now, it does not have a built-in
  keymap, so this won't work if there is no Key_map file. This will be done 
  later with some more cleanup.
* It now prints error messages to the syslog/serial as well over debug_printf().
* Removed the BeOS R5 input server mode support.
* Some more cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36260 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-14 12:56:57 +00:00
Jérôme Duval
29fb2094bd added bsd lib tests to the build
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36202 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-12 20:57:20 +00:00
Oliver Tappe
56f097ebd9 Applying patch by Atis Elsts:
* fix connecting to INADDR_ANY work for tcp (effectively will
  connect to INADDR_LOOPBACK)
* add same behaviour to udp
* move some ipv4-specific code out of tcp into ipv4 address module
* bind() and connect() now reject addresses from non-matching 
  families
* myself: minor cleanup in udp.cpp with respect to 80 chars limit
Closes #5716 - many thanks!


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36192 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-12 18:39:34 +00:00
Jérôme Duval
1590c69933 * added forkpty() and login_tty() to bsd compatibility, a test for forkpty().
* added a TODO questioning the closing master and slave in openpty() when applying window size fails.
* added TIOCSCTTY as a TTY ioctl code, the caller become controlling TTY. Review comments are welcome.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36105 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-10 13:48:28 +00:00
Michael Lotz
ba51713c8f Fix gcc4 build of uhci_decode.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36104 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-10 13:05:43 +00:00
Ingo Weinhold
e99d1fd16f * Fixed more incorrect occurrences of the pid_t == int assumption.
* Automatic whitespace cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36090 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-08 17:32:09 +00:00
Ingo Weinhold
d7754ff079 * More generous buffer sizes for the semaphore and shared memory object names.
* The result shared memory was mapped PROT_WRITE only, but since the variable in
  it is used with the increment operator, it needs PROT_READ, too.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36089 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-08 17:15:49 +00:00
Ingo Weinhold
aea8795346 Be more generous with the semaphore name array size. Large enough PIDs would
lead to overwriting its bounds.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36084 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-08 15:34:12 +00:00
Ingo Weinhold
b4ab2a2c37 Fixed incorrect assumption that pid_t is int.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36071 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-07 18:32:47 +00:00
Ingo Weinhold
57ebe59dfd SEM_VALUE_MAX is not POSIX. Use sysconf(_SC_SEM_VALUE_MAX) instead.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36070 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-07 18:30:57 +00:00
Ingo Weinhold
e327fa52fe Missing return value.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36069 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-07 18:29:25 +00:00
Ingo Weinhold
dff3f62071 pthread_exit() cannot return, but the "noreturn" attribute is really a compiler
feature (which we haven't set yet). So return some dummy value.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36068 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-07 18:27:34 +00:00
Ingo Weinhold
814f5ae159 SEM_VALUE_MAX is not POSIX. Use sysconf(_SC_SEM_VALUE_MAX) instead.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36067 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-07 18:24:13 +00:00
Ingo Weinhold
8e69b283a4 PTHREAD_ONCE_INIT only needs to be a valid initializer.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36066 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-07 18:18:11 +00:00
Ingo Weinhold
72d74075da Prevent unused variable errors in case CLOCK_REALTIME is not defined.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36065 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-07 18:16:12 +00:00
Ingo Weinhold
a06cec2fdf <features.h> is not POSIX.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36064 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-07 18:14:34 +00:00
Ingo Weinhold
b22623ba6a Prevent clashes with non-POSIX macros that are (or were?) still part of some
standard and are defined in our headers.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36063 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-07 18:13:49 +00:00
Ingo Weinhold
d888ea5d13 Fixed out of bounds array access.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36051 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-06 18:44:58 +00:00
Ingo Weinhold
2b76954997 Removed tests that tested undefined behavior:
* Calling pthread_{join,detach}() on non-joinable threads.
* Calling mutexattr_setpshared() on uninitialized object.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36050 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-06 18:44:18 +00:00
Ingo Weinhold
3b589a0fb7 Enable the mapping to positive POSIX error codes.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36043 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-05 19:21:50 +00:00
Ingo Weinhold
4142e99f09 Copied Open POSIX Test Suite 1.5.2 to the trunk.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36040 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-05 13:10:28 +00:00
Ingo Weinhold
93de3bca5f Removed partial (unknown version) Open POSIX Test Suite from the build.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36039 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-05 13:09:20 +00:00
François Revol
f3abd9ad73 Fix build.
Add test for ioctl(FIONREAD). Doesn't work much yet though.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35990 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-03-28 19:17:30 +00:00
Stefano Ceccherini
96d7f22d56 Reverting this, since BMessage doesn't crash anymore.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35912 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-03-19 12:26:14 +00:00
Stefano Ceccherini
05525b50d0 Commented out BMessage::PrintToStream() calls which crash (worked before).
The tests shows that Drawing shapes within BPicture is broken.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35909 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-03-19 07:53:30 +00:00
Stephan Aßmus
76ab3f88df Basically, this changeset implements BShape::ArcTo(). In more detail:
* Added BShape::ArcTo() and BShapeIterator::IterateArcTo(), using a previously
   unused virtual slot. (Added the symbols for binary compatibility for GCC2
   and GCC4.)
 * Added operator=(), operator==() and operator!=() to BShape.
 * Added BShape::BezierTo() version taking three points, which is sometimes
   more convenient.
 * Added the four new shape data ops OP_LARGE_ARC_TO_CW, OP_LARGE_ARC_TO_CCW,
   OP_SMALL_ARC_TO_CW and OP_SMALL_ARC_TO_CCW. For a single arc, provided the
   radius is large enough, there are four possibilities to draw the arc, these
   are controlled by the two boolean flags to ArcTo() and mapped to the new
   commands accordingly.
 * Some style cleanup in Shape.cpp (sorry for mixing it up, but it gets
   worse below...)
 * Added ShapeTest to src/tests/servers/app.
 * Changed the way BShapes are transformed from view to screen space in the
   app_server. For arcs, it would be nontrivial to apply a proper transformation,
   it's much easier to let AGG take care of it. This affects ServerPicture as
   well.
 * Wrapped iterating the BShape into try/catch blocks in ShapeIterator. But
   I really don't understand the purpose of the class in the first place.
   Maybe it can now be dropped, since coordinates don't have to be transformed
   in place anymore.
 * Refactored copy&paste shape iteration code in Painter. The transformation
   to screen space happens there.
 * Since RemoteDrawingEngine needed to be adopted anyway, I also updated
   it for the new DrawString() with offsets version. But the client still needs
   to be adapted.
 * Style cleanup in Painter.h


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35905 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-03-18 16:58:19 +00:00
Philippe Houdoin
24957bd499 Fixed last places where resolv.conf was still expected under /etc, UserGuide included. Fixed authentication misspelling
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35898 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-03-18 08:48:13 +00:00
Stephan Aßmus
a9daf3d911 Improved the DrawString() method that takes offsets per glyph by making the
client provide the array size. Added version that doesn't take a string length
for convenience.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35866 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-03-15 15:08:07 +00:00
Stephan Aßmus
77e5acc0d9 * Extended the BView drawing API by a DrawString() version that takes an array
of locations, one for each glyph.
 * Added a test for the new functionality.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35865 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-03-15 13:59:14 +00:00
Ingo Weinhold
5cf6995685 The usual cleanup after Axel. ;-) Define vm_page_num_pages() which is now
used by the block cache.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35745 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-03-03 21:02:34 +00:00
Ingo Weinhold
27f78bf522 Fixed build after signature change in r35601.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35607 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-02-24 18:54:59 +00:00
Axel Dörfler
75e7a5adae * Added simple test application to be able to see node monitoring messages
in order to reproduce bug #5405.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35526 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-02-19 21:35:46 +00:00
Adrien Destugues
33eead339b * Improve the test for TimeFormat (style and error checking)
* Fix the TimeFormat API, there was a double free. Make it work as expected : you send it a number of seconds and it will format it properly in days, hours, minutes, seconds with proper plural.
 * Cleanup other parts of the Format API from useless things. They may get reintroduced later if we feel the need to do so.
 * AboutSystem now use TimeFormat to display the uptime in properly localized way.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35506 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-02-17 15:35:28 +00:00
Adrien Destugues
b2c385c072 -Added new TimeFormat API for formatting and localizing a time (uptime, copy duration, ...)
-Added a very simple test that shows the API is corrupting memory and ends up crashing
-Fixed build of other locale tests


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35503 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-02-17 00:02:50 +00:00
Axel Dörfler
15fd71bfff * Fixed artwork directory.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35462 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-02-14 22:29:29 +00:00
Michael Lotz
b07ef504a0 Add a memalign test that checks for valid alignments and fills/verifies
allocated buffers to validate that the full allocated size is actually usable.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35425 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-02-07 02:11:31 +00:00
Michael Lotz
e33d4e74c2 Update the test to cover a wider width range now that truncating doesn't crash
anymore. Also make that test string a bit more complicated.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35386 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-02-01 22:03:11 +00:00
Michael Lotz
8806dfd057 Adding test that shows that B_TRUNCATE_BEGINNING mode is essentially broken.
Worse yet for a small enough length it actually crashes.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35379 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-02-01 13:39:06 +00:00
Michael Lotz
82471975d5 Adding a simple test app for the utf-8 aware BString functions. I didn't feel
like writing a full blown unittest though, sorry...


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35372 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-02-01 04:26:05 +00:00
Ingo Weinhold
b6620ccc71 Make the {memalign,free}_etc() available in the kernel emulation.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35321 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-01-27 19:04:46 +00:00
Ingo Weinhold
86c794e5c1 slab allocator:
* Implemented a more elaborated raw memory allocation backend (MemoryManager).
  We allocate 8 MB areas whose pages we allocate and map when needed. An area is
  divided into equally-sized chunks which form the basic units of allocation. We
  have areas with three possible chunk sizes (small, medium, large), which is
  basically what the ObjectCache implementations were using anyway.
* Added "uint32 flags" parameter to several of the slab allocator's object
  cache and object depot functions. E.g. object_depot_store() potentially wants
  to allocate memory for a magazine. But also in pure freeing functions it
  might eventually become useful to have those flags, since they could end up
  deleting an area, which might not be allowable in all situations. We should
  introduce specific flags to indicate that.
* Reworked the block allocator. Since the MemoryManager allocates block-aligned
  areas, maintains a hash table for lookup, and maps chunks to object caches,
  we can quickly find out which object cache a to be freed allocation belongs
  to and thus don't need the boundary tags anymore.
* Reworked the slab boot strap process. We allocate from the initial area only
  when really necessary, i.e. when the object cache for the respective
  allocation size has not been created yet. A single page is thus sufficient.

other:
* vm_allocate_early(): Added boolean "blockAlign" parameter. If true, the
  semantics is the same as for B_ANY_KERNEL_BLOCK_ADDRESS.
* Use an object cache for page mappings. This significantly reduces the
  contention on the heap bin locks.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35232 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-01-21 23:10:52 +00:00
Ingo Weinhold
70742459f5 Fixed build.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35176 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-01-19 19:38:09 +00:00
Axel Dörfler
29ddbdbb53 * Moved the "var" directory to /boot/common/.
* Moved the "tmp" directory out of /var, and to /boot/common/cache/.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35104 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-01-16 17:17:07 +00:00
Stephan Aßmus
9563f44bfd Patch by Humdinger:
Changed strings to sentence case in various places. This is the
case-misc.diff part of ticket #5169.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35043 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-01-13 10:49:58 +00:00
Stephan Aßmus
ecc1234fbe Apparently some GCC 4 fixes...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35027 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-01-12 20:18:50 +00:00
Oliver Tappe
15c0996174 * added small test program done by Axel (and slightly changed by myself) that
exposes a problem in our UDP-connect implementation: the local address is 
  not set as a side-effect of connecting to a specific destination.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34987 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-01-10 15:03:12 +00:00
Michael Lotz
14429e896e Reverted the part of r31520 that made devfs_unpublish_partition() take a raw
device path + child partition name. When a "raw" device is unpublished the node
removal notification triggers the partition and child partitions to be
unpublished/removed. Since in that case the "raw" node is already unpublished
trying to resolve it in devfs_unpublish_partition() again to unpublish the child
partitions would fail, leaving the child partition nodes behind. When a new raw
device would then become available publishing its partitions would fail because
of these left behind nodes, causing bug #4587. Seeing that this code is more
compact and straight forward anyway I don't quite see why it was changed in the
first place.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34967 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-01-09 03:55:38 +00:00
Ingo Weinhold
c4f9831292 Added new mutex_switch_from_read_lock() for unlocking a read lock and
starting to lock a mutex in an atomic operation.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34935 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-01-07 15:31:29 +00:00
Ingo Weinhold
2ea2527fe4 R/W lock implementation:
* Changed the rw_lock_{read,write}_unlock() return values to void. They
  returned a value != B_OK only in case of user error and no-one checked them
  anyway.
* Optimized rw_lock_read_[un]lock(). They are inline now and as long as
  there's no contending write locker, they will only perform an atomic_add().
* Changed the semantics of nested locking after acquiring a write lock: Read
  and write locks are counted separately, so read locks no longer implicitly
  become write locks. This does e.g. make degrading a write lock to a read
  lock by way of read_lock + write_unlock (as used in the VM) actually work.

These changes speed up the -j8 Haiku image build on my machine by a few
percent, but more interestingly they reduce the total kernel time by 25 %.
Apparently we get more contention on other locks, now.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34830 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-12-31 17:03:41 +00:00
Ingo Weinhold
4ccd636dcb * Removed return value checks for rw_lock_{read,write}_unlock(). The return
values are not really useful, since they should only be != B_OK in case of
  user error, and will be changed to void.
* Added tests for write lock to read lock degrading.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34829 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-12-31 16:42:30 +00:00
Ingo Weinhold
933764d70e * Added a framework for unit tests in the kernel. The beast is implemented as
a driver which publishes a device as "/dev/kernel_unit_tests". Commands
  can be issued by writing to the device (e.g.
  "echo help > /dev/kernel_unit_tests"), output is written to serial port/
  syslog.
* Added a few tests for rw_lock.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34827 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-12-30 19:38:41 +00:00
Axel Dörfler
dbf4cd6df1 * Added test application written by Krzysztof Ćwiertnia for the BPushGameSound
that shows that something is obviously broken right now (I fixed some coding
  style violations, though).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34689 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-12-17 16:06:31 +00:00
Axel Dörfler
7d592ec4d2 * Fixed the bug that led to #5119. There was a race condition in the read path
as soon as a second thread got into the game: if a thread was notified that
  a message is ready, another thread could call read_port() and steal it before
  the previous thread could claim it. The "Extensions" menu still doesn't seem
  to work, but I would guess that is unrelated.
* The threads of the test app never exited, as read_port() returns the number
  of bytes it read, not just a status.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34681 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-12-16 12:51:26 +00:00
Axel Dörfler
697255873e * Added test that has multiple readers on a single port, and that drops into the
same panic as #5119.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34680 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-12-16 11:45:45 +00:00
Axel Dörfler
c6b85a0a7a * The transfer_area() test was not updated to its newer semantics, works again
now.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34553 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-12-08 14:15:58 +00:00
Axel Dörfler
74e2b87511 * Minor cleanup.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34534 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-12-07 14:01:33 +00:00
Axel Dörfler
7228af3083 * Added BeBook example quoted in bug #4920 as a test application into the
repository.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34469 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-12-03 17:57:13 +00:00
Axel Dörfler
625990fbb9 * Fixed the build of the boot loader's heap test.
* Added realloc() test that actually succeeds.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34413 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-12-01 15:40:34 +00:00
Axel Dörfler
beef46972c * Removed obsolete disk_scanner test app.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34380 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-11-30 15:42:21 +00:00
Axel Dörfler
805b96da98 * Wrote test application for partitioning systems. Not yet 100% complete, as it
only allows top level partitions right now - support for child partitions
  would require replacing read/write/seek/etc.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34379 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-11-30 15:36:58 +00:00
Axel Dörfler
ad7bfb2e88 * Adjusted default userland module paths to today's build paths.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34378 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-11-30 15:33:22 +00:00
Philippe Houdoin
0bb3289c7b Removed lost comment.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34359 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-11-29 21:47:37 +00:00
Philippe Houdoin
fb40f7a489 Applied changes by Pete Goodeve to add PatchBay endpoint's vector icon support.
Display size is still kept to 32x32.

M    patchbay/Jamfile
M    patchbay/EndpointInfo.cpp


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34357 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-11-29 21:38:47 +00:00
Stephan Aßmus
9ddbcfd383 Small test app for testing the shutdown process. I didn't search long if
something like this already exists...


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34263 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-11-25 21:58:20 +00:00
Philippe Houdoin
e1d5f30e87 Import Be sample-code licensed MIDI PatchBay.
Single change from original: "using namespace std" was missing in PatchView.h.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34229 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-11-25 03:52:11 +00:00
Stefano Ceccherini
78f94f81ff Add a BScrollView around the instantiated TermView (only as a test)
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34188 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-11-22 16:10:02 +00:00
Stefano Ceccherini
07da5d7cce Fixed TermView when used with the constructor which accepts a BRect:
In that case TermView computes rows and columns based on the frame size.
This also made simpler to attach a TermView to a given BWindow, like done
in the RepliTerminal test app. Changed Repliterminal accordingly.
Removed the bool parameter from SetTermSize(), and added a SetTermSize which
accept a BRect, as well.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34184 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-11-22 12:13:18 +00:00
Axel Dörfler
9ae0991a0c * Cleanup.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33998 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-11-11 09:38:01 +00:00
Axel Dörfler
1ff7e27441 * Added the PictureTest to the app_server test environment.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33875 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-11-04 13:05:18 +00:00
Stefano Ceccherini
7d601e6cdf Added a test for a weird messaging behaviour
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33854 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-31 20:33:09 +00:00
Axel Dörfler
ea607d6f7f * Applied a patch by Christof Lutteroth that updates ALM, and brings new test
apps.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33805 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-28 09:00:14 +00:00
Axel Dörfler
0c2788b4ce * Added some pthread_attr_destroy() and pthread_create() tests from
posixtestsuite into our repository.
* A few of the latter ones actually fail on Haiku.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33776 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-26 17:13:11 +00:00
Michael Lotz
4f5d9ca63d Fix libkernelland_emu build after ConditionVariable and devfs changes.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33736 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-22 23:50:15 +00:00
Axel Dörfler
56376843c1 * Added command line application to use live queries. Useful for testing why
the new mail count is off that much on mail removal.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33677 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-20 09:59:09 +00:00
Oliver Tappe
4d09ea0d3a * restoring zip file I garbled in r33658
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33672 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-19 23:50:55 +00:00
Oliver Tappe
571d840abf * dropped svn:keywords property from all files that carried it
to avoid recurring problems during migration of subversion checkouts
  (restored binary files that were garbled by subversions during checkout)
* added appropriate svn:mime-type property for problematic (binary) files
* removed a single (mistyped) svn:mimetype property 
* dropped svn:eol-style property for cleanup (they all contained 'native')



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33670 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-19 22:42:52 +00:00
François Revol
e19e3efd0d A test app showing that at least on R1/alpha1 there is a deadlock when quitting an BApplication started from another thread.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33665 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-19 20:37:45 +00:00
Oliver Tappe
3287ee32c2 * trying to understand and recover a svn:kweyord problem that might have corrupted this file
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33658 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-19 18:13:20 +00:00
Axel Dörfler
4124f4801b * Reserved areas would also be created in existing reserved areas in case the
space was becoming tight. This actually fixes #4778.
* Fixed overflow problem in find_reserved_area().
* Cleaned up the test app, added license.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33597 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-15 11:23:38 +00:00
Axel Dörfler
4b6cb4f5ad * Added test application that easily reproduces bug #4778.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33593 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-15 09:30:48 +00:00
Axel Dörfler
af7fec0304 * A small test application that shows that our abort() implementation does not
work correctly.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33582 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-14 11:05:30 +00:00
Philippe Houdoin
e0aefacfbb Add vector icons
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33490 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-09 06:08:22 +00:00
Philippe Houdoin
a02fe27649 Added OpenGL classical gears.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33430 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-04 22:00:35 +00:00