Commit Graph

12238 Commits

Author SHA1 Message Date
Alexander von Gluck IV
0cd624b89c AHCI: Begin adding SCSI VPD query support. 2015-09-01 17:13:04 -05:00
Adrien Destugues
278af8e281 ffmpeg: check against correct version constants.
54.23.x is ffmpeg 0.11, which still has "CodecID" (and x>0).
2015-08-30 18:00:08 +02:00
Adrien Destugues
f618c89e17 ffmpeg: detect the library version the right way.
* Fixes the build by detecting the library version using the provided
constants, instead of guessing from the compiler version.
2015-08-30 17:33:00 +02:00
Adrien Destugues
9e5c694668 ffmpeg plugin: remove more deprecated functions.
These were all deprecated between releases 0.6 and 0.10 of ffmpeg,
except for one change (renaming of CodecID to AVCodecID) which we can
work around with a typedef. The deprecated functions were still
available in 0.11, but were removed later on after several years of
deprecation.

This makes it possible to build our plugin with any ffmpeg version
between 0.10 and 2.7, so we can now experiment with updating to 2.7 at
least for the gcc4 builds.
2015-08-30 16:36:08 +02:00
Adrien Destugues
0f7e19ce7e ffmpeg plugin: add support for MOD and other "tracked music"
* ffmpeg can handle these through ModPlug
* By default, ffmpoeg will not try these formats because the way to
detect them are a bit unsafe (4 bytes at a particular offset in the file
serve as an identifier). So, hint the sniffing by giving it a filename
of ".mod" to get modplug to be used. This does not affect sniffing in
the regular way for other formats.
* Add some common tracked music formats to the muxer table.
* Fix some tracing to use current (as of ffmpeg 0.10) function names and
because some variables were renamed.
2015-08-30 16:36:06 +02:00
Michael Lotz
cccf804d96 ahci: Replace use of bit field with shifts and masks.
It's a 32 bit register which needs properly aligned 32 bit writes. Using
a bit field does not guarantee that, so replace it with shifts and
masks. Should fix #12338.
2015-08-30 11:17:47 +02:00
Michael Lotz
d316ccc7e3 ahci: Whitespace and line length cleanup only. 2015-08-30 10:50:32 +02:00
Adrien Destugues
0717601a7f ffmpeg encoder: do not use deprecatred function
Replace avcodec_encode_audio with avcodec_encode_audio2. The latter
provides us with more information on the encoded data, so we can avoid
guessing things on our own. It also handles memory allocations on its
own, which fix some cases where we would provide a too small buffer.
2015-08-29 23:14:04 +02:00
Axel Dörfler
df5aeb6dda AHCI: fixed constant mixup, minor cleanup.
* TRANSITION_... was incorrectly changed from the original patch.
* Divided it into two constants, and also prefixed the new constants with
  the register fields they are valid for.
* Fixed incorrect usage of |= and removed the corresponding TODO comments.
* Moved some reoccurring code into their own methods.
* Added check for the ST bit in the command register for the interrupt
  hard reset, too.
* This closes ticket #12295, thanks Anarchos!
2015-08-28 19:26:14 +02:00
Sylvian Kerjean
5584c22fdd AHCI: Fix boot failures due to "Port Connect Change" IRQ storm.
Signed-off-by: Axel Dörfler <axeld@pinc-software.de>
2015-08-28 19:26:14 +02:00
Dario Casalinuovo
9a36e655d7 radeon_hd: Add missing id for Radeon HD 8490 2015-08-25 12:43:53 +02:00
Stefano Ceccherini
7ed2a44376 Fix naming 2015-08-24 09:34:02 +02:00
Michael Lotz
44b69ccbdb bfs: Use negative caching on directory lookup failures. 2015-08-20 21:25:56 +02:00
Michael Lotz
efb0a3a853 EntryCache: Add entry_cache_add_missing() for negative caching.
It provides a way for filesystems to cache a lookup failure and
therefore prevents repeated lookups of missing entries. This is a
common scenario for example in command lookup and compiling, where
each directory in PATH or each include directory is searched for the
given entry.
2015-08-20 21:25:56 +02:00
Stefano Ceccherini
ff8c8dfc17 Improve patch in ticket #9377
Instead of locking the interface lock, set it busy and then unlock the
interface list lock.
2015-08-12 15:22:42 +02:00
Michael Lotz
8982293017 tcp: Whitespace cleanup, move a define to header and fix a typo. 2015-08-02 23:21:12 +02:00
Michael Lotz
bed94ebc49 tcp: Change timestamp factor from 1024 to 1000.
It is the conversion factor between the milliseconds tcp time and the
microseconds system time, so 1024 does not make much sense.
2015-08-02 23:21:12 +02:00
Michael Lotz
94fb06bfce tcp: Fix early cancellation of timers on socket free.
TCPEndpoint::Free() uses _EnterTimeWait() to start the time-wait timer
for later cleanup. The latter did call _CancelConnectionTimers()
unconditionally however, also cancelling a retransmit timer that was
possibly still needed for the retransmission of the FIN packet. If the
FIN packet got lost, the connection would be left open on the other end.
2015-08-02 23:21:12 +02:00
Michael Lotz
bc49140bab tcp: Add APICall trace entry and move TRACEs into locked parts.
The APICall trace entry just records the function name but this is
enough to deduce where some of the state changes come from.

Also move the TRACE macros past the MutexLockers to ensure that their
output happens at the time when the methods actually run.
2015-08-02 23:21:11 +02:00
Michael Lotz
05220224ff tcp: Split Timer trace entry into Timer{Set|Triggered}.
Trace whenever a timer is (re-)set as well as when it triggers. A value
of -1 denotes the cancellation of the timer.
2015-08-02 23:21:11 +02:00
Michael Lotz
01b0f935ec tcp: Move persist timeout value to a define in the header. 2015-08-02 23:21:11 +02:00
Michael Lotz
5f7749078e tcp: Fix retransmit logic to avoid lots of spurious retransmits.
The retransmit timer was only stopped when all in flight data was
acknowledged and never updated on individual acknowledgements. This
caused a lot of erroneous retransmits whenever the buffer was filled
fast enough so that the acknowledgements never caught up, i.e. whenever
uploading or streaming data.

Move setting of the initial retransmit timer inside the send loop so it
is closer to the actual time the segment is sent out and simplify the
logic a bit.

Limit the minimal retransmit timeout to 200 msecs to avoid spurious
retransmit in the face of delayed acknowledgements. This is lower than
the 1 second minimum the RFCs suggest. Other stacks use various other
sub-second timeouts, the 200 msecs follows what Linux does.

Also add the exponential back off of the retransmit timeout when
retransmits are triggered. This is bounded by a 60 seconds maximum
according to RFC6298.
2015-08-02 23:21:11 +02:00
Michael Lotz
da8fbe0e59 tcp: Replace custom WaitList with ConditionVariable.
The WaitList implementation had a race condition between checking for
the condition and acquiering the semaphore. If a thread was rescheduled
at that point, the signal could be missed due to the use of
release_sem_etc() with the B_RELEASE_ALL flag while the thread was not
yet waiting for the semaphore. The transfer would subsequently stall.
2015-08-02 23:21:10 +02:00
Michael Lotz
2fdea65c3a tcp: Fix 64 bit build with debugging features enabled. 2015-08-02 23:21:10 +02:00
Augustin Cavalier
b3e2208e52 ffmpeg plugin: Remove [L]GPL, FFmpeg is not in the tree anymore. 2015-07-29 15:02:21 -04:00
Jérôme Duval
9cd62a24e5 Fixed C++11 warnings.
invalid suffix on literal; C++11 requires a space between literal and string macro
[-Werror=literal-suffix]
2015-07-25 23:42:13 +02:00
Augustin Cavalier
971f8f5041 partitioning_systems/gpt: Make _IsHeaderValid and _ValidateHeaderCRC static.
Thanks to Pawel for reviewing!
2015-07-25 11:04:59 -04:00
Josef Gajdusek
4a839f2daa partitioning_systems/gpt: Fix _IsHeaderValid().
Signed-off-by: Augustin Cavalier <waddlesplash@gmail.com>
2015-07-25 10:15:24 -04:00
Dario Casalinuovo
6d2f2ec177 Rework nodes to call Run() only after registration
* While it should not be a big problem the
  bebook specify to do it after custom operations,
  most nodes also follow this way, this commit restore
  consistency.
2015-07-24 20:09:15 +02:00
Alexander von Gluck IV
1b69f3394b radeon_hd: Properly and consistently pick HPD ID 2015-07-14 20:38:15 -05:00
Adrien Destugues
d585e4c396 DNS prefs: use thread-safe DNS settings getter
__res_state can't be used with pthreads involved, instead use
__res_get_state and __res_put_state which maintain a pool of res_state
instances.

Fixes #12195.
2015-07-14 11:02:56 +02:00
Alexander von Gluck IV
991710be39 radeon_hd: Reduce DisplayPort Tracing 2015-07-13 23:26:35 -05:00
Alexander von Gluck IV
f1b29809bd radeon_hd: Fix missing DP link status request flag 2015-07-13 23:26:31 -05:00
Alexander von Gluck IV
80a0d0da5a radeon_hd: Fix missing subtraction of MOT in case.
* DP i2c edid byte-bang working again
2015-07-13 23:26:29 -05:00
Alexander von Gluck IV
408e616e05 radeon_hd: Sanitize dp_aux messages before use 2015-07-13 23:26:26 -05:00
Alexander von Gluck IV
7ea1ad1028 radeon_hd: Fix dp aux request / response shifts 2015-07-13 23:26:24 -05:00
Alexander von Gluck IV
8611df9d0b radeon_hd: Move i2c to dp aux transaction function.
* WIP: EDID version 255.255 found
2015-07-13 23:26:18 -05:00
Alexander von Gluck IV
8a5884f561 radeon_hd: Improve aux transaction tracing 2015-07-13 23:26:15 -05:00
Alexander von Gluck IV
9cfe6f909d radeon_hd: Fix missing TRACE connector id 2015-07-13 23:26:13 -05:00
Alexander von Gluck IV
9816a89ade radeon_hd: Move to a unified dp aux transaction function.
* Leverage a single common dp aux message struct.
* Likely lots of obvious bugs that need fixed still.
* Untested.
2015-07-13 23:26:10 -05:00
Dario Casalinuovo
57fddf2a93 AudioMixer: Remove duplicated case forgot after cleanup 2015-07-11 16:50:32 +02:00
Dario Casalinuovo
8c19f07f3c AudioMixer: check for errors.
* Improve CreateBufferGroup function.
* Initialize variables.
* Check for BBufferGroup::InitCheck.
2015-07-11 15:40:17 +02:00
Dario Casalinuovo
e3b2c4efea multi_audio_node: check BBufferGroup init errors 2015-07-11 15:40:17 +02:00
John Scipione
0f0de97fed Nebula: Convert fixed length char to BString 2015-07-08 15:33:10 -07:00
John Scipione
a11f9c281c Nebula: Internationalize strings 2015-07-08 15:33:08 -07:00
John Scipione
5a17435fc3 Nebula: whitespace style fixes only, no functional changes 2015-07-08 15:33:05 -07:00
John Scipione
ab2bb7fe61 Nebula: Use size_t instead of int32 for iterator 2015-07-08 15:33:03 -07:00
John Scipione
1a1667fc1d Nebula: Use B_PRId32 instead of %ld 2015-07-08 15:33:01 -07:00
John Scipione
3ad91dc4f1 Nebula: Convert fixed length char array to BString 2015-07-08 15:32:37 -07:00
John Scipione
d1c13fd009 Nebula: Move prefs layout into constructor.
Only setting the targets is done in AttachedToWindow()
Some style fixes also applied
2015-07-08 15:32:34 -07:00
John Scipione
dd822ba860 Nebula: Style screen saver prefs
* Make the title the default font and bold like other screen savers
* Don't center the copyright text, left align
* Put spacing strut between title/copyright and the rest
* Put the pop-up menus in a grid, make them variable width
* Add some more glue so items grow apart more nicely
2015-07-08 15:32:18 -07:00
Augustin Cavalier
e274ee171a screen_savers/Nebula: Cleanup DrawStars.
The assembly I converted this from didn't look hand-generated, which
probably explains why it was so convoluted.

No functional change intended (the generated code will change, though.)
2015-07-08 10:57:20 -04:00
Augustin Cavalier
548f42a880 screen_savers/Nebula: Initialize "fStarted" member.
CID 1311316.
2015-07-08 10:43:10 -04:00
Augustin Cavalier
43b42b98fe screen_savers/Nebula: Create header files for Draw.c/DrawStars.c. 2015-07-08 10:43:07 -04:00
Augustin Cavalier
01732795a5 screen_savers/Nebula: Add/update copyright headers to all files. 2015-07-08 10:43:05 -04:00
Augustin Cavalier
693e10ef55 screen_savers/Nebula: Restore "internal resolution" setting.
However, now it defaults to the screen resolution.
2015-07-08 10:43:02 -04:00
Augustin Cavalier
35c984142e screen_savers/Nebula: Rename variable in DrawStars.c.
Lots of cleanup here still needed, but it's OK for now.
2015-07-07 20:06:29 -04:00
Augustin Cavalier
d3a89219a7 screen_savers/Nebula: Fix GCC4 warning. 2015-07-07 20:05:36 -04:00
Augustin Cavalier
88f0064617 screen_savers/Nebula: Switch to using the Layout API for settings.
Also clean up bits of the style at the same time.
2015-07-07 20:05:30 -04:00
Augustin Cavalier
6b37a7d187 screen_savers/Nebula: Update license header and copyright. 2015-07-07 20:05:27 -04:00
Augustin Cavalier
dc9d1c8290 screen_savers/Nebula: Get rid of the version string.
This isn't needed anymore, now that Nebula is part of Haiku.
2015-07-07 20:05:25 -04:00
Augustin Cavalier
91490e67b8 screen_savers/Nebula: Get rid of the "internal horizontal resolution".
I don't know why this was in there -- possibly for older machines
that couldn't do their fullscreen resolution at 60fps? Which doesn't
make a lot of sense, since there's a frame-limiting option too.
2015-07-07 20:05:22 -04:00
Augustin Cavalier
e58a469849 screen_savers/Nebula: Remove optimization CFLAGS, let the compiler decide. 2015-07-07 20:05:19 -04:00
Augustin Cavalier
2f4d14b7e8 screen_savers/Nebula: Switch to using a Jamfile. 2015-07-07 20:05:16 -04:00
Augustin Cavalier
c5fe084ea4 screen_savers/Nebula: Make STAR_WIDTH an argument instead of a #define. 2015-07-07 20:05:13 -04:00
Augustin Cavalier
9bc305b2ed screen_savers/Nebula: Remove assembly comments from DrawStars.c. 2015-07-07 20:05:10 -04:00
Augustin Cavalier
413d14fb36 screen_savers/Nebula: Convert draw_stars.S to C.
Hand-translated. I left the assembly in as comments for easy analysis,
I'll remove it in the next commit.
2015-07-07 20:05:08 -04:00
Augustin Cavalier
c93cc19069 screen_savers/Nebula: Remove assembly comments from Draw.c. 2015-07-07 20:05:05 -04:00
Augustin Cavalier
e0f44d02f4 screen_savers/Nebula: Convert draw.S to C.
Hand-translated. I left the assembly in as comments for easy analysis,
I'll remove it in the next commit.

(I didn't do this on my own, I had help.)
2015-07-07 20:05:02 -04:00
Augustin Cavalier
1461b362da screen_savers: Import Nebula.
This is an unmodified version of Axel's "Nebula" screensaver,
except with the RSRC converted to an RDEF.
2015-07-07 20:04:59 -04:00
Alexander von Gluck IV
0de3a59590 radeon_hd: ss_probe reads the pixel clock; set before calling.
* CID 743876
2015-07-07 15:16:36 -05:00
Alexander von Gluck IV
bf8fe3ddb3 radeon_hd: Add Hawaii,Topaz,Tonga,Carrizo chips/cards 2015-07-07 10:27:44 -05:00
Michael Lotz
29e8040d58 log_overlay: Fix 64 bit build and add to image. 2015-07-05 10:40:01 +02:00
Michael Lotz
1a776b25ce fat: Fix debug build after creation time cleanup in hrev49339. 2015-07-05 10:09:01 +02:00
Michael Lotz
dbaafd15c0 fat: Remove directory from dlist on unlink, not in remove_vnode.
The removal of the vnode happens later than the actual unlink. As part
of the unlink, the vnode cache is already updated to mark the unlinked
directory invalid. This means its entry in the directory list needs to
be removed as well. Otherwise, if a directory list entry is looked up
in the time between unlink and remove_vnode, the assertion which checks
the validity of the directory list entries would fail.
2015-07-04 23:32:08 +02:00
Michael Lotz
adc769a79f fat: Fix function name in debug output. 2015-07-04 23:32:07 +02:00
Michael Lotz
b241080102 fat: Fix corruption of file data with removed directory entries.
Directory entries are cached using the block cache, so the cached
blocks need to be discarded when directories are removed/shrunk.
Otherwise freed directory blocks that were reused for file data would
later be clobbered when the block cache was flushed.

The forced cache sync for removable media hid the problem for these
devices. It was easily triggered on non-removable media however.
2015-07-04 23:32:07 +02:00
Michael Lotz
de3763846d fat: Whitespace cleanup only. 2015-07-04 23:32:06 +02:00
Michael Lotz
59891eb49c fat: Remove cluster cache init and data structure.
The cluster cache was used before porting to the file map API and is
not and can not be used there anymore.
2015-07-04 23:32:06 +02:00
Michael Lotz
b8cacf4e62 fat: Remove commented out code, now in dosfs_get_file_map(). 2015-07-04 23:32:05 +02:00
Michael Lotz
17a45292ec fat: Greatly simplify and clean up dosfs_get_file_map().
There's no real need to distinguish between first/middle/last parts of
the file and much of the initialization can be done simpler.

This also checks for overflows when truncating the requested length. On
64 bit platforms this would always happen due to the kernel file map
code requesting (size_t)-1 (i.e. unlimited) extents. This lead to the
file end being reached when building the map from a position unequal 0,
which would happen for files fragmented enough to need more than the
default of 8 supplied vectors. An IO error was returned in that case,
rendering the file partially unreadable.
2015-07-04 23:32:04 +02:00
Philippe Saint-Pierre
dfcbef64f6 Erratum hrev49359: Compare size with 0 rather that B_OK
Thanks Ingo!
2015-07-04 14:11:34 -04:00
Janus
58df0d94f3 BeDecorator: fix title text color 2015-07-04 20:01:35 +02:00
Janus
9bd024edbe WinDecorator: fix some glitches
* The decorator now draws the titlebar.
* The titlebar is font sensitive.
* The minimize button is usable.
* The buttons are pressable.
* Fix a redraw issue.
2015-07-04 19:57:47 +02:00
Philippe Saint-Pierre
76a1eb689c userlandfs: Fix access mask check
CID 1255052 and CID 1255053
2015-07-03 16:14:09 -04:00
Philippe Saint-Pierre
5889eb7c47 PDF Printer: Check FlattenedSize() result for error
CID 610903
2015-07-03 14:27:31 -04:00
Philippe Saint-Pierre
8108282b32 jpeg translator: exif_parser: Missing break statement
CID 1273786 and CID 1273787
2015-07-03 11:32:45 -04:00
Philippe Saint-Pierre
bb4ab4336d Matrox accelerant: assignation to B_OK -> condition never true.
Assignation to B_OK in if condition means it will never be true. Replace with ==.

CID 991072, 991155 and 604410.
2015-07-02 16:12:33 -04:00
Philippe Saint-Pierre
494fe5a431 CID 1273484: Use bitwise operator to verify bitmask 2015-07-01 21:26:00 -04:00
Philippe Saint-Pierre
2bdea08d38 Check for malloc result done on wrong variable.
CID 1255090
2015-07-01 19:32:55 -04:00
Philippe Saint-Pierre
ee1265c58e Memleak in HPDirectJet printer transport
CID 605747
2015-07-01 19:32:54 -04:00
Axel Dörfler
ad5d4c9944 fat: Cleared the confusion between ctime, and crtime...
... the previous commit introduced.

* Minor cleanup, disabled the useless fs_ioctl() function.
* This closes #11120.
2015-06-30 13:27:02 +02:00
Matej Horvat
b56120409d Add support for creation times
Signed-off-by: Axel Dörfler <axeld@pinc-software.de>
2015-06-30 13:15:08 +02:00
Augustin Cavalier
8306064d44 cmedia: update to newer spinlock API. 2015-06-28 14:32:57 -04:00
Philippe Saint-Pierre
6b05e9db3d CID 1273486: change from boolean to bitwise operator
Typo confirmed by looking at the corresponding source file from elsewhere.
+ some style fixes
2015-06-25 18:03:41 -04:00
Philippe Saint-Pierre
94817d608d Coding style fixes 2015-06-25 18:03:41 -04:00
Timothy Gu
d91933c26f HIDWriter: 0-initialize struct
Fixes CID 610984.

Signed-off-by: Augustin Cavalier <waddlesplash@gmail.com>
2015-06-23 11:59:36 -04:00
Timothy Gu
2201ddd6d0 NetFSServer: Forward errors and fix use-after-free.
At least right now, the constructor of ServerInfoSender can only fail
because of OOM.

Signed-off-by: Augustin Cavalier <waddlesplash@gmail.com>
Fixes #11716. One minor tweak by me from the original patch
(change "!sender" to "sender == NULL").
2015-06-23 11:58:23 -04:00
Augustin Cavalier
4a35186ac2 network/dns_resolver/server: Add missing break in switch.
CID 991278, but that also causes CID 991176, so both of those
are fixed. Does *not* fix #12156. Might fix some of the outstanding
NFSv4 issues but I didn't look too hard.
2015-06-22 19:31:23 -04:00
Augustin Cavalier
519b21c662 print/drivers/pdf: cleanup. 2015-06-22 15:20:56 -04:00
Augustin Cavalier
3fa198dae4 IconVader: cleanup. 2015-06-22 15:17:17 -04:00
Augustin Cavalier
8db7ed33fc Delete useless gunk (mostly old Makefiles). 2015-06-22 14:53:23 -04:00
Adrien Destugues
a558d18527 Revert "filesystems: we aren't BeOS, so we can safely use -O2(+)."
This reverts commit ae495ca8fe.

My system volume was mysteriously corrupted while booting or shutting down today,
enough to make it unbootable and KDL on attempt to mount it. I'm assuming our gcc2
still isn't safe with regard to -O2 optimization of filesystems, and revert this,
until proven wrong (eg. by running test suites and FS stress tests and finding no
issues.

Axel comented on the commit saying it probably was not a good idea, but no action was
taken. Should we setup a better commit review system?
2015-06-22 18:51:03 +02:00
John Scipione
969a5d2fac Fix mess in Tracker add-ons created in hrev48858
Revert the Tracker portions of hrev48858, they were not needed and were not
right either... sorry guys

OpenTargetFolder add-on modified slightly to use the passed in symlink(s) only,
the parent directory ref is unused, it appears to be unneeded here also.

With this and the reverted commits Zip-O-Matic and other add-ons should
work again.

Fixes #12105
2015-06-20 19:39:54 -07:00
John Scipione
134b3a7139 Revert "Zip-O-Matic: fix zipping single folder."
This reverts commit d1d90b0462.
2015-06-20 19:38:10 -07:00
John Scipione
ee5588f2ab Revert "Partially revert "Zip-O-Matic: fix zipping single folder.""
This reverts commit 1639fe99db.
2015-06-20 19:37:53 -07:00
Augustin Cavalier
d39c3c2b2f accelerants/via: fix the build. 2015-06-19 16:15:26 -04:00
Alexander von Gluck IV
b5c4af8ba8 GPT: Expand our known GUID's
* Try to standardize between the names
  to make them easier to understand
* Avoid terms like "File system" as it can
  confuse users (these are just partitions)
* We don't want to list *every* GUID here,
  just the ones most desktop users *might* see
  (we skip things like cepf)
2015-06-19 09:09:06 -05:00
Alexander von Gluck IV
5bca1dd7af GPT: Fix creation of GPT disk systems; resolves #10298
* The alternate / backup block wasn't defined
  leading to an invalid configuration.
* This was compounded with another issue that
  was resolved a while back with GPT
* gdisk now identifies GPT systems created with
  Haiku as valid
2015-06-18 16:09:48 -05:00
Adrien Destugues
2d6b0e967b Revert "Missing NULL check in network stack."
This reverts commit dd0ea64b56.
2015-06-17 21:27:56 +02:00
Adrien Destugues
b2b4946fa0 usb_webcam: move header generation to multiarch block
* With the HDRGRIST change the headers must now be generated for each
architecture.
2015-06-15 20:19:59 +02:00
Adrien Destugues
dd0ea64b56 Missing NULL check in network stack.
This would trigger a KDL, it's better to just fail the syscall call.
2015-06-14 15:47:05 +02:00
Adrien Destugues
5c96971937 Also fix #2880 in old IDE stack.
Just in case.
2015-06-13 21:59:19 +02:00
Adrien Destugues
dfc20f6f05 ide_isa: integrate fix for #2880
This was fixed in 2008 in the ide_pci driver, but has never been merged
in ide_isa. It probably won't matter as machine with IDE on the ISA bus
are unlikely to run Haiku.

Thanks to philcostin for finding the problem using cppcheck.
2015-06-13 21:47:53 +02:00
Jérôme Duval
ea54368ece tcp: remove extraneous parenthesis. 2015-06-11 15:52:23 +02:00
Adrien Destugues
79985c3d86 Fix reversed logic in MSG_NOSIGNAL
This should work better. Thanks to Korli for spotting the issue.
2015-06-11 00:38:42 +02:00
Augustin Cavalier
2da6584ad0 tcp: fix build breakage caused by hrev49265.
There's currently a debate on the ML as to whether this should
be '== 0' or '!= 0', though.
2015-06-10 12:34:04 -04:00
Adrien Destugues
4b2d018be4 Implement MSG_NOSIGNAL
* Part of latest POSIX specification, this prevents send() on a closed
socket to raise a SIGPIPE signal (but EPIPE is returned).
2015-06-10 17:39:53 +02:00
Adrien Destugues
0e88b8d50b GPT: ignore partitions at offset 0
* This would be a GPT partition pointing to itself, leading to infinite
recursion in the GPT parser calling itself and Haiku would reset
(probably triple fault?).
* Thanks to Puck for discovering this!
2015-06-08 04:18:23 +02:00
Adrien Destugues
9457b76963 hda: cleanup tracing.
* Make sure all traces are prefixed with the driver name (for easier
grepping)
* Remove some useless traces
* 80 column limit fixes
2015-06-08 00:40:53 +02:00
Humdinger
38aa1d3b82 Avoid duplicate trnslation string in DNS settings view
As pointed out correctly by PulkoMandy. Thanks!
2015-06-05 09:34:30 +02:00
Humdinger
0ecdbff36a Small tweaks to Network prefs (DNS settings)
* Remove the BBox.
* Don't resize buttons when horizontally resizing the window.
* Compute the server address field width correctly by taking the label into
  account.
2015-06-05 09:15:19 +02:00
Jessica Hamilton
e20eba976b intel partitioning system: fix Jamfile
* Appears $(TARGET_ARCH) is the correct variable to use here.
2015-06-04 18:57:56 +12:00
Jessica Hamilton
d8ba3b0990 intel partitioning system: fix build for non-x86 systems
* There is no need for the Intel partitioning system to write MBR
  bootcode on non-x86 systems
* The MBR_HEADER define is used to prevent Jam from making MBR.h
  a dependency; the dependency is then specified explicitly when
  building for x86/x86_64 platforms
2015-06-04 18:35:33 +12:00
Jessica Hamilton
11e8ecdd94 writembr: Implement support for GPT partitions, #4028.
* This should support both GPT and MBR formatted partitions.
* To boot Haiku from a GPT partition, it must have the correct
  BFS UUID for the partition.
* Tools such as gdisk/gptfdisk can create partitions with
  the correct BFS UUID.
2015-06-04 15:07:13 +12:00
Augustin Cavalier
1639fe99db Partially revert "Zip-O-Matic: fix zipping single folder."
This partially reverts commit d1d90b0462.
The real culprit that was causing this issue is #12105, not the
zip/unzip upgrade as originally thought.
2015-06-01 21:17:03 -04:00
Augustin Cavalier
d1d90b0462 Zip-O-Matic: fix zipping single folder.
Fixes #12027. No clue why this code ever worked.
2015-06-01 20:57:45 -04:00
Lioncash
1a5860e2d2 53c8xx: Fix array bounds for a setparam call.
_syncmsg is only 2 elements in size.

Signed-off-by: Augustin Cavalier <waddlesplash@gmail.com>
Fixes #11288.
2015-06-01 18:46:30 -04:00
Murai Takashi
f5abc4c08d Fix GCC 4.9 maybe-uninitialized warning.
Signed-off-by: Augustin Cavalier <waddlesplash@gmail.com>
2015-06-01 18:30:18 -04:00
Hamish Morrison
162ae6204b tcp: wait for connection to complete before notifying B_SELECT_WRITE 2015-05-31 17:30:00 +01:00
Hamish Morrison
2d5706f792 net_socket: notify of socket errors immediately when selected 2015-05-31 17:29:55 +01:00
Puck Meerburg
47c470c6d0 BeDecorator: Add Stack & Tile support 2015-05-16 20:23:59 +02:00
Jérôme Duval
06e2e74f41 usb_modeswitch: fixed gcc4/64bit build. 2015-05-12 20:16:31 +02:00
haiqu
b4c466459f Update Huawei in usb_modeswitch
Signed-off-by: Jérôme Duval <jerome.duval@gmail.com>
2015-05-12 20:16:31 +02:00
Michael Lotz
87af13952c fat: Fix time format constant, fixing debug build of FAT fs. 2015-05-10 18:31:04 +02:00
Janus
8f1823774c Printers: PDF uses layout.
* Fix Advanced settings dialog.
* Fix Fonts dialog.
* Improve Page Setup.
* Partialy fix #4178.
2015-05-09 16:52:12 +02:00
Augustin Cavalier
ae495ca8fe filesystems: we aren't BeOS, so we can safely use -O2(+). 2015-05-08 13:28:01 -04:00
Humdinger
59c0f3b6f9 Unify version output ("v" vs "Version", sentence casing. 2015-05-02 17:38:15 +02:00
Michael Lotz
52bf63bbbb fat: Fix compiler warnings. 2015-05-02 15:49:55 +02:00
Michael Lotz
09592b1dcc fat: Fix stack corruption on 64 bit due to wrong count type.
On 64 bit platforms a 64 bit size_t was written at the (incorrect)
uint32 on the stack, causing the adjacent bytes variable to be
clobbered. Because of this, the vectors wouldn't actually be filled
with any file data, making the content of files inacessible.
2015-05-02 15:49:55 +02:00
Michael Lotz
110eea4517 fat: Print format, whitespace and style cleanup only.
I took the liberty to convert most of the debug output from hex to
decimal as unprefixed hex values are rather confusing.
2015-05-02 15:49:54 +02:00
Humdinger
3292b90274 Unify version output ("v" vs "Version", sentence casing. 2015-05-02 10:48:08 +02:00
Alexander von Gluck IV
f11d3df9aa radeon_hd: DP encoder. Fix PVS 2022 to 2025
* Don't overload uint8 dpClock with 27k
* This might be causing a lot of DP issues
  as the DP clock rate is pretty important
2015-04-28 21:02:54 -05:00
Adrien Destugues
ad077e2bd2 SpiderSaver: PVS 2044.
Missing std::nothrow.
2015-04-28 22:00:32 +02:00
Adrien Destugues
7dc68bfba5 iso9660: fix PVS 2430 to 2435.
* Incorrect handling of realloc() failure (if reallocation fails,
original buffer is still allocated and must be freed),
* Use of bit shift on signed integer (undefined behavior in C and C++).
2015-04-28 21:49:23 +02:00
Dan MacDonald
1894a24358 Add support for Intel Centrino Wireless-N 2230.
Fixes #12006.

Signed-off-by: Adrien Destugues <pulkomandy@gmail.com>
2015-04-28 20:49:46 +02:00
François Revol
b211592822 zipomatic: notify an error when /bin/zip is missing
Since zip has been outsourced, it's possible to loose it when
upgrading, in which case ZOM went busylooping without noticing the
thread actually never started.

At least now it says "failed to create the archive".

Maybe it should try to install zip?
2015-04-26 20:33:33 +02:00
Janus
a482dbd51e DataTranslations: Fix duplicate fields. 2015-04-25 13:56:33 +02:00
Janus
7bfb4a1eb8 DataTranslations: use layout, standard format.
* Small layout fix.
* Fixes #11999.
2015-04-25 12:02:45 +02:00
Fredrik Holmqvist
bd7a8d8329 Temporarily hardcode ACPI _REV to 2 until we upgrade ACPICA.
Some manufacturers (Dell, HP, ..) use this value to detect Windows and
only do proper setup in this case. Now we pretend to be Windows as well.
This may cause some things to behave different or stop working.

Please keep this in mind.

For more information see:
http://mjg59.dreamwidth.org/34542.html
7af0021968 (diff-76c5dc94fc085f5e3e2d17e6304f3ae0L186)
2015-04-24 21:51:50 +02:00