Commit Graph

45229 Commits

Author SHA1 Message Date
Axel Dörfler
40440e7419 Clarified why the documentation does not belong into headers.
* Haiku is slow, and that's why we do not put documentation in headers???
  Hell yeah.
2013-03-22 20:56:17 +01:00
Alex Smith
e6a0c79790 CID 608055: Fixed unintended sign extension. 2013-03-22 19:41:57 +00:00
Alex Smith
5e0c3db286 Account for the physical map area in the kernel VM space. Fixes #9547.
The physical memory map area was not included in the kernel virtual
address space range (it was below KERNEL_BASE). This caused problems
if an I/O operation took place on physical memory mapped there (the
bad address error seen in #9547 was occurring in lock_memory_etc()).
Changed KERNEL_BASE and KERNEL_SIZE to cover the area and add a null
area that covers all of it. Also changed X86VMTranslationMap64Bit to
handle large pages in Query(), as the physical map area uses large
pages.
2013-03-22 18:30:01 +00:00
Alex Smith
8627383bf7 Fixed compilation errors with ENABLE_TRACING set. 2013-03-22 16:46:09 +00:00
Alex Smith
1aef6664d1 Fixed compilation of VFS/IORequest trace messages. 2013-03-22 14:14:33 +00:00
Alex Smith
27aafb14d7 CID 712421: Missed some other occurrences, fixed them as well. 2013-03-22 11:45:13 +00:00
Alex Smith
ee8f0ab0dc CID 712421: Fix unintended sign extension. 2013-03-22 11:38:50 +00:00
Axel Dörfler
928001cea9 Further tuned AMD CPU identifier parsing.
* Thanks to a list of 1384 entries with AMD CPU identifiers from Alex.
2013-03-22 09:37:47 +01:00
Pawel Dziepak
b6868c6e78 nfs4: Fix CID 991756: do not delete RPC::Request if (re)sending fails 2013-03-21 03:16:42 +01:00
Pawel Dziepak
edb1255117 nfs4: Fix CID 991494: memory leak if acquiring a lock fails 2013-03-21 02:48:46 +01:00
Pawel Dziepak
ce6f81f7b2 nfs4: Fix CID 991503: memory leak in handling callback requests 2013-03-21 02:46:04 +01:00
Pawel Dziepak
65389e2f2b nfs4: Fix CID 991755: break the loop after finding required element 2013-03-21 02:36:58 +01:00
Pawel Dziepak
18d2a3609e nfs4: Fix #9556: wrong error handling in CreateObject 2013-03-21 02:32:00 +01:00
Pawel Dziepak
3d064796c7 nfs4: Allow customization of DirectoryCache expiration time 2013-03-21 00:44:59 +01:00
Pawel Dziepak
1ca8178c52 nfs4: Fix #9555: wrong relational operator used 2013-03-21 00:20:11 +01:00
Axel Dörfler
df4d35e837 Added a parse_amd() for CPU identification.
* This parses the reported CPU name, and tries to translate it to a normal
  and concise identifier.
* For example, it will translate "AMD FX(tm)-8320 Eight-core Processor" into
  "FX™ 8320" or "Dual Core AMD Opteron(tm) Processor 275 HE" into
  "Opteron™ 275 HE".
* This means we can remove AMD strings for those models for which this
  function produces useful results.
2013-03-20 21:04:23 +01:00
Alexander von Gluck IV
190423a656 cpu_type: Add model 2 AMD FX CPU 2013-03-20 13:15:28 -05:00
Alexander von Gluck IV
5d8d472d1a GL: Upgrade to Mesa 9.1.1
* Somefix-ups and repairs for
  changes to how Mesa works internally
* _Flush and _Error need additional
  work as DriverCtx was removed
* Tested working
2013-03-20 01:38:43 -05:00
Alexander von Gluck IV
3764bc554c swrast_legacy: fix gcc2 GL rendering
* hrev45297 removed the setting of the defines
  in addition to removing the --no-warnings
* Found after a git bisect and stpere's sharp eyes
* Finally resolves #9473
2013-03-19 19:51:17 -05:00
Pawel Dziepak
ca8ad1dc1a nfs4: Fix CID 991752: remove unnecessary return 2013-03-19 02:57:18 +01:00
Pawel Dziepak
5bdf33bc7a nfs4: Remove check for presence of mandatory attributes
This fixes CID 991495.
2013-03-19 02:55:31 +01:00
Pawel Dziepak
b302859608 nfs4: Fix memory leaks in case of errors while reading a directory
This fixes CID 991497.
2013-03-19 02:52:39 +01:00
Pawel Dziepak
83b13040c8 nfs4: Remove RequestBuilder::ReadDir() count argument
The argument is ignored anyway. This fixes CID 991593.
2013-03-19 02:43:22 +01:00
Pawel Dziepak
80f94193c4 nfs4: Fix error handling issues in Inode::Open() and Inode::Create()
This fixes CID 991498.
2013-03-19 02:37:44 +01:00
Pawel Dziepak
55ca54ccf5 nfs4: Take advantage of strlcpy() 2013-03-19 02:32:05 +01:00
Pawel Dziepak
4fa87bf152 nfs4: check for presence of FATTR4_CHANGE is not required
This fixes CID 991501.
2013-03-19 02:30:17 +01:00
Pawel Dziepak
2723b9eba4 nfs4: Fix CID 991506: memory leak in case of error 2013-03-19 02:22:14 +01:00
Pawel Dziepak
246c199c40 nfs4: Fix memory leaks in case of error in ReplyInterpreter::_DecodeAttrs()
This patch fixes CID 991505, 991504, 991502, 991500, 991499, 991496.
2013-03-19 01:34:22 +01:00
Pawel Dziepak
f73dd62491 nfs4: Fix CID 991294: error handling issues in Auth::CreateSys() 2013-03-19 01:24:06 +01:00
Pawel Dziepak
b0e5bfeab5 nfs4: Fix CID 991246: use name of the old entry when reporting removal 2013-03-19 01:24:05 +01:00
Pawel Dziepak
b42b242f62 nfs4: Fix CID 991174: improve error checking in NFS4Inode::OpenFile() 2013-03-19 01:24:04 +01:00
Pawel Dziepak
271d1540b1 nfs4: Do not rely on implementation defined casting uint32 to int32
This solves CID 991172.
2013-03-19 01:24:03 +01:00
Pawel Dziepak
a43c0e5ce0 nfs4: Fix error checking in NFS4Server::_Renewal()
This fixes CID 990985.
2013-03-19 01:24:02 +01:00
Pawel Dziepak
c689b9f5f1 nfs4: Fix CID 990984 and 991173: missing assignment in error check 2013-03-19 01:24:01 +01:00
Pawel Dziepak
e975b31db3 nfs4: Ensure that a string is NULL terminated after strncpy()
This fixes CID 990971.
2013-03-19 01:24:00 +01:00
Pawel Dziepak
62e43541d7 nfs4: Fix wrong parenthesising in ReplyInterpreter::_FlattenPathname
This patch solves CID 990966.
2013-03-19 01:23:59 +01:00
John Scipione
6e8749b27f Update BMessage documentation adding Get* methods.
Also, lots of little cleanups: formatting, adding return statements and
return values where they were missing, fix spelling mistakes, add newlines to
separate command blocks, remove trailing whitespace.
2013-03-18 20:05:45 -04:00
Axel Dörfler
bc4dd456f9 ActivityMonitor: fixed minor issue CID 609788.
* If the circular buffer was created with a size of zero, fBuffer would
  be freed without being initialized.
2013-03-19 00:56:47 +01:00
Axel Dörfler
161400fbcc intel_extreme: sanitize EDID modes as well.
* Since we add those modes to our mode list, we should better accept them.
* This may help with bug #9145, and #7523 if they still occur.
2013-03-18 22:11:26 +01:00
John Scipione
cf7c89ff4a Use the new Get* BMessage methods to simplify code.
Thanks Axel!
2013-03-18 11:48:58 -04:00
Siarzhuk Zharski
c7047b8fd2 Improve handling of mbyte chars in UTF8Char::IsSpace
* Switch UTF8Char's IsSpace, IsAlNum, ToLower functions to use
  system-wide BUnicodeChar service routines;
* Switch TermView::CharClassifier to use UTF8Char instead of
  raw char* string ponter. That reduces count of conversions
  and simplify code;

  Fixes #7423.
2013-03-17 16:45:49 +01:00
Siarzhuk Zharski
53953e3e68 Remove useless font style/family settings defaults
No need for PREF_HALF_FONT_FAMILY/_STYLE defaults to be defined explicitly,
these entries will be filled with corresponding params of the current system
fixed font if they are not available from the settings file.

Fixes #9531.
2013-03-17 16:45:44 +01:00
Siarzhuk Zharski
c2577509f9 Optimize SIGWINCH Shell notification
Fixes issue with missed SIGWINCH shell notification in case the
Terminal frame was resized by using any of "Settings"->"Window size"
menu items.

Fixes #9293 - original problem was pointed out by Ziusudra. Thank you!
2013-03-17 16:45:38 +01:00
Siarzhuk Zharski
1dd3b537c3 Fix Alternate/Normal screen's current attributes handling
Handle the current attributes of the TextBuffer consistently with other
Alt/Normal buffer sensitive variables. That fixes, for example, issues
with wrong background coloring of new lines in normal text buffer after
maximizing the terminal window running applications (like MC) performing
output onto alternate screen.
2013-03-17 16:45:29 +01:00
Siarzhuk Zharski
13d0439623 Terminal data flow debug capture improved
This modification moves the debug characters capture call directly into
the _NextParseChar(). That allows to capture all data flow without
missing things like OSC control sequences.
2013-03-17 16:45:23 +01:00
Siarzhuk Zharski
0ac0b4d4a6 Fix Terminal cursor Save/Restore behaviour
Yet another fix for the terminal cursor save/restore functionality.
Fixes wrong cursor positions observed in modern versions of the
Midnight Commander during switching between Alternate and Normal buffers.
2013-03-17 16:45:18 +01:00
Siarzhuk Zharski
15e83c4548 Omit Terminal Id title in case single app instance running
Hide the current index of Terminal window from it's title if only
ony instance of the Terminal application is running in the system.

Fixes #9530.
2013-03-17 16:45:12 +01:00
Siarzhuk Zharski
ef60154123 Handle font style on loading default Terminal preferences
Fix the PrefHandler::_ConfirmFont to take into account not only the
font family but the font style too. This improves the popup menu
checkmark synchronization in the Preferences View. This problem can
be reproduced on very first start of application without previously
stored Terminal settings. Default family/style for this case is
currently defined as "Courier 19BT"/"Regular" but default fixed
font has correspondently "DejaVu Sans Mono"/"Book". Previous version
of _ConfirmFont() process only the family and left the style in default
"Regular" one. So opening Preferences View and attempting to set the
checkmark on corresponding family/style menuitem was usually failed.
2013-03-17 16:45:06 +01:00
John Scipione
d58ff0b187 Add BTextView class docs 2013-03-16 17:22:56 -04:00
John Scipione
ab21cedcce Remove docs and refactor style of TextView class.
* Make pointer style consistent, const char* name instead of const char *name.
* Lots of parameter renaming.
* in parameters don't get anything special, just font, or length instead of
  inFont, inLength.
* out parameters get a leading _ so *outWidth becomes *_width for example.
* We don't detail private function in the Haiku book and this class has a bunch
  so keep the documentation in the file but use regular comments instead.
* Normalize the parameter names between cpp file and header.
* Some minor whitespace fixes.

No functional change intended.
2013-03-16 17:05:09 -04:00