Commit Graph
100 Commits
Author SHA1 Message Date
Adrien Destugues ce68077e63 sysinfo: report leaf 7 features
This is where you can see if your CPU supports AVX2, AVX512, and a lot
of other things.

Change-Id: I56a24e4d27abeb357045cbd76deda40f977c6116
Reviewed-on: https://review.haiku-os.org/c/haiku/+/9717
Reviewed-by: waddlesplash <[email protected]>
Tested-by: Commit checker robot <[email protected]>
2025-10-26 06:58:33 +00:00
Adrien Destugues b358c4c49f hoard2: make block header size a multiple of 16 bytes
On 32bit x86 gcc11, allocations should be aligned to 16 bytes, but the
block header (which is stored before the allocations) contains two
pointers, which on a 32bit system results in 8 bytes. Add some padding
to make this header 16 bytes, guaranteeing that the data area is
actually aligned.

Fixes #18111.

Change-Id: Id23f8c0272d75090710f872b728852cd0fcb19ac
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5885
Reviewed-by: Adrien Destugues <[email protected]>
Tested-by: Commit checker robot <[email protected]>
2022-12-13 01:55:04 +00:00
Adrien Destugues 2b1972cf66 webpositive: Fix for HaikuWebKit 1.8.1
Change-Id: I00b2b01bf84e0d22ec759511b2f9435403207c95
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4150
Reviewed-by: Alex von Gluck IV <[email protected]>
2021-07-06 00:42:12 +00:00
Adrien Destugues 32bc3e2c0f ProcessController: fix bars height computation
The previous code used a fixed margin, which would lead to too small
bars with small font sizes (the bar content would not even be visible).

Instead, use the font height as the base for the bar height, which
allows us to use the same code everywhere, no matter the menu item
height (which can vary depending on if there is an icon, etc)

Fixes #15391.
2019-11-24 13:11:36 +01:00
Adrien Destugues 5629675a32 sparc: add defines and minimum set of required files
Gets the stage0 bootstrap to run.
Imlementation is probably nonsense at this point.

Change-Id: I10876efbb54314b864c0ad951152757cdb2fd366
Reviewed-on: https://review.haiku-os.org/c/1061
Reviewed-by: waddlesplash <[email protected]>
2019-02-23 16:30:50 +00:00
Adrien Destugues a6a6e3a842 Package kit: add likely-useful architectures
Required for bootstrapping them.

Change-Id: I179d8c73b08688946049bf18ff9151ef047e449b
Reviewed-on: https://review.haiku-os.org/c/1071
Reviewed-by: waddlesplash <[email protected]>
2019-02-20 22:29:36 +00:00
Adrien Destugues a54059b3f0 Update package_infos
- Bump year to 2019
- Adjust compat version, use alpha1 for x86 and generic packages, and
beta1 for other architectures since that's where they first appeared
(we will probably bump to beta2 for arm/sparc/ppc when we release
them for real?)

Change-Id: Ibb0968feb28731898776335eba01d34dcb758625
Reviewed-on: https://review.haiku-os.org/c/1069
Reviewed-by: waddlesplash <[email protected]>
2019-02-20 22:29:36 +00:00
Adrien Destugues 2c218a0e8b SerialConnect: increase scrollback size
1000 lines is not enough for a full boot log.

Change-Id: If1fe48349dec5cf0574de612c533b0037abc5043
Reviewed-on: https://review.haiku-os.org/c/1021
Reviewed-by: Stephan Aßmus <[email protected]>
2019-02-10 10:08:29 +00:00
Adrien Destugues 20312cfe7b BSecureSocket: cleanup, no functional changes
Change-Id: I3355067efe4c5d71f8656d244e17bb11175600eb
Reviewed-on: https://review.haiku-os.org/c/910
Reviewed-by: waddlesplash <[email protected]>
2019-01-27 07:55:55 +00:00
Adrien Destugues 1322d50732 HttpRequest: write whole request to socket
Better performance by using a single write, and some servers may not be
happy about getting so many TCP fragments for the HTTP header.

Change-Id: If7139e2a7748ea423d470676e70bd523a89031b2
Reviewed-on: https://review.haiku-os.org/c/909
Reviewed-by: waddlesplash <[email protected]>
2019-01-27 07:55:55 +00:00
Adrien Destugues 8d1f13817f libsolv: #define _GNU_SOURCE from command line
On Haiku host, we need _GNU_SOURCE defined when stdio.h is included
to use fopencookie. We did that in libsolv sources, but we now include
stdio from BeOSBuildCompatibility.h which is included from the command
line. So set _GNU_SOURCE from command line as well.
2018-08-07 20:50:56 +02:00
Adrien Destugues d9949ac911 Initial work on Apple Stylewriter printer driver. 2018-08-07 19:30:16 +02:00
Adrien Destugues 1407e6d7b1 Complete implementation of printer serial transport
- Allow to configure the baudrate (it is set by the printer settings,
  but the transport didn't care)
- Implement reading from the serial port (some printers will need us to
  poll the status and the like, as there is usually no hardware flow
  control)

Change-Id: I70ba2566595d5dfa5eda3d518614db6514cb2398
2018-06-05 21:44:14 +00:00
Adrien Destugues 0af198bcf8 HaikuWebKit 1.6.1. 2017-07-30 08:44:15 +02:00
Adrien Destugues 4c9ec29000 pc_serial: if kernel debugger is disabled, use the port
This makes it a lot easier to use and test pc_serial, even on machines
with a single serial port (COM2 is getting even more rare than COM1
these days).
2017-06-24 21:57:43 +02:00
Adrien Destugues 76c469dbcf Fix some users of the HTTP API I missed in the previous commit. 2017-01-30 20:36:44 +01:00
Adrien Destugues 7e7aaa3989 Update to Haikuwebkit 1.5.4. 2017-01-30 20:27:52 +01:00
Adrien Destugues f9e1854f19 libbnetapi: fix access to HTTP headers
The asynchronous listener had no reliable way to access HTTP result and
headers from the callbacks. As the callbacks are triggered
asynchronously, they can be run after the request has carried on and,
for example, followed an HTTP redirect, clearing its internal state.

The HeadersReceived callback now passes a reference to BUrlResult for
the request. There are two cases:
- Synchronous listener: passes a reference to the request's results
directly
- Asynchronous listener: archives a copy of the result into the
notification message, and passes a reference to the unarchived copy.

Unfortunately this comes with several ABI and API breakages:
- Change to the prototype of HeadersReceived()
- Change to the class hierarchy of BUrlResult (implements BArchivable)

All users of HTTP requests will need to be updated if they implemented
in HeadersReceived or used BUrlResult.
2017-01-30 20:27:52 +01:00
Adrien Destugues ab880b1753 Cookie Jar: fix lock order inversion
The main lock on the cookie jar must always be locked before the rwlocks
for each domain list. This was reversed in one place, leading to a
typical deadlock pattern. Fixes one case of freeze in WebPositive: two
request threads whould interlock, and then anything trying to access the
cookie jar (including the main thread of Web+ to handle javascript
access to cookies) would also lock.
2017-01-30 20:27:52 +01:00
Adrien Destugues efd1e1eee8 fix binutils package to provide correct version of libbfd 2016-12-30 11:08:19 +01:00
Adrien Destugues d11c962bfc update sdl_ttf to remove libpng linkage 2016-12-30 10:11:44 +01:00
Adrien Destugues 4d4ccf444f Update sdl_image and sdl_sound for new libpng. 2016-12-30 09:24:54 +01:00
Adrien Destugues 2c26ad4b39 move BUrl to the support kit
It is used by the media kit, which created a dependency from libmedia to
libbnetapi to openssl.
It is not entirely specific to the network kit, there are some use cases
that don't involve network at all.
2016-12-29 16:38:53 +01:00
Adrien Destugues 5abeb2b498 HaikuWebKit 1.5.3.
Fixes several crashes and other issues.
There may be regressions. Please test and report.
2016-11-02 14:48:01 +01:00
Adrien Destugues 09c4bc5bd3 runtime_loader: fix getting ABI from gcc .comment
The format for the .comment string changed at some point, and this
fallback code would always fail for files built only with "new" versions
of gcc.

Also consider gcc 5 to be ABI version 4, since it is still compatible
with the old ABI (and provides a new one side by side).

See https://gcc.gnu.org/onlinedocs/libstdc++/manual/using_dual_abi.html
for infos on GCC ABI changes in GCC 5.
2016-10-23 22:23:06 +02:00
Adrien Destugues 16e393a0c5 style fix. 2016-10-23 12:25:40 +02:00
Adrien Destugues bfb2f7ffc4 intel_extreme: always set the base, surface and stride on both pipes
Our code to assign outputs to pipes isn't working at the moment. Outputs
stay assigned to whatever the BIOS has set up. I tried to fix this but
didn't find a way yet (only more black screens).

As a workaround, always set both pipes A and B to always point to the
same frame buffer. This gets the display running properly on my Haswell
machine again, however mode setting is still not possible (so you can
only use the mode set by the BIOS).
2016-10-22 15:03:35 +02:00
Adrien Destugues 02cb3dd440 netconsole: style fixes, add FIXME 2016-08-07 13:46:12 +02:00
Adrien Destugues c2ddcb7957 elf.h: also define SELFMAG
- Used by distcc when it detects elf.h.
2016-08-07 13:39:27 +02:00
Adrien Destugues 8efb6db7b9 elf.h: rename ELF_MAGIC to ELFMAG
- This is how it is named in other versions of elf.h (Linux, glibc, possibly more)
- ELF_MAGIC is used by libelf for the same thing, and the defines conflicts,
  breaking libelf build on Haiku.
2016-08-06 20:32:47 +02:00
Adrien Destugues b4aed463ac add WIP "netconsole" KDL add-on
Similar to Linux netconsole, this should send all debug output over UDP
to the broadcast address. It can be listened to with netcat or similar tools.
This could be an easy way to extract KDL info from a crashing machine
when no serial ports are available.

Does not work yet, help welcome.
2016-08-06 20:29:08 +02:00
Adrien Destugues 766f682338 Fix build and first runtime problem in network boot
The boot still crashes some time later, but at least it is easier to
test now.

- PackageFS included in the net boot archive
- Tell the system it is booted "from image" when netbooting
2016-08-06 20:29:08 +02:00
Adrien Destugues 8948853269 Netboot: remove rtl8169 driver from boot archive
This driver was replaced by rtl81xx. Having both in the image results
in conflicts and non-working ethernet.
2016-03-29 22:46:24 +02:00
Adrien Destugues 9d08351025 NetBoot: add the notification module to boot symlinks
- There is no point in having it in the boot image if it can't be used.
- This however does not get the system booting.
2016-03-29 22:46:24 +02:00
Adrien Destugues d77a087ad2 HaikuWebKit 1.5.2 for x86_64. 2016-02-15 22:43:51 +01:00
Adrien Destugues d373150fa1 Update libmodplug to fix crash in ffmpeg 2016-02-15 20:16:09 +01:00
Adrien Destugues da455572ed AVCodecDecoder: fix timing problems
A combination of two problems made things go wrong with the timestamp of
decoded audio.

1) The output buffer size is too small to hold the complete input.
swresample handles this by buffering the input for use the next time it
is called, however repeatedly doing this results in lots of buffering,
and our way to compute the output timestamp from the input does not take
it into account so it does weird things. Moreover, we would need to
empty the buffer by calling swr_convert with NULL input in that case.

Fix: make sure to not feed more data to swr_convert than it can output
in our buffer. This way, no buffering occurs, only the matrixing
conversion.

2) When using planar audio, the "frame size" is a bit different. Instead
of adding sample size * channel count to 1 pointer, we need to add
sample size * 1 to each channel buffer.

Fix: add the "fInputFrameSize" which takes this into account, instead of
misusing fOutputFrameSize for the input.

Fixes #12460.
2016-02-14 11:45:13 +01:00
Adrien Destugues 45569721aa HaikuWebKit 1.5.2. 2016-02-13 21:20:54 +01:00
Adrien Destugues 3c5c6990bb Really fix swr_convert usage for gcc2. 2015-12-21 22:48:23 +01:00
Adrien Destugues 9dd9b45436 Use swresample to rematrix audio channels, try 2
This code is closer to what we used before for gcc2, and should not
crash there anymore. I could not get exactly the same code to work, but
reduced the difference to a single statement (which makes gcc2 work and
breaks gcc4). This is protected under a guard with appropriate ffmpeg
version test.

This code works for both gcc2 and gcc4 (tested with mp3 and aac files as
well as youtube videos). It still gets the timestamps wrong with ffmpeg
2.4, but I'll try to solve that another time.
2015-12-19 21:55:10 +01:00
Adrien Destugues 5a87d490f5 Fix implementation of _res.
While not thread-safe, it should still be possible to use it in
non-threaded programs, or with locking on the application side.

The "thread-safe" implementation we got from NetBSD called abort(),
which is not a good solution. Restore the non-thread-safe
implementation, which should still work.

Fixes issues in openssh and mtr, and possibly other ported apps.
2015-09-05 12:17:46 +02: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
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
Adrien Destugues 75d1eb3a59 assert.h: reintroduce headers guard for function declarations.
The POSIX standard requires us to allow assert.h to be included multiple
times with differnt values of NDEBUG. So we can't have a global header
guard on the files. However, we must also make sure that we don't
declare functions multiple times in that case. Re-introduce an header
guard on the part of the file where we declare functions, only.

Fixes lots of warnings when building Netsurf.
2015-08-29 23:14:03 +02:00
Adrien Destugues 897d8754a6 GrafX2: update to a version that actually works. 2015-08-16 14:48:07 +02:00
Adrien Destugues ebc6718fb2 Add package for GrafX2. 2015-08-16 13:04:09 +02:00
Adrien Destugues 4c7fff8044 Add package for jabber4haiku. 2015-08-15 11:39:05 +02:00
Adrien Destugues ea2e2f5e11 Update LnLauncher package to include launch daemon script. 2015-08-15 10:40:38 +02:00
Adrien Destugues 1e57dd30a8 Fix xmlroff package. 2015-08-14 18:44:36 +02:00
Adrien Destugues 74c001d51d Add xmlroff package, with dependencies. 2015-08-13 22:51:40 +02:00
Adrien Destugues 0a02f8c287 LaunchDaemon: use setenv to set HOME env variable.
* The API is saner: no need to build a string with var=value
* It is safer: putenv requires the string passed to it to stay
allocated, although most implementations (Haiku, Linux, BSD, OSX) do not
follow POSIX on this,
* Fix a problem reported in #12298 comments because the variable was set
with extra quotes (putenv does not escape them), leading to Qupzilla not
finding the home dir.
2015-08-12 18:08:32 +02:00
Adrien Destugues 1379e2b328 Add packages for 2cdt, d52, radare2 and dependencies. 2015-08-10 19:10:58 +02:00
Adrien Destugues 3749038b53 MouseDownThread: let thread terminate cleanly.
* Killing the thread leaks resources, and it will terminate cleanly and
safely when the destructor exits anyway.
* Fixes #12293. Thanks to ttcoder, jackburton and bonefish for investigating!
* Does not fix #12286. Going to bissect now...
2015-08-07 21:05:55 +02:00
Adrien Destugues 82a6fd69f7 cpctools package: include png2crtc. 2015-07-30 22:11:14 +02:00
Adrien Destugues 29584b3fc4 Add packages for libdsk and tools. 2015-07-30 21:57:48 +02:00
Adrien Destugues 3159417f29 Add packages for vasm,vlink,exomizer,cpctools. 2015-07-30 21:53:53 +02:00
Adrien Destugues f93dab03ec getifaddrs: don't fail if there are no interfaces.
* This is not an error, just return an empty list.
* Same behavior as *BSD implementation.
2015-07-29 22:54:49 +02:00
Adrien Destugues 2df7158917 DHCPClient: don't use AI_ADDRCONFIG
* The DHCP Client is the one configuring interfaces, so it makes no
sense to request address resolution for already configured interfaces
only.
* Fixes #12208
2015-07-29 22:54:47 +02:00
Adrien Destugues 209cd3dd4f Remove second half of useless condition.
Thanks to Ingo for reviewing!
2015-07-26 20:31:10 +02:00
Adrien Destugues 58164f4a49 PVS 122,123: useless checks. 2015-07-26 16:57:10 +02:00
Adrien Destugues 7895cfc69b PVS 114: useless check.
We return a few line above if err is != 0.
2015-07-26 16:57:09 +02:00
Adrien Destugues 0e17424c6f PVS 112: check result of memcmp against 0. 2015-07-26 16:57:07 +02:00
Adrien Destugues 3ec6800839 PVS 109: useless check
error was already checked one line above.
2015-07-26 16:57:06 +02:00
Adrien Destugues 2f8639483a PVS 170: use boolean for if comparison
Direct use of strcmp result in if is against our coding style.
2015-07-26 16:57:05 +02:00
Adrien Destugues 67d9a9cb16 PVS 104: duplicate if check. 2015-07-26 16:57:03 +02:00
Adrien Destugues c13e346a48 PVS 95-103: useless error checks
These conditions were always true, remove them.
2015-07-26 16:57:02 +02:00
Adrien Destugues 69ee6a6d62 PVS 78-85: useless checks
* These were always true, so remove them.
2015-07-26 16:57:01 +02:00
Adrien Destugues 32a6b04592 PVS76: useless check of null pointer
Refactor BResources::WriteResource to return early in case of errors,
instead of checking permanently if (error == B_OK). Makes the code more
readable and removes some useless checks.
2015-07-26 16:56:59 +02:00
Adrien Destugues bdd4f6b7d0 Update cmake package
Fixes gethostbyname_r problem.
2015-07-20 21:43:12 +02:00
Adrien Destugues ce7470f8bf BTab: fix behavior with custom BTabView
* BTab should not assume too much about BTabView, because some apps (eg.
Terminal) completely override the structure of it.
* Use the given owner view in Select/Deselect, rather than trying to
guess from the fTabView.

Fixes tabs not showing in Terminal, mouse not working in Terminal, and
probably some other problems there as the view tree was not correct
anymore.
2015-07-14 11:34:48 +02: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
Adrien Destugues 58f9556840 Update OpenSSH package.
Fixes #12181.
2015-07-14 10:10:01 +02:00
Adrien Destugues 76e7f5688d bfs_tools: add some extra checks to avoid crashes.
I'm not sure I'm fixing the root cause of problems here, but this avoids
some crashes and I could recover my files this way.
2015-07-13 18:09:18 +02:00
Adrien Destugues 10e6523159 bfs_tools: some more structs needed packing. 2015-07-13 18:08:53 +02:00
Adrien Destugues 2df2dca422 bfs tools: missing null check, 64bit support
* Some NULL checks were missing, but on 32-bit machines recover will still fail on my big data partition as it goes out of memory.
* Pack structures that are mapped to on-disk data, so when using a 64-bit compiler, no padding is inserted. Hopefully with 8GB of RAM I have enough to recover my data.
2015-07-08 18:35:58 +02:00
Adrien Destugues 3c3582974a recover: fix 64 bit build
* format strings
* wrong parameters passed to Inode::CopyTo

The 64-bit version does not detect any inodes on my disk, whereas the
32-bit version does. So, more work is needed.
2015-07-08 18:35:57 +02:00
Adrien Destugues 60295ba1f7 Move ports and protocols files back to data directory in Haiku package.
These files are required for netresolv functionality, and there is no
real use in modifying them as settings files. Restore the previous
behavior, the files are stored in data and part of the Haiku package.

This means there is no need for a fresh install from image to get the
files anymore.

Fixes #12156.
2015-06-20 11:52:13 +02:00
Adrien Destugues 50440c4220 Remove gethostbyname_r and gethostbyaddr_r from headers
* They were not in BeOS.
* They are also not in netresolv, they are deprecated and getaddrinfo
should be used.
2015-06-17 21:30:02 +02:00
Adrien Destugues fa57a184e4 APR: update to 1.5.2.
Fixes #12166.
2015-06-17 21:27:57 +02: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 032d5b4b59 netresolv: really enable IPV6.
* Fixes setting of IPv6 address for localhost
* Maybe helps with #12156
2015-06-16 21:42:49 +02:00
Adrien Destugues 23b5556fe4 VideoProducer: fix the fix. 2015-06-15 21:00:14 +02:00
Adrien Destugues 854d187f2b VideoProducer: fix 64bit build. 2015-06-15 20:47:21 +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 d465855013 netresolv: enable IPv6, remove useless Jamfile stuff 2015-06-15 19:36:19 +02:00
Adrien Destugues f15fb39b20 Properly fix Lex/Yacc dependency following Ingo's advice
* By setting HDRGRIST to match SOURCE_GRIST in MultiArchDirSetup, the
include scanning in Jam will work properly: the generated header will
have the same grist as what the include scan looks for.
* Remove the now unneeded workaround from netresolv Jamfile.
2015-06-15 19:27:12 +02:00
Adrien Destugues 5b57e337e9 Remove two old scripts still trying to use SVN.
* The HTA website is no more and we switched to pootle with a different
way to commit the translations.
* Git has no properties so the propset script can't be used anymore.
2015-06-14 17:52:04 +02:00
Adrien Destugues f02ad7a5ea Remove "stubgen" from tools folder.
* Not used directly by the build system or even included in jamfiles
* Was mostly untouched (save for an OpenBeOS to Haiku rename) since the
migration from CVS.
* Get it from upstream if you need it: https://github.com/mjradwin/stubgen
2015-06-14 17:48:58 +02:00
Adrien Destugues 87aab8e742 Use complete name for libbsd.
* Maybe fixes the dependency detection?
2015-06-14 16:41:27 +02:00
Adrien Destugues 842d399404 rename libbind to netresolv.
* Match current upstream project name
* Improve tab-completion pattern by removing common prefix with libnetapi
2015-06-14 15:47:18 +02:00
Adrien Destugues f972422c66 Add a simple DNS caching system to BNetworkAddress
netresolv (and libbind) won't cache DNS requests, which can result in a
lot of DNS requests being made for the same host. Implement a simple
cache in RAM (local to each application) which will keep the most
recently requested addresses cached. This can speed up loading of an
HTTP page a lot, by saving a DNS request for each resource stored on the
same server as the main page.
2015-06-14 15:47:13 +02:00
Adrien Destugues 755f6d2f83 BNetworkRequest: Remove workaround that is not needed anymore
Now that netresolv handles DNS resolution properly, there is no need to
force IPv4 here.
2015-06-14 15:47:10 +02:00
Adrien Destugues 1dc3cf778e Style fixes. 2015-06-14 15:47:08 +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 8d2aee6bc8 libbind: integrate "netresolv" patches from NetBSD.
libbind development was transferred to the NetBSD project at
http://wiki.netbsd.org/individual-software-releases/netresolv/

There isn't an official release yet, but they provide a set of patches
against the latest libbind release.

* Remove all files we don't use
* Merge the changes to the remaining files
* Add some new files we need
* Move getifaddrs implementation to libnetwork (instead of libbnetapi)
so it can be used by netresolv.

Fixes #8293 : netresolv uses getifaddrs to determine if there is a local
IPv6 address. If there is not, it will not return AAAA records.
2015-06-14 15:47:03 +02:00
Adrien Destugues 7c3d316b5d Style fixes. 2015-06-14 15:46:58 +02:00
Adrien Destugues c6ffa94f5b MediaPlayer: style fixes, print performance time of dropped frames
* Helps understanding why the frames get dropped in some cases, where
the computed performance time is not correct.
2015-06-14 15:46:56 +02:00