Commit Graph

715 Commits

Author SHA1 Message Date
Tyler Dauwalder 3035279e84 Added case-insensitivity tests
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@687 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-10 09:36:41 +00:00
Tyler Dauwalder 06d1abcdc8 Added DisjList.cpp
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@686 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-10 09:36:19 +00:00
Tyler Dauwalder 93d145bb01 + Added support for "-i" flags and case insensitive matching
+ Renamed Expr class to DisjList, which is more descriptive
  as to its function
+ Added ' and " to the list of allowed characters in an
  unquoted string.
+ Added updated sniffer rule grammar to doxygen for the
  Parser class


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@685 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-10 09:36:00 +00:00
Tyler Dauwalder 0322e71475 Renamed to DisjList.h
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@684 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-10 09:32:03 +00:00
beveloper b4ba7954aa Added a small copyright notice.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@683 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-10 00:14:36 +00:00
beveloper 294ad0679f include the mixer when building
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@682 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-10 00:01:09 +00:00
beveloper 00cffa1ce7 David Shipman started implementing the BeOS system audio mixer.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@681 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-09 23:55:28 +00:00
Ingo Weinhold bbab11ba30 Changed BRoster::GetRunningAppInfo() return value back to B_BAD_TEAM_ID in case the team ID is < 0. I thought R5 returns B_ERROR, but it does only for -1, otherwise it also returns B_BAD_TEAM_ID. We don't mimic this slightly insane behavior.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@680 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-09 23:50:19 +00:00
Ingo Weinhold 7c884e9a55 Added a small subtest for GetRunningAppInfo() and verified strange return behavior for team IDs < 0.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@679 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-09 23:50:04 +00:00
beveloper 3055ce2f77 David McPaul started working on this class and made this changes.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@678 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-09 23:39:16 +00:00
Ingo Weinhold ca3e9dba80 Fixed the return value in case of team ID < 0. R5 returns B_ERROR instead of B_BAD_TEAM_ID and so do we now.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@677 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-09 23:34:04 +00:00
Ingo Weinhold 9e9f5a1ad3 Improved BMessenger::InitData() a bit: Now only one roster call is done, when a signature but no team ID is given.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@676 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-09 23:31:40 +00:00
Ingo Weinhold e840a8d122 Uncommented accidentially commented out tests.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@675 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-09 23:30:03 +00:00
Ingo Weinhold a46169b509 Added methods that return the entry_ref to the application and the port of its app looper.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@674 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-09 23:29:24 +00:00
Ingo Weinhold 0f4210a2a3 Some correction.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@673 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-09 23:28:20 +00:00
Ingo Weinhold 235efd8700 Added BRoster::TeamFor()/GetAppInfo()/GetRunningAppInfo()/GetAppList() tests.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@672 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-09 23:27:48 +00:00
Ingo Weinhold 1007bf167d Added B_BAD_TEAM_ID to known error codes.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@671 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-09 23:25:02 +00:00
Axel Dörfler e867ec51af Added mount.c, implementation of mount() and unmount().
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@670 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-09 20:48:30 +00:00
Axel Dörfler beddff0f56 Replaced opendir.c with directory.c, implemented chdir(), fchdir(), and
getcwd().
Introduced new xyz(int fd, char *path, ...) style of functions for
sys_setcwd(), and sys_write_stat().
Added missing sys_fstat(). Removed duplicated prototypes in syscalls.h
Fixed some minor bugs.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@669 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-09 20:20:28 +00:00
Axel Dörfler 63f16f88e2 Removed the getdtablesize() syscall hack.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@668 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-09 17:53:02 +00:00
Axel Dörfler 14e18e556e getdtablesize() no longer needs a syscall.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@667 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-09 17:51:02 +00:00
Axel Dörfler 2f5118ccdc Changed the argument order of sys_read/write() to be more intuitive.
Fixed a bug in module.c that I caused due to changes in the VFS.
Added the sys_write_link() call.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@666 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-09 17:03:03 +00:00
Axel Dörfler 75cf4c1ea5 New BeOS-like unistd.h file.
All unimplemented functions are commented out for now - but that has to
change, of course.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@665 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-09 16:58:39 +00:00
Axel Dörfler d7dd1c2ac2 Changed argument order for sys_read/write() to be more intuitive.
Removed unistd.h (new BeOS-like unistd.h will be in posix/ shortly)


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@664 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-09 16:57:25 +00:00
Tyler Dauwalder b657eab3cf + Fixed the uber scanner test yet again (this time wrt
NULL characters embedded in the token strings).
+ Added a number of sniffing tests. The rules returned
  by the parser appear to sniff properly now.

Incidentally, our sniffer supports conjunctions, i.e the rule

1.0 ('abc') [9] ('xyz')

is equivalent to the rule

1.0 ('abc______xyz' & 0xFFF000000FFF)

This is different than the R5 sniffer, which doesn't reject
rules like the former, but appears to ignore all expressions
in the rule except for the first, i.e. it would treat the first
rule as

1.0 ('abc')

The only problem I can see with this is if someone for
some reason wrote such a rule with multiple expressions
for use with the R5 sniffer. It would likely work differently
with ours. I'm going to search my MIME database and see
if any such rules exist. If so, it'll be easy to switch to the
R5 way of doing things.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@663 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-09 10:38:30 +00:00
Tyler Dauwalder fe70cd16af + Updated all the parsing code to use std::strings everywhere
instead of const char*'s to allow for rules with NULL characters
  embedded in them.
+ Updated Rule::Sniff() to actually return a useful value


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@662 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-09 10:30:38 +00:00
Michael Phipps 10cde11f08 No GPL code allowed.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@661 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-09 00:39:45 +00:00
Ingo Weinhold 09c9c0c147 Added BRoster::IsRunning() test cases.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@660 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-08 22:06:19 +00:00
Ingo Weinhold 28d519fe4e Added BRoster test cases, for today only for IsRunning().
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@659 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-08 22:05:09 +00:00
Ingo Weinhold c2e8b5572c Added find_test_app() functions that return the path/an entry_ref for a given test app.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@658 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-08 22:03:06 +00:00
DarkWyrm 614fabb05b Added Decorator tab
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@657 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-08 21:37:02 +00:00
DarkWyrm d1941a2765 Added Decorator tab and functionality
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@656 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-08 21:33:55 +00:00
Michael Pfeiffer ed7c14bac2 Use rule AddResources instead of XRes.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@655 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-08 16:41:06 +00:00
Michael Pfeiffer bc96256164 Minor changes.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@654 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-08 16:21:00 +00:00
Michael Pfeiffer f221d365d8 SynthFile
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@653 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-08 16:19:57 +00:00
Michael Pfeiffer 0723a9ac98 Template list class. Duplicates the one in current/src/add-ons/print/drivers/pdf/source
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@652 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-08 16:13:29 +00:00
Tyler Dauwalder be1cf3b1be + Added a number of tests
+ Learned the concept of base 8 again and fixed an octal literal. I hate octal.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@651 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-08 07:54:04 +00:00
Tyler Dauwalder 60ee71d302 + Added some documentation
+ Fixed a bug with 0eXXX floats being handled improperly
+ Updated a few error messages to give proper character
  stream positions.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@650 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-08 07:23:24 +00:00
Tyler Dauwalder 0bc621d53b + Added some documentation
+ Now verifies the given priority is valid


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@649 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-08 07:21:31 +00:00
Tyler Dauwalder 10db8711a8 Added some documentation
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@648 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-08 07:20:47 +00:00
jrand 8795d3cfc9 Add some asserts for checking the simple methods from the archivable interface inherited by BPropertyInfo.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@647 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-08 04:31:43 +00:00
jrand 43bc12cd2b Add some more use cases for the simple archivable members.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@646 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-08 04:13:51 +00:00
Michael Phipps 148c5492ba Added another test thread and varied the timing. Still seems to work right.
Updated the TODO list.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@645 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-08 04:06:41 +00:00
Axel Dörfler 533bfa8744 Updated Jamfile to compile "bfs" rather than "befs"
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@644 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-08 01:34:27 +00:00
Axel Dörfler 40f7fd6cf3 Implemented the basics to allow uncached file access under BeOS.
This is needed for the VM swap file and if you want to mount disk images
located on the BFS volume.
There is now a BufferPool class that manages a pool of buffers, so that
Inode::ReadAt()/Inode::WriteAt() can access a file without having to use
the cache or malloc()/free().
The real uncached file access is not yet implemented, though.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@643 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-08 01:23:04 +00:00
Axel Dörfler e57d105cfe Moved the befs/ directory and contents to bfs/ (hey, this is not linux :-).
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@642 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-07 23:25:01 +00:00
Axel Dörfler c42ee13401 Initial revision
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@639 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-07 23:14:13 +00:00
Axel Dörfler 0daa3f2af3 Added Be's driver_settings.h header file (hey, they don't even include any
license stuff in it :-).
Some cleanup on the other headers.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@638 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-07 22:36:49 +00:00
Axel Dörfler 2de6c0e035 Initial driver settings - don't worry there is nothing implemented at all,
it just exports the API.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@637 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-07 22:25:03 +00:00
Ingo Weinhold 70c87ab1f9 Merged in changes for fixes to PPC support from vanilla branch.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@636 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-07 20:55:39 +00:00