Commit Graph

48364 Commits

Author SHA1 Message Date
Murai Takashi c801b51ce8 Fix size argument is greater than the length of the destination buffer
Signed-off-by: Matt Madia <mattmadia@gmail.com>
2013-11-10 18:25:58 -05:00
Murai Takashi c347a4d4d4 Fix called C++ object pointer is null
Signed-off-by: Jérôme Duval <jerome.duval@gmail.com>
2013-11-10 23:44:12 +01:00
Olivier Coursière be6d2f97cd libroot: Accept NULL for the resolved_name argument of realpath()
as specified in IEEE Std 1003.1, 2013 Edition, see
http://pubs.opengroup.org/onlinepubs/9699919799/functions/realpath.html

In this case, the returned buffer is allocated with realpath() and can be
deallocated by the caller with free().
The behavior was only "implementation defined" in previous revisions like
IEEE Std 1003.1, 2004 Edition, see
http://pubs.opengroup.org/onlinepubs/000095399/functions/realpath.html

Signed-off-by: Jérôme Duval <jerome.duval@gmail.com>
2013-11-10 23:26:18 +01:00
Matt Madia 1bb144a926 Automatic whitespace cleanup. No functional change. 2013-11-10 17:15:34 -05:00
Humdinger 3c527b719f /boot/home/Desktop/Untitled 2013-11-10 19:15:29 +01:00
Przemysław Buczkowski dfbb97132f Notifications: fix issue with launch folder. #10185
* App tried to create symlink in folder ~/config/boot/launch,
what throw an error, because this folder is read-only now.
    * Now it creates such in ~/config/settings/boot/launch.

Signed-off-by: Matt Madia <mattmadia@gmail.com>
2013-11-10 12:31:30 -05:00
Matt Madia b1f0ca873f Whitespace cleanup: two blank lines between functions. 2013-11-10 12:05:45 -05:00
Przemysław Buczkowski 5bb799c2d3 NetworkStatus: show authentication mode in WiFi list. #9666
* now WirelessNetworkMenuItem appends authentication mode to its label

Signed-off-by: Matt Madia <mattmadia@gmail.com>
2013-11-10 11:57:09 -05:00
Stefano Ceccherini f05b8e3873 Check the given path for ".." 2013-11-10 17:30:02 +01:00
Stefano Ceccherini 5ae9ef055c Check if device exists before creating ethernet interface.
Fix ticket #10183.
2013-11-10 17:30:01 +01:00
Ingo Weinhold 8e416d27ff Add a simple RAM disk driver
* It uses physical pages directly, not wasting kernel address space.
* The user interface is somewhat crude, it uses writes to a control
  device (output to serial debug/syslog), e.g.
    echo register 4g > /dev/disk/virtual/ram/control
  to register a 4 GB RAM disk. It is published under
  /dev/disk/virtual/ram/<index>/raw and can be formatted with DriveSetup
  like any other disk. Unregistering is broken ATM.
* It's not on the image by default, but can be added via
    AddNewDriversToHaikuImage disk virtual : ram_disk ;
* I found it quite useful when working on large HaikuPorts ports.
  E.g. mounting a RAM disk at the port's work directory shaves a lot of
  time off disk heavy operations. Obviously one shouldn't let changes
  lie around on it without back up.
2013-11-10 15:43:43 +01:00
Ingo Weinhold 9778589fc7 Set the Haiku image's system dir to non-packaged
Set HAIKU_CONTAINER_SYSTEM_DIR_TOKENS for the Haiku image to "system
non-packaged". All the rules using the variable would put stuff in
directories that will be read-only in the end (and aren't used anymore).
This way they can be used in UserBuildConfig.
2013-11-10 15:43:43 +01:00
Ingo Weinhold 18640f25d9 vfs: dir_vnode_to_path(): Fix bug with chroot on mount
Simplify the code, which also fixes the bug that the I/O context's root
was ignored when it was a mount point, thus resulting in globally rooted
paths in this case.
2013-11-10 15:43:43 +01:00
Ingo Weinhold faf4ddb291 packagefs: PackageLinkSymlink: Fix crash on custom mount 2013-11-10 15:43:43 +01:00
Stephan Aßmus baeed3f04e HaikuDepot: Get rid of dummy resources. 2013-11-10 11:03:13 +01:00
Stephan Aßmus c05743fbc8 HaikuDepot: Give focus to the search terms after launch. 2013-11-10 10:59:32 +01:00
Stephan Aßmus 59062d32b7 HaikuDepot: Morestable layout in title ar
* Try to obtain a more stable layout in the title
   area by forcing unlimited width and using weights.
2013-11-10 10:46:25 +01:00
Axel Dörfler efc3172fba ahci: Dump some TRIM device specifics.
* Maximum LBA range blocks per trim are now read, but not yet taken into
  account.
* Minor cleanup.
2013-11-09 23:05:59 +01:00
Humdinger 61571fa66a Added icons for HaikuDepot and HPKG archives.
Anyone feel free to come umoroe sphisticated ones. :)
2013-11-09 18:12:01 +01:00
Jérôme Duval c5e233d388 usb: hub port reset is also done when the port status reset bit is zero.
* encountered on QEmu 1.6.50 with nec-usb-xhci and usb-storage devices.
2013-11-09 14:34:37 +01:00
Jérôme Duval f559e51835 CID 991592 Uninitialized scalar variable 2013-11-09 13:55:57 +01:00
Jérôme Duval 7f0b39a791 CID 991479 Out-of-bounds access 2013-11-09 13:40:07 +01:00
Jérôme Duval a0f124211a scsi: define SCSI_DEVICE_MAX_LUN_COUNT to set a custom max lun count.
* virtio_scsi can have 16384 luns, though we cap at 256 as our scsi_ccb
only uses uchar as a type for target_lun and target_id members.
* minor code cleanup in scsi_scan_bus().
2013-11-09 13:09:20 +01:00
Jérôme Duval 1ab38414b1 CID 1108455 Structurally dead code 2013-11-09 13:09:16 +01:00
Jérôme Duval 21f7dc3d40 scsi: checks for B_OK instead of SCSI_REQ_CMP in scsi_scan_bus()
* scsi_scan_lun() actually returns a status_t
2013-11-09 13:09:16 +01:00
Jérôme Duval ecadc4c696 CID 1108428 Uninitialized scalar field 2013-11-09 13:09:06 +01:00
Jérôme Duval 426c95e5b0 CID 1108333, 1108192, 1108443
* 1108333 Out-of-bounds access
* 1108192 Operands don't affect result
* 1108443 Uninitialized pointer field
2013-11-09 13:08:57 +01:00
Jérôme Duval 1149fa6ece CID 1108447 Uninitialized scalar field 2013-11-09 13:08:48 +01:00
autonielx b7f865a04d Update translations from Pootle 2013-11-09 06:14:35 +01:00
John Scipione 0096a29e9c Add BMenuField class documentation 2013-11-08 19:29:13 -05:00
John Scipione d7d2ff5bde Minor updates to the BMenu and BMenuBar classes.
Remove the reimplemented hook methods groups because some
hook methods are there, some are not, unfortunately doxygen can’t
tell if a hook method just calls the default or does something else and
we tend to include all the hook methods even if we don’t actually make
any functional changes to them making the docs a bit more verbose
than they otherwise would be.
2013-11-08 19:29:13 -05:00
John Scipione a676c40c3e Some minor updates to BControl docs. 2013-11-08 19:29:12 -05:00
John Scipione 8b4655091d More minor updates to the BView docs. 2013-11-08 19:29:12 -05:00
Stefano Ceccherini 8897f2780d NetworkStatus: Use the network API
Use the Network API instead of querying the net_stack via socket.
2013-11-08 23:26:26 +01:00
Jérôme Duval fe2d4a0fa3 ac97: added a few codec ids.
* minor code cleanup
2013-11-08 19:01:31 +01:00
Jérôme Duval 4d9dca1905 hda: added a few quirks.
* trace the quirks along with codec ids.
2013-11-08 18:46:45 +01:00
waddlesplash 72dfdc7940 Set INLINE_INHERITED_MEMB to NO.
* "YES" causes all members of a class to be stuck in that class' page.
* No need to do that, there's a "List all members" page.
* This will make the docs a lot smaller and easier to read.

Signed-off-by: John Scipione <jscipione@gmail.com>
2013-11-07 17:18:54 -05:00
Axel Doerfler 0c873619ce ahci: Fixed missing endian conversion.
* Spotted by Rene, thanks a lot!
2013-11-07 19:06:35 +01:00
Axel Dörfler e6bde50a07 scsi_periph: use synchronous command.
* The call waited anyway, so there is no reason to make it async.
2013-11-07 19:06:24 +01:00
Axel Dörfler 547cd462f8 trim: Added is_called_via_syscall() function.
* And use it in get_trim_data_from_user(), formerly known as copy_*().
* This fixes differentiating between user and kernel buffers.
2013-11-07 19:06:13 +01:00
Axel Dörfler 79cb543ae0 ahci: Minor coding style cleanup.
* Renamed some methods to camel case.
* Replaced coding error panics with ASSERTs.
2013-11-07 19:06:04 +01:00
Axel Dörfler dbeb6b56b4 ahci: Fixed braindead variable naming.
* Again, thanks Marcus!
2013-11-07 19:05:53 +01:00
Axel Doerfler 2e4e1eb2d9 ahci: fixed endless loop, and missing bit.
* The value for trim is bit 0, not 0; added sata_request::SetFeature()
  to change this.
* The lba range fill loop never ended.
* Thanks to Marcus for proof-reading!
2013-11-07 19:05:41 +01:00
Axel Dörfler 930cb4206b ahci: Minor cleanup. 2013-11-07 19:05:31 +01:00
Axel Dörfler fd88486a31 ahci: Set the command bits as required.
* The trim command should be functional now, but it's completely untested
  at this point.
2013-11-07 19:05:22 +01:00
Axel Dörfler 10deaef118 ahci: Added missing wait_for_completion().
* Thanks Marcus!
* That made the return code for ExecuteSataRequest() pretty much useless,
  so I removed it again.
* Also, a delete sreq was missing; I now allocate it on the stack instead.
2013-11-07 19:05:04 +01:00
Axel Dörfler e858a6b2a0 ahci: WIP of implementing trim command.
* Data Set Management specific bits are still missing.
2013-11-07 19:04:52 +01:00
Axel Dörfler 6317a4c399 scsi_periph: fixed copy&paste error in periph_trim_device(). 2013-11-07 19:04:44 +01:00
Axel Dörfler d82e6bcf6b ahci: Use get_memory_map_etc().
* Simplifies code a bit.
2013-11-07 19:04:32 +01:00
Axel Dörfler 13e72c9a72 ahci: Minor cleanup.
* Mostly utilized ATACommands.h
2013-11-07 19:04:20 +01:00