Commit Graph

45498 Commits

Author SHA1 Message Date
Pawel Dziepak
0fef11f1a8 arch: some CPUID leaves may be not available 2013-04-23 02:43:26 +02:00
John Scipione
25ca105ebf Tiny style fix 2013-04-22 20:10:34 -04:00
Rene Gollent
c24adb2950 Rework DefaultNotificationService registration.
- Instead of implicitly registering and unregistering a service
  instance on construction/destruction, DefaultNotificationService
  now exports explicit Register()/Unregister() calls, which subclasses
  are expected to call when they're ready.

- Adjust all implementing subclasses. Resolves an issue with deadlocks
  when booting a DEBUG=1 build.
2013-04-22 18:42:21 -04:00
Pawel Dziepak
be573dcd88 arch: make sure not to set NX-bit when it is reserved 2013-04-22 17:36:36 +02:00
Philippe Saint-Pierre
3f0a22c88b Chart Demo: Fix for failure to detect already opened popup windows
Clicking on the FPS, color chart or any other buttons meant to make a popup
window appear was failing to detect and re-focus an already opened popup.
2013-04-21 20:51:02 -04:00
Rene Gollent
4b8a8922cb Reorder sections of debug reports. 2013-04-21 18:52:24 -04:00
Stefano Ceccherini
4ab260da80 Don't leak the socket.
BNetworkRoster::AddInterface and RemoveInterface did not close
the socket.
2013-04-21 21:16:52 +02:00
Rene Gollent
e33233713a Fix Web+ debug build. 2013-04-21 14:11:52 -04:00
Stefano Ceccherini
875b9f66d1 Use BNetworkDevice to get the current associated wireless network.
Use BNetworkDevice instead of using the driver settings api to get the
associated wireless network.
Also got rid of Settings::_PrepareRequest(), since it's no longer needed.
2013-04-21 18:26:14 +02:00
Rene Gollent
d519acd691 Some refactoring of Settings classes.
- Rename the current RangeSetting -> BoundedSetting and add an
  appropriate setting type enum, since that one actually describes
  a single value clamped to a range, rather than an actual range.

- Add RangeSetting class that has both a lower/upper bound and a pair
  of values representing the lower and upper ends of the range currently
  selected.
2013-04-21 12:01:17 -04:00
Rene Gollent
758a63dc70 Implement ranged container hooks in ArrayValueNode. 2013-04-21 11:46:12 -04:00
Rene Gollent
7d151f694c Extend ValueNode API.
- Add several new optional hook functions to ValueNode. These
  allow implementing subclasses to specify that they're a container
  type that can export a range of items (i.e. arrays, lists, etc.),
  and expose several operations on said ranges of child items.
2013-04-21 11:46:12 -04:00
Stefano Ceccherini
be1038406b Use the network kit api instead of talking to the netstack directly.
Use BNetworkInterface and BNetworkInterfaceAddress in the Settings class
instead of using ioctls. This works for everything except the default
route, for which there is no API yet.
2013-04-21 15:45:38 +02:00
Siarzhuk Zharski
bf88d81ea6 Fix GB18030 encoding support. And some cleanup ...
* Fix GB18030 Chinese encoding support for two and four bytes long
  characters. This finally resolves issue described in #6227;
* Processing of multi-byte characters was slightly refactored too;
* Remove the multi-byte 94/96 graphsets designation support for
  Japanese encodings. That looks like MuTerm rudiment, it had incomplete
  implementation and looked like abandoned. On the other hand multi-byte
  designation must be implemented in the same way as designation for
  single-byte graphsets was done. Note that this multi-byte graphsets
  designation has nothing to do with the normal encoding support for
  usual data flow conversion - so you will be on the safe side when
  use terminal encoding menu switch.
  The removed feature is the ancient technique to achieve different charsets
  support on 8-bit serial lines by assigning (designating) predefined
  sets of characters to G0, G1, G2 and G3 and selecting them during
  program life-time into GL (x20-x07E) or GR (xA0-xFF) areas by using LS
  or SS functions.
  For example xterm has no support for designation multi-byte graphsets
  at all. Anyway if this feature is required and you can provide the
  test environment - please let me know and I will be glad to implement
  this feature in more easy and consistent way;
* Remove unreferenced gSmbcsTable and gScsTable parsing tables that
  looks like is not used anymore;
* Remove gCS96GroundTable and gMbcsTable parsing tables that were used
  by multi-byte 94/96 Japanese graphsets support and now obsoleted by
  removing mentioned feature;
* Remove some obsoleted #defines, like HW statusline support for
  example, from parse tables definition.
2013-04-20 16:51:42 +02:00
Rene Gollent
8c1b20b862 return ESRCH when team isn't found by name. 2013-04-20 09:23:00 -04:00
Niels Sascha Reedijk
4ab6221d9a Update translations from Pootle 2013-04-20 06:29:14 +02:00
Rene Gollent
87d33c4ff3 Slight refactoring.
- Factored out CppLanguage::ParseTypeExpression() into one that could
  be used in CLanguageFamily, with some hooks to help differentiate
  what's allowed in C vs C++. Makes the type parsing available for
  C files as well, and consequently allows typecasting to work for
  those.
2013-04-19 22:55:59 -04:00
John Scipione
4122ce2aff Move the save panel to the middle of the window as well 2013-04-19 21:25:18 -04:00
John Scipione
9e5508fab4 Move the alert to the middle of the window 2013-04-19 20:15:24 -04:00
Rene Gollent
3464764f7d Cleanup, no functional change. 2013-04-19 18:35:47 -04:00
Rene Gollent
3c6ba4733b Fix #9684.
Implement MemoryBlockRetrievalFailed() hook in
DebugReportGenerator. Use it to report failure to dump the
stack memory region instead of hanging forever waiting for
the request to succeed.
2013-04-19 17:48:46 -04:00
Rene Gollent
808bcad05c Add MemoryBlockRetrievalFailed() hook.
Adjust RetrieveMemoryBlockJob to call said hook if we fail to fulfill
the memory read request.
2013-04-19 17:47:04 -04:00
Rene Gollent
ad9496c20c Fix #9687.
- Fix operator prefix/suffix reversal that caused the first
  argument to be evaluated twice.
- Track if we managed to find a name match for the team at all.
  If not, print an error indicating such.
2013-04-19 17:27:26 -04:00
Philippe Houdoin
9058801fe2 Fixing my own mess introduced in r41274. Fix #9446. 2013-04-18 02:06:20 +02:00
John Scipione
30e6af93e4 Eliminate background app and Deskbar app checks
This is a follow up on the fix for #9632.

Now that the group list in Deskbar never deals with background apps or the Deskbar app itself we can simplify the code by eliminating the checks, especially in Switcher.cpp (Twitcher).

Checking for background apps and Deskbar has also been eliminated from TExpandoMenuBar and TTeamMenu. The single point of entry for these checks is in TBarApp::AddTeam().

In Switcher.cpp remove OKToUse() since the list is assumed to contain only valid entries. TSwitchManager::CountVisibleGroups() also got removed because all groups are visible. TSwitchManager::_FindNextValidApp(), TSwitchManager::QuitApp(),  TIconView::ItemAtPoint(), TIconView::ScrollTo(), and TIconView::FrameOf() all got simplified significantly.
2013-04-17 18:50:03 -04:00
Philippe Houdoin
1e77e4f852 Tokenize directly in team_info.args buffer. 2013-04-18 00:20:10 +02:00
Philippe Houdoin
cc2c83fa5c Applied patch by Prasad Joshi to add kill by process name support. Thanks. Closed #1944. 2013-04-18 00:20:05 +02:00
Pawel Dziepak
103977d0a9 arch: NX is initialized too early on non-boot CPUs 2013-04-18 00:15:57 +02:00
John Scipione
807ea4dad0 Rename sig variable to signature in BarApp 2013-04-17 17:20:49 -04:00
Philippe Houdoin
184fada4e9 Connecting an UDP endpoint was resetting a previously bound local port. Fix #9678 2013-04-17 22:23:27 +02:00
John Scipione
ab37997c98 Style fix and comment update 2013-04-17 15:58:42 -04:00
Pawel Dziepak
46575667eb Merge branch 'aslr' 2013-04-17 20:07:32 +02:00
Pawel Dziepak
3ef8e34c0a nfs4: fix few issues related with file caches
* update metadata cache when writing to cache
 * do not limit size of a io request
 * minor checks in Inode::Write
2013-04-17 19:29:54 +02:00
Rene Gollent
f6c0237372 Fix handling of string fields in BMessages.
We can't depend specifically on a generic array type of a primitive
being available in the global type cache, because there might not have
been a DIE for it. As such, simply look up the type for the character
primitive and then derive an array type from that instead.
2013-04-16 22:57:22 -04:00
Rene Gollent
1b74b08f75 Save/restore renderer settings in view state. 2013-04-16 21:19:20 -04:00
Rene Gollent
c819aef9a1 Add renderer settings to VariablesViewNodeInfo. 2013-04-16 21:18:59 -04:00
Rene Gollent
ba2c3d57f6 Extend Settings to allow value restoration via message. 2013-04-16 21:17:44 -04:00
Rene Gollent
2b9c68af5d Fix broken save/restore of split view settings. 2013-04-16 17:56:45 -04:00
Pawel Dziepak
84bb91df83 arch: use PRNGs from kernel utils for initializing stack pointer 2013-04-16 22:35:10 +02:00
John Scipione
af84ce79da Rename B_COLOR_WHICH_COUNT to kColorWhichCount 2013-04-16 03:44:42 -04:00
John Scipione
376e5bb692 Set legeneral_ui_info.mark_color to B_CONTROL_MARK_COLOR 2013-04-16 03:23:07 -04:00
John Scipione
45fec7fc74 Check for empty group list in _FindNextValidApp(). Fixes #9632
Thanks mmlr! I went with "The easiest solution". Perhaps the OKToUse() could be simplified by removing the checks for background apps and Deskbar but I prefer to keep it as is in case there someone changes the code in the future.
2013-04-16 01:32:28 -04:00
John Scipione
6e22ba05d6 Style update 2013-04-16 01:32:24 -04:00
Rene Gollent
41cec3e6d4 Remember any applied typecasts in VariableViewState.
Preserves and restores typecasts across steps like we already do
for node expansion states.
2013-04-15 23:17:27 -04:00
Pawel Dziepak
8614737f71 elf: restore correct region protection after relocation 2013-04-16 03:44:38 +02:00
Rene Gollent
3f7664ad1c Revert part of previous commit.
The aforementioned ReleaseReference() exposes what appears to be a somewhat
more severe issue, leading us to a deadlock. Need to rethink this a bit.
2013-04-15 21:10:44 -04:00
Rene Gollent
00d0a0eae3 Fix reference count problem as suggested by Ingo.
During DefaultNotificationService's constructor, we get registered
with the NotificationManager, which acquires a reference. When
uninitializing the module we need to release this reference before
calling the destructor in order to balance the books, as it were.
2013-04-15 20:54:31 -04:00
Pawel Dziepak
9f3bd49737 runtime_loader: explicitly randomize rld_heap and _rld_debug_ positions 2013-04-16 02:44:47 +02:00
Pawel Dziepak
db1ca60528 runtime_loader: randomize position of runtime_loader
* make runtime_loader a dynammically linked object
 * add kernel support for loading user images that need to be relocated
 * load runtime_loader at random address
2013-04-16 02:29:05 +02:00
Rene Gollent
001d65dba7 Disable broken hardware cursor accelerant hooks. 2013-04-15 18:07:01 -04:00