Commit Graph

37764 Commits

Author SHA1 Message Date
Rene Gollent 411fe79789 - Add definition for return address register type.
- Add TODO wrt default instruction pointer rule.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39821 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-12 15:12:17 +00:00
Jérôme Duval 9637baae5b moved FindBlock() from Inode to DataStream
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39820 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-12 11:18:59 +00:00
Adrien Destugues c21853165d Sync catalogs from hta.
The following ones are not synced because the export from hta has a wrong fingerprint. Mail was sent to Travis in the hope we'll get a fix.

rm ../data/catalogs/apps/aboutsystem/uk.catkeys 
rm ../data/catalogs/apps/diskprobe/be.catkeys 
rm ../data/catalogs/apps/diskprobe/fi.catkeys 
rm ../data/catalogs/apps/diskprobe/fr.catkeys 
rm ../data/catalogs/apps/diskprobe/ja.catkeys 
rm ../data/catalogs/apps/diskprobe/pl.catkeys 
rm ../data/catalogs/apps/diskprobe/pt_br.catkeys 
rm ../data/catalogs/apps/diskprobe/ru.catkeys 
rm ../data/catalogs/apps/diskprobe/uk.catkeys 
rm ../data/catalogs/apps/diskprobe/zh-hans.catkeys 
rm ../data/catalogs/apps/drivesetup/zh-hans.catkeys 
rm ../data/catalogs/apps/installedpackages/pl.catkeys 
rm ../data/catalogs/apps/mail/pl.catkeys 
rm ../data/catalogs/apps/terminal/fi.catkeys 
rm ../data/catalogs/apps/tv/zh-hans.catkeys 
rm ../data/catalogs/kits/tracker/fr.catkeys 
rm ../data/catalogs/preferences/shortcuts/zh-hans.catkeys 
rm ../data/catalogs/preferences/virtualmemory/zh-hans.catkeys 


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39819 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-12 10:58:47 +00:00
Michael Pfeiffer b12b2a60a7 * Bug fix: The configuration dialog was never opened, because it could
read the attribute "transport_address" created and set to an empty
  string by the print_server when the printer was created. 
  fEndpoint used an empty host name to connect to and then failed.
  Not sure why this caused a crash after closing the error dialog.
  Maybe something went wrong in the destructor using an invalid fEndpoint?
  Cures the symptoms of ticket #6973.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39818 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-12 08:06:19 +00:00
Rene Gollent 2e3906da98 - Set up correct stack pointer rule (value offset, not location offset).
- Init all registers to same value by default. gcc doesn't set up explicit CFI
  for same-value registers, so assume any register follows that rule until
  explicitly told otherwise (c.f. gdb/dwarf2-frame.c:793).



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39817 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-11 20:13:15 +00:00
Rene Gollent 87d85ea382 - Refactor setting up the default register rules to happen in the Architecture
class in order to allow us to set up architecture specific default rules
for registers that aren't explicitly set by the CFI program.
- Set up default rule for EIP on x86.
- Theoretically set up a default rule for the stack pointer. Disabled for the
time being though until I determine why that rule's not yielding the expected
values for ESP in anything other than the top frame, though the other location
offset rules work as expected.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39816 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-11 19:05:54 +00:00
Rene Gollent 452c6bfade Draw strings right aligned to be consistent with how other values are rendered.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39815 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-11 04:51:05 +00:00
Axel Dörfler cd8dbcdc87 * Added basic WLAN support to ifconfig.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39814 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-11 00:01:49 +00:00
Axel Dörfler 5e383e0e63 * Fixed typo.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39813 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-11 00:00:38 +00:00
Rene Gollent 73fd617531 Since sdl_e_type is now stored in network byte order, device_consumer_thread()
needed a corresponding adjustment to convert it back to host order before
working with it. Fixes #6972.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39812 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-10 23:57:26 +00:00
Jérôme Duval 5a3eee3350 * Keyboard input device addon: fix deadkey string leak.
* consoled: CID 1696, the found deadkey string is unused.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39811 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-10 20:38:22 +00:00
Jérôme Duval 7eb2d53b4c Now checks BPath init status before using it, this was crashing the Tracker in #6305.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39810 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-10 20:06:18 +00:00
Jérôme Duval f7218c2187 * HTree::Lookup() was trying to find the entry .. through indexed search instead of linear search. Should fix #6305
* DirectoryIterator::FindEntry() now takes name length in account for name comparison.
* cleanup


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39809 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-10 20:02:53 +00:00
Rene Gollent c454897103 Cleanup.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39808 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-10 19:56:30 +00:00
Philippe Houdoin acb73fef47 No need to iterate volumes's trash folders: we knows on which
device/volume the entry was moved, checking if it's in this volume trash folder is enough.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39807 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-10 17:56:50 +00:00
Philippe Houdoin fda6d9ab6f As suggested by Rene and Jerome, switch to BDirectory::Contains(),
which is way cleaner.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39806 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-10 15:48:05 +00:00
Philippe Houdoin 784263e28a Fixed a bug that would have considered /boot/trashy_file be in /boot/trash.
Spotted by Rene, thanks!


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39805 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-10 15:26:27 +00:00
Philippe Houdoin 1e4538de6f Don't send a mail entry located in trash folder.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39804 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-10 14:43:44 +00:00
Philippe Houdoin dfc6cf0159 Reworked TrashMonitor to watch actual trash folder(s).
It was still monitoring /boot/home/Desktop/Trash folder,
which don't exists anymore.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39803 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-10 13:53:43 +00:00
Philippe Houdoin 021ddf0c3b Use BMimeType to compare type instead of doing it ourself.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39802 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-10 11:19:15 +00:00
Michael Pfeiffer df60b3d51b * Use case insensitive compare method for MIME type.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39801 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-10 10:59:40 +00:00
Michael Pfeiffer b13a0d5d32 * Bug fixed: WriteSpoolData didn't pass data to
transport add-on because ";" was missing after
  "return" statement.
* Removed unused getter methods from class GraphicsDriver.
* Implemented page rotation (closes #6965) in landscape.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39800 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-10 10:47:19 +00:00
Philippe Houdoin 56ee7ad5f5 Fix gcc4 build.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39799 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-10 08:35:35 +00:00
Michael Pfeiffer 331c922016 * Renamed method PrinterCap::IsSupport() to Supports().
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39798 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-10 07:26:14 +00:00
Rene Gollent a4943027ae ValueLocation::SetTo() normally tries to resolve size and offset differences
versus the passed in base location. In the case of a union we don't
want this behavior since all members start at offset 0. Fixes union values
showing up incorrectly in various circumstances.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39797 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-10 01:02:04 +00:00
Axel Dörfler 2e1a62865f NetworkStatus now joins a network when you select one. If you need a password,
you need to have it configured in your "interfaces" settings file. This could
look like this:
	network my-ssid-name {
		authentication wep
		password gurkensalat
	}

Of course, the cleartext password will go away in the future.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39796 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-09 23:56:22 +00:00
Rene Gollent 2f9d5a5aa6 Extend ValueLoader::LoadStringValue() to accept a max length
parameter. When a CStringValue is representing an array, use
the array's length to limit how many bytes we read.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39795 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-09 23:45:13 +00:00
Axel Dörfler 72a249a942 * Added some authentication config stuff to the settings. Now you can override
the detected defaults with your own values.
* Implemented joining open and WEP networks - this is pretty much untested,
  though.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39794 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-09 23:44:36 +00:00
Axel Dörfler 0a8ad865de * Implemented operator<() for AF_LINK addresses as well; now NetworkStatus
actually marks the currently associated network.
* Removed unused code from NetworkDevice.cpp - doesn't look like we're going
  to use it anymore.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39793 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-09 23:42:19 +00:00
Axel Dörfler c416526666 * Parse the additional information elements the station sends in order to
retrieve the WLAN cipher/key configuration. Might not work perfectly yet; so
  far I've only seen WPA2, and WPA networks.
* Have wlan_test show this extra info.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39792 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-09 22:33:34 +00:00
François Revol 5f5d09f948 Port pc_serial to the new tty module.
Builds but won't work because the tty module lacks essential calls to read and write data :^)
Lots of ifdef since I need the R5 code around for now.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39791 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-09 16:47:49 +00:00
Philippe Houdoin 5efc1f3d21 Force blackness view only when no saver was found. This fix pseudo-saver Blackness
that was broken by previous change.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39790 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-09 15:50:25 +00:00
Philippe Houdoin 7f45fe0b3e The window was blank, making any screensaver drawing over
the desktop drawing over a black screen...
Blackness pseudo screensaver will be fixing next.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39789 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-09 15:36:13 +00:00
Philippe Houdoin 911ddeca31 Fix gcc4 (and possibly ppc) build.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39788 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-09 09:02:41 +00:00
Philippe Houdoin 6f14f6ac33 Fix gcc4 build.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39787 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-09 07:17:54 +00:00
Rene Gollent 942fed9fa3 Make sure we only try to handle the final dimension of the array
and not any intermediate ones in the case of a multidimensional character
array.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39786 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-09 04:30:33 +00:00
Rene Gollent eb756d4264 Modify the CString type/value handlers to accept character arrays as well as
character pointers.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39785 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-09 04:28:10 +00:00
François Revol b77aa0155d Fix gcc4 build:
- use new(std::nothrow) from <new> since we dropped kernel_cpp.h,
- fix "declared 'extern' and later 'static'" warning,
- fix "deprecated conversion from string constant to 'char*'" warning in tracing code.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39784 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-09 00:40:25 +00:00
Axel Dörfler 0bf128487a * Work in progress of WLAN support in the net_server.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39783 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-09 00:11:15 +00:00
Axel Dörfler f76ac72459 * Fixed a typo.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39782 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-09 00:09:51 +00:00
Axel Dörfler 138cfe065f * Changed IFM_GMASK to the same value as in FreeBSD.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39781 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-09 00:09:00 +00:00
Axel Dörfler c9761e828d * Now you can specify the network via MAC address as well using the new
BNetworkAddress link address parser.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39780 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-09 00:07:26 +00:00
Axel Dörfler 8faecc1d5e * Added ability to parse link level addresses.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39779 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-09 00:06:45 +00:00
Axel Dörfler d5a09773bf * Fixed size of sdl_type/sdl_e_type, the former is only a uint8, and the latter
a uint16.
* sdl_e_type is stored in network order now.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39778 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-08 23:42:47 +00:00
Axel Dörfler 54490bbd50 * sockaddr_dl::sdl_e_type is now always stored in network order.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39777 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-08 23:42:34 +00:00
Axel Dörfler 2cae3e8847 * SIOCGIFMEDIA now also works on the AF_LINK level.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39776 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-08 23:35:45 +00:00
Axel Dörfler 8cc57b8b81 * Added a small test application for the WLAN part of the BNetworkDevice.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39775 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-08 22:56:38 +00:00
Axel Dörfler 440d0e61e8 * Pretty much completed BNetworkDevice. The only parts missing are GetMediaAt(),
and parsing the extra station data to retrieve the authentication details.
  Comments welcome.
* NetworkStatus should now mark the currently associated network (if any).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39774 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-08 22:55:57 +00:00
Clemens Zeidler 6f61f09f4d Move S&T group switching shortcut to cmd + option + arrow up/down.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39773 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-08 22:25:44 +00:00
Philippe Houdoin 99aaa8c1fd Fix a typo spotted by Karvjorm. Thanks.
This close #6971.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39772 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-08 20:36:16 +00:00