Commit Graph

566 Commits

Author SHA1 Message Date
Philippe Saint-Pierre
08eb0b74a9 Move the NULL check before the dereferencing try
CID 5968
2011-11-27 12:36:40 -05:00
Oliver Tappe
323b65468e Filtered flat import of Oliver's svn package management branch
Bring the changes that aren't package management related and the ones
that are but don't take effect as long as they are ignored by the build
system into the master.

Summary of changes:
* Introduce private header <directories.h> with constants for a good
  deal of paths that should usually be retrieved via find_directory().
* Replace hard-coded paths by using find_directory() or the
  <directories.h> constants (e.g. in drivers and the kernel).
* Add find_directory() constants needed for package management.
* Add __HAIKU_ABI_NAME and B_HAIKU_ABI_NAME macros.
* src/apps/deskbar: BeMenu.* -> DeskbarMenu.*,
  DeskBarUtils.* -> DeskbarUtils.*
* Change deskbar menu settings directory from ~/config/be to
  ~/config/settings/deskbar.
* Other smaller cleanups, changes, and fixes.
2011-11-25 06:17:07 +01:00
Oliver Tappe
ae90193596 Introduce __set_errno() throughout libroot.
* add errno_private.h, which defines the __set_errno() macro with
  and without tracing
* instead of setting errno manually, all libroot's code now invokes
  __set_errno(), which makes it much easier to trace changes to errno
* redirect glibc's use of __set_errno() to our own version
2011-11-24 23:48:18 +01:00
Michael Lotz
edfba0bb03 Actually put a note about the Haiku specific there, so that this isn't
overlooked accidentally on future updates.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42900 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-10-24 10:25:41 +00:00
Michael Lotz
a3f90d5cca Unlike FreeBSD we use a ifmultiaddr struct field to store the address and let
the ifma_addr point to that. Therefore freeing it caused a misaligned free and
then a double free, resulting in heap corruption for the next user to fall
victim to. Only happened when removing multicast addresses though.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42899 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-10-24 10:21:22 +00:00
Axel Dörfler
f74afb8218 * This makes our app_server test_environment work again under Haiku.
* A small quiz for our build system gurus: if I just add libbe_test to
  liblinprog.a, I can't build the normal app_server anymore (only in the test
  environment). Why is that? And who's going to fix it? :-)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42788 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-09-30 00:00:56 +00:00
Michael Lotz
2815c2d2c6 Use the device name instead of the "external name" as the interface in network
monitor messages. Due to how our compatibility layer works the latter is always
just "wlan" (and even if it worked as expected it'd be mapped to the BSD short
names i.e. "iwn" or "iwnX"). The device name is of the format "net/<driver>/X",
which is what we use as interface names througout the API (minus the "/dev/").


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42771 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-09-27 14:11:03 +00:00
Siarzhuk Zharski
283db26d5c * FreeBSD compatibility layer for network drivers is modified to handle
NULL-terminated list of driver_t* entries instead of single entry.
  That allows to combine multiple FreeBSD drivers into single Haiku
  driver add-ons;
* Support for DEC 21140 (Tulip) chipsets (provided by the 'de' driver) 
  incorporated into dec21xxx driver. That brings network connectivity to 
  Haiku systems running in MS Virtual PC VMs.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42658 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-08-21 12:45:12 +00:00
Clemens Zeidler
1245d875a3 Search for the correct constraint when removing an inequality constraint. This finally deletes the slack variable and the helper constraint.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42422 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-07-14 07:13:35 +00:00
Siarzhuk Zharski
698b6790bc * Network driver for DEC/21143 and K° ("dc") ported from FreeBSD 8.2;
* Network drivers for 3com, ipro100, rtl8139 are updated from FreeBSD 8.2 Release branch;
* Some functions, defines and typedef required by updated and fresh ported FreeBSD
  drivers were added into freebsd_compat layer.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42393 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-07-08 23:00:38 +00:00
Ingo Weinhold
85b41b15d9 * Added bool and double BString::operator<<() versions.
* Removed the clashing operator in JobSetupDlg. Automatic whitespace
  cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42387 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-07-07 10:17:15 +00:00
Fredrik Holmqvist
6831484d63 Guesswork but since #7750 stops in this loop, and all other similar loops look like this (and it works here): I think we need to update child.
Let me know if I'm wrong.

This should fix #7750. 


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42342 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-06-29 21:13:12 +00:00
Jérôme Duval
c0535fa096 mii files from FreeBSD 8.2 with our diffs applied
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42316 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-06-25 11:24:56 +00:00
Jérôme Duval
ff35fe1fdf added some missing functions and definitions for FreeBSD 8.2
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42315 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-06-25 11:05:40 +00:00
Jérôme Duval
d474d44ab6 added some missing functions and definitions for FreeBSD 8.2
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42314 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-06-25 11:03:20 +00:00
Clemens Zeidler
c9ef74ccd2 Update all optimized variables. Most off the time it went fine because the initial solution was already optimal. This fixes #7193.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42262 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-06-20 07:12:52 +00:00
Clemens Zeidler
6c7a658d1c Add support for soft inequality constraints for quadratic solvers. A slack variable is used in a normal hard inequality and the slack variable is minimized with a high penalty. In this way the constraint is only violated when necessary. Some smaller clean up.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42225 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-06-18 01:26:31 +00:00
Clemens Zeidler
94eb1edee7 - Polish ToString version of Constraint a bit.
- Check the left side of a Constraint for Summands with same Variables and merge them. This fix some issues in the quadratic solver.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42219 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-06-17 04:26:09 +00:00
Axel Dörfler
4b252842da * Removed as wordy as superfluous debug output prefix.
* Automatic whitespace cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42193 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-06-15 19:29:51 +00:00
Axel Dörfler
59236b809b * Also mangle the name into the device class symbol - this should help with the
e1000 driver.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42192 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-06-15 18:24:51 +00:00
Ingo Weinhold
24df65921b Merged signals-merge branch into trunk with the following changes:
* Reorganized the kernel locking related to threads and teams.
* We now discriminate correctly between process and thread signals. Signal
  handlers have been moved to teams. Fixes #5679.
* Implemented real-time signal support, including signal queuing, SA_SIGINFO
  support, sigqueue(), sigwaitinfo(), sigtimedwait(), waitid(), and the addition
  of the real-time signal range. Closes #1935 and #2695.
* Gave SIGBUS a separate signal number. Fixes #6704.
* Implemented <time.h> clock and timer support, and fixed/completed alarm() and
  [set]itimer(). Closes #5682.
* Implemented support for thread cancellation. Closes #5686.
* Moved send_signal() from <signal.h> to <OS.h>. Fixes #7554.
* Lots over smaller more or less related changes.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42116 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-06-12 00:00:23 +00:00
Jérôme Duval
1f4d9a57e3 revert now unneeded workarounds
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@41559 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-05-17 23:02:44 +00:00
Jérôme Duval
7ea3c0686e missing merge from FreeBSD 8.2
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@41558 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-05-17 22:45:18 +00:00
Jérôme Duval
26d28d0d1d enable KASSERT in net80211 and fixes wrong uses of the macro.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@41425 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-05-10 21:59:55 +00:00
Jérôme Duval
676e23a6fa NO_HAIKU_FIRMWARE_NAME_MAP defined an element {NULL} whereas the array length is zero
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@41390 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-05-08 20:14:05 +00:00
Michael Pfeiffer
6baeabf916 * merging gutenprint-5.2.7 into the main branch.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@41381 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-05-08 11:20:56 +00:00
Jérôme Duval
fae2ac4671 Made ieee80211_ratectl_tx_complete and ieee80211_ratectl_rate functions no op instead of not calling these functions in each wlan driver.
This should be iso functionality.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@41375 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-05-08 07:46:25 +00:00
Clemens Zeidler
efbd73e63d Fix a bug in RowColumnManager when adding / removing views to / from a layout.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@41284 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-04-27 05:11:21 +00:00
Jérôme Duval
2c31ec7222 added some glue to register correctly rate control modules
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@41247 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-04-13 18:27:36 +00:00
Jérôme Duval
8dc03de632 merged changes from 8.2 FreeBSD release for most wlan drivers and net80211.
updated several firmwares for iprowifi4965 and iprowifi3945. Tested on iprowifi4965 only.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@41240 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-04-11 22:48:42 +00:00
Stephan Aßmus
e9e50497fc Don't prevent shapes from being rendered when the global
icon scale is larger than the maximum visibility scale of
4.0f. This just means you cannot prevent shapes from
rendering in icons rendered larger than 256x256.
visibility scale is 4.0


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@41206 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-04-08 18:34:11 +00:00
Clemens Zeidler
ef93b55df4 - Areas with same tabs are put in a column/row automtically. Move preferred size constraint from Area to the column/row. This avoids a "spring" effect of the
quadratic solver if multiple Areas are in the same column/row.
- Replace GetString by ToString.
- some clean up



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40941 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-03-14 00:24:12 +00:00
Clemens Zeidler
66c782cdc0 Soft constraints can now be weighted.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40940 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-03-14 00:17:30 +00:00
Jérôme Duval
e680f0fa21 rename the printf function in the compat layer to avoid symbol clash with kernel printf (at least on gcc4)
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40887 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-03-08 23:11:48 +00:00
Alexander von Gluck IV
eadb4f9f20 improve tracing in freebsd_network compat library, better log spam.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40886 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-03-08 22:38:16 +00:00
Stephan Aßmus
ed95053221 Applied patch by John Scipione that adds the scale2x algorithm to BIconUtils
and uses it when old B_CMAP8 icons are to be upscaled exactly 2x. Looks much
better than the previous blurry bilinear scaling. Small cleanups by myself,
closes #7130, thanks a lot!


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40678 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-02-25 08:34:18 +00:00
Jérôme Duval
0812493886 merged freetype 2.4.4
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40534 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-02-16 17:55:28 +00:00
Joachim Seemer
c16bcdfcb7 Made some more strings localizable, removed some unnecessary localizations from CDPlayer. I hope everything's OK...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40436 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-02-10 22:03:51 +00:00
Clemens Zeidler
9ef9c027aa Remove debug left over.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40387 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-02-08 09:09:49 +00:00
Clemens Zeidler
3d25371741 Don't copy the constraint list, just use a pointer to the list.
There was a strange crash under gcc4. After some searching I found out that there is some clash with namespaces.
After removing the namespaces it works again. Could somebody explain what went wrong there?



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40386 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-02-08 09:07:26 +00:00
Clemens Zeidler
459ab04358 No pref constraints for sizes equal -1. This works better with items like glue.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40385 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-02-08 09:02:36 +00:00
Clemens Zeidler
8286779101 Make kp_solve interface work again.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40384 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-02-08 09:01:11 +00:00
Clemens Zeidler
d339d2ae8f Don't add soft constraints to the active constraints. Fix some smaller stuff.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40339 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-02-01 03:25:48 +00:00
Clemens Zeidler
a0ad88e002 Fix min/ max calculation by removing all soft constraints before doing so. Smaller fixes.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40297 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-01-26 22:06:02 +00:00
Clemens Zeidler
7583db5a1e Add an alternative solver to lp_solve. The solver based on Ingo's active set solver but is able to handle arbitrary hard and soft constraints. The advantage to lp_solve is that the active set solver can optimize variable in respect to a quadratic objective function. This makes it possible to minimise the quadratic derivation to a desired value e.g. \Sum_i(x_i - x_{i,pref})^2 -> min.
The solver part has been refactored in this way that both solver can be used with the same layout specifications. The active set solver is default now; the performance is not as good as lp_solve, though.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40285 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-01-25 04:59:40 +00:00
Fredrik Holmqvist
2a74e90028 If fileDescriptor is not retrieved don't close it, and if firmwareFileSize is negative fail. CID 3493 CID CID 3494.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39976 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-28 12:34:16 +00:00
Fredrik Holmqvist
b750229b00 Don't include sys/system.h. This avoids header recursions (the header guards kept us safe). CID 4865, CID 4894.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39968 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-27 22:18:30 +00:00
Ingo Weinhold
76c4f83965 * priv.c -> priv.cpp
* Defined curthread to NULL. Using Haiku's struct thread is not acceptable
  without proper locking and the only purpose ATM is to pass it to priv_check()
  which ignores it anyway.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39858 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-15 23:12:38 +00:00
Ingo Weinhold
a68810a9a4 Don't use private kernel API.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39857 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-15 23:09:14 +00:00
Clemens Zeidler
f108cdbfab Merge all linear programming types in one file an rename them.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39832 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-13 19:23:33 +00:00