Commit Graph

48386 Commits

Author SHA1 Message Date
Stefano Ceccherini
41d4206692 Added family parameter to the GetRoutes() API.
Moved common code to a private file.
2013-11-18 10:13:26 +01:00
Adrien Destugues
ba3f67bfb4 FileRequest: make sure we're dealing with a file.
Trying to Read from a directory results in an error code, but we also
missed that because an unsigned variable was used to store the result.

Fixes #10210.
2013-11-18 09:53:04 +01:00
Ingo Weinhold
94fb954c53 find_path*(): Support user specific home directory
No longer hard-code the home directory path. Instead ask
find_directory(), so we get the correct one for the current user.
2013-11-18 01:50:49 +01:00
Humdinger
d5f3d9c130 Added overlay image for read-only items.
Added a small padlock icon to mark read-only items.
See #10122.
2013-11-17 19:21:16 +01:00
Ingo Weinhold
04c6cb37bb find_directory(): Add architecture support
* Move PathBuffer helper class out of find_paths.cpp into its own
  header.
* find_directory():
  - Make use of MemoryDeleter to simplify things.
  - Make use of PathBuffer for a simpler and more correct handling.
  - Make B_UTILITIES_DIRECTORY to B_APPS_DIRECTORY. /boot/utilities
    doesn't exist anyway.
  - Resolve the concerned constants to the architecture specific
    subdirectory, when called in a secondary architecture context, just
    like find_path*().
2013-11-17 19:11:03 +01:00
Ingo Weinhold
7fb0d6c269 find_path*(): Fix B_FIND_PATH_MEDIA_NODES_DIRECTORY
It is architecture specific as well.
2013-11-17 19:11:02 +01:00
Ingo Weinhold
8a3fe6d1bf Add private __getenv_reentrant()
A reentrant variant of getenv().
2013-11-17 19:11:02 +01:00
Jérôme Duval
b38fed9370 usb_disk: accept B_DEV_MEDIA_CHANGED as a ready unit. 2013-11-17 18:13:51 +01:00
PieterPan
bca4535239 Devices: Check out of bound array access on category strings.
* Computes the length of the category strings array.
* Checks against this length before accessing the array
* Improves comment
* Should fix #10186

Signed-off-by: Jérôme Duval <jerome.duval@gmail.com>
2013-11-17 17:59:07 +01:00
Jérôme Duval
f584c0ca5f XHCI USB: some fixes.
* AllocateDevice(): don't include the root port in the route.
* SubmitNormalRequest(): fail if we couldn't allocate the a descriptor.
2013-11-17 17:47:51 +01:00
Ingo Weinhold
4f5e938576 Add setarch and getarch commands 2013-11-17 02:09:37 +01:00
Ingo Weinhold
c39c9283aa Add get_architectures() and C++ versions
* get_architectures() returns the primary and the secondary
  architectures in one array. That turned out to be convenient.
* Add C++ versions for get[_secondary]_architectures(), returning a
  BStringList.
2013-11-17 02:09:37 +01:00
Ingo Weinhold
2c2f3ab4e1 findpaths: Add an -a <architecture> option 2013-11-17 02:09:36 +01:00
Ingo Weinhold
60b39cd741 Add get_*architecture() API, extend find_path*() API
* Add get_architecture(), get_primary_architecture(),
  get_secondary_architectures(), guess_architecture_for_path() to get
  the caller's architecture, the primary architecture, all secondary
  architectures, or the architecture associated with a specified path
  respectively.
* Rename the find_path*() functions to find_path*_etc() and add an
  optional architecture parameter. Add simplified find_path*()
  functions.
* BPathFinder: Add FindPath[s]() versions with an architecture
  parameter.
2013-11-17 02:09:36 +01:00
Ingo Weinhold
cf7e2ad812 runtime loader: Export get_executable_architecture() function
Given a path of an ELF file, it tries to determine its architecture.
2013-11-17 02:09:36 +01:00
Ingo Weinhold
b83f9b3940 HAIKU_DEFINES: Add __HAIKU_PRIMARY_PACKAGING_ARCH
* It is set to the primary architecture we're building for.
* Remove __HAIKU__. The macro is already defined by the compiler.
2013-11-17 02:09:36 +01:00
Stefano Ceccherini
905f910e53 Network route API: Second try (WIP).
Implement BNetworkRoster::GetRoutes() and BNetworkInterface::GetRoutes().
Also implement BNetworkInterface::GetDefaultGateway().
There is code duplication at the moment, and the api only supports IPV4.
2013-11-16 13:29:32 +01:00
Stephan Aßmus
c88a1b9d2a Use delivery and reply timeouts...
when contacting the input_server.
2013-11-16 12:34:32 +01:00
autonielx
b7416a2dae Update translations from Pootle 2013-11-16 06:15:13 +01:00
John Scipione
1c776bfe37 Lock screensaver window directly
By passing the window pointer to ScreenSaverRunner contructor and using that
to lock the window when drawing instead of getting the window from the
Window() method of the view. This is safer.
2013-11-15 21:27:13 -05:00
Andreas Henriksson
c4684f1e0b Change missed fs_mount::cookie access in fs_shell:vfs.cpp
See commit 7ffafac8d7
This change was made in the kernel version, but missed in fs_shell.
2013-11-16 00:29:40 +01:00
Andreas Henriksson
73d45183f9 Forgotten initialization in fs_shell
Signed-off-by: Axel Dörfler <axeld@pinc-software.de>
2013-11-16 00:28:44 +01:00
Axel Dörfler
04da290fd6 Minor cleanup. 2013-11-15 23:13:54 +01:00
Stefano Ceccherini
0074cea398 Implement BNetworkRoster::GetNextRoute()
Implement BNetworkRoster::GetNextRoute() and used it in Network preflet.
2013-11-15 21:59:28 +01:00
Adrien Destugues
e4b939faa4 Change version number for haikuwebkit.
* Overwriting the test package with the final one doesn't work.
2013-11-15 20:23:42 +01:00
Jerome Duval
5641f2eae3 power_daemon: checks the device descriptors are valid
* acpi_lid is in fact optionally available.
2013-11-15 19:44:50 +01:00
Adrien Destugues
cb7df3b1da Update webkit and cmake packages
* Some changes required in WebPositive to store the cookies on disk
2013-11-15 18:39:07 +01:00
Adrien Destugues
564e256649 Various fixes to Services Kit
* Remove useless dummy protocol loop in UrlRequest
 * Stop HTTP requests before deleting the socket and other things the
loop may still be using
 * Deletion of items from the authentication map wasn't working
 * Remove some debug traces
2013-11-15 16:32:18 +01:00
John Scipione
d34a680c04 Screen Saver: fix race condition
Start the screensaver in the window thread instead of the runner
thread so that there is no lock contention for the window lock in
the runner thread when the saver starts.

The view that gets drawn into is assumed to have been prepared before
being passed to the runner thread, and this assumption has been made
true for the screensaver preview and screen_blanker apps.

Eliminate fHasStarted and the corresponding HasStarted() method in
ScreenSaverRunner as they are no longer needed.

Drawing still happens in the runner thread, and still needs to lock
the window thread potentially causing contention, yet, there
is a timeout here so the contention won't freeze the screensaver window,
only delay drawing the screensaver.

Drawing could be moved to the window thread via message passing to avoid
lock contention with the window but this would defeat a big part of the
purpose of having a separate rendering thread.

This fixes #10125 and #4260
2013-11-14 23:30:26 -05:00
John Scipione
60c0a74844 ScreenSaver, small code simplication.
kMsgSaverSelected is the already the invokation message
2013-11-14 23:30:24 -05:00
John Scipione
0f1162d27e ScreenSaver: Make sure password window is shown
… before resuming the saver on B_KEY_DOWN in the message filter.

It was assumed before, now we’re actually checking to make sure.
2013-11-14 23:30:22 -05:00
John Scipione
be888b3a49 PreviewView: Add SaverView() method 2013-11-14 23:30:20 -05:00
John Scipione
390e3154c2 ScreenSaver PreviewView code cleanup.
Eliminate Constants.h, set View color and low color black initially

Move AddPreview and Remove Preview to bottom
2013-11-14 23:30:18 -05:00
John Scipione
5d023095c2 ScreenSaverRunner: Suspend() and Resume() return status_t 2013-11-14 23:30:13 -05:00
John Scipione
e22c01af03 Screen Saver: style fixes 2013-11-14 23:30:10 -05:00
John Scipione
e11db35d48 Flurry Screen Saver: style fixes, correct Jamfile 2013-11-14 23:30:07 -05:00
Oliver Tappe
da854e342f Update 'jam help' output. 2013-11-15 00:34:01 +01:00
Oliver Tappe
8c040b5b35 Publish updated perl, python, git, mercurial and scons packages.
* perl and python now support vendor-folders for modules and use correct
  (i.e. writable) site-folders
* git, mercurial and scons have been adjusted to put their perl/python
  modules into respective vendor-modules folders
2013-11-14 23:53:02 +01:00
Oliver Tappe
49b970d9c2 Reintroduce jam rule for creating remote repository for testing.
* 'jam build-remote-test-repository' can now be used to create a
  remote repository which will then be used by the build system,
  such that the resulting package set can be tested.
2013-11-14 23:48:56 +01:00
Jérôme Duval
4320349447 power_daemon: added lid_monitor.
Thanks Rene!
2013-11-14 07:42:33 +01:00
Oliver Tappe
8e72745123 Fix behaviour of 'package_repo update':
* Instead of copying over the repository info from the source 
  repository, we need to read the repository info from a repository 
  info file corresponding to the target repository. Among other 
  problems, copying over the repository info from the source repo 
  put the wrong repository URL into the new repository, which in
  turn caused the package resolution done by Haiku's build system to
  fail (it tried to download packages from the wrong URL).
Additionally, I have updated the incorrect repository on the server, so
building Haiku-x86 should work again.
2013-11-14 01:52:29 +01:00
Jérôme Duval
c9db30cd7f power_daemon: use wait_for_objects() instead of polling.
* acpi_button and acpi_lid support select/deselect hooks.
* power_daemon now uses a thread waiting for lid or power button events.
* a power button event is still hardcoded to a shutdown.
* a lid event only displays a message.
2013-11-14 00:33:50 +01:00
Jérôme Duval
28fd553722 power_daemon: code cleanup, added copyright header. 2013-11-14 00:33:48 +01:00
Rene Gollent
ab3b931b14 Add gcc4 BePDF and LibLayout packages.
Contributed by Chris Roberts. Thanks!
2013-11-13 16:38:12 -05:00
Ingo Weinhold
2b269f2e47 unlock_memory_etc(): Fix address space reference leak
unlock_memory_etc() is supposed to release the address space reference
lock_memory_etc() acquired. It didn't do that, though.
2013-11-13 01:47:36 +01:00
Ingo Weinhold
93fb0ff056 vm: lock_memory_etc(): Fix error case
In case something went wrong, call unlock_memory_etc() with the rounded
base address instead of with the original address. If the original
address wasn't page aligned, unlock_memory_etc() would otherwise try to
unlock an additional page.
2013-11-13 01:47:35 +01:00
Ingo Weinhold
5328a58455 AddNewDriversToHaikuImage rule: Support alwaysUpdate flag
* Support alwaysUpdate flag in AddFilesToContainer.
* Add flags arguments to AddNewDriversTo{Container,HaikuImage} and
  support alwaysUpdate flag.
2013-11-13 01:47:35 +01:00
Rene Gollent
58114b3476 HaikuDepot: Fix #10115.
- Also reset package state in the BFatalErrorException case.

- Show actual alerts for fatal install/uninstall errors rather than simply
  printing them to the console.
2013-11-12 18:14:26 -05:00
John Scipione
7192a9313e Add documenation for BPopUpMenu class 2013-11-11 19:28:04 -05:00
John Scipione
6f33360fac BPopUpMenu style fixes for documentation, no functional change intended 2013-11-11 19:27:45 -05:00