Commit Graph
100 Commits
Author SHA1 Message Date
Augustin Cavalier a20f4f8a85 MidiSettings: Don't leak settings in failure case.
CID 1422944.
2017-11-23 19:40:03 +01:00
Augustin Cavalier d692d22c9d debugger/elf: Don't leak memory in failure case.
CID 1423098.
2017-11-23 19:40:02 +01:00
Augustin Cavalier 7131246873 BNetworkAddress: Close socket in ResolveForDestination.
It was closed on all the failure cases but not on the success one.
Found by Coverity.
2017-11-23 19:40:02 +01:00
Augustin Cavalier 75fa008e23 BProxySecureSocket: Fix obviously untested code.
* Actually set status before testing it
 * sscanf (reads from passed buffer) not scanf (reads from stdin)
 * &httpStatus not httpStatus.

Found by Coverity.
2017-11-23 19:40:01 +01:00
Augustin Cavalier 14fcbb52cd device_interfaces: Fix memory leak on success.
The module list was closed properly at the end of the function body
(failure case) but not inside the loop on the success case.

CID 605738.
2017-11-23 19:40:00 +01:00
Augustin Cavalier d73993ff20 configure: Fix & enhance --use-clang.
Now you set the arch along with the argument, and specify the binutils
manually (and thus build without a complete crosstools environment.)
2017-11-23 19:40:00 +01:00
Augustin Cavalier df9bc792e0 runtime_loader: Set sSearchPathSubDir on first image, not on app image.
Under normal conditions this will behave identically. But when using LD_PRELOAD
or the like, some shared objects (and dependencies) are loaded before the
app image is, and on the secondary arch on hybrid builds, will fail to load
any of their dependencies due to sSearchPathSubDir not being set.

Fixes #12214, which had plagued users of libroot_debug for a long time now.
2017-11-22 17:55:36 +01:00
Augustin Cavalier 8742c1d044 Tracker: Remove now-unused bool displayingSymlink argument from InfoWindowRect. 2017-11-22 11:36:36 +01:00
Augustin Cavalier 164e4f8de4 intel_extreme: Beginnings of Broadwell support.
At present, does not work (it fails to properly set up interrupts,
resulting in thousands of unhandled ones which all but grinds the system
to a halt) but this at least is some progress.
2017-11-21 23:37:18 +00:00
Augustin Cavalier 3b3688c7a5 fs_shell: Change {set_}real_time_clock to match the new definitions. 2017-11-21 15:18:11 +01:00
Augustin Cavalier 7d8eb4d7f9 time: Address review comments.
* Use ENOSYS not B_DONT_DO_THAT (thanks korli)
 * Use unsigned long not uint64 (thanks axeld)
2017-11-16 20:53:14 +01:00
Augustin Cavalier 9a50e01ea6 set_real_time_clock: Change parameter from uint32 to uint64.
This should have been done along with the time_t change, but I forgot
to check this then.

Technically this breaks ABI against BeOS, but:
  1. BeOS used an int32, so we'd already slightly broken ABI here
  2. Only one thing at HaikuArchives (VMwareAddons) and one recipe at HaikuPorts
     (samba) uses this function at all.

If it turns out some critical BeOS app uses this, then I guess we can enclose
GCC2 guards around it, but since I can't find any evidence of that, I'm
pushing it without them for now.
2017-11-15 18:28:04 +01:00
Augustin Cavalier a7c323c633 libroot/time: set_timezone is deprecated and does nothing, so don't return B_OK. 2017-11-15 18:11:33 +01:00
Augustin Cavalier f009c69deb docs/develop/input: Delete useless cruft.
The only thing of any real use in this directory was the Be Newsletter
article, and the objdump from BeOS R5 (at least I guess that's what it is...)
so I kept those.
2017-11-15 17:52:50 +01:00
Augustin Cavalier 69da4f60e8 input_server: Delete useless functions.
As far as I can tell, these functions were "added" because they appear
in a symbols dump from R5. Nothing calls them, they don't do anything,
and they do not appear in R5 headers.
2017-11-15 17:52:39 +01:00
Augustin Cavalier 581cd2a22d Nuke COMPILE_FOR_R5.
Not used in $long_time, almost certainly broken, so it's just cruft.
2017-11-15 17:52:27 +01:00
Augustin Cavalier 304f594da1 De-wire net_stack_cleanup from boot/loader/main.cpp
This reverts commit 2960780faa.
Sorry for the noise; I thought I'd run a compile but apparently it was
only a partial one.

It seems that the netboot core is linked into the main bootloader
no matter the build configuration, which means that since this one
function was called, the linker tried to resolve all the other symbols
from that static library. Which of course failed.
2017-11-13 21:17:45 +01:00
Augustin Cavalier ec0a48e837 wlan/Jamfile: Update comments to properly reflect in-tree driver origin. 2017-11-13 17:19:05 +01:00
Augustin Cavalier 83e8a2654c Revert "userguide: fixes link to repositories pref page."
Revert "docs: promote SoftwareUpdater as easy tool to update Haiku."

This reverts commit 6487273924.
This reverts commit 8aab3a0d5e.

--

The Userguide and Welcome Guide are written and managed in the Userguide
Translator, not in the tree.
2017-11-06 19:56:56 +01:00
Augustin Cavalier 67379bfbd0 pkgman: Fixes to the new download progress meter.
* Make string-splitting UTF8-aware
 * If the window size is too small for the full string, mid-truncate it
 * Ensure the string is long enough if the window size is large.
 * Rework flushing strategy slightly.

Fixes #13750, as well as taos' unrelated issue he reported there.
2017-11-04 16:56:01 +01:00
Augustin Cavalier a9c1157a2a pkgman: Completely rework download progress indicator.
* Remove the Unicode progress characters, instead change terminal
   background color
 * Include downloaded/total size in the displayed information
 * Include transfer rate (over the last 1s)

Here's a quick screenshot of what it looks like now:
https://i.imgur.com/x4II3Fu.png

"Inspired" by a very old patch by Axel, but almost all of this is my own work.

Fixes #13424.
2017-10-30 14:19:39 +01:00
Augustin Cavalier 055c4e1406 OptionalPackages: Remove unused cruft. 2017-10-29 13:22:34 +01:00
Augustin Cavalier 6aff37d1c7 Move SHA256 class to libroot instead of linking libshared into libroot.
Discussed with PulkoMandy and on the haiku-commits mailing list.

Thanks to @jessicah for compile-testing and fixing 2 small issues I missed.
2017-10-03 20:18:26 -04:00
Augustin Cavalier 9d5b0fdaa1 docs/user: Upgrade to Doxygen 1.8.13.
Also tweak the footer CSS a bit, and fix an unclosed comment in the
fs_interface docs (spotted via a warning in Doxygen output.)
2017-10-01 11:19:37 -04:00
Augustin Cavalier 1b8c7f5b2c AboutSystem Credits: Various updates.
* Move anyone who has not committed in over 24 months to "past maintainers"
 * Add Kacper Kasper to "maintainers"
 * Remove Brian Hill from "contributors" as he's now under "maintainers"
2017-09-30 22:08:53 -04:00
Augustin Cavalier 9d8a58ea46 nvidia_gpgpu: Remove from tree.
Was nothing but a slightly-stripped version of the nvidia driver,
not touched substantially in nearly 10 years, and the cards it was
originally going to support (but never got anywhere near so) have long since
been deprecated.
2017-09-30 21:27:47 -04:00
Augustin Cavalier db68ff23c6 Interface Kit: Make BControlLook a proper pure-virtual base class.
All of its prior functionality has been moved into HaikuControlLook.
This paves the way for customizeable control looks, which I intend to implement
in the future as part of decorators.

This is being pushed now because libbe ABI was already broken due to the
Notifications changes, so this is riding that so we only have to do a mass
rebuild once.
2017-09-30 21:12:33 -04:00
Augustin Cavalier d52572b31b BControlLook: Make all public methods virtual.
Solves a "TODO before R1". Breaks ABI, but almost nothing outside the
tree uses it.
2017-09-30 21:12:02 -04:00
Augustin Cavalier e03db9304f Terminal: Specify ourselves as xterm-256color.
This was originally instated back in 2013, but was reverted then
due to #9636 because most other systems did not yet recognize that
terminal type.

Nowadays, nearly all Linux terminals specify themselves as being
"xterm-256color" by default, so reinstating this should be fine.
2017-09-12 14:36:28 -04:00
Augustin Cavalier 0ed0bc5384 termcap: Update from 2011/02/20 to 2017/08/26.
Note that this reverts a Haiku-specific patch to mark "xterm"
as supporting 256-color mode.
2017-09-12 14:34:42 -04:00
Augustin Cavalier e736356cfa Revert "tcp: slow start@rfc5681 : updated rules for congestion window"
This reverts commit 05743f6a13
(and the portions of following commits that were layered on top of it.)
2017-09-12 14:10:30 -04:00
Augustin Cavalier bfbb965580 Interface Kit: Remove more non-BControlLook code. 2017-09-10 14:58:35 -04:00
Augustin Cavalier a222e4d0cc virtio_net: Add to image.
Stress-tested in VirtualBox. No major performance or usability problems;
even when I had tracing enabled, it was transferring data at ~1.1MB/s.
2017-08-31 17:37:50 -04:00
Augustin Cavalier bcc52318d6 NetworkTimeView: Add missing default in MessageReceived switch.
Fixes #12652.
2017-08-30 20:09:26 -04:00
Augustin Cavalier ce24655733 ReadMe.Compiling: We can work with genisoimage now.
(This commit brought to you by Finicky Buildbots In Need of Kicking.)
2017-07-31 17:49:59 -04:00
Augustin Cavalier c6c03d566e Reinstate umask test into configure now that the buildbots have been fixed. 2017-07-31 17:33:51 -04:00
Augustin Cavalier 70dde0b360 configure: Ensure that umask is not too restrictive.
There have been some odd bugs in the past possibly caused by this,
so guard against it.

Discussed with PulkoMandy.
2017-07-30 17:18:30 -04:00
Augustin Cavalier a1ceb00059 Remove even more Locale Kit cruft.
Not included in the build and not used.
2017-07-30 14:46:41 -04:00
Augustin Cavalier 4e0a6a83d9 wwan: Fixup last commit.
(Forgot to comment this out.)
2017-07-30 14:40:42 -04:00
Augustin Cavalier ff0184bed0 Remove GPL-add-ons build machinery.
No longer used by anything (it appears some old kernel drivers that
are not included in the build might use it, but I don't know why
they need it -- we already ship GPL'd code [libntfs] for the kernel
in the default build unconditionally.)

Briefly discussed with js a few weeks back.
2017-07-30 14:13:42 -04:00
Augustin Cavalier dd4eae252e ac3_decoder: Remove from tree.
Not included in the build (locked behind a SubIncludeGPL);
now lives at HaikuArchives.
2017-07-30 14:06:05 -04:00
Augustin Cavalier 283b84cd62 xvid_decoder: Delete from tree.
Not included in the build (locked behind a SubIncludeGPL & commented out);
now lives at HaikuArchives.
2017-07-30 14:01:05 -04:00
Augustin Cavalier 11384b58ba bin/coreutils: Remove; now unused since previous commit. 2017-07-23 11:08:34 -04:00
Augustin Cavalier 95295296cd multiuser: New implementation of su.
We're still using the (now-deprecated) coreutils su, so this is
a replacement for that. It functions almost equivalently,
and supports the major arguments (-l, -c).

(Note that login/su to a non-root user is presently busted, though.
See #13583.)
2017-07-23 11:07:36 -04:00
Augustin Cavalier eed40cb8c5 multiuser_utils: Add bool chngdir option to setup_environment. 2017-07-23 11:07:36 -04:00
Augustin Cavalier 5cc11bf479 login: Use read_password from multiuser_utils.
Also fix some extant bugs.
2017-07-23 11:07:36 -04:00
Augustin Cavalier ec1421184a multiuser: Move setup_environment from login to multiuser_utils. 2017-07-23 11:07:36 -04:00
Augustin Cavalier 9175f4f04a netresolv: Merge patches from 2015 to current HEAD.
Commits merged from the semi-official Git mirror of NetBSD
trunk (https://github.com/IIJ-NetBSD/netbsd-src/).

Commit authors/messages in chronological order follow:
---------------------------------------
From: maya <[email protected]>
Date: Tue, 9 May 2017 02:56:44 +0000
Subject: Avoid shift of negative signed integer. this is UB. NFC.
2017-07-03 12:17:47 -04:00
Augustin Cavalier bbb7a5b327 libs/util: Delete unused portions.
We only include 4 .c files of this in the build, so delete everything
else.
2017-07-03 12:02:38 -04:00
Augustin Cavalier c7258f02db PDF Writer & PDFlib: Remove from tree.
Now supplied via HaikuPorts packages.

I *think* this was the last component in the tree with a
non-OSI license.
2017-07-01 18:46:58 -04:00
Augustin Cavalier 6544bef00a HaikuDevel: Include libprint.a and libprintutils.a.
It's essentially impossible to build printer drivers outside the tree
without these (and I'm presently trying to outsource the PDFWriter.)
2017-07-01 18:21:31 -04:00
Augustin Cavalier 6a075fc1af POP3: Actually return B_TIMED_OUT not just B_ERROR on timeouts. 2017-07-01 04:59:17 -04:00
Augustin Cavalier d1136c5a97 SMTP: Use B{Secure}Socket for communication. 2017-07-01 04:59:17 -04:00
Augustin Cavalier c86d497164 SMTP: Remove STARTTLS support.
* It's vulnerable to man-in-the-middle attacks (which can't really be fixed)
 * It's rather nasty to implement (and prevents us from using BSecureSocket)
 * Nearly all servers I know of which support STARTTLS also support plain
   TLS also.
2017-07-01 04:59:17 -04:00
Augustin Cavalier 9980b6b47c IMAP: Remove direct usage of OpenSSL.
It already uses BSecureSocket without checking for USE_SSL,
so just assume we have SSL no matter what.
2017-07-01 04:59:17 -04:00
Augustin Cavalier 92bfd0e09e POP3: Remove direct usage of OpenSSL.
It already uses BSecureSocket without checking for USE_SSL,
so just assume we have SSL no matter what.
2017-07-01 04:59:17 -04:00
Augustin Cavalier 954b54ba8d kits/mail: Remove OpenSSL logic from Jamfile.
Nothing in the Mail Kit proper uses OpenSSL directly anymore
(confirmed with a grep for USE_SSL as well as "openssl"),
so we don't need this logic anymore.
2017-07-01 04:59:17 -04:00
Augustin Cavalier 1cc5dd9dd9 Remove UseLibrary Headers alm ; from Jamfiles that aren't using it.
Now to take a look at moving the really gnarly mail networking code
over to B{Secure}Socket...
2017-06-30 20:11:21 -04:00
Augustin Cavalier 8108c0dc3f mail_daemon: Delete old READMEs. 2017-06-30 19:48:59 -04:00
Augustin Cavalier 5c4c4e9180 fssh_time: Fix following time_t changes. 2017-06-30 18:14:47 -04:00
Augustin Cavalier f8f0ac7ecb drivers/network: Re-sort the Jamfile.
It still had comments about FreeBSD 7/8 drivers, when we're mostly
on 9.2/9.3 with bits of 10 now.
2017-06-30 17:06:08 -04:00
Augustin Cavalier 19e366c3ac bcm440x/bcm570x: Remove.
Not included in the build (they were locked behind a SubIncludeGPL),
not really touched since 2007, and entirely supplanted by the
broadcom440x/broadcom570x drivers from FreeBSD.
2017-06-30 15:49:10 -04:00
Augustin Cavalier ab76614d65 ideinfo & idestatus: Remove.
They're useless without the old IDE stack.
2017-06-28 17:55:39 -04:00
Augustin Cavalier 7aae2f7475 userguide: Actually sort the language menu. 2017-06-24 00:19:23 +02:00
Augustin Cavalier b988c71571 Update userguide translations 2017-06-17 20:50:50 +02:00
Augustin Cavalier 0bb2d0ecad docs/user: Status codes are defined in Errors.h, not Error.h. 2017-06-14 18:05:31 -04:00
Augustin Cavalier ba25f57aad Tracker: More B_PRId32 -> B_PRIdTIME. 2017-06-10 21:17:38 -04:00
Augustin Cavalier 45de4ebf98 CharacterMap: Miscellaneous sentence-casing fixes after previous commits. 2017-06-06 22:10:26 -04:00
Augustin Cavalier 9f6dbb5ff0 Fix the build following the 64-bit time_t switch. 2017-06-06 17:38:17 -04:00
Augustin Cavalier 39efd913c1 Switch to a 64-bit time_t everywhere except 32-bit x86.
Thus, BeOS compatibility is preserved (and there is no risk of
breaking GCC5<->GCC2 interoperation on hybrid builds.)

This commit only makes the actual change, the build fixes are
in the next commit.
2017-06-06 17:38:17 -04:00
Augustin Cavalier 6ad3d25212 real_time_clock: Change _user_{get|set}_timezone argument to int32.
Both the user-mode syscalls.h and the kernel-mode one define it
as an int32, not a time_t, and as it's a timezone offset not
an actual time, there's no reason it needs to be one.
2017-06-06 17:38:17 -04:00
Augustin Cavalier b70a58f95a pthread.h: Remove PTHREAD_RWLOCK_INITIALIZER macro.
This reverts commit 17286dc70a.

As discussed on the mailing list. As it turns out, this was less
than half of an actual implementation of this macro, and there's
technically no way to implement it without introducing (theoretical)
race conditions, in the current design anyway.
2017-05-29 10:54:41 -04:00
Augustin Cavalier affb4e25fe runtime_loader: Remove EXEMODE hack.
This reverts commit 6af29d4f83.
I'll have a look at our buildbot config and see if it needs fixing.
2017-05-28 12:42:12 -04:00
Augustin Cavalier 6af29d4f83 runtime_loader: Ensure EXEMODE is set.
Stopgap solution for #12373.
2017-05-26 15:31:55 -04:00
Augustin Cavalier c72855f6c0 libMicro: Remove from tree.
Upstream libMicro builds and runs on Haiku with minimal changes now
(no recipe as it does not have an INSTALL mechanism). I submitted
a pull request with those to upstream, but for now you can get them
from https://github.com/waddlesplash/libMicro.
2017-05-12 17:20:29 -04:00
Augustin Cavalier 7f06022487 Remove ancient, unused, useless ICH stub. 2017-05-12 16:48:49 -04:00
Augustin Cavalier fc474c326c modem: Style fix. 2017-05-12 16:32:04 -04:00
Augustin Cavalier a8ae893bc3 Tracker: Fix B_UNDO/B_REDO forwarding to a focused BTextView. 2017-04-29 15:09:05 -04:00
Augustin Cavalier 56f9e8b759 Tracker: If a BTextView is focused, do not force-forward clipboard events to it.
In its original state this code just forwarded all clipboard messages to the
focused view, which sometimes was a BTextView or the like which knows nothing
about Tracker's custom clipboard events, and thus would wind up in an infinite
loop.

Now, the messages are left to be handled by the focused view if a BTextView
is selected (e.g. in a file panel, or in Tracker's navigator), but otherwise
forwarded directly to the BPoseView.

Fixes #12721.
2017-04-29 15:00:05 -04:00
Augustin Cavalier 0d3051a20b modem: Fix logic errors and some style issues.
Thanks Axel for the review!
2017-04-29 14:08:18 -04:00
Augustin Cavalier bef731a331 modem: Adapt to the new network stack.
This is my first time using most of these API calls to the network stack, so,
reviews most welcome.
2017-04-26 22:16:11 -04:00
Augustin Cavalier 207606e0c9 ppp/modem: Trim trailing spaces. 2017-04-25 14:32:47 -04:00
Augustin Cavalier bf1bf4e9d4 ppp: Cleanup Jamfiles. 2017-04-25 14:29:48 -04:00
Augustin Cavalier 5d614ec377 tracker: We now target only Haiku since the layout merge, so use B_REDO. 2017-04-25 11:19:32 -04:00
Augustin Cavalier df2961ae19 usb_serial: Fix typo Alex made. 2017-04-25 11:06:56 -04:00
Augustin Cavalier 3f2162c629 tests/kits/net: Remove old version of the DialUpPreflet.
Hopefully there aren't any more copies of this hiding in the tree....
2017-04-25 10:56:42 -04:00
Augustin Cavalier 5495e4f674 netperf: Remove from tree.
Not actively used and there is a recipe available.
2017-04-25 10:55:29 -04:00
Augustin Cavalier 9c80c788c0 HaikuPorts/x86_gcc2: Add the gnuefi any-arch package. 2017-04-23 21:16:35 -04:00
Augustin Cavalier 0fb349bc5d network_settings/dialup: Initial move to layouting. 2017-04-20 15:54:12 -04:00
Augustin Cavalier adae1a12b8 network_settings/dialup: Update copyright headers.
Also reformat the rdef to match the other network_settings.
2017-04-20 15:54:12 -04:00
Augustin Cavalier 922badcfe1 network_settings/Jamfile: Add dialup SubInclude.
(Still not included in the build, of course.)
2017-04-20 15:54:12 -04:00
Augustin Cavalier 15d60d5e45 stickit_BJoystick: Remove unused .proj file. 2017-04-18 16:02:49 -04:00
Augustin Cavalier c6c3303630 network_settings/dialup: Remove unneeded/unused posix directory. 2017-04-18 15:58:21 -04:00
Augustin Cavalier 9390158822 network_settings/dialup: Fix the build.
Badly needs layouting and a lot of other fixes to get it
working with the new PPP stack. But it's a start.
2017-04-18 15:40:10 -04:00
Augustin Cavalier 0a694375a9 network preflet: Add B_NETWORK_INTERFACE_TYPE_DIAL_UP. 2017-04-18 15:39:40 -04:00
Augustin Cavalier a325aa030f DialUpAddOn: Move to add-ons/network_settings/dialup. 2017-04-18 14:21:26 -04:00
Augustin Cavalier 8dcdf72d72 Update userguide translations 2017-04-15 22:40:25 +02:00
Augustin Cavalier b95e90657e docs/user: Update search URL following docs migration. 2017-04-15 16:28:06 -04:00
Augustin Cavalier 17f5ac9149 libroot: Restore exit() call after debugger().
Thanks PulkoMandy for the review.
2017-04-14 18:29:29 -04:00
Augustin Cavalier a5d208c7d6 libroot: abort() should behave like a crash, not just a 'failure' exit.
Calling debugger() means that the crash dialog will be shown, and so
users will not be left wondering why an app just spontenously disappeared.
2017-04-14 16:07:02 -04:00