Commit Graph

56835 Commits

Author SHA1 Message Date
Dave Thompson
e378617b62 Removed INBOX check inside IMAP protocol's GetFolder method
Signed-off-by: Axel Dörfler <axeld@pinc-software.de>
2017-03-01 22:47:51 +01:00
Fredrik Holmqvist
8bc91c5e0f Prettify code. 2017-03-01 22:44:04 +01:00
Fredrik Holmqvist
73c5d705cd Use static inline (gcc2 issue). Some format cleanup. 2017-03-01 20:32:37 +01:00
Fredrik Holmqvist
5e3916baee FreeBSD compability layer optimized read and writes.
FreeBSD has a simple inlined bus_space_read while Haikus had one
with call overhead.
This still needs cleanup as it is x86 specific, which it was already.
Also it redefines inX and outX defines as arch/x86/arch_cpu.h has a
C++ namespace so it can't be included from FreeBSD drivers C-files.

The results of these changes should be worth it though.
2017-03-01 18:32:18 +01:00
Kyle Ambroff
df3ba9532d Don't query DNS when statically configuring an interface
Fixes #12399

The Network preferences app was querying DNS to find a hostname
associated with the IP address, netmask and gateway when statically
configuring an interface. This is obviously unecessary and leads to
unexpected blocking when DNS is not available.

Adding B_NO_ADDRESS_RESOLUTION flag to disable the reverse lookup.

Signed-off-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
2017-02-28 18:53:06 +01:00
Dariusz Knociński
5f56133770 Polish.keymap: added further four glyphs: '«', '»', '±' and '°'.
Programmer's keyboard, layout compatible with Linux:

    '«' - U+00AB, UTF-8: 0xC2AB, Alt_Right + '9'
    '»' - U+00BB, UTF-8: 0xC2BB, Alt_Right + '0'
    '±' - U+00B1, UTF-8: 0xC2B1, Alt_Right + Shift + '9' [+ CapsLock]
    '°' - U+00B0, UTF-8: 0xC2B0, Alt_Right + Shift + '0' [+ CapsLock]

Signed-off-by: Humdinger <humdingerb@gmail.com>
2017-02-28 09:06:33 +01:00
Julian Harnath
a261f270ed Add FuseSMB-Haiku package
* FuseSMB provides access to shared files and folders over SMB.
  It features automatic discovery of servers and shares and
  displays them as a folder hierarchy in a virtual volume on the
  desktop

* Supports interactive authentication to access shares which require
  login. Just open it, and a dialog pops up. Login data is stored in
  BKeyStore.

* Comes with a network preferences add-on to easily enable and
  configure it. No barbaric manual typing of mount commands required!

* Makes use of Haiku FUSE extensions to give custom MIME types with
  icons for workgroup/share/server folders. Thanks again to humdinger
  for designing the workgroup and share icons!

* Although the used libsmbclient only supports SMB protocol
  version 1, performance is decent enough. Getting around ~75MiB/s
  reading over a GbE link here
2017-02-28 02:03:32 +00:00
Julian Harnath
662dfd3a3f posix_error_mapper: fix pthread_mutex*_get*()
* Commit 0bec83a8 added const to the signatures of
  pthread_mutex*_get*() functions. The declarations in
  posix_error_mapper now didn't match that anymore, so the
  extern C was lost, adding C++ mangling to the functions
  from posix_error_mapper. This made linking applications with
  posix_error_mapper fail.
2017-02-28 01:12:26 +00:00
Augustin Cavalier
59bdca5dd4 kernel/x86/arch_int: Style fixes.
Thanks Axel for the review.
2017-02-27 18:14:26 -05:00
Julian Harnath
5d9f944f0a Use common MIME table in FAT and NTFS, too
* Last commit put the file-extension-to-MIME-type table and associated
  code into a shared location. So now we can remove it from the FAT
  and NTFS FS add-ons (they both had their own copy) and use the shared
  one there as well, removing the code duplication.
2017-02-27 19:58:24 +00:00
Julian Harnath
6ced92452c FUSE compat: add MIME type faking
* Add special handling for reading the BEOS:TYPE attribute to supply
  on-the-fly fake MIME types for FUSE module filesystems, the same
  way it's done in our FAT and NTFS FS modules

* Reuse the mime_ext_table which we already have and put it into a
  shared location so we don't get further extra copies of it
2017-02-27 19:58:22 +00:00
Julian Harnath
5adf34b0d5 FUSE compat: add support for attribute reading
* Implement reading extended file attributes in FUSE modules,
  using getxattr()

  getxattr() is a quite limited API, not allowing to specify a read
  offset. So we read in the entire attribute value into a buffer and
  store in the cookie. This shouldn't be a problem memory-wise, since
  xattr implementions usually have limitations regarding attribute size
  anyway, so it'll rarely be more than a few kilobytes.

* Writing, renaming, and removing attributes is not yet implemented
2017-02-27 19:58:19 +00:00
Julian Harnath
1b4f5f9b94 FUSE compat: fall back to truncate if no ftruncate
* As defined by the FUSE interface: if the FUSE module doesn't
  implement ftruncate(), fall back to using truncate() instead
2017-02-27 19:58:17 +00:00
Julian Harnath
6297d6c73b FUSE compat: fill in some stat infos for getattr
* Prefill struct stat with some information which the FUSE module
  doesn't necessarily fill in
2017-02-27 19:58:15 +00:00
Julian Harnath
1263be8fc4 FUSE compat: add Haiku extension
* Add a way for a FUSE module to supply Haiku-specific extensions.
  This allows it to integrate better with Haiku while only requiring
  minimal changes on the FUSE module itself.

* For now, there is only one extension: another function pointer for
  "get_fs_info", which lets the FUSE module fill in an fs_info struct.
  FUSE provides no good way to otherwise communicate extra information,
  such as the volume flags (e.g. B_FS_IS_SHARED).

* A FUSE module can signal that it supports the Haiku extensions by
    a) defining HAS_HAIKU_FUSE_EXTENSIONS before including the fuse
       headers
    b) setting the global variable gHasHaikuFuseExtensions to 1 in
       its initialization
  Otherwise, the Haiku extensions are completely invisible to the
  FUSE module.
2017-02-27 19:58:13 +00:00
Humdinger
94d8409150 Added square Haiku logos
These are made from the sticker "haiku-sticker-3.5x2".
Quick preview at http://img.ctrlv.in/img/17/02/27/58b425e23a6fb.png

A "Haiku" text layer and a 1-pixel frame are on separate layers,
that are set invisible. Not sure if we should always show the "Haiku".
Looks better without in my opinion, but depending on where it'll be
used, showing the text may be desired...

When used for small logos, like  64px, simple scaling might not cut
it, and the yellow and orange "hills" need to be made wider.
2017-02-27 19:21:46 +01:00
Humdinger
b0d251300c WonderBrush version of sticker
A recreation of the sticker designed by Jorge G. Mare in 2010.
Copyright 2010 Haiku Inc. Released under a CreativeCommons Attribution, Noncommercial, Share Alike license.Designed by Jorge G. Mare (koki@haikuzone.net)

As closest approximation to the font, I used FuturaExtended.
We should come up with a better motto than "Inspired by the BeOS".

One layer holds the reverse side with the QR code.
2017-02-27 10:31:58 +01:00
Jérôme Duval
598a62e275 Add sdl_sound, dosbox packages for x86_64.
Update sdl_net, libpcap and pango packages for x86_64.
2017-02-26 20:51:30 +01:00
Augustin Cavalier
0414166a29 kernel/x86/arch_int: Move cast after NULL check.
Spotted by Lioncash (via IRC). No functional change intended.
2017-02-25 15:28:25 -05:00
Lioncash
7c6caa8939 load_driver_settings: Add missing kernel_args_free() call to load_driver_settings_file()
Signed-off-by: Augustin Cavalier <waddlesplash@gmail.com>
2017-02-25 15:16:07 -05:00
autonielx
bccc1aefa4 Properly name the en_GB and the en_CA catalogs 2017-02-25 18:40:09 +01:00
autonielx
e54638cd8c Remove 3dmov catalogs, fixes #12869 2017-02-25 17:37:01 +01:00
autonielx
6834632536 Remove bsnow from catalogs. Fixes #12583 2017-02-25 10:11:33 +01:00
Adrien Destugues
77a91e3e31 Haiku Sticker png preview and SVG sources
Better stored here, than in the mess in website/static/files.
2017-02-25 10:00:57 +01:00
autonielx
ea1235e654 Update translations from Pootle 2017-02-25 06:47:44 +01:00
Alexander von Gluck IV
b3a29dbdb2 xhci: Ensure trb3 is correct endian 2017-02-24 10:58:42 -06:00
Alexander von Gluck IV
85f64f9049 sysinfo: Refactor CPU feature flag display
* Remove duplicated code
* Add new feature flag field introduced with Ryzen
* Add a few missing Intel cache descriptors
* Don't show 80000007 on Intel. Reserved.
* Clean up language to not show "AMD" flags on Intel
2017-02-23 17:47:25 +00:00
John Scipione
e4e6315ff4 PackageInstaller: Use newly created BString::IEndsWith()
...to find files with .pdb extension

Code was subtly wrong in 2 cases:
1) File that ended in pdb but not an extension e.g. filepdb
   erroneously included
2) File that ended in .PDB or other case erroneously skipped
2017-02-21 19:20:03 -08:00
John Scipione
cc04d41c87 BString: Use safestr() to prevent strlen(NULL)
on StartsWith(), IStartsWith(), EndsWith(), and IEndsWith()
2017-02-21 19:20:02 -08:00
John Scipione
dc0b0016ad StringSearchTest: Add unit tests for new methods 2017-02-21 18:03:03 -08:00
John Scipione
17a4134733 StringSearchTest: automatic whitespace cleanup 2017-02-21 18:03:03 -08:00
John Scipione
1eed6ef172 BString docs: document IStartsWith() and IEndsWith() 2017-02-21 18:03:03 -08:00
John Scipione
388ac82baa BString: Add IStartsWith() and IEndsWith() methods
Case-insensitive version of StartsWith() and EndsWith()
2017-02-21 18:03:03 -08:00
Jérôme Duval
85566e032d posix: add _POSIX_SEM_NSEMS_MAX.
* have _SC__SEM_NSEMS_MAX return _POSIX_SEM_NSEMS_MAX, a per team limit
instead of the global limit.
2017-02-21 20:17:16 +01:00
Jérôme Duval
13da51e907 WebWatch: Remove.
* Outsourced to HaikuArchives for the source, Haikuports for the package recipe.
2017-02-21 20:05:02 +01:00
Jérôme Duval
0bec83a85a pthread: add const for pthread_mutex*_get*()
according to the spec. Fixes #13324.
* code style clean up.
2017-02-21 20:05:02 +01:00
Jérôme Duval
4f10ef40b9 pthread: check parameters for pthread_barrierattr_*pshared().
* fixes #13323.
2017-02-21 20:05:02 +01:00
Fredrik Holmqvist
9b264ecce1 Second try att enabling Werror for ACPI 2017-02-21 19:28:33 +01:00
Fredrik Holmqvist
f18e21a832 Cast ACPI UINT32* to uint32* to avoid warning on 32 bit builds. 2017-02-21 19:27:13 +01:00
Fredrik Holmqvist
95c239a3fb Revert "Treat warnings as error for ACPI."
Better do a recheck on 32 bit first, my old checks from a few
months ago doesn't seem valid anymore.

This reverts commit 7212666f4a.
2017-02-20 16:44:27 +01:00
Fredrik Holmqvist
584a39688c Log ACPI address and size as 64 bit
Even on 32 bit machines the default is to use 64 bit addresses
because of PAE. Haiku currently forces 32 bit addresses which
probably should be fixed.
See achaiku.h: define ACPI_32BIT_PHYSICAL_ADDRESS
2017-02-20 16:26:43 +01:00
Fredrik Holmqvist
7212666f4a Treat warnings as error for ACPI. 2017-02-20 15:25:53 +01:00
Fredrik Holmqvist
fe3f23d202 Temporary fix for warning, until we have a better fix from upstrea,. 2017-02-20 15:24:56 +01:00
Fredrik Holmqvist
28de88fee1 Our stripped ACPI don't use/export utprint.c
Fixes a few warnings.
ACPICA comes with many extras, and they are easy to add
when needed.
2017-02-20 14:58:20 +01:00
Fredrik Holmqvist
6a9b063b74 Casting string constant to ACPI_STRING to fix warning 2017-02-20 14:32:55 +01:00
Fredrik Holmqvist
7c9a09d0e0 Casting string constant to ACPI_STRING to fix warning 2017-02-20 14:32:05 +01:00
Fredrik Holmqvist
06f719d1c3 Fix printf warnings for addr and size args 2017-02-20 14:26:32 +01:00
Humdinger
0446f6b25f Updated dosbox package
Needed a re-build because of an incorrectly declared libsdl_net that
prevented installing the package.
2017-02-20 08:40:24 +01:00
Axel Dörfler
a90df70af5 bfs: Fixed leaking cookie regression.
* Introduced with the last commit.
2017-02-19 18:22:28 +01:00
Augustin Cavalier
7abafe9f3f Revert "Revert "Switch from DejaVu to Noto font""
This reverts commit 2423ba8470.
2017-02-19 12:09:33 -05:00