Commit Graph

2169 Commits

Author SHA1 Message Date
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