Commit Graph

1047 Commits

Author SHA1 Message Date
Ingo Weinhold
37fca3d23f ZlibPackageDataReader::ReadData(): We were always copying the data from the
start of the chunk, which is wrong for non chunk aligned offsets.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34101 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-11-17 21:50:48 +00:00
Ingo Weinhold
6dccfe1317 * Added interface ErrorOutput and implementation StandardErrorOutput and used
them in the PackageReader instead of fprintf().
* Got rid of unconditional printf().


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34084 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-11-17 11:33:50 +00:00
Ingo Weinhold
689605bf2a * Added support for iterative operation to ZlibCompressor/ZlibDecompressor.
* Added support for compressing/decompressing the TOC section of the package
  to PackageWriter/PackageReader.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34063 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-11-15 21:29:53 +00:00
Ingo Weinhold
51e49965a7 The compressed size wasn't computed correctly (ignoring the chunk offset
table), resulting in invalid archives when storing files > 64 KB.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34058 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-11-15 10:39:57 +00:00
Ingo Weinhold
7f03bc34fe Apparently I didn't manage to put the class implementations in the matching
source files.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34057 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-11-15 10:08:26 +00:00
Ingo Weinhold
c0fad25fa9 * Got rid of the *Data classes. The *DataReader classes do the same.
* Implemented writing of short data inline in the TOC.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34055 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-11-15 08:41:57 +00:00
Ingo Weinhold
03423585a4 Incorrectly used errno instead of error.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34054 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-11-15 08:40:35 +00:00
Ingo Weinhold
56270ee1c9 Added AttributeDataReader, a DataReader implementation for attributes.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34053 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-11-15 08:39:45 +00:00
Ingo Weinhold
29af97ceac Don't return a bogus offset for inline data.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34052 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-11-15 08:37:22 +00:00
Jérôme Duval
fe9ca3bd8e forgot to add this file
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34049 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-11-15 00:12:27 +00:00
Jérôme Duval
34f7779818 merge wget 1.12.0 to trunk
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34048 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-11-15 00:05:39 +00:00
Ingo Weinhold
aece77090d Added support for data compression via zlib. Compression support for the TOC
and package attributes sections is still missing, though.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34043 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-11-14 21:08:33 +00:00
Jérôme Duval
356b0f18b9 merge coreutils 7.6
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34041 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-11-14 19:27:05 +00:00
Jérôme Duval
19f2b5d53d merge patches 001-035
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34030 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-11-14 12:15:39 +00:00
Jérôme Duval
b2b7e600a2 uses B_COMMON_SETTINGS_DIRECTORY/network/hosts
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34027 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-11-14 11:51:33 +00:00
Ingo Weinhold
050aa61bd6 Implemented a tool ("package") that implements creation and extraction of
packages of the newly invented Haiku Package format
(http://dev.haiku-os.org/wiki/PackageFormat). It basically works, but it's
still work in progress (e.g. compression is not implemented yet), as is the
format itself.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34018 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-11-13 13:45:49 +00:00
Jérôme Duval
8735f4fde6 forgot this file
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34017 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-11-13 00:16:21 +00:00
Jérôme Duval
0c020994fd merge bash-4.0 to trunk. kept most haiku stuff.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34016 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-11-12 23:52:22 +00:00
Axel Dörfler
492dd892ce * Removed /system/etc directory.
* /etc now points to /boot/common/etc/, and the remaining contents of the former
  "etc" are put there now, as well.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33986 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-11-10 14:26:42 +00:00
Axel Dörfler
c6106a595d * Fixed bug in "fortune" that would let it crash if you'd point it to an empty
directory.
* Moved fortune files to "data/system/data" in the repository, and /system/data/
  in the file system.
* Got teapot.data location wrong in the repository.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33982 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-11-10 13:09:32 +00:00
Axel Dörfler
48cfade40f * Fixed warnings.
* Automatic whitespace cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33969 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-11-09 22:19:56 +00:00
François Revol
a0f0ed1b94 Add missing argument to usage string.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33944 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-11-08 08:06:03 +00:00
Axel Dörfler
89b0b8025c * Stupid zip has a "#define local static" which now breaks since OS.h includes
pthread.h.
* If zip is not actively maintained anymore, I would suggest correcting this
  issue by removing that useless define. Maybe they accept patches, too.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33932 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-11-07 09:53:35 +00:00
François Revol
72e3211d51 - fix BeOS build,
- add handling of svn: and svn+ssh: urls.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33926 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-11-06 23:47:53 +00:00
Alexandre Deckner
36f51b0861 * Applied patch jalopeura, fixing mail2mbox and mbox2mail signatures in rdef. Closing #4856. Thanks!
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33772 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-26 13:57:36 +00:00
Jérôme Duval
b8092f18e1 the column argument wasn't taken into account
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33759 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-25 13:59:05 +00:00
François Revol
ff4169d224 Add checkitout to the build.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33696 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-21 10:06:31 +00:00
François Revol
265078a6df Introducing CheckItOut: a small urlwrapper spin-off that handles SCM urls and checks them out for you where you want them.
Supports git: for now.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33695 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-21 10:05:47 +00:00
François Revol
69955dd988 Add a --name argument to preset the name of the file to save.
I should probably use getopts() here...


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33692 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-21 08:33:17 +00:00
Oliver Tappe
571d840abf * dropped svn:keywords property from all files that carried it
to avoid recurring problems during migration of subversion checkouts
  (restored binary files that were garbled by subversions during checkout)
* added appropriate svn:mime-type property for problematic (binary) files
* removed a single (mistyped) svn:mimetype property 
* dropped svn:eol-style property for cleanup (they all contained 'native')



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33670 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-19 22:42:52 +00:00
Stephan Aßmus
16e2755608 I didn't realize the generated headers are re-used elsewhere and located like
that. But I didn't think of any better solution either... Hopefully these are
all, but I will find out once I built a complete image.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33641 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-18 19:20:10 +00:00
Axel Dörfler
f9ca76e8c6 * Applied patch by "v" to enable the TUI mode in gdb, see ticket #4738.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33556 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-12 16:43:23 +00:00
Stephan Aßmus
206761086b Extend waitfor to except the syntax -s app_signature and wait until
the team with the signature becomes a valid target for BMessages.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33553 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-12 14:44:40 +00:00
Axel Dörfler
2786236c21 * Added -l option (--long) that will also show the contents of the attributes.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33515 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-11 12:52:23 +00:00
Axel Dörfler
6ba60f6392 * Making mountvolume an application broke invocating it without any arguments.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33513 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-11 10:02:21 +00:00
Michael Lotz
0986056934 Fix two space to tab indents.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33504 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-10 21:10:46 +00:00
Axel Dörfler
32ebacf299 * Build fix... sorry, I could have sworn I compiled it before committing.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33443 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-05 14:18:32 +00:00
Axel Dörfler
821b62c231 * Fixed app signature.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33441 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-05 13:27:39 +00:00
Axel Dörfler
cc592ed1fa * Fixed coding style.
* Fixed bug introduced with the last change: since the mbox is dumped to
  stdout, it's not a good idea to print status messages there as well.
* In the long run, I think we should replace the two conversion tools with a
  (better usable) single one.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33440 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-05 13:27:21 +00:00
Axel Dörfler
08c63a2d6b * Print the actual command name, not a hardcoded obsolete one. Fixes ticket
#4719.
* Added license header.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33438 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-05 12:32:07 +00:00
Ingo Weinhold
d6778355ee * <DiskDeviceTypes.h>: Removed kPartitionTypeIntel{Primary,Logical} constants.
* Added new header headers/private/system/disk_device_types.h, which defines
  the <DiskDeviceTypes.h> constants as macros and which can be used where the
  constants cannot be used. The constants are defined using the macros, so now
  there's only one place where the string literals should be specified.
* Use the macros in the partitioning systems. I was too lazy to also adjust the
  file systems -- most of them seem to hard-code the string literal yet.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33386 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-01 03:07:42 +00:00
Ingo Weinhold
6cc1f01511 Implemented small tool diskimage, which allows to register/unregister files
as disk devices. It also demonstrates that the respective devfs functionality
is utterly broken.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33384 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-01 03:05:06 +00:00
Adrien Destugues
b254319360 -Started to localize the appearance preflet to find more locale kit bugs. It worked.
-MarkForTranslation was not scanned by collectcatkeys, improved the regexp to take it into account
-Some gristing was missing in jamrules, added a bit, still seem to miss some.
-Replaced $(var:B).ext with $(var:S=.ext) as it is the proper way in order not to loose grist and mess things up
-Removed icu include and replaced direct class nesting with pointer to avoid binary compatibility breakage on ICU updates.
-Fixed TimeFormatSettingsView to properly include needed icu things. Should not be there, actually. Needs cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33210 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-09-20 22:16:30 +00:00
Jonas Sundström
39d27bcb29 Renaming mail-mbox utilities as per humdingers request in #4582.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33195 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-09-19 21:00:23 +00:00
Jonas Sundström
667176ab4f Renaming mail-mbox utilities as per humdingers request in #4582.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33194 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-09-19 20:59:04 +00:00
Jonas Sundström
bd8c660962 Renaming mbox utilities as per humdingers request in #4582. Part 1/2.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33193 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-09-19 20:54:02 +00:00
Oliver Tappe
75f1522155 * reintegrated gsoc-locale-kit branch into trunk - there's more
work to do, but it's about time to give this code more exposure.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33176 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-09-18 22:23:34 +00:00
Philippe Houdoin
78defe1776 Fix gcc4 build while DEBUG is set.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33058 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-09-11 04:18:33 +00:00
Jérôme Duval
7703280cb0 revert the libiconv stuff. fix bug #4387
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32873 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-31 20:09:14 +00:00
François Revol
39d6a07862 Print the level for each dumped node, also serves as a delimiter, else all the PCI devices look like a mess.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32824 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-30 00:27:13 +00:00
Jérôme Duval
b77a6fc817 added gcc4 ifdef
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32797 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-28 22:49:01 +00:00
Jérôme Duval
b5dc2c1535 merging coreutils-7.5 into trunk (c89 fixes needed)
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32796 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-28 22:30:24 +00:00
François Revol
f437d20ef3 Fix warning.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32712 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-26 13:50:29 +00:00
François Revol
64c68424bd Fix warning.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32706 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-26 13:12:02 +00:00
François Revol
8382dc4be4 - Fix warnings,
- UTF-8,
- add copyrights.
We shouldn't need this anymore anyway, devfs handles rescanning on its own...


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32705 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-26 13:10:08 +00:00
François Revol
285fe0a395 Fix warning.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32704 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-26 13:06:10 +00:00
François Revol
ab7f85abe8 Fix warning.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32703 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-26 13:04:58 +00:00
Ingo Weinhold
fb7c02c215 Under Linux use BLKGETSIZE64 to get the device size, now, and only when that
fails fall back to HDIO_GETGEO. This hopefully fixes #3122, as I suspect
HDIO_GETGEO returned an incorrect size.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32674 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-25 20:31:21 +00:00
Ingo Weinhold
f1f6eacd46 On Linux, FreeBSD, and friends print the partition map, if we could parse it,
but failed to get the specified partition.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32662 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-24 21:38:44 +00:00
Michael Lotz
2e7672a2a0 Adding a simple wake on LAN command line utility. It will broadcast a magic
packet that targets the MAC address supplied by argument.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32555 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-21 05:52:36 +00:00
François Revol
af0ba3c2c8 Fix gcc4 picky warnings...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32549 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-20 22:30:32 +00:00
Ingo Weinhold
8bc24c13ab * Moved termcap.h to headers/libs/termcap/, where it belongs.
* Removed the headers/gnu from the default headers (the Jamfiles needing it
  use it explicitly, now) and moved it under headers/compatibility/.
* Added libgnu.so to the image. Still untested, though.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32481 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-17 21:13:51 +00:00
Axel Dörfler
73a1a46de9 * Made defines out of the kNetServerSignature and kMsgConfigureInterface
constants - they are used in other apps as well, and defining them as
  "static const" causes undefined warnings in other source files. This also
  fixes the build.
* Changed "interfaces::auto config" to auto_config, as that's more convenient
  to use in the settings files.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32321 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-13 16:30:21 +00:00
Axel Dörfler
eab0984875 * getservbyport() expects the port in network byte order. Resolving port names
is now working as expected.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32318 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-13 15:14:34 +00:00
Axel Dörfler
6ebdef0c29 * Fixed warning.
* Minor cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32309 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-13 13:32:49 +00:00
Axel Dörfler
a5079edc04 * Fixed warnings.
* Minor cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32279 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-12 14:29:02 +00:00
Jonas Sundström
d0cab16b9f Make mountvolume a BApplication and set it as the preferred one for opening BFS and (for now) ISO images.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32275 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-12 13:54:28 +00:00
Axel Dörfler
00daddc745 * Forgot to set which volume should be shown.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32251 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-11 12:57:49 +00:00
Axel Dörfler
a0922d3718 * Added a volume tool tip to Deskbar's volume replicant, thus closing ticket
#3118.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32250 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-11 12:35:57 +00:00
François Revol
68264bed26 Better give the good len.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32164 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-06 16:04:20 +00:00
Axel Dörfler
ccee2a8b35 * "mountvolume" now can also mount by device path.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32128 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-05 11:09:59 +00:00
François Revol
358e3e4e8b C89, should fix gcc2 build.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32091 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-03 18:10:45 +00:00
François Revol
d594d16e24 Allow getting other safe mode settings than the default one, from command line.
Added a -s option to get the string value of the setting directly instead of interpreting it as bool.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32086 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-03 16:25:41 +00:00
Fredrik Modeen
1d4673660f This fixes when I try to makebootable after building Haiku from Zeta.
I don't get "Error: Specifying directories not supported on this platform!" now.
Also includes some added \n.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32011 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-31 10:13:37 +00:00
Ingo Weinhold
567c7b1055 Added kernel_debugger command for entering the kernel debugger.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31966 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-30 12:36:34 +00:00
Axel Dörfler
4bfd2003b4 * Forgot to update this one, causing copying attributes to work no longer via
cp and mv.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31911 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-29 14:53:42 +00:00
Ingo Weinhold
265aebfa26 Fixed build after BOpenHashTable change.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31905 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-29 13:10:04 +00:00
Michael Lotz
473a578ad8 Add a simple utility to dump flattened BMessages. Added it to the image as well.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31897 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-29 10:13:20 +00:00
Alexandre Deckner
0ed66b2314 * added the inverse [-e] option that waits until all such named threads ended.
I use this to cleanly switch between my dev Tracker and the trunk one. I need
  to wait until it has really quit before overwriting and running another
  version. 



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31852 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-28 16:16:37 +00:00
Michael Lotz
8ce0e36827 Remove a huge chunk of unused GDB sources. This removes about 3000 files and
should bring down checkout times quite a bit.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31833 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-27 21:53:06 +00:00
Michael Lotz
e5a19b2505 Add a small utility to set a USB device configuration from userland.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31794 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-27 01:32:32 +00:00
Ingo Weinhold
0b11ecb18c * Always include the public arch_debugger.h headers. The structures defined
there are prefixed with the respective architecture name. Useful for remote
  debugging a different architecture.
* <x86/arch_debugger.h>: Introduced a structure for the FPU state, so that it
  isn't left to the debugger.
* Removed the _kern_get_thread_cpu_state() syscall. Was originally intended for
  bdb compatiblity, but isn't really needed.
* Kernel x86 arch_get_debug_cpu_state(): The use of fnsave was broken, since
  it reinits the FPU after saving the state. This resulted in weird results
  when debugging functions using the FPU. We now use fxsave, if available.
  Otherwise fnsave + frstor should be used -- not fully implemented yet.
  Same for arch_set_debug_cpu_state().


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31682 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-21 22:18:39 +00:00
Axel Dörfler
63128f06c4 * Build fix; gtf.cpp is also needed for the screenmode command line tool.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31655 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-20 16:49:52 +00:00
Axel Dörfler
24a9c1bbba * Added option "-r, --recorded" to profile: this will now retrieve the kernel
profile data area, and evaluate its data - it doesn't produce any output yet,
  though.
* _user_system_profiler_recorded() now also makes sure the userland app can read
  from the buffer area.
* Fixed leak in SharedImage::Init().
* Made the symbol retriever more smart when it deals with kernel images; if the
  image ID is no longer available, it will now use the path based image symbol
  iterator (and also adds the boot kernel path, in case the module don't have
  one).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31653 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-20 14:50:14 +00:00
Axel Dörfler
7d7de072af * Fixed a crashing bug in case creating the image symbol iterator failed.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31651 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-20 14:02:21 +00:00
Michael Lotz
63d557f06f Fixing random GCC4 warnings. Mostly missing consts, some parentheses, some braces... Should all be harmless and not change anything.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31600 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-16 02:42:03 +00:00
Axel Dörfler
491e89c541 * Worked around our now POSIX conformant realpath() implementation. If we decide
to go back to BSD's, this one can be reverted again.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31583 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-15 11:31:44 +00:00
Axel Dörfler
648b674d3f * Fixed volume change via mouse wheel over the replicant icon regression.
See #2323.
* Also fixed the mouse wheel not working once the volume value equaled -1.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31582 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-15 09:16:12 +00:00
Ingo Weinhold
50ffb0b27e Fixed Includes invocation for .def files. The wrong variable was used.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31524 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-11 20:27:44 +00:00
Ingo Weinhold
6cba4149a1 Announce y.tab.h inclusion of parse.h to jam.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31523 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-11 20:25:39 +00:00
Oliver Tappe
2180971924 * adjusted wchar-related defines in config.h of libiconv, coreutils, findutils and tar to match
the new reality


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31451 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-08 00:56:55 +00:00
Oliver Tappe
16d5c24e53 * merged 32bit-wchar_t branches of buildtools and haiku back into
the respective trunk

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31443 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-07 10:30:09 +00:00
Axel Dörfler
0a4f8d8c18 * We also need to listen to modifier changes and unmapped keys in order to quit
the blanker. This is a regression introduced with r29488.
* This fixes bug #4069.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31441 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-07 09:52:38 +00:00
Ingo Weinhold
a78909c607 For some source files that included it the generated builtext.h wasn't
explicitly added as dependency. Fixes #4070.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31434 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-06 22:50:42 +00:00
Oliver Tappe
55108a8e90 * rearranged quoted C code such that the first reference of a token
happens after the tokens have been declared - this fixes #3137 for good
  (without ftpcmd.y depending on itself)

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31401 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-03 21:31:28 +00:00
Axel Dörfler
da30b4bf83 * With the help of Stippi's "I Will Survive" article, the VolumeControl
replicant should now handle media server restarts, or late starts gracefully.
* This fixed ticket #4002.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31322 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-06-30 10:14:54 +00:00
Stephan Aßmus
8fb7098371 Cut down on the required number of syscalls by using the new Haiku API
for reading/writing attributes.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31311 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-06-29 09:35:39 +00:00
Stephan Aßmus
125f5b846c The copy_attributes() loop made one iteration too much trying to read and
write 0 bytes after doing a successful copy of an attribute. Since
fs_write_attr() was actually ignoring the position argument, this would just
clobber attributes and truncate them back to 0 bytes. This was fixed in the
previous commit, however, it should be noted that if the buffer which
copy_attributes() uses were too small, writing attributes which live in the
"small data section" iteratively would not work because of a current BFS
limitation.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31310 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-06-29 09:13:33 +00:00
Axel Dörfler
3836be3e80 * Reworked GetKey() after Marcus' suggestions. Thanks for the extra motivation
to work on this :-)
* Also made it return "false" if there was no mapping, which will prevent empty
  dead keys to be written now (ie. the output now looks exactly like our
  sources).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31222 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-06-24 09:00:22 +00:00
Stephan Aßmus
c454df7e29 This stuff is actually used on the build host platform as well...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31209 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-06-23 14:05:01 +00:00
Axel Dörfler
e27f201987 * Added ability to save a "styles" attribute for StyledEdit. This implements
ticket #4032.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31196 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-06-23 10:27:58 +00:00
Axel Dörfler
30dcc55d0a * More or less rewrote main.cpp to use getopt_long() instead of the self-made
argument evaluation. Also separated the evaluation from performing the
  options, solving a TODO, and added long versions for the options.
* Changed Keymap methods to work on a path instead of entry_refs - this
  simplifies the code a bit over the place.
* Added new option to load a source keymap directly (-s, --load-source).
* Renamed some methods to make clearer what they do.
* Added a way to directly write a source keymap to a file (by specifying the
  -o option together with -d).
* Coding style cleanup, ordered Keymap methods in the order they are declared.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31195 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-06-23 09:44:31 +00:00
Philippe Houdoin
76d87570c9 Fixed Haiku libpcap detection.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31130 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-06-20 08:54:46 +00:00
Jérôme Duval
3db68fb0bb rmattr now handles attributes on symlinks and directories
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31002 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-06-09 21:02:21 +00:00
Axel Dörfler
50977465d0 * This should recreate 0 byte attributes, and therefore fix bug #4015.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31000 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-06-09 20:25:20 +00:00
Stephan Aßmus
a55f3fb022 Patch by Joe Prostko: Add linking to libstdc++ in some places, which is
necessary when compiling the code for example with -O1 or with the upcomming
GCC 4.4. Thanks a lot!


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30979 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-06-06 10:35:14 +00:00
Axel Dörfler
4a8250546b * Unmounting a volume now actually works, this fixes bug #3671.
* Added -u as an alias for -unmount. Added -readonly as an alias for -ro.
* Made the volume/fs column width depending on the terminal size.
* Now lists the volumes (-l) when invoked without any arguments instead of
  showing the help text.
* Improved output of not mounted volumes.
* Minor cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30972 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-06-05 09:49:43 +00:00
Axel Dörfler
7e7aeaeba4 * Fixed wrong partition name in mkfs, closing ticket #3954.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30970 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-06-05 09:06:11 +00:00
Axel Dörfler
2b665ac362 * Simplified computation as suggested by Ingo.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30959 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-06-04 12:27:09 +00:00
Jérôme Duval
1f717fef4d applied patch from mmadia: fix extra ( )
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30924 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-05-30 14:32:01 +00:00
Jérôme Duval
8b20dbc8a7 addattr can now add attributes to directories and symlinks
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30923 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-05-30 14:12:00 +00:00
Jérôme Duval
e81f1b80e9 copy attributes on symlinks (only testable with -P, --no-dereference), fixed bug #3539
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30921 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-05-30 12:20:11 +00:00
Jérôme Duval
7abb735ac6 * Includes termios.h in sys/ioctl.h, for TIOCGWINSZ.
* added watch command, which executes a program periodically, showing output full screen. 
* added watch to the image.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30900 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-05-28 20:16:35 +00:00
Ingo Weinhold
de49044796 * Use the new Add{Files,Symlink}ToHaikuHybridImage rules in HaikuImage and
OptionalPackages. This makes the content definition part in
  AlternativeGCCArchive superfluous.
* Moved the cc and c++ wrapper scripts from src/bin to data/bin.
* Added build variable HAIKU_ADD_OPTIONAL_PACKAGES to add optional packages
  -- the list can be separated by slashes to allow easier passing through
  the shell.
* When invoking the sub-jam that builds the alternative GCC archive, we force
  it to ignore the UserBuildConfigs and we enable the optional packages
  enabled in the main jam.
* Reorganized /boot/develop:
  - There's now an "abi" subdirectory containing a <arch>/<gcc>/ subdirectory
    for each installed ABI-incompatible gcc version and a "current" symlink
    pointed to the currently selected one.
  - All ABI-dependent directories under /boot/develop/ (lib/x86, headers/cpp,
    tools/gnupro) symlink into /boot/develop/abi/current.
  - Changed BELIBRARIES to contain
    /boot/develop/abi/current/library-paths/common instead of /boot/common/lib.
    The former is a symlink to either /boot/common/lib or
    /boot/common/lib/<gccVersion>. There's also a respective "home" symlink.
  - Repackaged the optional binutils+gcc 2/4 packages accordingly. Also fixed
    the obsolete /boot/beos/system/lib/libstdc++.so symlink in the gcc 4
    package.
  - The new structure allows to switch between compilers by changing the
    /boot/develop/abi/current symlink. Added script setgcc to do that.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30875 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-05-27 01:12:34 +00:00
Jérôme Duval
5348460789 Fixed #1896 by using directly pregenerated bc.c and scan.c instead of bc.y and scan.l
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30871 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-05-26 21:38:30 +00:00
Ingo Weinhold
d40c694ea5 * Reverted r30843.
* Don't call abmon_init() when HAVE_NL_LANGINFO is not defined. It would
  always fail.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30847 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-05-24 22:36:24 +00:00
Jérôme Duval
16b35692b8 don't display an error when not using langinfo.h
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30843 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-05-24 16:35:17 +00:00
Jérôme Duval
1b0da12a6b update coreutils rdef
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30839 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-05-24 14:36:36 +00:00
Ingo Weinhold
a428058ded * Copy the attributes before setting the destination's permissions. At least
under Linux this caused trouble for files without write permission.
* Fixed gcc4 warning.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30833 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-05-23 23:56:08 +00:00
Jérôme Duval
396dd2edd3 added missing newline for the fwcontrol help
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30831 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-05-23 18:51:46 +00:00
Jérôme Duval
434f9efa9a merging coreutils-7.4 into trunk
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30823 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-05-21 19:42:01 +00:00
Axel Dörfler
519d40076d * Removed the outdated chkbfs command. The "checkfs" command has replaced
this one.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30812 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-05-21 11:03:16 +00:00
Axel Dörfler
d69a73dfc7 * The Be API requires that options and mask is 0 to remove a mask using
BView::SetEventMask(). This fixes bug #3928.
* And while the app_server handled that correctly, BView actually did not, and
  stored the wrong value.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30772 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-05-16 21:09:33 +00:00
Jonas Sundström
e56cb27512 Launch URLs via BUrl class. Rearranged header files according to guidelines.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30759 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-05-13 22:30:55 +00:00
Jonas Sundström
03458c01a2 More style guide fixes. Removed a lot of preprocessing / conditional building, with intent to fix or remove. Moved urlwrapper class declaration to its header file. Renamed things for clarity. Removed 5 extra mimetypes for IE shortcuts. (We have one, with sniffing rule and extension.) Moved the UnurlString() back to urlwrapper.cpp and renamed it _DecodeUrlString(). Tweaked copyright clauses. A lot more needs fixing, esp. in urlwrapper but also in BUrl, and I intend to keep working on this until we're satisfied. Let me know of any remaining/added style violations! Feedback welcome.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30757 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-05-13 22:19:42 +00:00
Jonas Sundström
a243916712 Hopefully fixed indentation in BUrl header. Made data members in BUrl private. Added some class methods. Adapted urlwrapper to use the BUrl class. Removed a few obvious comments and some code that was defined away. Turned off debugging. Stripped App suffix from class name. No intentional changes to the core functionality of urlwrapper.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30739 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-05-13 01:05:42 +00:00
Axel Dörfler
9f3591f267 * Cleanup.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30722 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-05-12 19:15:06 +00:00
Jonas Sundström
28e8dc8e80 Move Url class out of /bin/urlwrapper into BPrivate::Support. I plan to add a Launch()-method that will make it useful to /bin/open, AboutSystem, People and other applications.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30702 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-05-11 00:48:03 +00:00
Oliver Tappe
05b2d32351 Closing #3874:
* fixed a couple of memory leaks in the BeOS-specific (attribute related)
  code of zip

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30653 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-05-06 20:34:28 +00:00
Bruno G. Albuquerque
28b6c8138b - Revert to calling Minimize() on the window constructor as this works as
expected now.
- Yeah, yeah... Style guidelines. I just followed what is used throughout
  this file. :)



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30630 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-05-05 01:31:01 +00:00
Jérôme Duval
0b218f6dd7 fixes gcc4 warning
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30628 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-05-04 19:08:27 +00:00
Axel Dörfler
e12b8d6ddf * Now also adds directories to the index (before only in non-recursive mode).
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30609 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-05-03 15:28:54 +00:00
François Revol
5db3b6c9b3 Actually no need to pass the NULL either...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30576 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-05-02 17:23:54 +00:00
Oliver Tappe
a0352959ac * followed advice by Rene to explicitly import the used std-classes instead
of simply importing the whole namespace - thanks for proofreading!


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30568 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-05-02 14:28:32 +00:00
Oliver Tappe
723383c0f4 Applied patch by PulkoMandy, adjusted and extended by myself:
* integrating most of the locale kit into the build (and image)
* removed LocaleBuild.h and _IMPEXP_LOCALE since that does not make
  sense for elf (which usually exports all symbols anyway)
* added a couple of locale kit related pseudo targets for convenience
Hey, some of that stuff already seems to work :-)

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30545 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-05-01 21:56:16 +00:00
Oliver Tappe
c3ac87e8fc * Copied imported OpenTracker Locale Kit files from the vendor branch
into their new homes (at least for now, might need some adjustment).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30540 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-05-01 19:23:59 +00:00
Axel Dörfler
88cfea9fc2 * Added a version of reindex that works under Haiku. Changes made to the
original version:
  - removed the BFS bug work-around to create two temporary files first; this
    work around is not needed in our BFS implementation.
  - improved error output.
  - remove attributes before rewriting them. This is needed as BFS won't update
    the indices anymore if the attribute has not actually been changed.
  - applied our coding style.
* This also fixes bug #3843.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30511 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-30 12:56:45 +00:00
François Revol
e963a92370 Add trash to the build. (no, not add the build to the trash!)
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30370 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-24 13:57:24 +00:00
François Revol
4f5d92c0d5 Fix bad args for VLC.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30356 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-23 21:17:06 +00:00
Ingo Weinhold
227fe7d34a * Scheduler/wait object listener:
- Moved scheduler listening interface to <listeners.h> and added more
    convenient to use templatized notification functions.
  - Added a listener mechanism for the wait objects (semaphores, condition
    variables, mutex, rw_lock).
* system profiler:
  - Hopefully fixed locking issues related to notifying the profiler thread
    for good. We still had an inconsistent locking order, since the scheduler
    notification callbacks are invoked with the thread lock held and have to
    acquire the object lock then, while the other callbacks acquired the object
    lock first and as a side effect of ConditionVariable::NotifyOne() acquired
    the thread lock. Now we make sure the object lock is the innermost lock.
  - Track the number of dropped events due to a full buffer.
    _user_system_profiler_next_buffer() returns this count now.
  - When scheduling profiling events are requested also listen to wait objects
    and generate the respective profiling events. We send those events lazily
    and cache the infos to avoid resending an event for the same wait object.
  - When starting profiling we do now generate "thread scheduled" events for
    the already running threads.
  - _user_system_profiler_start(): Check whether the parameters pointer is a
    userland address at all.
  - The system_profiler_team_added event does now also contain the team's name.
* Added a sem_get_name_unsafe() returning a semaphore's name. It is "unsafe",
  since the caller has to ensure that the semaphore exists and continues to
  exist as long as the returned name is used.
* Adjusted the "profile" and "scheduling_recorder" according to the system
  profiling changes. The latter prints the number of dropped events, now.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30345 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-23 13:47:52 +00:00
Oliver Ruiz Dorantes
620b8b6e4c Class name starts with uppercase/ style
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30336 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-22 20:59:17 +00:00
Stephan Aßmus
5be48305c2 Small cleanup.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30328 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-22 14:56:10 +00:00
Stephan Aßmus
2d294045c7 Add an extra option to isvolume to check if the underlaying partition is
perhaps read-only, while the volume appears to be writable because of the
filesystem overlays.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30327 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-22 14:45:29 +00:00
David McPaul
3b63cb8a3a style cleanup, hopefully no functional change
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30277 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-20 11:45:27 +00:00
David McPaul
98b956380c made some changes according to the intel programmers guide. Our get_cpuid needs changes
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30259 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-19 05:02:42 +00:00
Ingo Weinhold
1bb436e17f Accidentally removed char.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30251 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-18 21:47:15 +00:00
Ingo Weinhold
2a48ded78b Added a simple tool "scheduling_recorder" that records scheduling information
(as generated by the system profiling interface) to a file for later analysis.
Only the analysis tool is missing, yet. :-)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30245 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-18 17:41:46 +00:00
Ingo Weinhold
5b2f0f33f9 * Changed the interface of _kern_system_profiler_start(). The parameters are
passed in a structure now, so it is easier to extend it and ignore unused
  parameters.
* One can now select which system profiling events one is interested in.
* Added scheduling events to the system profiling interface. Those are pretty
  much the ones recorded when scheduler tracing is enabled. Still missing are
  the "wait object" events that allow to interpret what a thread is waiting
  for.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30243 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-18 17:35:28 +00:00
Ingo Weinhold
4452146628 Split into different source files. No functional change.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30237 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-18 10:49:53 +00:00
Ingo Weinhold
3c3d2b85cd * Moved the time_stats tool to src/bin/debug.
* Fixed some gcc 4 warnings.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30236 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-18 10:08:06 +00:00
Jérôme Duval
f1bd4cfe8c Patch from Raghu for 1st part of bug #2886. 'cd file' returns now "Not a directory".
The check is done in the same way in bash 3.2.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30232 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-17 21:06:07 +00:00
David McPaul
a56942d497 correct the model calculations for intel processors
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30231 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-17 20:59:14 +00:00
Ingo Weinhold
644ab95496 Added support for providing a command line also for the system profiling mode.
Just as in the other mode the command is started and profiling stops when the
command terminates.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30229 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-17 12:17:44 +00:00
Ingo Weinhold
f568799e1b Don't leak the Team objects for teams that are gone.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30228 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-17 11:40:03 +00:00
Ingo Weinhold
adb0d19d56 Declared the function pointer parameter as such, thus making gcc 4 happy.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30227 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-17 11:17:56 +00:00
David McPaul
718e31e37a display the DMA mode along with the theoretical transfer speed
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30226 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-17 10:09:04 +00:00
David McPaul
3da76c0bec added cache descriptions reported by Intel Atom processor
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30200 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-16 11:50:12 +00:00
Ingo Weinhold
1b9d2885d3 * Also pass the team arguments and thread names with the respective system
profiling events.
* profile: Avoid using get_{team,thread}_info() in common code paths. The
  system profiling mode is asynchronous, so the team or thread in question
  could already be gone.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30193 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-16 10:02:33 +00:00
Rene Gollent
464e95c43f gcc4 build fix.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30186 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-15 23:20:56 +00:00
Stephan Aßmus
44e3e828a8 Patch by Raghu Nagireddy: Implement the -q option for netcat/nc:
-q seconds   after  EOF  on stdin, wait the specified number of seconds
                    and then quit. If seconds is negative, wait forever.
Well done! Thanks a lot!


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30182 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-15 20:01:47 +00:00
Ingo Weinhold
a0320c161d Darn, should have been part of r30170 already.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30173 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-15 15:14:24 +00:00
Ingo Weinhold
1836e90993 * In exclusive mode we no longer stop searching when we have found an image
for a stack trace, if we haven't actually hit a symbol in the image. This
  way we don't get "unknown" image hits for PLT slots anymore.
* In system profiling mode add the kernel images to new teams. The mode should
  be usable now. Well, except maybe for the amount of data one gets.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30172 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-15 15:13:10 +00:00
Ingo Weinhold
afa231acb8 * Reorganized the image management. Introduced a SharedImage which knows the
symbols and is identified by name. Image does still represent a team-bound
  image, but it refers to a SharedImage for the symbols, now. This allows us
  to load the symbols for a shared object only once and share the data for all
  teams referring to it.
* Made the area used for system profiling writable. "-a -f" would segfault
  since the return addresses are sorted in-place.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30170 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-15 13:41:40 +00:00
Ingo Weinhold
e52c3559d3 * Renamed debug_delete_image_symbol_iterator() to
debug_delete_symbol_iterator().
* Added debug_create_file_symbol_iterator() which opens a shared object file.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30162 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-14 18:03:24 +00:00
Axel Dörfler
199f33248d * Removed SECTOR_SIZE in the read-only part of the intel partition scanner;
however, it's still used in the write part.
* Made the read-only code block size agnostic. Only tested with an Apple
  iPod so far, and it recognizes its partition fine now. Next test on real
  hardware.
* Cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30155 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-14 12:33:01 +00:00
Ingo Weinhold
1e855c376c * Patch by Fredrik Ekdahl: gcc 4 build fixes (missing headers).
* Added missing header for mountvolume.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30135 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-12 09:57:26 +00:00
Ingo Weinhold
0f37915687 * debug_create_symbol_lookup_context() gets a team ID instead of a
debug context now. That's all it needs.
* Added the option "-a" to the profile command line tool. It triggers profiling
  of the whole system. There are still some issues, particularly image related
  ones.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30129 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-11 22:59:31 +00:00
Axel Dörfler
1f25254a3f * Fixed the non-working volume update when using the mouse wheel - only
the slider position was updated, not the actual volume.
* Use InvokeNotify() for wheel changes so that we correctly notify listeners.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30084 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-09 21:40:35 +00:00
Axel Dörfler
9cfc4c2ff8 * The slider now snaps to 0 dB when crossing that to ease finding the maximum
volume without distortion.
* Added about window.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30073 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-09 17:19:38 +00:00
Axel Dörfler
4e0b8ffdd6 * As Stephan pointed out, the roster will be NULL if the media server is not
running. Thanks! That's just another thing we should improve in R2.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30062 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-09 11:45:50 +00:00
Axel Dörfler
bc608ebf93 * The volume now listens to parameter changes, and adapts itself automatically.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30061 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-09 11:26:19 +00:00
Axel Dörfler
3d2abd1bc8 * The mixer node is now exported.
* The node is no longer allocated separately.
* Cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30060 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-09 11:25:23 +00:00
François Revol
037d4a2f46 Missing include for strcmp.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30035 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-08 15:45:09 +00:00
François Revol
558916824d Fix gcc4.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30034 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-08 15:35:45 +00:00
Axel Dörfler
ab9873555a * Restructured the sources a bit, renamed SliderView to VolumeControl,
VolumeSlider to VolumeWindow.
* The VolumeControl is now a replicant, and be be dragged to the Tracker.
* Hence, moved all volume control stuff from VolumeWindow into the
  VolumeControl class directly.
* Changed menu a bit. Note that controlling the physical output currently
  does not work, but that's a problem of the media node in question (probably
  the multi audio add-on, I'll have a look).
* Added a small delay when clicking on the slider directly before the window
  is hidden, so that you'll get some feedback of your action.
* Added --add-volume, and --volume-control options to "desklink", the former
  adds the volume control icon to the deskbar, the latter opens the volume
  control window directly.
* Further cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30031 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-08 14:59:25 +00:00
Ingo Weinhold
ff81d306d4 * Moved the optional package dependency definitions into the new
build/jam/OptionalPackageDependencies and include it earlier (before the
  Jamfiles).
* Introduced build/jam/OptionalBuildFeatures which is supposed to do the setup
  for optional build features that need it.
* Renamed USE_SSL to HAIKU_BUILD_FEATURE_SSL and made it more intelligent.
  The OpenSSL optional package is downloaded and unzipped automatically when
  enabled. Switching between enabled/disabled HAIKU_BUILD_FEATURE_SSL is
  handled gracefully -- the concerned components are built in separate
  subdirectories. Adding the OpenSSL optional package to the image also enables
  HAIKU_BUILD_FEATURE_SSL.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30021 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-08 10:07:17 +00:00
Axel Dörfler
b494a17f1c * Replaced the volume slider with one looking just like any other slider.
* This is still work in progress, though.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30014 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-07 23:35:43 +00:00
Axel Dörfler
fd0803f300 * Added RemoveTail() method.
* Renamed DoublyLinkedList::Size() to Count(), since it actually counts the
  items (ie. O(n)).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29979 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-06 21:06:19 +00:00
François Revol
1a7cbee5c2 - cleanup
- fix non UTF-8 in comments
- fixed unix priority scaling


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29946 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-05 18:18:27 +00:00
François Revol
def8fff107 Replace hardcoded defines by substrings from $(HAIKU_GCC_MACHINE).
OSTYPE is still set to BeOS, I know some scripts check for it... will need to be fixed.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29926 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-05 10:51:04 +00:00
François Revol
dc54109d98 Install bash as bash, and symlink sh to it, it's how it's done on other platforms and more logical.
Btw those defines here are x86 only... FIXME


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29925 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-05 09:14:21 +00:00
François Revol
8dd71c2b23 Implemented UnurlString() and used it. Now you can fully use query: as in
query://%28%28MAIL:to==%22%2ahaiku%2a%22%29%26%26%28BEOS:TYPE==%22text/x-email%22%29%29 :)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29903 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-04 16:31:33 +00:00
Philippe Houdoin
d38e00569e Made errors reported on stderr, not stdout.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29900 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-04 16:13:15 +00:00
Axel Dörfler
ded432494c * Updated to contain all of the directory constant changes made so far.
* Some cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29896 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-04 12:25:36 +00:00
Axel Dörfler
ef908ae4b9 * Fixed locale default directory (was wrong before my patch as well, though).
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29882 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-03 18:31:59 +00:00
Axel Dörfler
317bd7dda3 * Changed directory structure as suggested on the mailing list.
* Made the TimeZoneView less error prone, and also actually use Haiku code (the
  previous check didn't work since it used #if, not #ifdef).
* Also took the liberty to rename our boot loader to haiku_loader, since I had
  to update the nasm binary anyway. Updated the assembly sources to nasm 2.0.
* I haven't found where the synth location in the MIDI code is specified,
  though.
* Also, NetBootArchive, and FloppyBootImage haven't been updated yet. Will do
  so next.
* Some optional packages still put their license to beos/etc/licenses. I didn't
  update them yet, as we'll probably do so anyway at some point. Also, I think
  we might want to introduce a common/data/licenses instead for those.
* If you encounter any problems, please tell!


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29876 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-03 09:02:44 +00:00
François Revol
48bd26db93 The telnet command handles an alternative port just fine, so pass it if present.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29831 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-31 16:07:18 +00:00
Ingo Weinhold
328029e178 Patch by Alexander von Gluck (kallisti5) to get the PPC build going again
(mostly at least). Also disables -Werror for the binutils, but those should
be fixed eventually.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29804 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-30 15:00:10 +00:00
Karsten Heimrich
52bc210d99 * add flurry to the image
* seems we hit a race during shutdown, thus the BGLView would already be delete
  by unload_add_on, crashing the screenblanker (tested with several GL saver)



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29793 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-29 20:29:53 +00:00
Stephan Aßmus
6fa92ae021 It's that time of the year again, in which people fix bugs in dstcheck... :-)
Now, it came up just fine, only it was burried behind Tracker windows.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29771 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-29 08:16:26 +00:00
Stephan Aßmus
35f1521039 Print the help text when the user just calls rc with no arguments.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29764 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-28 20:03:43 +00:00
Stephan Aßmus
1719f7a63e Patch by JiSheng Zhang: Update the FireWire stack and tools to the current
FreeBSD version (r188928). Note to JiSheng: I did have to fix fwcontrol.c line
111, looked like a last minute change to me.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29752 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-28 10:01:21 +00:00
Rene Gollent
ad6da7913a Set the initial level based on where we first click. Should fix ticket #3586.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29625 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-20 18:52:57 +00:00
Ryan Leavengood
0237261547 Fix #3577: allow the mouse wheel to change volume in the DeskBar widget. Mouse
up increases volume, mouse down decreases it, by 5 at a time.

One issue is you must have the pointer directly over the slider for this to
work. I wonder if the B_POINTER_EVENTS in SetEventMask should also apply to
mouse wheel events?


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29620 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-20 03:26:00 +00:00
Stephan Aßmus
432ce3738d * Tracked down the mkdepend tool which Ingo used in his updated makefile-engine
which auto-generates dependencies. It was written by Lars Duening for BeOS
  and uses libglob, which is also part of make. To re-use libglob and since
  make is already part of the Haiku tree, I added mkdepend to the bin tools.
* Added Lars Duening's copyright to AboutSystem.
* Added skeleton makefile and makefile-engine to data/develop.
* Added mkdepend and makefile-engine files to the Development optional package.
  It could be argued to move the make bin command there too, from it's current
  location in the HaikuImage file. However, make could be useful to always
  have available.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29609 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-19 12:19:41 +00:00
Rene Gollent
440ef69c6b Small oversight: clicking outside of the slider should also dismiss it. Thanks Stephan!
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29569 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-17 12:52:32 +00:00
Rene Gollent
12c0fc92e1 Somewhat adjusted the behavior of the volume slider. It now stays up when initially clicked and requires a second mouseclick to begin tracking it. This prevents abrupt volume changes as would be seen if you had previously turned down the volume and then invoked the volume control again (it would immediately jump to whatever level the mouse cursor happened to be at when the slider popped up). This fixes ticket #3570.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29568 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-17 01:34:50 +00:00
Axel Dörfler
49cc2c3bf8 * Style police at work.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29531 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-14 21:07:54 +00:00
Ryan Leavengood
e23a519b2a BHandler deletes the BMessageFilters added to it, so this delete in the
destructor of ScreenSaverWindow was not needed.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29522 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-14 16:35:41 +00:00
Ryan Leavengood
0834f79c8c An Esc pressed while the password window is showing will close it and resume
the screen saver.

I added this to the filter in the ScreenSaverWindow instead of the
PasswordWindow to avoid having to add another BMessageFilter. It already is
getting all keydowns anyhow.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29521 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-14 16:25:46 +00:00
Ryan Leavengood
04caac4ad1 Renamed the new "_fake" mouse moved boolean to "be:transit_only", as suggested
by Axel.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29519 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-14 15:32:52 +00:00
Stephan Aßmus
f7ab252f21 Out strerror_t returns int, not char. Fixes ticket #3553. Thanks, Adrian!
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29499 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-13 21:16:08 +00:00
Ryan Leavengood
d39c5354b8 - Use PostMessage instead of a BMessenger to send a message to the window from
the app.

- Use the new "_fake" parameter to detect the initial mouse moved sent by
	app_server instead of a BMessageRunner and delay.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29493 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-13 17:22:54 +00:00
Ryan Leavengood
cb6a084f20 Fixed a bug in the screen saver code that could cause someone to get locked out
of their machine: if the password check is turned on, and the password window
is shown but times out (when the screen saver starts again after the standard
delay), the input filter never knew about this and would never try to end the
screen saver again.

The solution is to take the logic for turning off the screen saver out of the
input filter and put it in the screen blanker itself.

Also while working in the input filter I removed some debugging and a TODO that
I think cannot be fixed.

In the screen_blanker the exit after loading the settings file was removed
since the default settings now work for the screen_blanker.

Plus obviously code was added to handle exit upon user input as well as the
timing out of the password window.

If anyone has a better solution for the 250ms timeout to ignore initial mouse
moves, let me know.

Also I think the new calls should be nothrow, but I am not sure what the rule
is for that.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29488 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-13 04:51:52 +00:00
Ryan Leavengood
7a9cfbf50c Oops, the workspace flag is another parameter, not part of the window flags.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29483 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-12 19:27:17 +00:00
Ryan Leavengood
41ac8755ce The screen saver window was not shown on all workspaces, which means one could
essentially defeat the password window by just changing workspaces.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29482 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-12 19:11:52 +00:00
Jérôme Duval
1a4140c195 * Patch from PulkoMandy: Add resolution listing to "screenmode"
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29449 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-08 20:29:07 +00:00
Jérôme Duval
6b14439ceb * Apply patch from monni for bug #3453: add https support to wget
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29437 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-08 13:42:03 +00:00
Jérôme Duval
ca5c5de225 * Apply patch provided by Monni for bug #3514
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29399 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-04 21:00:39 +00:00
François Revol
3b40448410 added cache/TLB descriptors from Intel Application Note 485. Patch by Christian Packmann.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29337 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-27 16:50:25 +00:00
Oliver Ruiz Dorantes
84a2dcb0eb Discoverability can be set through preferences now
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29324 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-26 20:52:14 +00:00
Ingo Weinhold
1e525344d6 * Automatic white-space cleanup.
* Handle the new B_DEBUGGER_MESSAGE_HANDED_OVER and pick the "causing thread"
  as our first victim. Fixes #2956.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29303 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-23 23:02:28 +00:00
Jérôme Duval
e2c33fb995 * fix gcc4 build
* some style cleanup


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29290 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-22 18:26:19 +00:00
Jérôme Duval
b824d54c1a fix linking with stdc++
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29287 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-22 15:26:17 +00:00
Bruno G. Albuquerque
ae2bf46029 The Spam DBM may not have the best interface in the world but it is one of the best anti-spam tool I saw so I am adding it to the image (in fact the interface with changes by darkwyrm looks worse than the original one, IMHO).
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29284 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-22 13:45:40 +00:00
François Revol
c586ab3746 Fix columns. Fix style.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29274 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-21 18:16:36 +00:00
François Revol
69fc3a4e4d Update TODO
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29267 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-20 23:48:20 +00:00
François Revol
bc86dd34b8 Patch by Bjoern Herzig, adds -a option, some cleanup.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29266 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-20 23:37:43 +00:00
Axel Dörfler
e333f75144 * Removed left-over debug output.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29218 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-15 17:28:49 +00:00
Michael Lotz
576cd2495d * Compacted some of the code and inlined the DumpRoster implementation into the
class as it's so little code.
* No need to allocate the roster on the heap.
* Add /dev/bus/usb to the device location to make it more clear.
* Add the device location to the non-verbose output as well.
* Put the manufacturer and product strings into quotes to make it clearer that
  those are just strings. Avoids just blank output when a device doesn't provide
  those strings.
* Remove trailing whitespace.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29187 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-12 23:05:57 +00:00
Rene Gollent
1e5a02e76f Renamed usb_dev_info to listusb and made it more useful:
By default it now presents a relatively concise list of USB
devices found on the bus, with an optional -v flag to dump
exhaustive detail. It still also takes an optional device 
parameter in case you only want information for a particular 
device.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29185 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-12 00:41:05 +00:00
Rene Gollent
e7a0fd93e2 Fix uninitialized string that was causing the deskbar volume control replicant to crash randomly.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29150 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-07 16:17:38 +00:00
François Revol
ae05e8e720 Return native error codes.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29133 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-04 12:59:41 +00:00
Michael Lotz
d0eaec3086 Fix more operator precedence errors. These do not do what you'd expect at first
sight. The comparison operator takes precedence over the binary ones.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29121 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-01 23:24:55 +00:00
Michael Lotz
c33667d400 Fixing warnings under GCC4 in preparation to enable -Werror there as well:
* Replaced the use of offsetof() for structs that aren't PODs. Add a
  offset_of_member() macro to util/khash.h because that's what it's used for
  in our cases.
* Change the signature of add_debugger_command()/remove_debugger_command() on
  GCC > 2 to avoid the depricated conversion from string constants to char *.
* Adding some "suggested" parenthesis. I know that not everyone likes that, but
  it pointed out at least one bug that is fixed here as well.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29113 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-01 20:48:02 +00:00
Michael Lotz
3509dd95c0 Workaround that should not break on bison 2.3.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29086 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-29 02:26:22 +00:00
Michael Lotz
28ff07ab3c Revert the ftpd compile workaround as it apparently breaks on bison 2.3. Wonder why I got a report that it worked...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29083 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-28 22:57:02 +00:00
Michael Lotz
3fcc6b3abe Temporary fix for compilation issue on bison 2.4. See ticket #3137.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29019 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-25 21:15:28 +00:00
Michael Lotz
bfa2519c44 Explicit linking against libsupc++ doesn't seem to be necessary here (works with
GCC2) and produces multiple definitions with GCC4. Please yell if this breaks
cross-compiling.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29004 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-24 11:25:43 +00:00
Michael Lotz
fb3e35fcec Fixing all headers/namespaces/name lookup problems that hinder a GCC 4.3.2
build. I sure hope that this doesn't break the build for anyone else.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28992 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-23 03:05:15 +00:00
Michael Lotz
0644703068 Having the first argument to main() non-int is an error in GCC 4.3.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28990 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-23 02:07:37 +00:00
Michael Lotz
aacebf533d Having the first argument to main() non-int is an error in GCC 4.3.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28989 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-23 01:55:40 +00:00
Michael Lotz
f89856e548 Having the first argument to main() non-int is an error in GCC 4.3.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28988 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-23 01:49:32 +00:00
Rene Gollent
bd98bd9555 Slightly tweak the volume slider's tracking logic to keep attention on the mouse even if it exits the view. This allows click dragging without having to be quite as precise. Fixes ticket #3317.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28962 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-20 01:07:42 +00:00
Axel Dörfler
0d585fc128 * Build fix.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28898 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-14 13:55:14 +00:00
François Revol
0420c39114 typo
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28864 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-10 01:03:06 +00:00
François Revol
ce7a391ee0 Remove unused variable.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28863 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-10 00:40:37 +00:00
Salvatore Benedetto
4a39c23620 * Reworked ps command a bit as its previous output was just messy.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28835 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-12-31 16:47:45 +00:00
Axel Dörfler
fd95a7e124 * The net_server now accepts messages from the outside that want to configure
an interface (I don't remember why I didn't want this earlier, but well).
* ifconfig now has an auto-config option that will trigger DHCP.
* Also, it will now remove the IFF_AUTO_CONFIGURED and IFF_CONFIGURING flags
  if an address is specified (any on-going auto-configuration should check for
  these and abort if they aren't there anymore).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28831 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-12-28 22:18:21 +00:00
François Revol
e64095e728 Handle passing start and end block
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28819 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-12-21 23:41:20 +00:00
Oliver Ruiz Dorantes
c1990799c0 - Show the class of device(for local and discovered ones).
- Listeners do not need to inform about the LocalDevice handling to the Discovery Agent anymore.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28810 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-12-13 23:47:10 +00:00
François Revol
1872ef33ab Add to build, wow it even builds without a single warning :)
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28767 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-12-03 02:46:39 +00:00
François Revol
01f3ea96af YetAnotherUselessDebugToolIWrote
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28766 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-12-03 02:38:26 +00:00
Ithamar R. Adema
672ed10926 Update iasl bin tool to acpica-20080701
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28763 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-12-02 23:42:13 +00:00
Jérôme Duval
f4b68d125d updatedb build changed a bit
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28751 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-29 21:22:46 +00:00
Jérôme Duval
0f4ef4c46e updated findutils to 4.2.33 (sorry, not latest).
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28750 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-29 20:41:23 +00:00
François Revol
72511e46a9 Add options to specify block size and number of blocks to try at once, as with the linux version.
Read 64 blocks of 1024 bytes by default.
Use getopt().


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28725 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-24 21:55:14 +00:00
François Revol
5b07eaa9b5 An old tool to detect bad blocks on disk. Will need that RSN :^)
Needs some spicing up.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28722 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-23 01:00:26 +00:00
Axel Dörfler
73991edfcd * Removed marge artifacts as found by kaliber in ticket #3114, thanks!
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28595 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-10 16:01:37 +00:00
Ingo Weinhold
2374c3d59e * Use a temporary buffer to create the output for function invocation.
* Replaced debug_printf() invocations by a macro, which is set to
  ktrace_printf() by default.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28581 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-09 18:21:31 +00:00