1029 Commits

Author SHA1 Message Date
Axel Dörfler
fc1658382d Fixed a bug that I introduced with revision 1.9 when fixing the selection
deletion: you just couldn't delete over a ' ' with backspace...
Merged B_BACKSPACE and B_DELETE handling again.
Applied suggestions made by Stefano, like using ByteAt(x) over Text()[x].


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10464 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-15 14:03:56 +00:00
François Revol
d24299a52d update doc url since bedriven is no more
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10461 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-14 23:37:38 +00:00
François Revol
bcc306b637 10000l do return somethng from main (how the hell did I forgot that ? I always do it usually) :)
Also dump some usage for --help


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10460 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-14 23:36:03 +00:00
Jérôme Duval
2830eed70b Added dstcheck.
It is run once at system startup after app_server and co are running.
Its job is to make sure the system clock took daily saving time into account.
To do this, it compares DST from a config file with DST from current RTC info.
If they differ, a time-updated alert is showed to let the user choose what to do.
A system call was used on R5 to get the current RTC info.
Unless someone comes with a good reason to still use a syscall, it should stay as is.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10455 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-14 16:28:23 +00:00
Axel Dörfler
c838911b01 Improved error handling, error messages now go to stderr, the (real) program
name is now always prepended.
Now prepends a "name=" infront of the query predicate in case BQuery::Fetch()
returned B_BAD_VALUE, so we accept things like "query foo" just like Be's
version.
Also improved the usage text information.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10408 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-12 23:19:48 +00:00
Axel Dörfler
247c75991c The block selection is now drawn incrementally if possible which removes flicker.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10380 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-09 02:34:35 +00:00
Nathan Whitehorn
def182781d Fixed spam server launch problem
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10378 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-08 23:34:51 +00:00
Axel Dörfler
1bcd71834b I can even mess up command line parsing :)
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10376 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-08 03:51:25 +00:00
Axel Dörfler
19ab5531d8 messages.h no longer exists.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10375 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-08 03:46:26 +00:00
Axel Dörfler
2ae45f0c5f Brought "addattr" command into shape, and got rid off a lot of
weird stuff - and libbe.so; it now uses the attribute functions
as exported by libroot.so :)
Improved handling of boolean values, improved error messages a lot.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10374 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-08 03:44:30 +00:00
Axel Dörfler
a3d814e271 "catattr" no longer needs additional libraries.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10372 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-08 01:34:45 +00:00
Axel Dörfler
983e69d5dd Improved error messages (and how they are done).
No longer locks the file during attribute retrieval.
No longer needs libbe.so.
Added support for some additional types.
Will no longer try to read in a 4GB attribute - at max, it will read
64 kB from an attribute. Also changed output style of the raw data
type - please contact me if you desperately think we should revert
that back (ie. in case the old output was actually of use for something).
As the original author suggested, we're now using isgraph() to improve
the character preview of the raw data.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10371 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-08 01:34:09 +00:00
Axel Dörfler
b075015208 Removed unneeded include.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10370 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-08 01:28:35 +00:00
Axel Dörfler
4e0e3bf35d Some cosmetics. The string for unknown types no longer tries to print
unprintable characters, but replaces them with '.'; when there is more
than one unprintable character in the type code, it will show the hexcode
instead.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10367 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-07 16:10:03 +00:00
Axel Dörfler
8a9c92207f Minor fix: the return value of BNode::GetAttrInfo() was not checked.
Now understands a lot more types than before.
Accepts "--help" and "-h" on the command line to print out usage info.
Prints out how many bytes the attributes add up to.
Instead of printing out the hex value, the attribute type is now
printed as %c%c%c%c 4-character tupel.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10363 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-07 02:31:03 +00:00
Nathan Whitehorn
69d6550b12 Fixed the spam filter so it works correctly now.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10362 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-07 01:14:05 +00:00
Axel Dörfler
7c012c2316 Accidently used level 2 cache format to print out level 1 instruction cache
on AMD and other CPUs - thanks to BiPolar for reporting this!


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10354 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-03 08:25:34 +00:00
Jérôme Duval
7335fda5b4 Everyone should have read chgrp instead of chgroup :)
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10342 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-01 17:37:05 +00:00
Jérôme Duval
08f17bb51b Everyone should have read chown instead of chmod :)
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10341 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-01 17:31:06 +00:00
Axel Dörfler
097fa44066 Now also prints out power management information for AMD CPUs if present.
For Intel CPUs, the cache code 0x40 is now handled manually, as it changes
its meaning depending on the cpu type.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10333 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-01 07:29:12 +00:00
Axel Dörfler
1ec6a65f39 No longer prints out the extended processor signature on Intel CPUs as
it's only reserved but not defined or used for those.
If you have a stupid BIOS, the name string might not have been set; this
is now supported, and the standard vendor string is used in that case.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10332 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-01 07:00:50 +00:00
Axel Dörfler
2e507eba4a Factored out printing the processor signature.
The processor signature now correctly handles the extended family/model fields.
The cpuid 0x80000001 field is actually the same as cpuid_info::eax_1, so
dumping it now behaves in the same way, too.
Added printing of Transmeta specific features.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10331 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-01 06:35:05 +00:00
Axel Dörfler
b99d92939a Fixed some minor bugs that made it into the last version; for example
the 0x80000001 generation/model/stepping was displayed incorrectly.
Only the new features in cpuid 0x80000001 are printed, added support for
No-Execute ("NX") and Long Mode ("64").
Improved non-Intel TLB display, added page sizes, 2nd level cache is now
also displayed correctly (unlike the BeOS version which has a wrong
associativity).


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10330 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-01 06:12:38 +00:00
Axel Dörfler
78ba30ed0e sysinfo needs private/shared headers.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10329 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-01 04:50:06 +00:00
Axel Dörfler
f0e5f76de9 Almost rewrote sysinfo: it will now print out more information, and that
information is also visually more appealing.
It now also uses the private/shared/cpu_type.h header to get the CPU string.
Determining the availability of the extended cpuid info was broken - whoever
had problems with the previous "change_extended = 1" should test again, thanks.
Cleaned up.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10322 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-01 03:51:38 +00:00
Axel Dörfler
d86cadcdb3 Is now using the CPU string identification from private/shared/cpu_type.h.
Adapted to match our style guide better.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10320 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-01 03:43:08 +00:00
shatty
2506bbb6f3 utilize SELECT_UNAME_ETC_LIB
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10283 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-11-29 00:19:29 +00:00
Axel Dörfler
5aa1fee8f3 Renamed _kern_set_tzspecs() to _kern_set_timezone().
Minor cleanup.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10255 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-11-26 15:07:11 +00:00
Axel Dörfler
9b9e67a199 Ported over safemode to our kernel.
_kern_get_safemode_option() just returns the driver_settings parameter
string, so it has to be evaluated by the caller.
Also, "safemode" returns 1 if safemode is enabled.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10236 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-11-25 18:34:45 +00:00
Axel Dörfler
a5cceb23c2 Ported over to our own private API - it's now functional under the Haiku kernel.
Improved argument parsing code - you no longer have to specify each option separately.
Improved time parsing for the "-d" option: it's now possible to add a unit to the
time value ("m" or "s"), and you don't have to add a space anymore (ie. -d5 will
work, too).
Cleaned up the source file to better match our style guide, and look better overall.

Also added a comment about the usefulness of some of the options here - I think
we should remove the alert stuff again; one requester (in Roster) is really enough
for my taste.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10234 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-11-25 18:04:08 +00:00
Jérôme Duval
d35e7ce4c2 clock is now local by default
timezone is now set even if not rtc time setting is found


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10218 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-11-24 23:17:34 +00:00
Jérôme Duval
fd575d8737 added a symlink for more
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10210 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-11-23 17:12:51 +00:00
Jérôme Duval
f92e8b3361 added a clockconfig bin tool
it is only tested on R5, but should make its way on Haiku too


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10178 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-11-22 17:26:28 +00:00
shatty
7dda95376c use shared headers
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10159 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-11-22 04:43:21 +00:00
shatty
0c1783a5a5 suppress warnings on imported code
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10157 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-11-22 04:24:04 +00:00
shatty
41c695ceea build resources once, supress warnings for imported code
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10156 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-11-22 04:17:21 +00:00
shatty
d68a1a0505 supress warnings on imported code
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10155 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-11-22 04:13:50 +00:00
shatty
41e0a8a89a address compiler warnings
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10154 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-11-22 04:11:24 +00:00
shatty
9e17ced40d suppress warnings on imported code
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10150 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-11-22 03:03:35 +00:00
shatty
a42857f183 suppress warnings in imported code
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10147 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-11-22 02:47:41 +00:00
shatty
f23d8db821 extract common elements and build once
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10145 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-11-22 02:31:59 +00:00
shatty
3a83097201 address compiler warning
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10139 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-11-22 01:17:56 +00:00
shatty
4ba4c005d2 suppress warnings for imported code
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10138 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-11-22 01:15:08 +00:00
shatty
d13f0c7543 address compiler warning
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10137 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-11-22 01:03:18 +00:00
shatty
a14ccd825e address compiler warning
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10123 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-11-21 18:29:56 +00:00
Waldemar Kornewald
7b79abd0ec Forgot to commit some files.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10114 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-11-21 12:47:40 +00:00
Waldemar Kornewald
9c15eafc5d Work in progress. Untested.
All ppp_up instances are now maintained by KPPPManager.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10113 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-11-21 12:46:41 +00:00
shatty
0e2d20ebd5 address compiler warnings
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10108 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-11-21 09:39:51 +00:00
shatty
e6744e874c compile resources only once for all tar binaries
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10107 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-11-21 09:38:02 +00:00
shatty
ca49cc71de compile resources only once for all zip binaries
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10106 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-11-21 09:36:49 +00:00