Commit Graph

48518 Commits

Author SHA1 Message Date
Ingo Weinhold
cbfc38c62d boot loader: MenuItem: Add SetLabel() 2013-11-30 19:39:57 +01:00
Ingo Weinhold
2a368f9b0e boot loader: text menu: run_menu(): Fix empty menu crash 2013-11-30 19:25:56 +01:00
Ingo Weinhold
25a83d13b9 ramdisk: Switch to CLI command for user interface
* Drop the old "echo to control device" interface in favor of an ioctl
  interface.
* Add CLI program "ramdisk" to manage RAM disks.
2013-11-30 17:02:49 +01:00
Ingo Weinhold
5df58b522b Move TextTable from pkgman to libshared 2013-11-30 17:02:49 +01:00
Ingo Weinhold
aea2cb917e device_manager: Implement unpublish_device() 2013-11-30 17:02:49 +01:00
Ingo Weinhold
28092be196 devfs: Add devfs_{get,put}_device()
devfs_get_device() returns the device for a given path (if any), also
acquiring a reference to its vnode (thus ensuring the device won't go
away). devfs_put_device() puts the device vnode's reference.
2013-11-30 17:02:48 +01:00
Ingo Weinhold
4a5eb16053 ramdisk: Add required DEBUG_PAGE_ACCESS_*() macros 2013-11-30 17:02:48 +01:00
Ingo Weinhold
e26c3df48c devfs: Remove superfluous create() hook
We don't support creation of files and the VFS calls open() when an
entry already exists.
2013-11-30 17:02:48 +01:00
Ingo Weinhold
065e6eb2f4 ramdisk: Support file backing
* When registering a ram disk, a file can be specified. Its content will
  be loaded into the ram disk:
    echo register <file> > /dev/disk/virtual/ramdisk/control
* At any time changes to the ram disk data can be written back to the
  file:
    echo flush /path/to/ramdisk > /dev/disk/virtual/ramdisk/control
  If not explicitly written back, the changes will be lost on reboot.
2013-11-30 17:02:48 +01:00
Matt Madia
0d9151c9ff Add genisoimage support to actions BuildCDBootImage1. 2013-11-30 08:27:48 -05:00
autonielx
3024704a94 Update translations from Pootle 2013-11-30 06:18:56 +01:00
Matt Madia
c738ee78e9 Added script for uploading the generated haiku repository.
The plan is for Buildbot to utilize this script and upload the packages
for each and every successfully built hrev. That portion is still in
progress.
2013-11-29 22:18:35 -05:00
Jérôme Duval
e4e1cf9aff PCI: moved IDE api flags to PCI.h 2013-11-28 18:38:45 +01:00
Jérôme Duval
3746e83482 ata_adapter: check the secondary flag for the 2nd channel.
* ide_adapter: likewise.
2013-11-28 18:25:20 +01:00
Jérôme Duval
7cf7fa23f4 PowerStatus: fix a possible division error.
* also fix some types misuses.
2013-11-28 18:18:54 +01:00
Ingo Weinhold
bf5786ebd6 pkgman search: Add -D/--details
* Add a detailed listing mode (-D/--details), which prints a table with
  repository/installation location name, package name, package version,
  package architecture.
* Make the normal listing more compact. Now there's only one row per
  package. The "Installed" column has been replaced by "Status" which
  displays if/where the package is installed and whether it matches the
  repository version.
2013-11-27 15:38:42 +01:00
Ingo Weinhold
01adde8502 BPackageInfo: Add ArchitectureName() 2013-11-27 15:38:42 +01:00
Ingo Weinhold
f96ed66270 BPackageVersion: Add comparison operators 2013-11-27 15:38:41 +01:00
Ingo Weinhold
ecd7a82e0d BSolverPackage: Add Version() 2013-11-27 15:38:41 +01:00
Freeman Lou
616d003507 fix argument count mismatch
Signed-off-by: Rene Gollent <rene@gollent.com>
2013-11-26 21:50:42 -05:00
Rene Gollent
09a8919213 InstallationLocations: Add missing static specifiers.
- Fixes a crash in find_paths() due to the InstallationLocations object getting overwritten.

Thanks to Chris Roberts for reporting.
2013-11-26 21:45:35 -05:00
Jérôme Duval
754bbf4866 libnetapi: second pass of style cleanup
* remarks from Axel
2013-11-26 23:36:42 +01:00
Ingo Weinhold
8d23c440f7 runtime loader: Add support for $ORIGIN in rpath
Like in Linux it resolves to the directory of the shared object whose
needed library is to be loaded.
2013-11-26 16:40:42 +01:00
Adrien Destugues
509755e136 HttpRequest: remove fOutputBuffer
We can send the data directly to the output socket instead of copying it
into a BString first, at the cost of very slightly less information in
debug output.
2013-11-26 10:21:57 +01:00
Jeroen Oortwijn
467f4ab3a8 Fix for whitespace in paths
Signed-off-by: Ingo Weinhold <ingo_weinhold@gmx.de>
2013-11-26 02:06:09 +01:00
Ingo Weinhold
2247591422 bindfs: Add some TODOs 2013-11-26 01:59:39 +01:00
Ingo Weinhold
0bb1b3e269 bindfs_create(): Return vnode reference, don't leak source ref
Fixes #10244.
2013-11-26 01:59:39 +01:00
Ingo Weinhold
8e7ee8f0d9 bindfs_lookup(): Don't leak source child vnode reference 2013-11-26 01:59:39 +01:00
Ingo Weinhold
0494f8a6f0 bindfs: Volume: Don't leak source directory vnode reference 2013-11-26 01:59:38 +01:00
Jérôme Duval
97ddf9019d libnetapi: style cleanup 2013-11-25 18:29:06 +01:00
Adrien Destugues
72086dfe17 Update gcc_x86 to use --with-gnu-ld
Somehow gcc doesn't detect the linker is GNU ld when run in Haikuporter.
We now force this in the recipe. This allows gcc to invoke the linker
with response files, avoiding "command line too long" errors, for
example when building WebKit.
2013-11-25 16:38:22 +01:00
Adrien Destugues
09963134af Style fix.
Sorry, working too much on WebKit code these days.
2013-11-25 16:29:20 +01:00
Ingo Weinhold
f170a888c2 FIFO: Handle user reads/writes more correctly
* Determine whether called from userland or kernel.
* Check the buffer address via IS_USER_ADDRESS(), if from userland.
* Simplify things by merging UserRead() with Read() and
  UserWrite() with Write().
2013-11-25 16:08:00 +01:00
Ingo Weinhold
8019fdbab8 FIFO: Implement FION{BIO,READ}, B_SET_[NON]BLOCKING_IO ioctls 2013-11-25 16:08:00 +01:00
Ingo Weinhold
fd0bfd5593 FIFO: More correct locking when accessing file_cookie::open_mode 2013-11-25 16:08:00 +01:00
Ingo Weinhold
ed9f4719f7 Fix FIONREAD related issues
* Network stack socket module: socket_control(): The FIONREAD argument
  is int, not ssize_t.
* Net kit: getsockopt(): R5_SO_FIONREAD: Fix ioctl() argument. Was
  taking a pointer of what already was a pointer to the buffer.
* libedit: el_gets(): The FIONREAD argument is int, not long.
2013-11-25 16:07:59 +01:00
Adrien Destugues
9394e66cbc ffmpeg plugin: don't crash sniffing unknown files.
The Open method can fail and leave the StreamBase object without an
IOContext, but the destructor tried to dereference it anyway.

This fixes APlayer crashing on many files instead of skipping them.
2013-11-25 14:07:29 +01:00
Ingo Weinhold
38b150a9de VFS FIFO: Add "fifo" KDL command
Prints information about a FIFO node and, optionally, its data buffer
content.
2013-11-25 12:45:37 +01:00
Ingo Weinhold
fb52b1f8b4 VFS FIFO: Enlarge FIFO buffer sizes
* Increase FIFO buffer capacity from 32 to 64 KiB and the FIFO atomic
  write size ({BUF_SIZE}) from 512 bytes to 4 KiB (both like Linux).
* Fix *pathconf(..., _PC_PIPE_BUF). It was returning 4 KiB although the
  implemented atomic write size was 512 bytes only. Now both *pathconf()
  and the FIFO implementation refer to the same constant.
2013-11-25 12:45:37 +01:00
Ingo Weinhold
334ae3c73b VFS FIFO: Fix RingBuffer::Read()/Write() return types
size_t -> ssize_t, since they may actually return an error code.
2013-11-25 12:45:37 +01:00
Ingo Weinhold
dd11460a49 Add a hex dump utility for use in KDL commands 2013-11-25 12:45:36 +01:00
Adrien Destugues
4192f44dc4 Make sure we never give a NULL context to requests.
Use a default context instead. This allows apps without a context
management to still have cookies and HTTP digest authentication (without
persistence to disk).

First part of fix to #10239 (it also needs changes in WebKit).
2013-11-25 12:04:55 +01:00
Jérôme Duval
c9a5d95df2 echo: fixed driver init on x86_64.
* tested with echo3g without external box connected.
2013-11-25 00:06:14 +01:00
Matt Madia
fb0cb1c67c Added HAIKU square graphic.
This is used on the github page and several other places that support gravatar.
2013-11-24 17:13:47 -05:00
Stephan Aßmus
8589dae5e8 HaikuDepot: Better feedback while installing
* Replace the package action button with a download-progress bar
   while the package downloads. Needs some tweaks to the layout code
   to avoid pushing the rest of the title area to the left, but its a
   first step. An additional dedicated area somewhere in the UI which
   lists all on-going tasks would be nice as well.
2013-11-24 22:45:54 +01:00
Michael Lotz
bab9e168ab MediaPlayer: Add Duration, Position and Seek properties.
These allow getting the duration of the currently playing item and the
current playing position as well as setting the absolute position and
seeking by relative time via scripting.
2013-11-24 22:37:34 +01:00
Michael Lotz
2937bbe3bc MediaPlayer: Move winding code into its own function. 2013-11-24 22:37:27 +01:00
Michael Lotz
dcc56bf748 BNetEndpoint: Fix socket leak and reduce Accept() overhead.
When using the copy constructor of BNetEndpoint the socket of the
original endpoint gets dup'ed. The Accept() method later directly reset
the fSocket member of the newly created BNetEndpoint to the socket
returned by accept(). The socket dup'ed by the copy constructor was
therefore leaked.

Of course dup'ing the socket and copying the local and remote addresses
is superfluous in the accept case, as these members all get set to new
values. To reduce that overhead there is now a new private constructor
that directly gets the final socket and remote and local address.
2013-11-24 22:36:29 +01:00
Stephan Aßmus
5c38483e0c HaikuDepot: Stableize layout of "About" page contents
* Give the left group infinite width and use weighting to make it independent
   of the web and email links width.
2013-11-24 21:20:31 +01:00
Stephan Aßmus
31ecb89c7f HaikuDepot: Fix invalidating view contents...
... when InvalidateLayout() does not result in a change of the layout.
2013-11-24 21:18:13 +01:00