47115 Commits

Author SHA1 Message Date
Pawel Dziepak
51fb559348 nfs4: Fix CID #1032257: ERR_DENIED is expected only when a cookie is given 2013-06-13 11:28:26 +02:00
Pawel Dziepak
04fa44c37e nfs4: Fix CID #1032280: Prevent integer overflow
* Do not increase delay after tenth attempt
 * Cast 1 to bigtime_t before shifting it left
2013-06-13 11:26:30 +02:00
Pawel Dziepak
69c8011e6e nfs4: Remove unused member variable NFS4Server::fClientIdInit hrev45755 2013-06-13 02:04:35 +02:00
Pawel Dziepak
1192182c89 nfs4: Fix CID #991617: Set cookie file system at its creation 2013-06-13 02:04:34 +02:00
Pawel Dziepak
b92a3dcc61 nfs4: Clear PeerAddress before attempting to get local address
If PeerAddress is cleared before invoking GetLocalAddress() we make sure
it won't contain any garbage data in a very unlike case when getsockname()
fails.
2013-06-13 02:04:33 +02:00
John Scipione
7a66a8375d Check if disk has compilation artist
... before looking for track specific artist information. Fixes #9813

Signed-off-by: John Scipione <jscipione@gmail.com>
hrev45754
2013-06-12 19:02:00 -04:00
Ingo Weinhold
c625c5fd36 <langinfo.h>/<select.h>: don't use C++ comments 2013-06-12 14:55:16 +02:00
Ingo Weinhold
7b6d45c942 LibsolvSolver: Use Solvable only where necessary
repo_internalize() apparently reorganizes the storage for Solvable
objects so that our fSolvablePackages and fPackageSolvables maps could
contain invalid pointers. Now the maps use the solvables' ID instead.
Also use the IDs instead of the Solvable objects in most other places,
which in some cases even simplifies the code a bit.
2013-06-11 19:41:16 +02:00
Ingo Weinhold
a1832a0e83 <resolv.h>: Make self-contained 2013-06-11 15:23:18 +02:00
John Scipione
1f0b41ba7f BColorControl: Position text controls better
Position the text control vertically in the middle of the ramp in
the case that the text controls are pushed down so that the red, green,
and blue text controls are next to the red, green, and blue ramps.
hrev45753
2013-06-10 19:15:11 -04:00
John Scipione
d5432ed609 BColorControl: Refactor _LayoutView()
In a few cases we were doing the work of _LayoutView() twice because
we called _LayoutView() and then called ResizeToPreferred() which called
_LayoutView() again.

Now only call ResizeToPreferred() which calls _LayoutView().
2013-06-10 19:15:10 -04:00
John Scipione
da6c116d63 BColorControl: Introduce kRampCount magic constant. 2013-06-10 19:15:09 -04:00
John Scipione
8b3b14fdfa BColorControl: Introduce a _PaletteFrame() method
... eliminating duplicate code.
2013-06-10 19:15:09 -04:00
John Scipione
abbd44acfb BColorControl: Rename bevelRect to just rect
... with an explanatory comment. Correct similar comment.
Tiny style fix.
2013-06-10 19:15:08 -04:00
John Scipione
62fec205dd BColorControl: Size text rect based on font size
* Also change kMinCellSize from a uint32 to a float so that it can be used
  with std::min() and std::max() instead of min_c() and max_c().
* Set the text controls sizes and margins based on the font size. Also rework
  _TextRectOffset() so that it will get the right spacing from by dividing the
  palette frame by 3.
* Replace bare numbers and refactor with calculation or magic constant.
* Create a private method _TextRectOffset() which calculates and
  returns the vertical text rect offset to use based on the font size.
* Replace 2.0 with new kBevelSpacing constant where appropriate.
* fPaletteFrame calculation in _LayoutView() was refactored but should
  not have changed.
2013-06-10 19:15:07 -04:00
John Scipione
1186916f06 BColorControl: Create _SetCellSize() method
...eliminating duplicated code.
2013-06-10 19:15:07 -04:00
John Scipione
0289f92063 BColorControl: Style fixes
* Update copyright in header, add my name, alphabetize.
* Rename _ColorRamp() to _DrawColorRamp().
* Rename update parameter to updateRect
2013-06-10 19:15:06 -04:00
John Scipione
2a95812e46 Mail: Tweak the height of the menu fields
Since hrev45725 we no longer resize fixed sized menu fields to their preferred
height in the constructor so as to be backwards compatible with the behavior on
BeOS R5. As a consequence though, the menu fields in Mail are now a bit too
tall so this commit tweaks the menu fields to be just a bit shorter matching
the height of the text controls.
hrev45752
2013-06-10 18:31:58 -04:00
Rene Gollent
0df5a3b0cb Fix x86-64 build. hrev45751 2013-06-09 21:24:11 -04:00
Jérôme Duval
8239f0320d scsi: improved code style and use of B_PRI macros hrev45750 2013-06-09 20:15:12 +02:00
Niels Sascha Reedijk
d8189e2aaf Update translations from Pootle hrev45749 2013-06-08 06:14:13 +02:00
Rene Gollent
7e6a958b0b Fix regression introduced in 6b308faf.
That commit switched to a single string column for representing
breakpoint locations, but neglected to update the case of a breakpoint
in a non-debug function to actually format the address as a string
appropriately, leading to those simply showing no data since then.
hrev45748
2013-06-07 22:32:32 -04:00
Rene Gollent
07842a5be0 Fall back to disassembly in case typecast fails.
Since some time now, we construct minimal dwarf image debug infos
for release images if they contain frame unwind information, in order
to allow using that to unwind the stack in as many cases as possible.
As such, it's  entirely possible that such an image may be asked for
statement information regarding a function that isn't in fact compiled
with debugging. As such, we need to simply fall back to disassembly
rather than failing entirely. Fixes setting breakpoints in such
functions (i.e. anything in a release version of libstdc++).
2013-06-07 22:16:38 -04:00
Ingo Weinhold
beeaf379b1 HaikuDevel: Fix copying the build feature headers
We have to use actual targets that cause the respective download and
extract the packages. Otherwise the build fails when the packages
haven't been extracted yet.
2013-06-08 00:55:12 +02:00
Ingo Weinhold
444b035d5d BuildHaikuPackage rule: Locate extract script
Missed that when adding the script. Therefore it would be created in the
current directory and when building multiple packages concurrently the
script would be overwritten.
2013-06-08 00:20:24 +02:00
Ingo Weinhold
c80c7982c8 boot packagefs: Fix zlib dependency declaration 2013-06-08 00:18:28 +02:00
Ingo Weinhold
3dadb47f21 boot loader tarfs: Declare dependency to zlib package 2013-06-08 00:04:45 +02:00
Siarzhuk Zharski
3b8f8e0caa ICNS/JPEGTranslators: add Jamfile deps to lib headers
* Add Jamfile dependency to LIBPNG headers on icns_png.c;
* Add Jamfile dependency to LIBJPEG headers on JPEGTranslator.cpp
  be_jdatasrc.c

Conflicts:
	src/add-ons/translators/jpeg/Jamfile
2013-06-07 23:39:57 +02:00
John Scipione
51e2dbe7f2 Backgrounds: AddGlue() before color control
... so that it is attached to bottom of the box.
hrev45747
2013-06-07 15:53:13 -04:00
John Scipione
d0ddd796b2 Backgrounds: Update spacing around preview.
So that there isn't extra space at the bottom, only between the monitor
and the X and Y text controls, and the insets.
2013-06-07 15:36:57 -04:00
Jérôme Duval
6e6c121b84 virtio: added several devices ids. hrev45746 2013-06-07 18:00:17 +02:00
Jérôme Duval
d323ad6708 shortcut_catcher: fixed out of bounds access and a sign warning.
* normal_map is an array with a length of 128
2013-06-07 18:00:15 +02:00
Ingo Weinhold
52a43b19ff MakeLocate rule: Avoid directory dependency, if already located
Only create the directory dependency for a target, if that's where the
target will actually end up. If it has already been located before, do
nothing.
2013-06-07 15:31:03 +02:00
Ingo Weinhold
69de9c6e3c MIME DB build: Fix name clashes
* Make grist for subtype source files unique.
* Our MakeLocate only appends to LOCATE, so we have to call it before
  ResComp, if we want a different location.
2013-06-07 15:17:42 +02:00
John Scipione
1c95f72222 Don't set MaxContentWidth on the menu bar of a BMenuField
Fixes #9816

It is no longer necessary, or even desirable for us to set the max
content width of the menu bar of a BMenuField now that BMenuItem
truncation and BMenuField sizing are working.

The user may, however, wish to set the max content width of the menu
bar of a BMenuField themselves like so:

menuField->MenuBar()->SetMaxContentWidth(width);

and the Interface Kit will automatically deduct the left and right
margins from the width including the space used by the drop down arrow.
hrev45745
2013-06-07 03:25:36 -04:00
Ingo Weinhold
bc96e8f30c Add more robust generic attribute emulation variant
The new configure option "--use-xattr-ref" enables an xattr assisted
variant of the generic attribute emulation. Instead of using the inode
ID of a node to identify its attribute directory, we use a reasonably
unique random 128 bit number, which we generate and attach as an
attribute to the node. This way, when a node changes its inode ID
(defragmentation?) or the inode ID of a removed node with a left-over
attribute directory is reused, attributes won't get mixed up.

The old method is still used for symlinks (since on Linux only
priviledged users can write attributes on symlinks), but those usually
only have a rather boring BEOS:TYPE attribute, so mix-ups wouldn't be
that problematic anyway.
2013-06-07 02:27:48 +02:00
Ingo Weinhold
01176bd944 Add basic BUuid class
ATM it's only able to generate random UUIDs.
2013-06-07 02:03:16 +02:00
Ingo Weinhold
280b7cb63a libroot_build: Improve/fix get_path()
In fs_attr_generic() get_path() is used with a symlink FD, which didn't
work at all. Handle symlink descriptors explicitly now.
2013-06-07 02:01:46 +02:00
Rene Gollent
37e0f72711 Slight tweak to filtered node expansion logic.
When a filter is active, only expand parent nodes if either a) there is
only one matching parent, or 2) the match actually hit a function
contained in it. This allows the case where the intent of the filter is
to find a particular set of files or subdirectories to be handled more
efficiently.
hrev45744
2013-06-06 18:24:37 -04:00
Rene Gollent
8b98295a68 Redo filtering to use new RegExp classes.
ImageFunctionsView's filtering field now allows shell-style glob matches
rather than just simple direct string matches. Implements remaining
part of #7955.
hrev45743
2013-06-05 22:02:45 -04:00
Rene Gollent
faa0580b62 Optimizations to filter match drawing.
Store the filter match index on the SourcePathComponentNode so we can
retrieve it directly when drawing instead of having to recompute the
position of the match every time.
2013-06-05 22:02:44 -04:00
Rene Gollent
7d4a7ce33e Add ability to specify case insensitive matching. 2013-06-05 22:02:43 -04:00
Rene Gollent
47fedeb598 Import RegExp classes from Ham.
Minor adjustments made by myself to fit into Haiku better.
2013-06-05 22:02:42 -04:00
Rene Gollent
58535f5a9a Initial implementation of #9755.
- ImageFunctionsView now contains a text input allowing one to specify a
filter for its contained functions.
- When in filtered mode, the previous flattened view is used rather than
the hierarchical tree.
- The matching portion of the string is highlighted. However, currently
only simple string matches are supported.
2013-06-05 22:02:42 -04:00
Rene Gollent
cc27aad6b0 BCLV: Force scrollbar fixup if cleared. 2013-06-05 22:02:41 -04:00
Ingo Weinhold
a266b57a9a ReaderImplBase: Handle new ...IS_WRITABLE_DIRECTORY attribute 2013-06-06 00:49:53 +02:00
Ingo Weinhold
4489c88b61 hpkg format: Generalize user/global settings file attributes
* For all identifiers: Rename global settings file to global writable
  file. We want to use the respective attribute also for other writable
  files, not only settings files.
* User settings file/global writable file info/attribute: Add
  isDirectory property/child attribute. This allows declaring global/
  user settings directories associated with the package.
2013-06-06 00:17:02 +02:00
Ingo Weinhold
8944824d1c rm_attrs: Fix for parameters with whitespace 2013-06-06 00:17:02 +02:00
Oliver Tappe
729c6333ad Runtime loader: rename compatibilitySubDir to abiSpecificSubDir. 2013-06-05 18:32:47 +02:00
Oliver Tappe
0050b4b452 Runtime loader: don't fall back to OS-ABI directories.
* when an executable with a different ABI is being loaded and some
  needed image isn't found, don't retry using the standard ABI folders
  of the system - those are now considered incompatible
2013-06-05 18:32:47 +02:00