Commit Graph

14065 Commits

Author SHA1 Message Date
Axel Dörfler
99e1c71ee6 - fixed a locking bug in the file cache: get_file_map() could been called with either
only a read lock on the inode, or without a lock at all (in case of prefetching) - it
  is now using the cache_ref's lock to make sure it's retrieved only once and doesn't
  waste/corrupts any memory.
- since that fix made it mandatory to fix write_chunk_into_cache() to not call pages_io()
  while holding the cache_ref's lock (was a to-do item before), I changed it to make
  that possible.
- It now also supports write-through caches in theory - as there is no way yet to tell
  a cache to work this way.
- Optimized for the not so uncommon case of writing the last part of a file that is not
  a multiple of the page size - it won't call pages_io() anymore then, but zero the rest
  of the page directly.
- vm_page_write_modified() is now calling write_page() without holding the cache_ref's
  lock as well.
The updated write_chunk_to_cache() is not so well tested, though, but appears to work
so far.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14006 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-08-20 21:32:31 +00:00
Axel Dörfler
07810890b5 Entering an empty line to the debugger will no longer match the first best command
available.
Broken escape sequences are now properly ignored (read one character too much before).
Since the current line buffer is part of the history, we now delete that buffer when
crossing the current line again while traversing the history (restoring the former
buffer would be the nicest way, but that would require another empty buffer and more
copying).
Cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14005 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-08-20 21:24:13 +00:00
Marcus Overhagen
47a758b6c2 applied hotfix, but this decoder needs to be replaced with something secure and stable
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14004 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-08-20 21:16:09 +00:00
Andrew Bachmann
6b0cd2601e update to use OBOS_TARGET
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14003 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-08-20 21:06:07 +00:00
Andrew Bachmann
f48d5cf2a7 update to use OBOS_TARGET
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14002 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-08-20 21:00:11 +00:00
Axel Dörfler
70c3e1a42c The escape sequence for erasing lines is now also supported (it's used by KDL command history).
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14001 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-08-20 20:55:02 +00:00
Axel Dörfler
ed73e0eefa arch_debug_blue_screen_getchar() can now also return escape sequences for cursor
movement - IOW, the history of kernel debugger calls is now working also from
the on-screen KDL.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14000 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-08-20 20:53:44 +00:00
Andrew Bachmann
ae124a62f8 search all possible directories for rc. build patch for missing uname.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13999 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-08-20 20:45:29 +00:00
Axel Dörfler
a10cd10b2b Fixed a hypothetical bug: switch_sem_etc() was using thread_get_current_thread()
in an error message without checking for a NULL pointer (which happens during
early boot, and even though it would be impossible to get there at that time,
it shouldn't be accidently copied to anywhere else this way).
Added a compile time option to monitor the last thread that successfully
acquired a semaphore (disabled, though, only enable it when needed).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13998 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-08-20 20:13:05 +00:00
Andrew Bachmann
200c6baf88 fix mkdir with spaces bug. change target directory based on debug and target platform. remove version variable and its one usage in target directory.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13997 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-08-20 19:54:37 +00:00
Axel Dörfler
61aceefd6e The debugger command "waiting" now also accepts a semaphore as argument (specified by ID),
and will only list those threads waiting for that one if used that way.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13996 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-08-20 15:57:56 +00:00
Jérôme Duval
130803f29b Auich BeOS Driver for Intel Southbridge audio
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13995 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-08-20 15:43:49 +00:00
Jérôme Duval
234f6d7cfc replaced with DEBUG macro
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13994 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-08-19 19:33:49 +00:00
Niels Sascha Reedijk
f6ea6477c0 Some major reworking. Re-enable the old way of building up the framelist pointers. MAke some parts more verbose for testing. Fix the stray td to actually something useful.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13993 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-08-19 18:06:00 +00:00
Jérôme Duval
16c05905ae forgot this one
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13992 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-08-19 15:24:08 +00:00
Jérôme Duval
19664a737a added UFC crypt library (LGPL)
provides crypt() to libroot, untested


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13991 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-08-19 15:17:43 +00:00
Jérôme Duval
8e2e7170e9 now only prints to stderr (axeld suggestion)
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13990 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-08-19 14:39:42 +00:00
Jérôme Duval
c10e4a93bd there can be no saver available (blackness)
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13989 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-08-19 14:23:57 +00:00
Jérôme Duval
b27c5e9861 Blackness screensaver is a special case we handle now (now rendering thread ...)
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13988 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-08-19 14:21:49 +00:00
Jérôme Duval
0a1f6e8966 added a little trace
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13987 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-08-19 13:23:38 +00:00
Jérôme Duval
7ac01f7eb9 variables are now inited correctly
works ok on R5


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13986 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-08-19 13:08:15 +00:00
Jérôme Duval
ef4279ea76 added some checks
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13985 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-08-19 13:01:13 +00:00
Axel Dörfler
d6c32d2bf3 The debugger's "sc"/"where" command now accepts a thread ID as parameter (and
then shows the stack crawl of that stack instead of the current one).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13984 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-08-19 12:53:58 +00:00
Axel Dörfler
c987e126de Testing against IS_KERNEL_ADDRESS() is more correct.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13983 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-08-19 12:52:19 +00:00
François Revol
05f8437878 - fix ioctl args (varargs sux)
- add -b(lock) -u(nblock) tray to prevent eject


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13982 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-08-19 10:20:14 +00:00
Jérôme Duval
7a6ecf8983 fixes buggy focus
fixes static def


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13981 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-08-19 09:55:29 +00:00
Jérôme Duval
056ae67fb4 added a message runner so that rendering screensaver is resumed after some time has passed
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13980 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-08-19 09:26:45 +00:00
Jérôme Duval
31ac1cfb0b avoids using a BAlert when no be_app is available
it avoids crashing but console apps using a BApplication still show an alert
we might want to keep only a stderr warning


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13979 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-08-19 08:50:26 +00:00
Axel Dörfler
851028d043 Fixed a warning I accidently introduced with the last change.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13978 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-08-18 23:33:54 +00:00
Jérôme Duval
e10dacf9a3 Be => Haiku
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13977 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-08-18 15:31:06 +00:00
Jérôme Duval
386d67c7c4 more fixes
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13976 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-08-18 15:30:25 +00:00
Jérôme Duval
6ebd8e95cd more fixes
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13975 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-08-18 15:30:02 +00:00
Axel Dörfler
cd661dfcf8 Now dumps all semaphores matching the name you are searching for, not only the first one.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13974 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-08-18 15:13:03 +00:00
Axel Dörfler
f79ba0f9ba Now always prints out a message if the searched sem could not be found, and not
only under certain conditions.
Now also accepts decimal numbers as IDs.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13973 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-08-18 15:11:18 +00:00
Axel Dörfler
e5c0e4a655 Now prints an error if no thread matching the requested criteria could be found.
Simplified parsing the ID (no need to differentiate between hex and decimal, if
we do both anyway).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13972 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-08-18 15:09:30 +00:00
Axel Dörfler
e8e4accd16 Add some useful debugger commands to the VFS layer for dumping a vnode, an fs_mount, and
the mounts/vnodes list.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13971 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-08-18 15:07:38 +00:00
Axel Dörfler
5913a657df Added two possible "ToDo" comments.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13970 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-08-18 12:41:18 +00:00
Axel Dörfler
ec130eefb6 TBarMenuTitle::DrawContents() now checks if there is a logo before trying to
draw it.
This fixes the crashing bug when being compiled from Zeta (because of the
different message storage format) - debugged under Haiku thanks to Ingo's
great work :-)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13969 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-08-18 00:05:37 +00:00
Jérôme Duval
3b0024c780 added screen_blanker's rdef
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13968 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-08-17 18:16:07 +00:00
Axel Dörfler
a4f1e9491d Fixed two warnings (comparison of signed and unsigned values).
Minor cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13967 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-08-17 18:07:50 +00:00
Jérôme Duval
cc5b91374f added focus
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13966 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-08-17 15:10:29 +00:00
Jérôme Duval
0b0923357e improved password handling
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13965 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-08-17 14:31:28 +00:00
DarkWyrm
3406dc829e Added a way to test the server under R5 with regular apps. First app: Clock
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13964 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-08-16 12:43:12 +00:00
Alexander G.M. Smith
5c81a5b9a8 And one more redundant printf.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13963 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-08-15 02:08:58 +00:00
Alexander G.M. Smith
c55a1c5efa Get that revision number showing in the about box, and remove a
debugging printf.  At least I assume it's for debugging...


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13962 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-08-14 21:21:31 +00:00
Alexander G.M. Smith
2a7b6c25c8 Source code changes so that mboxtobemail now compiles and is in the build system.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13961 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-08-14 02:25:28 +00:00
Alexander G.M. Smith
aef29f9e4f More file movement for the BeMail utilities... Content updates later
to avoid confusing svn.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13960 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-08-14 02:10:49 +00:00
Alexander G.M. Smith
51a063b6b0 Rename the directory before doing anything else, otherwise svn dies badly.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13959 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-08-14 02:05:27 +00:00
Alexander G.M. Smith
c4222279ba Spam database manager can add itself to the package.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13958 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-08-14 01:47:34 +00:00
DarkWyrm
69554e1221 fixed launching of new terminal windows
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13957 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-08-14 00:42:26 +00:00