Commit Graph

35830 Commits

Author SHA1 Message Date
Axel Dörfler
0fc7ab7be6 * put_route() now survives being called with a NULL domain (TCP might do this).
* This fixes bug #6239.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37583 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-07-19 10:58:59 +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
ae3bba85bb Volume::Link(): Also unwrap the target vnode. The client FS would get a wrong
vnode pointer.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37581 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-07-19 10:48:44 +00:00
Axel Dörfler
e7c3a8ffd7 Fixed a few regressions that were introduced during the last months:
* device_attach() must not load the network stack. Besides being completely
  unbalanced, this was also one reason why the stack could not be unloaded
  anymore. Instead, it's now done in compat_open(), as before.
* This also fixes network booting from FreeBSD drivers - the stack apparently
  could not be initialized that early.
* Replaced the previous network stack based callout implementation with one
  that mostly copies its functionality, but has no dependencies. Furthermore,
  it runs at a higher priority (the one of the network timer should also be
  revisited, though).
* Fixed mtx_owned() to work without KDEBUG as well. It's not a good idea to
  introduce code that behaves completely different based on debug settings.
* Minor cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37580 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-07-19 10:41:16 +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
Axel Dörfler
fd5c0135e2 * Fixed warning.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37578 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-07-19 10:18:04 +00:00
Axel Dörfler
98e415e567 * Corrected and improved debug output.
* Minor cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37577 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-07-19 09:20:29 +00:00
Stefano Ceccherini
7071dfc1d1 Style.
Add NULL guard to the color schemes struct, although the code was safe
neverthless (for now)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37575 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-07-19 06:17:52 +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
08e2a0556c do_iterative_fd_io(): Don't fail when the getVecs callback returns
B_BUFFER_OVERFLOW. It will have returned valid vectors in this case.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37572 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-07-19 01:14:02 +00:00
Ingo Weinhold
45849022ce syslog_sender():
* After an unsuccessful find_port() wait a while before trying again.
  find_port() is quite expensive and particularly during the boot process it
  was called quite busily. Essentially a find_port() per written syslog
  message was performed.
* Added TODOs regarding using a semaphore and using find_port().


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37571 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-07-18 23:55:39 +00:00
François Revol
92d7886758 Fix Mac decorator build.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37570 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-07-18 20:16:23 +00:00
Clemens Zeidler
43d808c01d Simplify code as suggested by Stippi.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37569 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-07-18 20:05:37 +00:00
Adrien Destugues
cc5a68f1c1 * Use a BDateTime instead of a BTime to hold the time value forthe TimeEdit. This allow proper handling of conversion to time_t, taking timezones into account.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37568 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-07-18 19:24:15 +00:00
Adrien Destugues
4366ca40fe * A subtle bug in hta catkey computation made linkcatkey fail at buid o matic (freebsd), but not haiku, nor linux. Fix the affected files to make freebsd happy.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37567 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-07-18 18:47:11 +00:00
Adrien Destugues
189ad1a924 * Sync all approved catalogs from hta.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37566 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-07-18 17:05:37 +00:00
Adrien Destugues
3becd1d260 * Fix the ClassicBe decorator for decorator API change.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37565 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-07-18 16:31:25 +00:00
Ingo Weinhold
935c5e8278 Fixed build with TRACE_VFS_REQUEST_IO enabled.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37564 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-07-18 13:25:26 +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
Adrien Destugues
7b8dcda464 Add gcc version information to kdl info command. This could help debugging in some cases and fixes #3240.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37562 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-07-18 12:21:42 +00:00
Matt Madia
1e4d65f578 Create symlinks for the static libs of GCC Agnostic packages.
Note: Should we create symlinks for the *.la libtool related files?


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37561 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-07-18 03:11:28 +00:00
Matt Madia
7bf351fce9 Added a small sanity check for improperly built images.
Added a TODO about creating the symlinks for gcc-agnostic packages.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37560 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-07-18 02:12:16 +00:00
Clemens Zeidler
e07ebdeb71 Fix SetTitle (bug #6321).
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37559 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-07-18 01:35:45 +00:00
Rene Gollent
9509e395e7 Update Web+ to r535. Fixes ticket #6321, though behavior isn't correctly observable right now due to an app_server bug with respect to updating window titles.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37558 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-07-18 00:56:52 +00:00
Ingo Weinhold
54f25b672a Fixed build with TRACE_VM86 enabled. Closes #6325.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37556 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-07-17 16:17:14 +00:00
Ingo Weinhold
c019945cbd Added detail to the comment about why we can't call the create() hook without
O_EXCL.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37555 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-07-17 16:11:56 +00:00
Ingo Weinhold
1a38616f35 Fixed fs_vnode_ops::create() documentation: The function shall not fail, if
the file already exists, unless O_EXCL has been specified. At least that's
how our file systems with write support implement it.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37554 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-07-17 16:00:48 +00:00
Ingo Weinhold
1f23605dd7 Added description for fs_volume_ops::get_vnode()'s _type and _flags
parameters.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37552 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-07-17 15:39:39 +00:00
Adrien Destugues
7af097b973 * Add FormatDate variant returning fields positions and associated DateFields returning their identifiers
* Use them in the time preflet to display and edit the date in a local-aware way


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37551 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-07-17 12:24:57 +00:00
Fredrik Holmqvist
a636d1e365 Patch by kaliber to fix some compiling errors with clang. Removed the #include <iostream> part, but otherwise not modified.
See http://clang.llvm.org/compatibility.html#c++ why it is needed. Note that HashMap.h Key and Value are typenames as well.
Afaict this is correctly done, builds and runs on gcc4. This fixes #5892.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37550 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-07-17 10:33:24 +00:00
Ingo Weinhold
e5ea208d71 Patch by Alex Wilson:
* Added archiving/unarchiving support.
* Coding style cleanup (some by myself).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37549 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-07-17 02:04:32 +00:00
Ingo Weinhold
4b20c303bd Patch by Alex Wilson:
* Added archiving/unarchiving support.
* Coding style cleanup (some more by myself).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37548 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-07-17 01:46:40 +00:00
Ingo Weinhold
39c72631a3 Patch by Alex Wilson:
* Added archiving/unarchving support.
* Coding style cleanup (some more by myself).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37547 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-07-17 01:05:28 +00:00
Ingo Weinhold
ff626c8e29 Patch by Alex Wilson: Added archiving/unarchiving support.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37546 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-07-17 00:46:40 +00:00
Ingo Weinhold
3fb74eb796 Patch by Alex Wilson (with minor changes by myself):
* Added support for archiving/unarchiving.
* Coding style cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37545 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-07-17 00:41:56 +00:00
Ingo Weinhold
a3d9e70188 dos2unix
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37544 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-07-17 00:20:19 +00:00
Ingo Weinhold
849e11ad8d Patch by Alex Wilson:
* Implemented archiving/unarchiving support.
* Coding style cleanup (some more by myself).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37543 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-07-17 00:15:31 +00:00
Ingo Weinhold
d1535a45df Patch by Alex Wilson:
* Implemented archiving/unarchiving support.
* Coding style cleanup (some more by myself).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37542 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-07-17 00:09:06 +00:00
Ingo Weinhold
80c2bbd8ae Patch by Alex Wilson (with small style changes by myself): Added support for
archiving/unarchiving.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37541 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-07-16 18:11:24 +00:00
Ingo Weinhold
7ed1644c55 Patch by Alex Wilson:
* Added archiving/unarchiving support.
* Style cleanup (also some by myself).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37540 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-07-16 17:23:15 +00:00
Ingo Weinhold
cbac1a2355 Patch by Alex Wilson: Added archiving/unarchiving of layout and layout
related data.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37539 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-07-16 17:06:55 +00:00
Ingo Weinhold
b137ab3eb3 Patch by Alex Wilson (minor changes by myself) related to the new archiving
features:
* Some cosmetic adjustments of the API, like using references instead of
  pointers, argument order, method names, etc.
* Added convenience template methods for archiving and unarchiving to BArchiver
  and BUnarchiver.
* BUnarchiver (respectively the private BUnarchiveManager) explicitly deals with
  object ownership, now. This is necessary since an error while unarchiving
  could leave an already unarchived object without owning object, which would
  result in it being leaked. The BUnarchiver::{Get,Find}Object() methods do now
  have an optional parameter to specify whether object ownership shall be
  transferred.
* Fixed incorrect header guard in headers/private/binary_compatibility/Global.h.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37538 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-07-16 16:49:42 +00:00
Stefano Ceccherini
6a78d35e85 Color schemas are applied live now.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37537 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-07-16 12:03:43 +00:00
Stefano Ceccherini
72439e2074 Obviously, just checking for the text color isn't enough.
Also renamed colors to schema since it makes more sense


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37536 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-07-16 11:56:11 +00:00
Stefano Ceccherini
80490c776a Add a menufield to select color combinations, and add obvious
"white on black" and "black on white". For some reason these aren't
applied live, like when you chose a custom combo.
I'm not really fond of the code, and will rework it in the next few days.
But at least it works!


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37535 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-07-16 11:52:35 +00:00
Ingo Weinhold
3aea1d4f53 * Added ObjectCache::alignment, the object alignment and used the alignment for
incrementing the cache color cycle. Using the fixed value (8) would
  potentially misalign the object again.
* Don't use CACHE_ALIGN_ON_SIZE for object caches any longer -- we have the
  alignment parameter anyway (the flag is still used for the MemoryManager,
  though).
* ObjectCache::InitSlab(): Slab coloring *was* done when CACHE_ALIGN_ON_SIZE
  was given, i.e. exactly the wrong way around. Also the cache_color_cycle
  computation was weird -- color 0 was used twice in a row.
* The "slabs" and "slab_cache" KDL commands also print the alignment, now.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37534 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-07-16 01:27:27 +00:00
Rene Gollent
a8d618d4d2 Update WebPositive to r532.
- fixes ticket #6186: Web+ would crash if pgup/pgdn was hit in its URL input while the choice list wasn't visible.
	


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37533 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-07-16 01:23:33 +00:00
Ingo Weinhold
44db70a313 * Resolved TODO: Use an object cache for the thread structure alloction.
* Align the allocated objects to 16 byte. This is required by the x86
  arch_thread structure. Haiku only didn't crash and burn since the until
  recently used heap allocator apparently aligned the structures to 16 byte
  anyway and the now used slab allocator has a bug preventing slab coloring
  for that object size.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37532 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-07-16 01:13:22 +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
Clemens Zeidler
369b4ff1e3 Update copyrights.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37530 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-07-15 20:38:13 +00:00