Commit Graph

44647 Commits

Author SHA1 Message Date
Chirayu Desai
fec5692329 ColumnListView: Fix two bugs reported by Coverity
* Fix Coverity bug 991147: Copy-paste error
* Fix Coverity bug 991264: Dereference after null check

Signed-off-by: Jérôme Duval <jerome.duval@gmail.com>
2014-12-02 21:28:45 +01:00
Adrien Destugues
4f6ee86881 Sniffing rule for MP4 files.
Fixes #9621.
2014-12-02 17:04:30 +01:00
Adrien Destugues
4ca1c2476e Default decorator: localize about box. 2014-12-02 15:30:08 +01:00
Adrien Destugues
a2cb1737d8 Screen prefs: force weight of the two boxes
Depending on the locale and string length the layout could leave only a
small part of the window for the rightmost part, which is the important
thing. Force the weight of each side so we have a more balanced window.
2014-12-02 11:40:14 +01:00
Adrien Destugues
8b46ee25ac Screen prefs: move driver info to main window
* Fixes relevant part of #5125
* The remaining information (serial number, frequency ranges) is
"advanced" and can be hidden in the tooltip. However, the video driver
used may be important important information, if you want to know if you
are using VESA, or if you have multiple video cards (Optimus for
example).
2014-12-02 11:17:58 +01:00
Adrien Destugues
0cd7643bd3 usb_disk, usb_floppy: missing const. 2014-12-02 09:15:26 +01:00
Adrien Destugues
38ec030ace FileDevice: implement icon ioctls
Fixes #9320.
2014-12-02 09:04:56 +01:00
Rene Gollent
310e80e0b6 Debugger: SourceView cleanups.
SourceView:
- Now that we need to track the current text drawing position for syntax
  purposes anyways, get rid of the previous inefficient hack to handle
  tabstops, and instead adjust for them on the fly. This both avoids
  quite a bit of string copying/reformatting, and eliminates the need to
  adjust the syntax highlight offsets to compensate for the aforementioned
  reformatting.
- Fix syntax color for string literals.
2014-12-01 23:36:10 -05:00
Adrien Destugues
7c6b2fa6f1 Fix credits for Lithuanian translation. 2014-12-01 18:41:13 +01:00
Adrien Destugues
acf1d9714e Locale: fix selection of format when Default'ing
Using item->SetExpanded does not work in a BOutlineListView as the
status of the list is then out of sync. The child items are not actually
added to the visible list, and trying to select them won't work.

Using list->Expand() instead works fine, so do that.

Fixes the remaining part of #6805.
2014-12-01 15:12:30 +01:00
Adrien Destugues
3d2cd4484d NetFS package: fix require on usrland_fs
* This was missing an underscore.
* Fixes #11541.
2014-12-01 11:18:18 +01:00
Adrien Destugues
97bb6cddcb Mouse Prefs: use a thinner and lighter outline
suggested by Axel and Stephan, this makes the mouse look better, and the
button numbers (the important part here) stand out more.
2014-12-01 10:49:53 +01:00
Rene Gollent
172a0247dd Debugger: Cleanup.
- Rearrange source_language subdir to have only the interface classes
  at the top level, and devote a subdir to each language-specific
  implementation of them.
2014-11-29 21:30:50 -05:00
Rene Gollent
177202d882 Debugger: Use syntax highlight info for source code view.
SourceView:
- Request syntax highlight information when new source file is set.
- Adjust _FormatLine() to also patch raw syntax highlights to match
  up with calculated tabstops.
- Draw strings in pieces corresponding to how they're broken up in
  terms of syntax highlights with colors.
2014-11-29 21:30:48 -05:00
Rene Gollent
921517ecd3 Debugger: Implement C++ syntax highlighter.
- Implement a basic highlighting engine for C/C++. Not yet used/tested,
  as SourceView will first need some adjustments in order to acquire
  and make use of the highlighter modules in the first place.
2014-11-29 21:30:47 -05:00
Rene Gollent
15758369f2 Debugger: Improvements to C-style expression tokenizer.
- Add recognition of several additional types of tokens that, while
  not necessary for single line expressions, will be needed  for
  parsing/highlighting source files. Also rename tokens for open/close
  paren to reflect their content more accurately, and adjust callers
  accordingly.
2014-11-29 21:30:46 -05:00
Rene Gollent
4671959310 Debugger: Minor refactoring.
- Break the expression evaluator's tokenizer out into its own separate
  header so that the syntax highlighter can also make use of it.
2014-11-29 21:28:08 -05:00
Rene Gollent
c04274bdd3 Debugger: Add skeleton C/C++ syntax highlighter classes. 2014-11-29 21:28:06 -05:00
Rene Gollent
d431ff418f Debugger: Cleanups/adjustments to syntax interfaces.
- Add missing public keyword for SyntaxHighlightSource/SyntaxHighlightInfo.
- Add initial set of basic syntax highlight types.
- Remove SyntaxHighlightSource. Instead, add a general purpose LineDataSource
  interface to the model classes. Correspondingly adjust SourceCode to inherit
  from it and fixup its derivatives accordingly; also adjust SyntaxHighlighter
  to take a LineDataSource rather than a SyntaxHighlightSource.
2014-11-29 21:27:55 -05:00
Stephan Aßmus
d5ef985e18 HaikuDepot: Added rudimentary screenshot window.
Clicking the thumbnail in the package info area will now open a
window where the full-size screenshot is downloaded and shown. There can
only be one such screenshot window open. Navigating between multiple
screenshots of a package is not yet implemented. Also, no caching, but
this may be OK as it is, since one usually looks at these only once and
doesn't want the harddrive filling up with screenshots.
2014-11-29 23:07:32 +01:00
Stephan Aßmus
f5a8bae677 HaikuDepot: Paragraph: Fixed typo in PrintToStream() 2014-11-29 23:07:30 +01:00
Stephan Aßmus
368ec7fa0e HaikuDepot: Use a LinkedBitmapView for the screenshot. 2014-11-29 23:07:29 +01:00
Stephan Aßmus
77badf8eca HaikuDepot: Added TODO to LinkView and bugfix.
SetViewCursor(NULL) does not unset the view cursor.
2014-11-29 23:07:28 +01:00
Stephan Aßmus
a45f75e0c5 HaikuDepot: LinkedBitmapView derived from BitmapView
Sends a BMessage when clicked and enabled, shows the link cursor
when hovered with the mouse.
2014-11-29 23:07:27 +01:00
Humdinger
2e2c68cc35 Sentence casing of context menu item of network prefs. 2014-11-29 18:25:33 +01:00
Humdinger
5fe12d4049 Correct typo
My condolences...
2014-11-29 15:37:42 +01:00
Adrien Destugues
3deab26b88 Remove useless stub driver.
* There are already ways to mount disk images of various formats, no
need for this one which doesn't have anything implemented.
2014-11-28 14:49:07 +01:00
Adrien Destugues
069804d7ca FileTypes: prevent picking folder as preferred app
* I'm not sure why this was changed back in 2006, the file panel is
reused in various cases but I don't see one where selecting a folder
would make sense.
* If I missed something, then different file panels should be used for
the different cases.

Fixes #8805.
2014-11-28 11:45:26 +01:00
Adrien Destugues
122fdeece7 FontDemo: fix overwriting of family with style.
Menus were wrongly set to SetLabelFromMarked (probably from a previous
version of the UI without the nested font menu).

Fixes #11517.
2014-11-28 10:48:32 +01:00
Adrien Destugues
344180b745 FontDemo: convert to layout code.
Fixes #9241.
2014-11-27 17:49:22 +01:00
Adrien Destugues
f448e83bdd Build fix. 2014-11-27 17:15:22 +01:00
Adrien Destugues
1a08983193 Network: use string_for_size for transfer rates.
Don't ask translators to translate these units over and over again.
2014-11-27 16:55:36 +01:00
Adrien Destugues
b549b15d81 Mouse prefs: better looking mouse.
* I went with my own graphics as the one in the preflet didn't look that
nice
* The clicked button is shown using a bold font rather than filling it
grey. I was too lazy to find the correct BShapes for all cases (1, 2 and
3 button mouses)

Fixes #6825.
2014-11-27 16:13:19 +01:00
Adrien Destugues
56abf4aa37 Fix std::isnan and friends for gcc2.
gcc2 was relying on the c99 functions being there, but they are not in
the std namespace.
* Disable the C99 functions and macros in C++ mode
* Redefine them as inline functions in cmath in the std namespace.

Fixes #7396.
2014-11-27 10:58:49 +01:00
Adrien Destugues
5211ae5d68 Terminal: use BPopUpMenu in BMenuFields.
Using a BMenu works, but it doesn't look as good.
Thanks to Diver for noticing this.
2014-11-27 10:53:16 +01:00
Adrien Destugues
f4e8886fae CharacterMap: Fix 64-bit build 2014-11-27 09:11:46 +01:00
Adrien Destugues
3d06e082bc BOptionPopUp: move mennu setup to AttachedToWindow
* There is no need to delay this to AllAttached
* Apps may want to override the SetDivider, and doing it as late as
AllAttached can be annoying.

Fixes #10734.
2014-11-27 09:00:23 +01:00
dsizzle
0340e4b336 CharacterMap: several fixes to char. view scroll
* Select items in the encoding list by block identifier rather than
list index (there are holes in the list)
* Scroll to the start of the list when the application starts
* Add and use IsBlockVisible to detect when we need to make a block
visible, avoiding unwanted scrollings in some cases with the previous
method of testing for only one character in the block.

Signed-off-by: Adrien Destugues <pulkomandy@gmail.com>

Fixes some problems with previous enhancements from #3651.
2014-11-27 08:50:37 +01:00
dsizzle
b8a8557aa9 CharacterMap: use dynamic font menu
* only update if font family update is detected.
* character map can now detect new fonts or removed fonts without
restarting

Signed-off-by: Adrien Destugues <pulkomandy@gmail.com>

Fixes #3651 part 7.
2014-11-27 08:31:18 +01:00
Automatic Committer
f891000ea0 Update pci.ids from pciids.sourceforge.net 2014-11-27 05:20:25 +01:00
Adrien Destugues
052e5d936f Workspaces: remove "about" menu item.
The about box is kept, and can be shown from the replicants.

Fixes #8165.
2014-11-26 16:42:50 +01:00
Adrien Destugues
7b5ea03f20 Icon-O-Matic: import SVG gradient names.
The names are often program generated, but better than no name at all.
2014-11-26 14:51:59 +01:00
Adrien Destugues
42272d2342 OutlineListView: yet another list/fullList mismatch.
Fixes #5817.
2014-11-26 13:48:52 +01:00
Adrien Destugues
4c581823cd Style fix. 2014-11-26 13:18:48 +01:00
Adrien Destugues
52051a08de ActivityMonitor: catch the exception
Having the app abort because of an uncaught exception when out of memory
is not user friendly. Just stop drawing the graphs if that ever happens.
2014-11-26 12:24:05 +01:00
Adrien Destugues
3f57b13504 ActivityMonitor: don't draw graph with negative width.
The computation of the graph width could overflow leading to an absurdly
high count of lines to be drawn. This would freeze with BShape trying to
realloc the array to bigger and bigger sizes as lines were added to it
(by increment of 256, but still), or trigerred a bad_alloc in
BeginLineArray which allocates them upfront after I converted the code
to use that (it is more appropriate).

Add sanity checks to avoid the overflow, now you can have hundreds of
graphs without problems (much more than I can fit on my screen anyway,
which I think is good enough).

Fixes #6841.
2014-11-26 12:16:57 +01:00
Adrien Destugues
31f5b8b5d2 BView::BeginLineArray: leave object in consistent state
We allow this method to throw bad_alloc exceptions as there is no other
way to report errors. However we left the object in a broken state
(maxCount set, but array not initialized) which would crash when calling
either AddLine or EndLineArray.

Initialize the count to 0 before throwing the exception so now
EndLineArray can be called and operations resumed safely after an
allocation failure.
2014-11-26 12:14:36 +01:00
Adrien Destugues
d9354cdedc Mouse prefs: truncated string in Suomi translation
* Set the minimal size of the double click test area so the string fits,
in any language.
* Fixes #5746.
2014-11-26 10:57:52 +01:00
Adrien Destugues
3d01d427ae Keymap preferneces: improve deadkey handling logic
* The key down message is not delivered when completing a dead key, so
act on key up instead.
* Pressing a character after a dead key would leave the keymap in "dead
key" mode, and that mode would be exited only by pressing a dead key
again.

Fixes #5734.
2014-11-26 10:35:43 +01:00
Adrien Destugues
c278afdec1 BOptionPopUp: build fix. 2014-11-26 09:48:57 +01:00
Adrien Destugues
d47ada16bc BOptionPopUp: don't offset when there is no label.
We add a 8 pixel space between the label and the menu, but we shouldn't
do that when the label is empty. This matches BMenuField behavior.

Fixes part of #10734.
2014-11-26 09:29:48 +01:00
dsizzle
d67977a5ae CharacterMap: avoid jumping window size
set explicit minimum width of character view to be a bit larger than
fCodeView so that there isn't jumping of the pane sizes when fCodeView's
contents are too long

Signed-off-by: Adrien Destugues <pulkomandy@gmail.com>

Fixes #3651 part 9.
2014-11-26 08:34:05 +01:00
dsizzle
c3205c10d7 CharacterMap: show font family and style
Signed-off-by: Adrien Destugues <pulkomandy@gmail.com>

Fixes #3651 item 2.
2014-11-26 08:34:04 +01:00
Adrien Destugues
b2e91cc3e7 Network prefs: save interfaces to file.
Fixes #11496.
2014-11-25 14:47:32 +01:00
dsizzle
74d9b875c2 CharacterMap: select Unicode block for current character
* Scrolling the list of characters now selects the currently visible
block in the blocks list.

Signed-off-by: Adrien Destugues <pulkomandy@gmail.com>

Fixes #3651, part 1
2014-11-25 08:30:08 +01:00
Adrien Destugues
c254f99c36 BApplication: remove AboutRequested implementation
The Be Book says this is a hook method, so the default behavior should
be to do nothing (didn't test BeOS, my install is currently broken).

Showing an alert with just the application thread name is less than
helpful anyway, and this was causing crashes.

Fixes #5554.
2014-11-24 17:36:31 +01:00
Adrien Destugues
03ad73fc87 More uses of BMessageFormat
ZipOMatic, DiskUsage, MediaConverter, MediaPlayer, ShowImage,
WebPositive, Screen preferences, Tracker, string_for_size.

Thanks to KapiX for reporting those!
2014-11-24 15:42:52 +01:00
Adrien Destugues
2824c5d3a4 Fix various typos and inconsistencies in strings
DiskProbe, DriveSetup, Icon-O-Matic, Installer, Login,
PackageInstaller, Screenshot, Translation Inspector, BootManager,
CharacterMap, CodyCam, BPrintJob

DiskUsage: removed useless translation, used only for layouting purposes

Thanks to KapiX for spotting these problems.
2014-11-24 09:42:26 +01:00
Adrien Destugues
46d4471af7 PoorMan: better labelling of button
According to the HIG, button labels should be verbs implying actions.
Replace the "default" button with "create public_html", which is what
will happen if you click it.

Thanks to KapiX for the suggestion.
2014-11-24 08:44:17 +01:00
Rene Gollent
8b27b73055 BCLV: Adjust arrow key behavior.
- Left/right arrow can now be used to collapse/expand the focus
  row. Holding shift reverts to the previous behavior of scrolling
  the view.
2014-11-23 09:57:18 -05:00
Rene Gollent
6136e4303c Debugger: Cleanups.
VariablesView:
- Remove unused member variable.
- Add optional presentation name field to ModelNode, which allows
  overriding the name of its underlying ValueNode for display purposes.
  Used to ensure that a top-level node for an expression always shows
  the expression string itself, even when the returned result is a value
  node with a different name.
2014-11-23 09:13:06 -05:00
Rene Gollent
0690178786 Debugger: Further improvements to expression handling.
VariablesView:
- ModelNode now acquires a reference to its target variable. This
  is necessary because in the case of expression variables, the
  model node is ultimately the only one aware of it, and therefore
  needs to manage its lifetime.
- AddSyntheticNode() now discriminates between the case where it
  needs to create a node child on behalf of the caller versus when
  it's given an already created one, as is the case when an expression
  resolves to a value node. Consequently it also detects whether
  it needs to request value resolution or not, and handles accordingly.
- _AddExpressionNode() now supports value node results and handles
  them accordingly.
2014-11-23 00:18:14 -05:00
Rene Gollent
b4a861136b Debugger: Adjust VariablesView for new expression API.
- Simplify handling of expression nodes. For primitive results, we now
  construct a Variable object that represents the expression result, and
  then add that as we would any other local variable. This simplifies handling,
  and also allows saving/restoration of their view state to be handled the
  same as other nodes. Complex expression results aren't yet handled properly,
  pending some further work in progress on the evaluator.
2014-11-22 17:08:51 -05:00
Rene Gollent
81c848a14a Debugger: Rework expression parsing API.
ExpressionInfo:
- No longer stores an explicit result type (this is inferred from
  evaluation of the expression itself now).
- Introduce class ExpressionResult for returning the result of an
  expression computation. This can currently take the form of either
  a primitive value, or a value node object.
- Adjust UserInterfaceListener and ExpressionInfo::Listener to take
  the above changes into account, and correspondingly adjust all
  callers/listeners.

CLanguageExpressionEvaluator:
- Introduce child class Operand. This subsumes the functionality that
  was previously in the separate Number class, and can represent a
  primitive value, a value node or  a type. Also has functionality to
  implicity handle type promotion/inferring when performing calculations
  between operands.
- Adjust expression parser to operate in terms of Operands rather than
  Numbers. This allows a number of improvements, most notably that an
  expression can now return a value node as a result rather than only
  a primitive number. This capability isn't yet fully used, but paves
  the way for future uses such as an expression that evaluates to a data
  member, a global variable, or an arbitrary pointer of a particular type.
- Various cleanups/simplifications that were possible as a result of the above
  changes.

ExpressionEvaluationWindow/ExpressionPromptWindow:
- Remove type menu field, since the expression API no longer uses it.

Adding/removing expressions in the VariablesView is temporarily disabled,
pending some further rework there to properly handle the new result object.
2014-11-22 17:06:48 -05:00
Adrien Destugues
4011cb5d30 BootManager: different error when no MBR is found
We were using the same "no space available" message used when the first
partition starts too early. Be more specific here to make it clearer
what the problem is.

Fixes #7087.
2014-11-21 18:14:10 +01:00
Adrien Destugues
1f8b3fdb7e Storage Kit tests: apply relevant parts of #7025
Patch by Karvjorm. Picked only the code changes as it seems the Jamfile
changes were not needed or already done.
* Use BObjectList instead of BList
* Add some more directory constants to FindDirectory tests.
2014-11-21 17:44:11 +01:00
Adrien Destugues
ec1395bda9 pc_serial: trace when ignoring the kernel debug port.
* Since it is currently ignored even when serial debug is disabled in
the settings file, this was a bit confusing.
2014-11-21 17:44:10 +01:00
Adrien Destugues
d433a61aa2 GLTeapot: wait for retrace.
Rendering at 200+fps is useless when your display can't handle it.
Now we can spin many more teapots while demo'ing Haiku without wasting
as much CPU.
2014-11-21 13:31:19 +01:00
Adrien Destugues
21e5fc49a7 Update the hardware view on Pulse()
This lets the network stats update in realtime.
Fixes #11395.
2014-11-21 11:18:43 +01:00
Adrien Destugues
ea68c29709 Network Services: rename DNS to "DNS Client" and localize.
Fixes #11421.
2014-11-21 10:35:05 +01:00
Adrien Destugues
5148d5f549 AboutSystem: fix duplicate credit. 2014-11-20 21:35:18 +01:00
Adrien Destugues
1e4a6aa2e5 DiskProbe: style fixes... 2014-11-20 15:08:09 +01:00
Adrien Destugues
b0ee8bf20a Mandelbrot: mouse wheel zooming.
Fixes #9533.
2014-11-20 15:01:45 +01:00
Adrien Destugues
c2a13372aa DiskProbe: don't set a maximal size for the data view
We want the view to expand and fill the horizontal space as much as
possible.
2014-11-20 14:12:10 +01:00
Adrien Destugues
23b89f011f DiskProbe: fix crash when trying to edit a package directory
/system and /home/config would crash diskprobe because DataEditor would
be left in an incompletely initialized state.

Also fix a memory leak: fAttribute was never freed, but is allocated with
strdup.

Fixes #10428.
2014-11-20 14:07:11 +01:00
Adrien Destugues
1581d4ef08 UserlandFS: another 64bit fix. 2014-11-20 13:26:56 +01:00
Adrien Destugues
afd7ded01e Debug Server: kill team when debug alert is escaped
B_CLOSE_ON_ESCAPE makes alert->Go return -1. Handle this correctly and
kill the team.

Fixes #9983.
2014-11-20 11:02:06 +01:00
Adrien Destugues
9b8e5185da UserlandFS: 64bit fix. 2014-11-20 10:50:35 +01:00
Murai Takashi
932b333fa2 Fix called C++ object pointer is null
Signed-off-by: Adrien Destugues <pulkomandy@gmail.com>

Fixes #9904.
2014-11-20 10:45:15 +01:00
Adrien Destugues
a730d2560c AboutSystem: credit taos only for German.
As requested on the mailing list.
Keep a comment to remember to not re-add him next time we update the
list.
2014-11-20 08:38:05 +01:00
Automatic Committer
b64e832220 Update pci.ids from pciids.sourceforge.net 2014-11-20 05:20:22 +01:00
Adrien Destugues
b02efcef88 MediaPlayer: reintroduce "stop" shortcut.
It turns out there are some people actually using it, mainly when
playing music. If you interrupt music, you often want to start listeing
from the start of the track again (unlike for video), so having a stop
button makes sense in that case.
2014-11-19 10:14:29 +01:00
Adrien Destugues
79d08c3bf1 BootManager: add a permanent "Quit" button.
As suggested on the mailing list by stippi and korli, it is important to
let the users know they can quit at any time, and it's sometimes the
only thing they can do.
2014-11-19 10:11:34 +01:00
Adrien Destugues
b2a3f5b114 Terminal: initialize some variables
This is harmless, the sequence of states ensures they would be
initialized when needed anyway, but Coverity decides otherwise.

Fixes #10131 / CID743879.
2014-11-18 15:51:41 +01:00
Adrien Destugues
dc7bdd5597 BootMan: Don't rename the "Install" button to "Quit"
... when there are no installable disks.

The button is disabled anyway, and it is not useful to rename it. The
program can be exited by closing the window anyway, so a "Quit" button
is useless.
2014-11-18 15:10:49 +01:00
Adrien Destugues
c8dd5e4f27 Print page setup: use BButton with bitmap
... instead of BPictureButton.

* Replace bitmaps with zuMi's BToolbar themed ones
* Get a standard button look

Fixes #3592.
2014-11-18 13:49:00 +01:00
Adrien Destugues
6f08ef0ac2 MediaPlayer: some shortcuts tweaks
* F: toggle fullscreen (like tab)
* V: removed. Stopping the replay would lose the current position, and
we don't want non-undoable lossy operation on single keystrokes
* X: toggles play/pause instead of forcing play (like space)
* Alt+Shift+0/1/2/3 changes the aspecdt ratio to "raw", "default",
"4/3", "16/9".

Fixes remaining parts of #2495.
2014-11-18 11:08:30 +01:00
Adrien Destugues
b0baaee653 Fix build. 2014-11-18 10:26:10 +01:00
Adrien Destugues
4a6c666d6b Update localization credits and add Puck Meerburg as a contributor
* Got the list from Pootle "contributors" page.
* I used the names as they show in Pootle, which may not be the best.
2014-11-18 10:04:28 +01:00
Jérôme Duval
20f046edb9 netfs: fixes some x86_64 build failures.
* long is used in vnode_ops in fs_proto.h whereas it should be int32.
* at least one reply object is casted an int32 cookie as a pointer.
2014-11-18 00:05:02 +01:00
Jérôme Duval
073da30265 ColumnListView: deselect the last selected row
when the shift movement goes back. This behavior feels better to me,
but opinions are welcome. Tested with HaikuDepot package listview.
Noticed that CLV uses Ctrl whereas Tracker uses Alt for single item
selection.
2014-11-17 20:18:00 +01:00
Jérôme Duval
f3e381dd0c bios_ia32: for correctness, add clobber memory for asm invlpg.
* generated code is the same for x86_gcc2 and x86_64.
* fixed TRACE build for mmu.cpp.
2014-11-17 20:17:30 +01:00
Adrien Destugues
da8f008d15 Add a amfile to build cdda for userlandfs.
It crashes early after mounting in get_vnode, but the UserlandFS won't
build in DEBUG=1 (see #8422), making this not very helpful...
2014-11-17 17:36:53 +01:00
Adrien Destugues
a6d4e0b678 userlandfs: missing include. 2014-11-17 16:18:41 +01:00
Adrien Destugues
367ea4bd57 netfs: Fix build for gcc4. 2014-11-17 15:59:11 +01:00
Adrien Destugues
83b1a68c52 Move NetFS to a package
This is based on Jalopeura's patch to #10191, however, there are some
changes.
From the patch:
* Make userlandfs use separate "interface definition" files for each
filesystem, so the netfs package can provide a configuration file
* Add a short document on how to use NetFS
* Various fixes to netfs to make it build again (volatile atomics)
* The netfs_mount script for easier use of NetFS

Additional fixes:
* Move netfs_mount and the interface description file to data/ in the
source tree
* Use strlcat instead of strcat to avoid a buffer overflow
* Some parts were already applied in previous commits
2014-11-17 15:24:07 +01:00
Adrien Destugues
28627b28aa UserlandFS: avoid crash if module is not found.
If we can't find the name in the module list, we would try to
dereference the NULL pointer which terminates that list.
2014-11-17 11:49:26 +01:00
Adrien Destugues
f0d46bd83c NetFS: fix build.
Fixes #11168.
2014-11-17 10:42:03 +01:00
Adrien Destugues
44f82a7875 Add a package for UserlandFS.
Fixes #10192.
2014-11-17 10:28:59 +01:00
Adrien Destugues
4ecb74f198 Session: reinit ioctl data before sending it again.
The structure is used as input and output from ioctl, so we must clean
it before doing the ioctl for the second try.

May fix #11477.
2014-11-17 09:22:17 +01:00