Pawel Dziepak
87d1bdb87c
util: add secure pseudorandom number generator
2013-04-11 12:31:58 +02:00
Pawel Dziepak
69042ecd1b
util: style fixes
2013-04-11 12:15:47 +02:00
Pawel Dziepak
d9fa99bb60
scheduler: let schedulers use kernel utils for random numbers
2013-04-11 04:37:23 +02:00
Pawel Dziepak
b56330de8e
nfs4: let nfs4 use kernel utils for random numbers
2013-04-11 04:35:11 +02:00
Pawel Dziepak
5c455f803f
vm: let aslr use kernel utils for random numbers
2013-04-11 04:35:11 +02:00
Pawel Dziepak
6003243ef3
util: introduce kernel utils for pseudorandom number generation
...
Currently there are two generators. The fast one is the same one the scheduler
is using. The standard one is the same algorithm libroot's rand() uses. Should
there be a need for more cryptographically PRNG MD4 or MD5 might be a good
candidates.
2013-04-11 04:34:59 +02:00
Jerome Duval
341c03f988
GCC4 cross tools: a static libGMP requires linking with the host libstdc++
hrev45480
2013-04-10 23:25:39 +02:00
John Scipione
b76cec7d9c
Pass a pointer to the TBarView object into the ExpandoMenuBar constructor
...
I fear that perhaps the fBarView variable may be accessed before it has a
chance to be set in AttachedToWindow(). By setting it in the constructor there
is no chance of this. Might fix #9656
hrev45479
2013-04-10 15:23:17 -04:00
Jerome Duval
e0d1980015
GCC4 cross tools: build libGMP before PPL and CLooG
...
* libGMP is actually a CLooG dependency, we now build it before CLooG
and tell to GCC where to find it when Graphite build is activated.
hrev45478
2013-04-10 18:47:01 +02:00
John Scipione
429ae1b151
A few more style fixes to ListView and ColorSet, thanks Axel
hrev45477
2013-04-09 19:24:51 -04:00
Rene Gollent
26f129eff2
Fix #9649 .
...
- Fix regression introduced in hrev45462: BUnicodeChar::FromUTF8 was no
longer advancing the passed in string pointer, resulting in endless
loops in functions relying on that behavior such as the locale kit's
CoerceFormatTo*() functions.
hrev45476
2013-04-09 18:21:56 -04:00
Pawel Dziepak
5b4fb267ad
textencoding: add CP-1250 encoding
hrev45475
2013-04-09 23:39:10 +02:00
Pawel Dziepak
feae2b5a00
vm: force userland to use B_RANDOMIZED_* address specifications
2013-04-09 23:25:19 +02:00
Pawel Dziepak
bf65fc1dfe
vm: remove B_RANDOMIZED_IMAGE_ADDRESS address specification
...
This address specification is actually not needed since PIC images can be
located anywhere. Only their size is restriced but that is the compiler and
linker concern. Thanks to Alex Smith for pointing that out.
2013-04-09 22:09:13 +02:00
Jerome Duval
024f78deeb
GCC4 cross tools: disable "maintainer mode" on PPL configure.
...
* PPL: make could run autoconf in certain conditions, thus generating artefacts
in the source tree. Added --disable-maintainer-mode when launching
configure to avoid this situation.
* cleanup: there are no info files in CLooG and PPL.
hrev45474
2013-04-09 21:55:06 +02:00
John Scipione
1af184248a
Pass the B_FILTER_BITMAP_BILINEAR for scaling backgrounds
...
Fixes #6536
hrev45473
2013-04-09 03:38:01 -04:00
John Scipione
7e702e5226
Covert Tracker Find window to use ControlLook arrows
...
Also fix a few style issues and make the MiniMenu control have a nice keyboard
focus border.
hrev45472
2013-04-09 02:58:58 -04:00
John Scipione
d45ea79290
One more style fix that I missed
hrev45471
2013-04-09 00:20:46 -04:00
John Scipione
63f3755c5f
Many style fixes to ListView
hrev45470
2013-04-09 00:17:37 -04:00
John Scipione
29ceb649f8
Style fixes to ListView
2013-04-08 23:49:57 -04:00
John Scipione
135f35e5c7
SetColor and redraw listitems on revert. Fixes #9640
...
Finally the point of these commits, to fix this bug.
hrev45469
2013-04-08 23:13:34 -04:00
John Scipione
0112415f3b
Reverse loop variable avoidance
2013-04-08 23:13:33 -04:00
John Scipione
eba68f6124
Update header and other style fixes
2013-04-08 23:13:32 -04:00
John Scipione
034643d4ca
Reorder Revert to order of tabs, same as Defaults action
2013-04-08 23:12:48 -04:00
John Scipione
7ef12e5cad
Eliminated _UpdateControls(), some style fixes
2013-04-08 23:11:42 -04:00
John Scipione
4600a90cd0
Pointer style fixes
2013-04-08 23:11:41 -04:00
John Scipione
aff2fb8750
Loop count premature optimization
2013-04-08 23:11:39 -04:00
John Scipione
3e30da293d
Stylish style fixes for ColorSet
2013-04-08 23:11:39 -04:00
Pawel Dziepak
968cf7c83d
nfs4: make sure retry delay won't get out of bigtime_t range
hrev45468
2013-04-09 03:40:54 +02:00
Pawel Dziepak
75ff6e996f
nfs4: silent "suggest parentheses" GCC warning
hrev45467
2013-04-09 03:31:19 +02:00
Pawel Dziepak
6f840fdf69
Merge branch 'nfs4'
hrev45466
2013-04-09 03:15:11 +02:00
Pawel Dziepak
9ac4430cd6
nfs4: fix incrementing owner sequence id in some cases
...
If in a compound request an error occurs before the operation that takes
sequence id is executed (e.g. OPEN or LOCK) do not increment sequence id
regardless of the error code.
2013-04-09 03:13:59 +02:00
Pawel Dziepak
fa1ca5e20c
nfs4: use exponential backoff when the server ask to wait
2013-04-09 01:55:23 +02:00
Alexander von Gluck IV
876e5db83d
usb_asix: add a few missing device usb id's
...
* Taken from the Linux asix driver
* Untested, but same chipset so they
*should* work.
hrev45465
2013-04-08 18:19:12 -05:00
Pawel Dziepak
d57105534b
vm: several improvements to VMUserAddressSpace::_InsertAreaSlot implementation
...
* B_BASE_ADDRESS honors requested alignment
* end of range is honored
* B_BASE_ADDRESS reuses B_ANY_ADDRESS code
2013-04-08 23:56:10 +02:00
John Scipione
2b8d413116
Remove dead code
hrev45464
2013-04-07 14:54:06 -04:00
John Scipione
86c4eae3ce
Also nullify other saved items on delete
hrev45463
2013-04-07 14:46:24 -04:00
John Scipione
1dccb7aaaf
Don't call DrawExpanderArrow() directly, set a variable and Invalidate()
2013-04-07 14:46:23 -04:00
Siarzhuk Zharski
3d1492487d
Fix support of East Asian Full Width characters
...
* Re-enable full-width characters detection and display;
* Fix cursor drawing on full-width characters;
* Fix debug dump for multi-byte characters;
* Fix file permissions for debug capture log.
Fixes #6717 . Also may improve behaviour related to #6227 .
hrev45462
2013-04-07 20:18:21 +02:00
Siarzhuk Zharski
b6fd91b409
Switch BUnicodeChar to wrap the ICU's UChar32 one
...
Improve the unicode character processing and classifying routines by
wrapping up the UChar32 procedures from ICU. That fixes functional
regression introduced in hrev38017 and allows to fix East Asian Width
problems int the Temrinal.
2013-04-07 20:14:37 +02:00
Siarzhuk Zharski
4e17bdd83f
Fix CID991252: Possible NULL dereference on scheme name
...
The color scheme name pointer is dereferenced but was not checked for
NULL value.
hrev45461
2013-04-07 19:47:51 +02:00
Siarzhuk Zharski
b249a7ce43
Fix CID991683: Uninitalized scalar field
...
fOldTitleUSerDefined was (surprice-surprice!) not defined.
2013-04-07 19:47:39 +02:00
Siarzhuk Zharski
34a1a44dad
Fix CID609944: Uninitialized scalar field
...
Default constructor for UTF8Char has not initialize it's data.
2013-04-07 19:46:57 +02:00
Siarzhuk Zharski
0d75239fb7
Fix CID991133: Same if expression was duplicated
2013-04-07 19:46:12 +02:00
Siarzhuk Zharski
4755a0794e
Fix CID992335,CID992334: Check FindRef/String returns
...
Satisfy Coverity by checking return values of FindRef and FindString
calls for fSavedMessage.
Resolves CID992335 and CID992334.
2013-04-07 19:46:00 +02:00
John Scipione
9f2cce2faa
Eliminate repeating CountItems() loop premature micro-optimization
...
Loop backwards if possible, if not, set a variable and use that instead.
There were a couple of instances where the loop style got changed from
for (int32 i = CountItems(); --i >= 0;)
to
for (int32 i = CountItems() - 1; i >= 0; i--) {
but should be functionally equivalent.
hrev45460
2013-04-07 13:01:29 -04:00
Alexander von Gluck IV
7cb974614f
NetworkSetup: Use std max vs max_c
hrev45459
2013-04-07 11:16:24 -05:00
John Scipione
17c9912b90
Another tweak, make the left diagonal arrows flush left.
...
This moves the left up and left down arrows 1px to the left so that they are
flush with the left side of the container they're drawn in.
hrev45458
2013-04-07 11:40:22 -04:00
John Scipione
348cd0c5de
Tweak the diagonal arrows so they are square
hrev45457
2013-04-07 04:03:00 -04:00
John Scipione
e6b6af80bd
Fix a crash bug I introduced to Deskbar last commit
...
Need to set fLastClickedItem to NULL so it doesn't point to a deleted item.
Sorry about that.
hrev45456
2013-04-07 03:29:11 -04:00