Commit Graph

57241 Commits

Author SHA1 Message Date
Adrien Destugues
01c1bb6223 Remove more Locale Kit cruft.
BNumberFormat is the way to go for all of this. This code was not even
compiled in.
2017-07-30 19:25:16 +02:00
Adrien Destugues
979a0b6a20 xhci: Fix fuplicate trace.
Makes reading the logs a little less confusing.
2017-07-30 15:06:05 +02:00
Adrien Destugues
6f1ae3c88f XHCI: fix tracing
- The XHCI version register is at offset 2, but we can't do a 32-bit
read at that address. Instead read at address 0 and shift. Fix a freeze
on my system (this register is currently used only for tracing, but I
noticed my USB controller implements version 0.96 and not 1.0 of the
spec, so maybe this will have to change). All other registers in the
capability area are already properly aligned.
- Usual printf type mismatch error in xhci.cpp.
2017-07-30 13:39:14 +02:00
Adrien Destugues
1b707a6822 fix libdsk provides
forgot to change the library version when updating the package.
2017-07-30 10:00:43 +02:00
Adrien Destugues
0af198bcf8 HaikuWebKit 1.6.1. 2017-07-30 08:44:15 +02:00
Adrien Destugues
f0f458ebea Remove glow from boot logo.
It looks better without it.
Note: beta and "development" images not adjusted. We don't have the
wonderbrush sources in the repo for these, apparently.
2017-07-29 12:27:50 +02:00
Adrien Destugues
f40841ac86 BNetworkRequest: fix _GetLine on empty lines.
On an empty line terminated by \n, we would access the temporary buffer
(stack allocated) with an index of (uint32)-1. On 32bit machine this
would just read the byte before the array on the stack, but on 64bit it
would crash.

Check that the length is at least 1 before trying to access a character
in the array.

Fixes #13625.

Thanks to accessays for proofreading the code:
2017-07-28 21:59:19 +02:00
Wiktor
b6b792f8cb Fixed certain labels not being drawn.
BTextControl was created with label as the first argument and NULL
as the second, while constructor expects control's name to come
first and then the label. The fix was to simply add a name
argument before the label and remove the extra NULL.

Fixes #13636.

Signed-off-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
2017-07-28 21:21:56 +02:00
Adrien Destugues
615ef07db3 libnetapi: missing NULL check. 2017-07-28 21:08:54 +02:00
Alexander von Gluck IV
f806447f52 aarch64: Add aarch64 build host support
* Maybe it will be a target someday.
* 64-bit ARMv8 for those not in the know.
2017-07-27 18:45:54 -05:00
Brian Hill
3e967b3fb4 Repositories bug fix
* Remove code that tries to detect repo name from other existing repos
* Automatically enable repo after it is added
Fixes #13602
2017-07-27 19:00:06 -04:00
Jérôme Duval
6c9e01265b pthread_rwlock: use a mutex for process-private locks.
* instead of a benaphore.
* define PTHREAD_RWLOCK_INITIALIZER.
* adjust Init(), Destroy(), StructureLock() and StructureUnlock().
2017-07-27 18:33:53 +02:00
Automatic Committer
b34aa933ed Update pci.ids from pciids.sourceforge.net 2017-07-27 05:20:23 +02:00
hyche
0c2d2d7f0f btrfs_shell: remove BEOS_COMPATIBLE as Haiku doesn't support anymore 2017-07-25 09:35:03 +07:00
hyche
46eba5c02d BTRFS: Some modifications of BTree _Find
* Added "read" argument, may change variable type in the future instead of just bool variable.
* Now search key's objectId is changed to found key's objectId.
2017-07-25 09:34:57 +07:00
hyche
a4a1be758a BTRFS: Added retrieve Volume from BTree 2017-07-25 09:34:55 +07:00
hyche
4ba7b70ff3 BTRFS: Added more flags and key types 2017-07-25 09:34:53 +07:00
hyche
052a981c14 BTRFS: Added more on-disk data structures 2017-07-25 09:34:49 +07:00
hyche
9f9ba0bdc1 btrfs_shell: Support AVLTree 2017-07-25 09:34:46 +07:00
hyche
370ee09fe5 BTRFS: Added logical address (root) for BTree 2017-07-25 09:34:39 +07:00
hyche
7698541e6b btrfs_shell: Added cat command 2017-07-24 20:57:47 +07:00
hyche
548a0d80a0 BTRFS: rename BNode and BPath
Changed name BNode, BPath to Node, Path and move them into BTree
as the original names are already exist in Haiku Storage Kit.

Signed-off-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
2017-07-24 13:07:53 +02:00
hyche
17b1b1c0ea BTRFS: Some modifications for Volume.cpp
* Removed redundant codes when mounting roots
* Added TRACE
* Finding root should be "FindExact" to make it more understandable.

Signed-off-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
2017-07-24 13:06:09 +02:00
hyche
35a5e5ad18 BTRFS: Combine BNode and _Find
* Replaced fStream by BNode, this might fix errors when handling BTree with multiple levels because fStream remains at leaf after first allocating.
* Changed search algorithm for items (linear search -> binary search)

Signed-off-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
2017-07-24 13:05:40 +02:00
hyche
a420881a6c BTRFS: Added retrieve RootBlock of BTree
Signed-off-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
2017-07-24 13:05:18 +02:00
hyche
0d726c5cde BTRFS: Enhanced node search slot to handle btree_traverse type
Signed-off-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
2017-07-24 13:04:53 +02:00
hyche
fc4a1e78e2 BTRFS: Added SetRoot for tree. Tree root is initialized at mount time
Signed-off-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
2017-07-24 13:04:39 +02:00
hyche
7568abd559 BTRFS: BlockNum -> LogicalAddress to prevent misunderstanding
Signed-off-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
2017-07-24 12:56:27 +02:00
hyche
91d7f850cf BTRFS: Added binary search for item slot
Signed-off-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
2017-07-24 12:55:53 +02:00
hyche
bd2dab1c73 BTRFS: Add some missing constants
Chunk tree objectID is 3,
256 is the objectID of first created subvolume in fs tree,
    and also of first chunk tree (item in chunk tree).

Signed-off-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
2017-07-24 12:25:37 +02:00
hyche
1481c49cd1 BTRFS: Initialize BPath and BNode for tree manipulation
Signed-off-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
2017-07-24 12:19:20 +02:00
hyche
875a0552ae BTRFS: Method _Compare from BTree is now in btrfs_key
Signed-off-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
2017-07-24 12:19:00 +02:00
hyche
5f4f71665a BTRFS: CachedBlock now is writable.
Signed-off-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
2017-07-24 12:18:25 +02:00
hyche
0878766c72 BTRFS: Added TRACE macro for debugging
Signed-off-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
2017-07-24 12:18:11 +02:00
hyche
7e8e6c2ebb BTRFS: Added retrieve sector size for later use
Signed-off-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
2017-07-24 12:17:33 +02:00
hyche
d87124efad BTRFS: Refix ticket #12788
* Change block size to node size. Block is not always the same as sector.

Signed-off-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
2017-07-24 12:17:04 +02:00
hyche
299aba38f0 BTRFS: code cleanups
* Removed struct keyword for declaring variable.
* Renamed BPlusTree to BTree because BtrFS use a variant of BTree not B+Tree.

Signed-off-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
2017-07-24 12:16:06 +02:00
hyche
b24d4c8a32 Fixed: Code style (again)
* Pointer/Reference should be next to type
* else if -> if
* Remove trailing spaces

Signed-off-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
2017-07-24 12:15:16 +02:00
Jérôme Duval
dbad909b4e BMediaFile: fix MediaExtractor crash.
* stop the extractor processing before deleting the source.
* crash happened in MediaPlayer FilePlaylistItem::_CalculateDuration().
* was a regression introduced in hrev50671.
* fixes #13156.
2017-07-24 11:59:05 +02:00
Jérôme Duval
13dbf47109 Revert "BView: use off_t instead of long."
This reverts commit ab3a87ed6e.
2017-07-24 08:48:28 +02: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
Jérôme Duval
0b6c89fb16 ffmpeg: implement deinterlace feature for ffmpeg 3.x.
* Use the yadif filter.
* Fixes #12731.
2017-07-23 13:03:53 +02:00
Adrien Destugues
037ea84ba5 BNumberFormat: add Parse() and GetSymbol(). 2017-07-23 11:40:25 +02:00
Adrien Destugues
6cbcfc1911 BNumberFormat: cache ICU formatters
For performance reasons, it is a good idea to keep the formatters
instanciated, instead of re-creating them each time we need to format a
number.
2017-07-23 10:24:02 +02:00
Adrien Destugues
0e4ad75e47 Remove more unneeded files from the Locale Kit
All of this is replaced by the single BNumberFormat class.
2017-07-23 09:15:42 +02:00
Adrien Destugues
b7cc4ccde6 Remove remaining include of FloatFormatParameters.h. 2017-07-22 19:47:07 +02:00