Commit Graph

64234 Commits

Author SHA1 Message Date
Tyler Dauwalder
b7b28d766e Renamed to MimeSnifferTest.*
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@600 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-06 08:25:02 +00:00
ejakowatz
2e2e159adc Work on ResolveSpecifier().
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@599 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-06 03:58:59 +00:00
Matthew Wilber
cb8100931b removed the Translator rule because it is now in the Jamrules
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@598 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-06 00:51:22 +00:00
Matthew Wilber
4fb5add07a added the Translator rule for building Translators
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@597 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-06 00:48:49 +00:00
Axel Dörfler
24462625e1 Removed header files we'll most likely never use.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@596 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-05 17:23:23 +00:00
Axel Dörfler
dc74f4ac15 Added a comment in memheap.h
Added sys|user_write_link() to vfs.h


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@595 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-05 17:22:19 +00:00
Axel Dörfler
f7bfd5f065 The '|' character didn't work (fixed by geist).
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@594 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-05 07:09:37 +00:00
Axel Dörfler
c2f9230c91 For some strange reason, elf_relocate_rel() crashed and reported a high
rel type (111) when it tried to load the PCI bus manager - I've only removed
the crash, but I didn't dig any deeper yet.
Note, this only happens using bochs - on a real computer, the kernel runs
obviously without any problems.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@593 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-05 06:41:57 +00:00
Axel Dörfler
1e3eaf3b95 Added the write_link() call (currently only local to the VFS).
Added a mode parameter to sys_create_symlink().
Added an open_mode field to struct file_descriptor.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@592 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-05 05:37:17 +00:00
Axel Dörfler
dfa8e8ef78 Added a sys_write_link() function.
Added a "mode" parameter to the sys_create_symlink() function.
Added an open_mode to the file_descriptor struct.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@591 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-05 05:31:32 +00:00
Axel Dörfler
fbc9a56c28 Added a missing return value.
Some code cleanups.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@590 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-05 05:26:52 +00:00
Phil Greenway
48d741f719 Initial Checkin. Coded by Oliver Ruiz Dorantes (urnen@users.sf.net)
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@589 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-05 05:26:43 +00:00
Axel Dörfler
267cf83fb3 Added a missing return value in port_init().
Cleaned up the code a bit.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@588 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-05 05:25:26 +00:00
Axel Dörfler
7f88f899f4 Added a missing return value.
Cleaned up the code a bit.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@587 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-05 05:23:23 +00:00
Axel Dörfler
75faf9fda3 Added a missing return value in vm_resize_region().
Cleaned the code a bit.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@586 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-05 05:22:27 +00:00
Axel Dörfler
c931f4823d Added a missing return value.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@585 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-05 05:20:40 +00:00
Michael Phipps
c70c326c96 Fixed a serious bug in list.h. :-(
Improved tests to be multi-threaded. Still needs a lot more testing.
Removed the nasty global variable in test.C.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@584 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-05 03:41:16 +00:00
Phil Greenway
6c657a0ed5 Added rbTone and rbPulse - Radio Buttons
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@583 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-05 02:27:50 +00:00
Axel Dörfler
151edf0672 Removed the know unnecessary BSD-like fcntl.h (a BeOS one is now in posix/)
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@582 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-05 01:35:03 +00:00
Axel Dörfler
2204c4d3d9 Added some possible extensions to the flag set.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@581 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-05 01:31:23 +00:00
Axel Dörfler
2311f9f79f Added a BeOS like fcntl.h, with some additions (which might be implemented
some day).
Cleaned up sys/stat.h a bit, and added new definitions for different types
of symlinks I plan to add - though I am still not sure if it's a good idea ;-)


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@580 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-05 01:26:14 +00:00
Ingo Weinhold
6a75716301 Added TODO items in the destructor.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@579 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-05 00:55:13 +00:00
Ingo Weinhold
dc7dfa74f4 Now the quit command prints the error code, when constructing the messenger to the app failed.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@578 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-05 00:50:36 +00:00
Ingo Weinhold
c9f4f5e164 Fixed InitData(): It must not be possible to construct a messenger targeting a B_ARGV_ONLY app.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@577 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-05 00:48:58 +00:00
Ingo Weinhold
c26a5cea91 * The destructor doesn't kill the looper thread any more, as this doesn't
work very well with BApplication and has some issue with plain loopers
  too.
* DispatchMessage(): _QUIT_ doesn't delete the object any longer. The
  looper thread simply falls through the dispatching loop and deletes
  the object.
* Caused by not killing the looper thread in the destructor, Quit() had
  to be adjusted. When called from the looper thread the thread exists.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@576 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-05 00:47:31 +00:00
Ingo Weinhold
98207f6f77 Fixed Quit():
* Error message, if not locked.
* Lock(), quit, Unlock(), if not locked.
* Don't call BLooper:Quit() any more. We post a _QUIT_ message when being
  called from another than the looper thread.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@575 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-05 00:41:08 +00:00
Ingo Weinhold
ff952bade4 Added tests for BApplication::Quit()/QuitRequested().
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@574 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-05 00:37:55 +00:00
lillo
91363a4278 Converted thread states to BeOS equivalents (excluding THREAD_STATE_FREE_ON_RESCHED, which will probably go away once the slab allocator is in). Converted priorities to BeOS equivalents; we now have 60 priority queues to map the 120 BeOS priority levels (which have a granularity of 2, thanks Axel) plus the idle queue. Fixed PS.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@573 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-04 20:10:06 +00:00
ejakowatz
752c497115 The last remnants of the Old Repub ... er, static looper list data has been
removed.  The old static BLooper functions for managing the looper list are
still there, but they are officially deprecated.  The approved interface
for this information is BPrivate::BLooperList, accessible via the global
BPrivate::gLooperList variable.  Being as it lives in BPrivate, it is for
API-internal use *ONLY*.  User apps use it to their own risk.
Also added a small test to make sure that the size of BLooper stays the
same.  I will probably add this to other classes as well; doesn't hurt to
be safe. =)


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@572 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-04 17:16:56 +00:00
gendusoa
8025357ffd Made preview window work better. Still jerky; still issues with unpreviewable savers.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@571 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-04 15:26:15 +00:00
lillo
854c31f835 finished implementing get_thread_info, get_next_thread_info, get_team_info, get_next_team_info. New ps command behaving like the BeOS one is here, but doesn't work as libroot seems to crash when loaded at process startup... :/
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@570 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-04 02:04:37 +00:00
lillo
aded06e0aa Second round of changes. Splitted thread.c into thread.c, team.c and scheduler.c. First kernel-only get_team_info and get_next_team_info implementation.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@569 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-03 23:39:50 +00:00
ejakowatz
ebbcbbca01 Implemented count_loopers()/windows() and looper/window_at(). Minor
changes to BLooperList to accomodate.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@568 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-03 23:18:14 +00:00
Ingo Weinhold
79f45f7f8f The RosterShell is now built as a CommonUnitTest, which also gives us a R5 version for the time being. In case we will add (OBOS) registrar internals, it might go away again.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@567 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-03 16:24:11 +00:00
Ingo Weinhold
f65749a18c Fixed a typo.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@566 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-03 16:21:47 +00:00
Ingo Weinhold
5ca9f21f13 More debugging output.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@565 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-03 16:20:42 +00:00
Ingo Weinhold
9986313c0c Fixed some bugs/behavioral differences to the R5 implementation.
* Run() was returning fTaskID, which was invalidated by Quit().
* assert_app_signature() -> check_app_signature(). InitData() now quits
  when an error occured and no error variable has been supplied. That seems
  to be what R5 does.
* When args are present B_ARGV_RECEIVED is always sent to the own team,
  even if the app flags include B_ARGV_ONLY. But it is sent to a remote
  application (already running instance), only if that app has NOT
  B_ARGV_ONLY set.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@564 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-03 16:19:31 +00:00
Ingo Weinhold
be5af1baf8 Added UseCppUnitObjectHeaders rule and replaced UseCppUnitHeaders by UseCppUnitObjectHeaders in unit testing rules. If more than one unit test was built, the cppunit headers were added several times. There are still flags appearing multiple times when compiling an object file that is used for more than one test. But that's not that urgent...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@563 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-03 16:11:42 +00:00
Ingo Weinhold
c9640d94a3 BApplication tests:
* Added constructor tests.
* Added Run() tests.
* AppRunner -> PipedAppRunner + some improvements
* New AppRunner using ports for data transfer.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@562 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-03 16:07:02 +00:00
Axel Dörfler
28cdc245d3 Added a "symlink" command that can create symlinks from the shell (like "ln -s").
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@561 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-03 02:04:50 +00:00
Axel Dörfler
ae372703ce Big commit: Added symlink support to the kernel.
- added needed syscalls to access symlink support from userland
- implemented lstat(), symlink(), and readlink()
- added dev_t to ktypes.h (for now - should be in a public header anyway)
- added symlink support to the "ls" command (now calls lstat() and shows the
  link target with the -l option)
- changed the sys_read_stat() call to support symlinks, and updated files
  using that function (it gets an extra argument: bool traverseLink)


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@560 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-03 02:03:27 +00:00
Axel Dörfler
409a1aeacd Added some comments
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@559 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-03 01:58:14 +00:00
Axel Dörfler
7d141659a6 Fixed some crucial bugs in the elf_load_uspace() function:
- if the path name exceeded about 56 bytes, the function would have seg-faulted
- the calculation to decide if there is an extra region for the bss needed was wrong -
  that caused the kernel to be not able to load certain executables

Also, fixed a warning, and cleaned up the above mentioned function a bit, added
some more comments.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@558 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-03 01:10:06 +00:00
lillo
3cfbecf1a6 First round of big changes: the term team has replaced proc all over the kernel, the few kern_* syscalls have been renamed to sys_* for consistency, and other small changes. The ps app is temporarily disabled until get_next_team_info is implemented.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@557 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-03 00:41:27 +00:00
Matthew Wilber
ec80db22cf added more/better error checking/handling
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@556 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-02 16:52:27 +00:00
Phil Greenway
352abde210 Added rbTone and rbPulse - RadioButtons
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@555 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-02 12:07:45 +00:00
Michael Phipps
74407d8836 Some clean up, prep work to make more tests.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@554 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-02 03:09:41 +00:00
Matthew Wilber
cbb8752877 added more/better error checking/handling, changed variables to more appropriate types, updated comments, changed some return codes
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@553 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-02 02:52:36 +00:00
Matthew Wilber
abcf3e8a75 changed translator quality and capabilities to more reasonable levels
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@552 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-01 21:23:04 +00:00
Matthew Wilber
9c95784eb3 change translator quality and capabilities to more reasonable levels
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@551 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-01 21:22:27 +00:00