Commit Graph

1159 Commits

Author SHA1 Message Date
Philippe Saint-Pierre
f1e0212d72 top: Attempt to avoid negative "(unknown)" %
Top was using the 'theorical' interval value to determine the percentages.
The measured thread times were taken in an always a bit larger interval than
that theorical value, hence the negative '%' occuring regularly.

Should fix #4589.
2012-05-08 21:09:36 -04:00
Axel Dörfler
52a5878b74 Added command line programm to rename/move attributes.
* Called mvattr, move is not yet implemented which is why it's not part of
  the image yet.
* Defaults to rename, moving attributes needs an extra option.
* Suggestions welcome :-)
2012-05-06 16:55:36 +02:00
Jerome Duval
1f5facdbe7 sysinfo: switch to c++ 2012-04-28 09:59:52 +02:00
Oliver Tappe
546208a539 More catalog-related cleanup.
* rename B_TRANSLATE_CONTEXT to B_TRANSLATION_CONTEXT and
  B_TRANSLATE_WITH_CONTEXT to B_TRANSLATE_CONTEXT, squashing a TODO
* adjust all uses of both macros in Haiku's source tree
* use correct header guard for collecting/Catalog.h

The renamed macros require adjustments to all external applications
using catalogs.
2012-04-16 21:31:22 +02:00
Oliver Tappe
541ff51a6e Cleanup BCatalogAddOn.
* rename BCatalogAddOn to BCatalogData, since it doesn't represent an
  add-on, but rather the catalog data provided by an add-on
* move BCatalogData out of Catalog.{h,cpp} into its own header and
  implementation file
* drop BCatalogData::MarkForTranslation() methods, they're not needed
* drop BCatalog::GetNoAutoCollectString() methods, they're not being
  used anywhere
* cleanup the B_TRANSLATE_... macros somewhat
* add versions of the B_TRANSLATE_MARK_... macros that are meant to be
  used in void context (when the string isn't being used by the program,
  just meant to be picked up by collectcatkeys).
* adjust several apps to use B_TRANSLATE_MARK_..._VOID where needed
* adjust users of BCatalogAddOn accordingly
2012-04-16 00:04:41 +02:00
Oliver Tappe
5ac65b7f11 More cleanup in locale kit, this time regarding namespaces.
* it's bad practice to do a 'using <namespace>' in a header, as that
  is very likely to have unintended effects, so drop those from a couple
  of private Locale headers
* adjust files all over the locale kit in order to fix the problems
  (by explicitly importing the required classes in the implementation
  files)
2012-04-16 00:04:40 +02:00
Oliver Tappe
16e5092306 Extract EditableCatalog from Catalog.{h,cpp}.
* move EditableCatalog to its own header and implementation file
* move problematic BCatalog::CatalogAddOn() to EditableCatalog
* adjust Locale tools accordingly
2012-04-16 00:04:40 +02:00
Matt Madia
925dd7cd99 Ensure that bash's mkbuiltins won't pollute HAIKU_TOP.
Introduces a commandline option to specify the filename of the
temp_struct_filename, allowing the buildsystem to place it on the same volume
as HAIKU_OUTPUT_DIR. Fixes #6746.
2012-04-08 20:41:14 +00:00
Matt Madia
09af439301 Automatic whitespace cleanup. No functional change. 2012-04-08 20:31:14 +00:00
John Scipione
3cee15aac2 Keymap changes from recent activity. No AltGr yet.
Below is a mostly complete summary of the changes in this commit.

* Set the DeadKeys for the US-International Keymap to use the Option map.
* Rename American keymap to US
* Update the US, US-International, and United-Kingdom keymaps to take
  out unneeded spaces in the option layer. Also updated the dead keys
  and some other keys on the US-International keyboard to use UTF-8
  characters rather than there ASCII equivalents when different.
* Make the Option key fall-through when there is no mapping in the Option
  table. Option is for special characters, if none, print the regular one.
  This is mostly meant for the US keymap which has an empty option map. But
  also so that you don't have to repeat the normal, shift, and caps maps in
  the option map needlessly. Although the keymaps are still not empty in
  some cases that it could be like numpad keys and space.
* Update the /bin/keymap app to use fputs() instead of printf() when there
  is no actual formatting taking place. I've gotten into trouble for doing
  this before and it is faster to not process the string unnecessarily.
* Also several 80-char limit style fixes and updated comments.
* In Keymap class Reorder the modifier keys to match the keymap files.
  Put B_CONTROL_KEY check above B_OPTION_KEY. Neither change has any effect,
  they are purely aesthetic.
* Update DumpKeymap() method to use the abbreviated modifier letters so it
  will fit in your 80-char wide terminal.
* Tiny style fix in InputServer
* 80-char limit style fix in BWindow and add a comment that the shortcut
  gets eaten in the case of Cmd+Q
* Implement IndexForModifier() in KeyboardLayout, although I am not using it.
* Take Caps Lock out of the Modifier keys window because I couldn't get
  it to work the way I wanted it to.
* Move key roles to the left column, and the key label on the left. Add column
  header labels. Thanks Rimas!
* Add validation and improve marking menu options. Add a 'Disabled' option
  to control, option, and command menus to disable the key. Make the key
  role text grey if the key roles is disabled. Validation ensures that you
  cannot repeat the same key twice in the Modifier keys window since that
  won't work. You can't define 2 sets of option keys even if you really want
  to. You can disable your control, option, and command keys if you
  want, but that is not recommended.
* Rename kUpdateModifiers to kUpdateModifierKeys message to differetiate
  it from kUpdateModifier.
* Add shift key to Modifier keys window, use the stop icon instead of the
  warning icon to indicate conflicts.
* Allow the Layout system to control the size of the Modifier keys window
  again, set the width's of the key role lables to the widest, set the width
  of the menu fields to take up the rest of the space minus room for the
  conflict views. I didn't like it that the Modifier keys window would change
  size based on what options you had selected in the menu fields. Now it
  doesn't, but, the layout system still makes it all fit.
2012-04-06 02:42:54 -04:00
Oliver Tappe
60f75e901c Merge liblocale.so into libbe.so.
* Make the locale kit a part of libbe.
* Drop the LocaleBackend kludge used from within libbe (and from
  other places, too) in order to access system catalog strings. 
  This is now done via gSystemCatalog, which is provided and initialized
  by libbe.
* Drop all references to liblocale.so from all Jamfiles.
* Add legacy symlink liblocale.so in order to keep optional packages
  that rely on it in a working state.

TODO: the documentation hasn't been updated.
2012-04-04 22:44:42 +02:00
Alexander von Gluck IV
3a8514d0c7 wc: Remove OpenB*OS version
* Was replaced by coreutils wc and options are the same.
2012-04-01 13:40:21 -05:00
Alexander von Gluck IV
b2305bab10 printf: Remove OpenB*OS version
* Was replaced by coreutils printf and options are the same.
2012-04-01 13:40:21 -05:00
Alexander von Gluck IV
6db1a7fa02 cut: Remove OpenB*OS version
* Was replaced by coreutils cut, and options are the same.
2012-04-01 13:40:21 -05:00
Alexander von Gluck IV
7029925bda factor: Remove OpenB*OS version
* Was replaced by coreutils factor, and options are the same.
2012-04-01 13:40:20 -05:00
Alexander von Gluck IV
cfa92fff7a csplit: Remove OpenB*OS version
* Was replaced by coreutils csplit, and options are the same.
2012-04-01 13:40:20 -05:00
Alexander von Gluck IV
aa49350403 cat: Remove OpenB*OS version
* Was replaced by coreutils cat, and options are the same.
2012-04-01 13:40:20 -05:00
Alexander von Gluck IV
1e1a9ea40a yes: Remove OpenB*OS version
* Was replaced by coreutils yes, and options are the same.
2012-04-01 13:40:20 -05:00
Alexander von Gluck IV
f855eb69ed echo: Remove OpenB*OS version
* Was replaced by coreutils echo, and options are the same.
2012-04-01 13:40:19 -05:00
Alexander von Gluck IV
75c81b64a9 whoami: Remove OpenB*OS version
* Was replaced by coreutils whoami, and options are the same.
2012-04-01 13:40:19 -05:00
Alexander von Gluck IV
e0153fad24 beep: Style cleanup. No functional change. 2012-04-01 13:40:19 -05:00
Alexander von Gluck IV
5cb635561c listdev: Style cleanup. No functional change. 2012-04-01 13:40:19 -05:00
François Revol
be06c5a53c Build fix
Reuse haiku-utils_rsrc jam var from upper Jamfile.
2012-03-26 23:29:58 +02:00
François Revol
a59d56fa36 gcc4 build fixes. 2012-03-26 23:22:49 +02:00
Axel Dörfler
647cff2e59 Imported BFS-Tools (without docs), added bfsinfo to the image.
* The sources are unchanged, and most of it doesn't follow Haiku's coding
  style -- stuff that I updated over the years might also have seen a coding
  style update.
* This was also the basis on which Haiku's BFS has been written.
* In the long run, the stuff in 'lib' that is already part of BFS should
  be removed, and used directly from BFS itself.
* I haven't yet added any other of the tools to the image. Not sure if they
  are ready for inclusion yet; 'recover' could also be renamed to reflect that
  it is BFS specific.
2012-03-26 22:48:07 +02:00
Jérôme Duval
5d043aeb0f listusb: also display vendor and device strings in non verbose mode. 2012-03-15 21:34:28 +01:00
Jérôme Duval
08de244f9c bzip2: switched to optional package and drop in-tree sources. 2012-03-14 22:51:35 +01:00
Oliver Tappe
d9dc0dda43 Fix #8350: clockconfig has to use the current offset from GMT.
* instead of re-applying the fixed offset that had been set when the
  Time preflet was used last, use the stored timezone name in
  clockconfig in order to determine the current GMT-offset for that
  timezone
* clockconfig now requires liblocale.so
* drop the offset field from the settings as it is no longer used,
  clockconfig was the only client
* automatic whitespace cleanup
2012-02-26 19:07:29 +01:00
Oliver Tappe
0437cdba8f Cleanup: whitespace- and line-width-related adjustments. 2012-02-26 19:07:29 +01:00
Oliver Tappe
98057dd02a Adjust /bin/locale to print time-related locale, too.
* add support for printing the time-related locale (which may contain
  a '@strings=messages' suffix if required by locale configuration
* adjust cmdline params of /bin/locale to be a bit clearer (but keep
  support for -c for compatibility)
* adjust /etc/profile to invoke /bin/locale accordingly
2012-02-23 23:15:36 +01:00
Oliver Tappe
93efe98ec2 Cleanup: respect line-width limit. 2012-02-23 23:15:35 +01:00
Jerome Duval
5c6b9eb00d Some fixes for GCC 4.6 warning: variable set but not used 2012-02-23 20:32:13 +01:00
Philippe Saint-Pierre
7ee685d20c Desklink: Close the Volume Window after dropping the replicant
When dropping a replicant of the Volume Control, close the volume window.

Enhancement #7718.
2012-02-22 20:00:43 -05:00
Jérôme Duval
4ea3e0d3b8 listusb: display USB vendor and devices names based on usb.ids
* download usb.ids, processed like pci.ids to generate a header.
* best would be to load and parse the file at runtime with shared code.
2012-02-18 14:25:10 +01:00
Siarzhuk Zharski
d9744a0dfc [Coverity] Restore std::cout flags and MimeAttr ctor. inits
* Restore std::cout flags (CID11245, CID11246) after using hexadecimal
  and zero-filled flags;
* Fix uninit MimeAttribute::fStatus field in one ctor. CID11292.
2012-02-02 20:46:00 +01:00
Jérôme Duval
1a4cf8161e Moved ctags to an optional package
* removed ctags from Haiku sources and from haiku image
* added ctags to mandatory packages for the time being.
2012-01-23 23:50:20 +01:00
czeidler
da6ab904f8 Fix leaks. 2012-01-21 18:38:28 +13:00
Siarzhuk Zharski
db3aecc840 Fix gcc2 build - remove iusing of ios:exceptions
* Fixing gcc2 build by removing exceptions using, that are looking like
  not supported by our version of compiler.
* Thanks to Alexander von Gluck for pointing the problem out.
2012-01-15 17:38:41 +00:00
Aleksas Pantechovskis
1a7322a09e Command line 'writembr' tool implemented
* Implemented writembr tool used to update MBR area with easy boot
  loader starting the system from currently active partition;
* This work fixes #5595;
* This is result of GCI2011 task.

Signed-off-by: Siarzhuk Zharski <zharik@gmx.li>
2012-01-15 15:03:24 +00:00
Michael Lotz
4506b3385f Use static inline instead of extern inline to fix DEBUG build.
Fixing this directly even though it is technically vendor code as it
has been modified rather heavily (as per #8252).
2012-01-07 03:27:03 +01:00
Michael Lotz
d26f88068b Add xfreopen.c to the library build, fixes DEBUG build.
The actual xfreopen function is only relevant if O_BINARY != 0 and all
places invoking it are surrounded by if statements that are always
false if O_BINARY == 0. The compiler therefore stripped all the calls
out at the default -O2, but this obviously breaks down with DEBUG on.
2012-01-07 03:13:01 +01:00
Michael Lotz
ecea46bcfd Unconditionally add debug.c. Fixes DEBUG build.
The file is guarded with DEBUG so this doesn't change anything for
non-debug builds. Inspired by patch in #8252 by Urias McCullough.
2012-01-07 02:27:16 +01:00
Philippe Saint-Pierre
728d429e7d spamdbm: use the std::nothrow variant of new operator. 2012-01-02 18:55:19 -05:00
Aleksas Pantechovskis
099d5afd11 Second part of 'setmime' implementation is completed
* Support for bitmap and vector icons added;
* Attribute type representation is improved;
* Fixed problem with current attributes loading;
* sniffer rule checking fixed;
* supress useless lines in -dumpIcons and -dumpSniffRules for MIME types
  without icons and sniffer rules correspondently.

Signed-off-by: Siarzhuk Zharski <zharik@gmx.li>
2011-12-15 21:51:10 +01:00
Michael Lotz
a15a38c104 Fix use after free. CID 10567. 2011-12-12 01:58:50 +01:00
Jérôme Duval
7cd683ba12 fix typo 2011-12-11 10:49:17 +01:00
Michael Lotz
674e76845d Returning a string stored in a local BMessage doesn't work.
Instead use a BString object as return type that copies the string
so that it stays valid after return.
2011-12-07 00:26:07 +01:00
Siarzhuk Zharski
02e8a1d136 Fix stdc++ linkage problem for setmime.
* Adding setmime was incorrect - the wrong [non-stdc++] section was
  used. Sorry.
2011-12-06 21:49:33 +01:00
Aleksas Pantechovskis
e9c0da3452 Haiku clone of the BeOS setmime tool added
* This tool was created and implemented in draft during GCI 2011
  by Aleksas Pantechovskis, <alexp.frl@gmail.com>;
* Later it was heavily refactored and optimized to Haiku Coding
  Standards by Siarzhuk Zharski;
* Icons support still missing;
* Thank you for the contribution, Aleksas!

Signed-off-by: Siarzhuk Zharski <zharik@gmx.li>
2011-12-06 20:55:53 +01:00
Philippe Saint-Pierre
81a29f5613 Removing deadcode. Specific Case already taken care of.
CID 2865.
2011-11-27 11:41:29 -05:00