Commit Graph

57351 Commits

Author SHA1 Message Date
Jérôme Duval
d9823ef5a0 PrintJob: make struct print_file_header packed.
* also struct _page_header_: on x86_64, these would align to 8 bytes, which the code
doesn't handle well.
* remove beos leftovers.
2017-07-31 17:11:53 +02:00
Brian Hill
17683fa9b6 SoftwareUpdater- add zoom feature and bug fix
* Added zoom button to window tab (and backend code to accurately
  calculate proper zoom size for displayed packages)
* No longer need to add icon to notifications since this is now done
  automatically by the BNotification constructor since hrev51299
* Create icons and setup fonts in constructors of list item classes

Bug fixes:
* Lock windows before quitting (fixes #13613)
2017-07-30 21:57:20 -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
Adrien Destugues
2459b6db4f CID 701865: missing break in switch. 2017-07-30 22:50:07 +02:00
Adrien Destugues
2093ede6bc CID 603359: missing break in switch/case. 2017-07-30 22:39:03 +02: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
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