Commit Graph

17668 Commits

Author SHA1 Message Date
Axel Dörfler
c40fe37f0b * Reverted the changes r17693 made to vfs_get_vnode_cache(); instead, vm_create_vnode_cache()
will now grab a reference to the vnode as well if successful. This way, vfs_get_vnode_cache()
  now actually works how it should: it will now always grab a reference to the cache and
  its underlying vnode. This removes an extra reference to the vnode (and vm_cache) that
  got ignored before and prevented volumes to be unmounted (or file caches to be removed).
  Thanks to Korli for pointing this out.
* file_cache_create() is now aware of that extra vnode reference and releases it; unmounting
  volumes is now working again as it should.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18716 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-08-30 23:09:04 +00:00
Axel Dörfler
96d67014ff Minor cleanup.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18715 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-08-30 23:00:58 +00:00
Axel Dörfler
190aa14f19 * Use user_strlcpy() instead of this scary combination of strnlen() and user_memcpy().
* Minor cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18714 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-08-30 22:39:20 +00:00
Michael Lotz
8001b0c614 This subtle error (introduced in r18656) caused bulk pipes to stall.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18713 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-08-30 21:54:29 +00:00
Michael Lotz
6b0ee87455 Accidently forgot to remove debug output define again.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18712 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-08-30 19:31:21 +00:00
Michael Lotz
c773d729dc Fixed wrong length of string descriptors.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18711 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-08-30 18:45:29 +00:00
Michael Lotz
8fedfdfcf8 * Rewrote some stack internals (again). Everything is now created using a parent object that shares the BusManager and Stack information to reduce individual constructors.
* Don't inherit Device and Interface from pipes anymore. The device has a default pipe member now.
* Since the parent of each Object is now known, we can send control messages using the default pipe of the device from all attached elements (pipes and interfaces).
* Fixed the generic {Set|Clear}Feature() and GetStatus() calls to include the endpoint address for pipe specific requests.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18710 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-08-30 17:59:23 +00:00
Axel Dörfler
1c1c6688d1 Make sure "otherTeam" is -1 when it's not found in the reply.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18709 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-08-30 16:15:57 +00:00
Axel Dörfler
60e0ea9f7f Bug fix for my last commit: all of a sudden, a text would need more than one
bad character to be accepted.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18708 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-08-30 11:56:20 +00:00
Jérôme Duval
383b5f4303 fix error exit codes
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18707 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-08-30 10:06:19 +00:00
Axel Dörfler
86cebbca83 Added the fdinfo app to the image for debugging purposes.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18706 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-08-30 10:04:06 +00:00
Jérôme Duval
15e29cfa03 fix exit codes (1 on error, 0 on success)
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18705 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-08-30 09:46:42 +00:00
Jérôme Duval
2761c5ae55 replaced with PCI.h definitions, added PCI_usb_ehci
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18704 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-08-30 08:36:53 +00:00
Axel Dörfler
d3669ef900 * Extended the text recognition to UTF-8 characters - if a text contains too many
bad characters, it will be rejected, at least after bug #675 has been fixed.
* In the future, we should use the same mechanism as the TextSnifferAddon of the
  registrar; it would also be nice to use additional charset information (at least
  differentiating between latin-1 and UTF-8).
* Minor cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18703 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-08-29 23:24:58 +00:00
Axel Dörfler
e04ec8626e * UTF8ToCharCode() only skipped 3 bytes for a 4 byte character.
* Minor cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18702 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-08-29 22:20:18 +00:00
Michael Lotz
641309e8d0 Obviously forgot this in the last commit...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18701 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-08-29 18:27:00 +00:00
Michael Lotz
1bad4a4ef9 * Fixed queue_isochronous in USB3.h to match the actual v3 API.
* Changed the usb module accordingly. Isochronous is all still left ToDo though.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18700 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-08-29 18:25:34 +00:00
Stephan Aßmus
7fb6186f3c * integration of vector icons with the registrar and the mime data base
* additional versions of SetIcon[ForType] and GetIcon[ForType] in BMimeType
  and BAppFileInfo, which handle flat vector icon data
* changes in Tracker to support scalable icons (currently broken for
non-vector icons and needs cleanup) and drawing icons correctly with alpha
channel (large parts of this work done by Michael Lotz)

If someone feels like looking over the changes, that would be much
appreciated! :-)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18699 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-08-29 17:06:23 +00:00
Axel Dörfler
324e3770e6 Fixed build under Dano.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18698 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-08-29 17:00:09 +00:00
Jérôme Duval
98396cd878 added vm pages functions based on file_cache
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18697 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-08-29 15:42:16 +00:00
Axel Dörfler
7ee49d9f64 Minor cleanup.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18696 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-08-29 15:04:42 +00:00
François Revol
a6ccb0bef6 Added TODO section. Added (c) Be,Inc. for the sample code.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18695 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-08-29 14:30:50 +00:00
Axel Dörfler
304d592760 Made the keyboard device more resistant against any kind of error:
* Scancodes greater 255 are now handled correctly, and will no longer crash
  the input_server. This fixes bug #830.
* Use new (std:nothrow) instead of a simple new
* Now checks all allocations and appropriately handle failure
* Cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18694 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-08-29 14:14:45 +00:00
Jérôme Duval
458b6f4b90 fixed warnings
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18693 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-08-29 13:57:55 +00:00
Jérôme Duval
80e19d62c5 added a grist to differenciate with playway in src/bin/playsound/
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18692 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-08-29 13:10:20 +00:00
Jérôme Duval
3e4cd38cfc fixed a typo and make sure we have a file cache
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18691 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-08-29 12:50:25 +00:00
Axel Dörfler
0ab73f2b26 * Fixed warnings.
* Cleanup, separated hook and driver functions from the rest.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18690 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-08-29 11:44:50 +00:00
Axel Dörfler
e651d817a7 Fixed debug output.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18689 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-08-29 11:06:43 +00:00
Axel Dörfler
022567d3a0 Dumping semaphore info in the kernel debugger will now print the whole queue
of waiting threads by ID (instead of just the queue head and tail pointers).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18688 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-08-29 11:05:22 +00:00
Axel Dörfler
2bd9d1e3d8 Style cleanup.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18687 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-08-29 10:32:29 +00:00
Stephan Aßmus
0e1ba39f04 * merged Icon-O-Matic from Ingos layout branch into trunk (r18134:18685)
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18686 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-08-29 10:20:40 +00:00
Niels Sascha Reedijk
4ab9bd9778 Fix build on R5. Apparantly HaikuBuildCompatability.h (or something like that) is automatically included, so this define is useless.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18685 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-08-29 07:30:30 +00:00
Axel Dörfler
be0e738496 * send_signal_etc() now handles a pid_t of -1 specially, but not yet really correct
(that was part of the problem of bug #702).
* Fixed send_signal_etc() when you called it with a pid_t of zero: the signals should
  go to all teams in the calling team's group, not only to the team (for -1, we do
  the same for now).
* Made team_get_process_group_locked() public, and rewrote send_signal_etc() to use
  it.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18684 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-08-29 01:41:16 +00:00
Axel Dörfler
567f38888f kill_thread() and friends are supposed to check the passed in thread_id or else
some signals could go to some group when a negative value was passed in.
This actually fixes bug #702 where SoundPlay obviously does a kill_thread(-1)
at the end (which accidently killed all userspace applications, including the
input_server, app_server, ...).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18683 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-08-29 01:36:54 +00:00
Andrew Galante
806e2ef627 Three way handshake is now functional. Need to add error conditions and graceful cleanup.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18682 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-08-29 00:52:52 +00:00
Axel Dörfler
e8d442f969 Added libnetapi.so to the build again.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18681 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-08-29 00:20:25 +00:00
Axel Dörfler
241b048033 * Fixed build of libnetapi.so - it probably won't work for now, though, have a look
at the comment in r5_compatibility.h.
* Intentionally broke source compatibility and removed all that outdated Nettle stuff.
* Also, I took the liberty of making m_init private and rename it to fInit - again, this
  will only affect source compatibility.
* Rewrote NetEndpoint.h
* Fixed quite a few small bugs around the code that I touched, for example in NetAddress,
  SetTo() never set fInit, and therefore could be wrong.
* Some cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18680 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-08-29 00:19:23 +00:00
Axel Dörfler
036caeb9cf Those two aren't needed here (we don't need that level of source compatibility,
ie. if someone included net/socket.h he's doomed to change his sources).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18679 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-08-28 21:52:07 +00:00
Axel Dörfler
6fdccb80f5 Moved libnetapi.so sources into the src/kit/net/ directory - they don't yet build, though.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18678 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-08-28 21:46:23 +00:00
Marcus Overhagen
d284820b70 When testing for active multiplexing failed hard, revert to legacy mode and continue.
This should fix bug 829.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18677 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-08-28 21:05:57 +00:00
Marcus Overhagen
0d9075c677 open() error is reported in errno
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18676 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-08-28 20:32:18 +00:00
Marcus Overhagen
92fdfb1106 Only call disconnect hook when device is enabled and the hook is not NULL.
This fixes bug 542.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18675 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-08-28 20:17:33 +00:00
François Revol
ffe8b39144 Spice up the README. Wanted to add a pic of my Sonix but wouldn't help
as it takes so many shapes anyway. If you have a "noname" you might actually have one!


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18674 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-08-28 17:10:01 +00:00
Niels Sascha Reedijk
34314b9803 First commit to show that work on the ohci bus has restarted.
It doesn't do anything yet, but it allocates the io registers properly and
now the values that are returned when reading it make sense.

More to come...


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18673 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-08-28 16:57:55 +00:00
François Revol
32065846ac Added README file. Please note most webcams require isochronous support,
so you'll have to wait for Haiku's USB to support them anyway,
as R5 nor Zeta's really grock iso.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18672 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-08-28 16:43:28 +00:00
François Revol
c1c091984f Those are automatically generated
Update clean rule in makefile
Rename binary from webcam.media_addon 
to usb_webcam.media_addon


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18671 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-08-28 16:08:49 +00:00
François Revol
2c9bd70310 Current version of my USB Webcam driver. WORK IN PROGRESS!
Uses the USB Kit (userland API, needs libusb) to publish a 
media node representing the webcam.
It currently only works with my Sonix webcam (3Euro cheapo 
cam), but is modular enough to easily expand it, some code 
is already there to detect Quickcams.
For now you should be able to build it under Zeta with the 
makefile provided.
Making a Jamfile might get tricky as several source files are 
created by the makefile itself to include addons and censors 
in the build.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18670 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-08-28 16:01:41 +00:00
Jérôme Duval
ad99025a4b _fat_ioctl_ should reuse the same transaction recursively
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18669 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-08-28 14:43:11 +00:00
Jérôme Duval
38200e56c3 added mkdos
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18668 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-08-28 13:51:32 +00:00
Jérôme Duval
d44e91e376 we need to call put_vnode on unmount
dos_fsync now uses file_cache_sync(), should be better.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18667 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-08-28 12:35:01 +00:00