Commit Graph

406 Commits

Author SHA1 Message Date
Axel Dörfler
b926763e09 Partial backport of r10356: no longer preallocates space for attributes,
attribute directories, and symlinks.
This reduces the space usage of the image created by makehdimage quite
a bit already (dropped from currently 56 MB to 34 MB).
The core of r10356, the fix for the preallocation memory leak, however,
has not been backported (it would probably save another 5 MB on the final
image).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12797 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-05-24 11:04:10 +00:00
Axel Dörfler
36cb9bac61 Attribute directories must have the S_IFDIR flag set, attribute files
the S_IFREG flag. The missing flags caused the original BFS to crash
on our files.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12796 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-05-24 10:38:59 +00:00
Axel Dörfler
367861b645 This fixes the bfs_shell build under Linux: replaced B_OK with FS_OK in
tracker.cpp.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12552 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-05-03 02:34:32 +00:00
Axel Dörfler
718b5114e0 This should fix the build after all the kernel/system renaming.
If anything is still broken (and was not before :)), please shout.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12361 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-04-13 13:59:17 +00:00
Michael Lotz
a039ddd972 Replacing more broken binary resources with rdefs.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12303 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-04-11 23:10:13 +00:00
Axel Dörfler
28fb0f9857 Added a very simple mkindex command - can only create string indexes for now
(and added support for that function in the emulated kernel).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@11951 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-22 03:08:32 +00:00
Axel Dörfler
6557584901 Made some kernel tests build again (that didn't work anymore since I moved
some pieces around). There might be more left, though.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@11939 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-21 17:38:22 +00:00
Ingo Weinhold
f8e5453f2b Added a small program for testing unblocking on close and select support. Not quite exhaustive and tests for ECHO mode are missing, since I couldn't figure out how to turn it on.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@11932 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-20 22:35:05 +00:00
Jérôme Duval
f28587e165 removed .cvsignore files
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@11920 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-20 12:31:46 +00:00
Ingo Weinhold
01203fdf42 Made a bit more compliant to the shell `cp':
* When the target is a symlink, it is tried to be resolved before making
  the decision what to do.
* If the (resolved) target is a file and the source is a file, we don't
  fail anymore, if `-f' wasn't specified. We truncate the target file
  instead and copy the source data into it.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11683 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-11 17:52:29 +00:00
Ingo Weinhold
2c05bc8a8d Move to_platform_open_mode() to stat_util.cpp/h and made it available to other source files. It has little to do with stat data, but it fits with the other conversion functions at least and I found no better place.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11682 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-11 17:48:21 +00:00
Ingo Weinhold
6ce30cc809 Made xcp the default cp/copy command. The code for it is still there, for it is also used in other tests.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11681 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-11 17:45:59 +00:00
Axel Dörfler
3380da1e1f Another small improvement to how things build as suggested by Ingo.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11631 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-09 14:43:42 +00:00
Axel Dörfler
7f67a70cfe Now builds under Dano/Zeta as well.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11619 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-08 12:44:03 +00:00
Axel Dörfler
fa900c88f7 Fixed warnings.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11618 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-08 12:43:15 +00:00
Axel Dörfler
3f687b627a mkbfs now also writes a standard boot block to disk (works for images only).
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11617 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-08 12:29:09 +00:00
Axel Dörfler
9fcf97f229 Added a binary copy of BFS's boot block code (as used in BeOS). This will
be used by our R5 mkbfs replacement for now, until someone replaced that
boot loader code :)


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11616 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-08 01:39:44 +00:00
Ingo Weinhold
61f6087c2a Define _GNU_SOURCE for GNU extensions.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11602 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-06 13:42:17 +00:00
Ingo Weinhold
9c523f7e48 * Added source for scripting support under Linux.
* Define _GNU_SOURCE for GNU extension.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11601 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-06 13:40:54 +00:00
Ingo Weinhold
0adb8b09ca Implemented fs_shell scripting under UNIX using UNIX sockets. Refactored
the platform independent code out of fs_shell_command_beos.cpp.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11600 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-06 13:39:17 +00:00
Ingo Weinhold
58183b99ff * dirent::d_dev is not POSIX. Use it only under BeOS.
* Make return value of implementations of Directory::GetNextEntry()
  match the base class version.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11599 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-06 13:36:25 +00:00
Ingo Weinhold
19de31b510 B_OK -> FS_OK
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11598 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-06 13:33:25 +00:00
Ingo Weinhold
76a14666e0 * As read_pos() and write_pos() are supposed to be platform functions,
they return the respective error codes.
* Fixed the open mode conversion function.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11597 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-06 13:32:33 +00:00
Ingo Weinhold
7d0617a836 Er, the last change was quite wrong. Correctly define O_NOTRAVERSE to O_NOFOLLOW, if available.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11596 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-06 13:31:26 +00:00
Ingo Weinhold
cc13340e9a Fixed struct stat conversion functions for non-BeOS.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11595 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-06 13:09:50 +00:00
Ingo Weinhold
16157ab59e ioctx::lock was not initialized properly.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11594 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-06 13:08:58 +00:00
Ingo Weinhold
875d890122 O_NOTRAVERSE is called O_NOFOLLOW under Linux.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11593 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-06 13:07:41 +00:00
Ingo Weinhold
6ff9fee56f Improved the output in case the command failed.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11591 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-06 00:13:39 +00:00
Ingo Weinhold
a34fce7356 Rewrote the mkdir command to support option -p and multiple directories.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11590 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-05 21:37:09 +00:00
Ingo Weinhold
6bc2ff3471 Reverted the kludge introduced to wrap the build platform fstat() and
switch to Axel's hack to just redefine the critical functions via macro
definition in the Jamfile.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11589 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-05 21:01:56 +00:00
Ingo Weinhold
0bd9d4d1c0 Added new source files xcp.cpp, path_util.cpp, stat_util.cpp.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11588 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-05 20:59:47 +00:00
Ingo Weinhold
4a91298cbb * Use our open mode flags and seek modes instead of the build platform
ones.
* Added listattr command.
* Added cd command. It can change the CWD of the emulated as well as of
  the host OS (prefix `:').
* Changed do_dir() to print symlinks with their target.
* Rewrote the rm command. It now support the options -r and -f
  and multiple files.
* Rewrote the symlink command (and renamed it to link, alias ln). It now
  supports creating hardlinks and understands the options -s and -f.
* Added command xcp, with support for options -r, -f, -d, and pretty
  close approximation of the shell command cp, save for the fact, that it
  copies attributes and can freely copy in the emulated and host OS
  (and between them, of course; prefix `:').

Now it should be possible to change makehdimage to use a scripted
bfs_shell instead of UserlandFS to build a HD image.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11587 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-05 20:58:58 +00:00
Ingo Weinhold
c5126c5985 * Write buffers should be const.
* Added sys_stat_attr().
* Added sys_open_attr_dir(). Extended the directory functions to be able
  to deal with attribute directories.
* Init the current directory, so we can use it (the support is there
  already).
* Use our open modes instead of the platform ones.
* Added O_NOTRAVERSE support to sys_open().


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11586 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-05 20:45:45 +00:00
Ingo Weinhold
e19f027e30 Change into the root dir of the FS directly after mounting.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11585 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-05 20:39:02 +00:00
Ingo Weinhold
f64fcd3794 attr_info -> my_attr_info
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11584 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-05 20:38:01 +00:00
Ingo Weinhold
3eb4c2e0cd We also need to take care of the open flags, seek constants and the
BeOS specific structure attr_info (it contains an off_t).


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11583 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-05 20:37:04 +00:00
Ingo Weinhold
edbadbb0f3 * The build platform fstat() wrapper moved into stat_util.cpp/h.
* Added wrappers for open(), close(), and read_pos().


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11582 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-05 20:34:39 +00:00
Ingo Weinhold
d29e55d8ec Functions for converting between the build platform and emulated platform stat structures.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11581 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-05 20:32:40 +00:00
Ingo Weinhold
740f995468 Paths related utility functions.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11580 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-05 20:31:39 +00:00
Ingo Weinhold
2645d1f338 Use the fstat() wrapper only on non-BeOS systems.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11571 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-04 00:37:10 +00:00
Ingo Weinhold
d139bc986a The st_rdev field was missing in our my_stat structure, so it wasn't binary compatible with R5 struct stat.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11570 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-04 00:36:14 +00:00
Ingo Weinhold
c64ead1580 Accidentially gave a empty commit message when committing the changes to
the bfs_shell related files:
* Fixed a couple of `friend without struct/class' errors gcc 3
  complains about.
* Several adjustments do make the FS add-on build in a BeOS-like
  environment. E.g. the fs_shell header "myfs.h" is not longer included.
  For "cache.h" and "proto.h" the local copies are included.
* additional_commands.c must is part of the fs_shell and must be build in
  the same environment as the fs_shell. The fs_shell definitions must be
  used for system dependencies.
* The FS add-on has a platform dependency, since it opens and fstat()s
  the underlying device. open() is harmless, but we must wrap fstat().
* We don't longer compile in kernel_cpp.cpp, but rather use the
  platform C++ support directly.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11569 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-03 23:48:52 +00:00
Ingo Weinhold
105d7373e9 *** empty log message ***
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11568 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-03 23:36:57 +00:00
Ingo Weinhold
efaa1f0e73 We now build a static library from the fs_shell sources. No need to compile them again for each FS.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11567 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-03 23:35:57 +00:00
Ingo Weinhold
bc421eb5c9 Jam rule SetupFSShellIncludes that sets up the include search dirs for building the fs_shell. Reused, hence in a separate file.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11566 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-03 23:34:29 +00:00
Ingo Weinhold
e6f3010336 A whole bunch of changes to make the fs_shell build (and work) under
Linux:
* Corrected use of error code. We consequently use the errors we
  defined to be compatible with BeOS and translate error code to and from
  the build platform where necessary.
* Consequently use the structs my_stat and my_dirent and the type
  fs_off_t when dealing with the guest FS. my_dirent had to be adjusted
  to be BeOS compatible.
  We wrap the platform fstat() now to translate the struct stat to the
  BeOS representation.
* Fixed a bug introduced with the last checkin: The fs_shell crashed after
  executing a command.
* Fixed printf() format warnings under Linux.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11565 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-03 23:32:35 +00:00
Ingo Weinhold
9b3fd9f88c Support for translating error codes between the build platform and the
emulated system (i.e. the FS).


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11563 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-03 23:18:54 +00:00
Ingo Weinhold
d2df6f5a20 We compile the fs_shell with BuildPlatformMain, which is more correct. We
use all Haiku headers save the POSIX and STL headers. Let's see how we
fare on Linux with this change...


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11552 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-03 00:47:39 +00:00
Ingo Weinhold
2585523bed Changed since the fs_shell additional command mechanism has changed.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11551 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-03 00:44:59 +00:00
Ingo Weinhold
fc5863cce5 * Renamed fsh.c to fsh.cpp to have a more usable static initialization at
hand. Fixed all compiler errors.
* Changed the mechanism for including additional commands. Now an array
  is exported by the instance code.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11550 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-03 00:43:23 +00:00
Ingo Weinhold
ea8e6dbaab Made C++ safe.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11548 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-03 00:40:03 +00:00
Ingo Weinhold
25209a1365 Commented out iso9660 and udf tests for the time being.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11547 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-03 00:39:20 +00:00
Ingo Weinhold
a57bb4edc8 Added fs_shell (for fs_shell_command).
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11544 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-02 22:23:54 +00:00
Ingo Weinhold
50329cd67c Added a BeOS specific command (using ports) to send commands to the
fs_shell. A Linux specific one will follow as soon as the fs_shell builds
under Linux.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11543 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-02 22:23:11 +00:00
Ingo Weinhold
ce13a6d573 Follow-up changes to make the fs_shell instances build after adding the scripting extension.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11542 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-02 22:20:51 +00:00
Ingo Weinhold
87580cd7ab Extended fs_shell by an interface for external scripting.
This is the first step towards getting rid of the UserlandFS dependency
for building a HD image. Which is in turn the first step to being able to
build one under Linux.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11541 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-02 22:19:03 +00:00
Axel Dörfler
4bb67ad318 Added small test tool to dump the contents of a BFS log.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11538 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-02 17:26:01 +00:00
Matthew Wilber
dfb8c585c6 Updated with new Translation Kit version macro names.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11257 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-02-05 18:22:17 +00:00
Philippe Houdoin
cf5a8b98ba Added feature: allow to send data from a file (think "Print To File" output) thru
the loaded print transport add-on.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11121 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-01-29 14:08:01 +00:00
shatty
6e518ec4c2 address compiler warnings
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10146 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-11-22 02:45:00 +00:00
Axel Dörfler
83c97032ee Now use the BFS R5 for now. Might get moved to the Haiku one later on.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10025 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-11-19 15:35:51 +00:00
Axel Dörfler
efce0b7346 Initial revision
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10020 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-11-19 15:23:44 +00:00
Axel Dörfler
794822a8b5 Removed the error count from sys_rstat() as this can easily happen with
links and can be regarded as an harmless error (maybe it should directly
test for broken links, though).


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9523 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-10-27 00:48:20 +00:00
Philippe Houdoin
8880d1a7b4 Fix build issue raised by changes in notify_select_event() prototype.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9320 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-10-13 10:29:00 +00:00
Philippe Houdoin
f0b122701b Fix warnings about conflicts between KernelExport.h's user_memcpy/_strlcpy() and
kernellland_emu.cpp implementation.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9313 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-10-13 09:06:25 +00:00
Axel Dörfler
c6e3ff2240 "rdtest" now dumps up to 1024 bytes, not only 512. Also, it now prints
out a message to indicate that only a part of the requested buffer is
dumped on screen.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8941 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-14 19:51:47 +00:00
Philippe Houdoin
c92d05cf40 Add a print transport add-on loader/tester.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8536 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-08-04 09:25:40 +00:00
Axel Dörfler
ff2652126c Added strlcpy() to the repertoire of the libkernelland_emu.so - this fixes
the disk device manager test build under R5.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8140 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-06-24 09:47:18 +00:00
Axel Dörfler
89d57c315b Added some devfs functions to let the DiskDeviceManager test build again.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8089 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-06-21 12:41:19 +00:00
Axel Dörfler
918eb09770 Fixed the build of the udf_shell.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7930 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-06-12 19:53:14 +00:00
Axel Dörfler
d349b8c336 Now also exports spawn_kernel_thread().
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7910 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-06-11 15:40:23 +00:00
Axel Dörfler
7335776148 Changes to keep it building with the move to kernel_interface_r5.cpp.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7819 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-06-07 22:42:55 +00:00
Axel Dörfler
371536a11d Cleaned up C++/C separation.
Changed some return types from "int" to "status_t" to make it compatible
with the new VFS interface (should not cause any trouble).


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7818 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-06-07 22:41:37 +00:00
Philippe Houdoin
81f5654c12 Stop assuming we build on a BONE system, start linking agaisnt our *own* libbind.so!
:-)


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7610 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-05-19 06:13:10 +00:00
Axel Dörfler
450843b48f New "symlink" command which can create a symbolic link on the file system.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7515 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-05-11 02:04:38 +00:00
Axel Dörfler
132d416525 Enhanced the kernelland_emu to:
- support built-in modules
 - support the private kernel locking calls
 - support the private kernel doubly linked list functions


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7458 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-05-08 13:26:08 +00:00
Philippe Houdoin
b541da436f Handling NET_STACK_CONTROL_NET_MODULE: work in progress...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7452 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-05-07 21:14:37 +00:00
Axel Dörfler
0b48784541 Moved all remaining files under befs/ over to bfs/.
Fixed the build of all bfs tools.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7445 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-05-07 11:26:01 +00:00
Axel Dörfler
244d5b90d8 Moved befs/array to bfs/array. Removed befs directory from the build.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7444 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-05-07 11:19:30 +00:00
Axel Dörfler
da054c278c Fixed the build.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7443 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-05-07 11:15:09 +00:00
Axel Dörfler
203849cc49 Fixed warnings about possibly non-initialized variables.
Fixed a possible non-crash (it OpenBeOS, addresses below 0x80000000 are valid
user memory).


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7354 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-05-02 23:20:15 +00:00
Matthew Wilber
1b56ef303a Removed "unsupported images" test, as those images are now supported by the PNGTranslator. Also, removed the folder from the image paths to reduce redundancy and improve readability
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7323 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-04-26 23:07:29 +00:00
Matthew Wilber
e497624c0c Added test to make certain PNGTranslator handles unsupported grayscale images properly
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7301 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-04-24 13:35:55 +00:00
Matthew Wilber
5de6376dca Initial check in for PNGTranslator tests
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7299 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-04-23 21:46:32 +00:00
Matthew Wilber
cc0dc2a277 Added PNGTranslator tests
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7298 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-04-23 21:45:38 +00:00
Waldemar Kornewald
67bce78b48 Now linking against libbind instead of libnet.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7215 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-04-15 16:19:29 +00:00
Matthew Wilber
28cac36c73 Updated config message test for new STXTTranslator behavior
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6861 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-03-02 23:38:17 +00:00
Matthew Wilber
dd5f74defc updated config message test to include new "ignore alpha" setting
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6831 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-03-01 01:38:09 +00:00
Matthew Wilber
be510fa83f updated test to reflect new config message behavior
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6830 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-03-01 01:37:11 +00:00
Matthew Wilber
f08ccd9586 updated quality/capability numbers, changed for new version test
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6807 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-29 18:10:58 +00:00
Matthew Wilber
ba75d70283 udpated quality/capability numbers, changed for new version test
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6806 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-29 18:09:17 +00:00
Matthew Wilber
39bd440993 updated for new version test
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6805 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-29 18:08:29 +00:00
Matthew Wilber
4380aa029e Fixed translator version test
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6804 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-29 18:06:47 +00:00
Philippe Houdoin
0669f665be Remove this stupid cyclic dependency I once introduced...
Should unbreak the userland net stack build process.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6610 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-16 22:50:42 +00:00
Axel Dörfler
16957551b4 Also allow a partial allocation group as the last one.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6536 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-09 00:12:04 +00:00
Axel Dörfler
a957866a22 Fixed blocks_per_ag bug and added some more debug output.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6534 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-09 00:05:12 +00:00
Waldemar Kornewald
a9087159ca Removed libkernelppp source directory from headers because settings_tools.h is now in the headers folder.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6509 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-06 18:05:51 +00:00
Philippe Houdoin
23a3945388 Fix a copy-paste typo breaking userland modem network module build.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6501 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-04 22:39:08 +00:00
Philippe Houdoin
fde3380af0 Add route to pseudo target userland_network_modules...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6497 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-03 23:08:26 +00:00
Philippe Houdoin
c1fd3cbf7c Add route protocol to userland stack modules build list.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6496 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-03 23:06:56 +00:00
Philippe Houdoin
54908015c8 route network modules added to userland stack version too.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6495 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-03 23:04:33 +00:00
Philippe Houdoin
9eb55bc1d1 Forgot to update userland network versions of modules should now be placed in an
obos_network folder, like kernel version, otherwise their module names root don't match
the NETWORK_MODULES_ROOT ("obos_network/").


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6488 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-03 12:11:05 +00:00
Axel Dörfler
6ebe15a039 Added support for properly initializing a file system without issueing any
cache warnings.
Now prints out actual useful information with the -v option.
Removed DEBUG from the build, so that it's now silent and can be used as
a replacement of the original.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6482 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-03 02:17:59 +00:00
Axel Dörfler
77c235a2e4 Encapsulated parts of the functionality from sys_mount/unmount() in supplementary
functions that can be used by the "mkbfs" command (and similary ones).
Also added a kill_device_vnodes() function which should be called before removing
the cache in the file system's "initialize volume" function - again, its use is
intended for the "mkbfs" utility only.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6480 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-03 02:13:11 +00:00
Axel Dörfler
42b671e397 Fixed the bfs_shell build from other directories, thanks to Ingo!
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6440 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-31 01:27:06 +00:00
Axel Dörfler
a3acf1f210 Now defines UNSAFE_GET_VNODE when compiling.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6425 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-30 00:51:04 +00:00
Axel Dörfler
4d61634cbe Added more (and conditional) debug stuff -- currently turned off.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6418 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-29 22:41:49 +00:00
Axel Dörfler
55ba8e3830 Changed the prompt of the bfs_shell, so that I can't confuse it with the
fsh command (which is part of BeOS for some unknown reason).


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6415 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-29 21:59:44 +00:00
Axel Dörfler
753f8791b9 Added support to change the prompt (at compile time for implementations).
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6414 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-29 21:58:32 +00:00
Axel Dörfler
fb1146f245 Improved debug output; added thread information.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6413 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-29 21:50:00 +00:00
Axel Dörfler
9dea85013f Make sure that the local "Debug.h" is actually used.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6412 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-29 21:48:21 +00:00
Axel Dörfler
9e6ec53a18 You can now specify all important options on the command line.
Now does a sync() after the changes.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6382 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-27 23:10:31 +00:00
Axel Dörfler
a98a451545 Added a small test application that uses the same allocation group algorithm
as (our) BFS, so that you can play with it.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6340 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-27 02:37:29 +00:00
Axel Dörfler
afd7a6e6ce Added a new "stattest" command that permanently stat()s a file that is
being created and removed without a break.
That test is finally able to reproduce the bugs we are seeing in the
kernel but that never occured in userland - thanks *very* much to
mmu_man who found the shortest way to trigger it.
Just run it for a few minutes and it should happen (press "return" to stop it).


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6338 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-27 01:17:22 +00:00
Axel Dörfler
c10586fe0d Fixed a typo.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6329 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-26 12:35:00 +00:00
Axel Dörfler
e0014cf657 Reduced the block cache size a bit.
Set the volume ID to 1 now - that's a hack to get it working until
we have better support from fs_shell's kernel.c.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6321 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-26 03:39:03 +00:00
Axel Dörfler
a447f8b11c Added an initial mkbfs test app (it's intended to be used under R5).
Hardcoded device file to "/boot/home/test-device" - more to come :)


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6318 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-26 02:59:00 +00:00
Axel Dörfler
7410cb93f2 Fixed warnings.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6317 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-26 02:54:49 +00:00
Axel Dörfler
437490577d Added the USED_IN_FS_SHELL define.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6316 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-26 02:51:12 +00:00
Axel Dörfler
eb02489701 Bound the tracker feature to a USED_IN_FS_SHELL define (to allow building
in other environments, too).


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6315 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-26 02:47:24 +00:00
Axel Dörfler
ddb013472a Switched to kernel_cpp.cpp/h
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6299 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-25 15:45:21 +00:00
Axel Dörfler
14795a07ba Fixed warnings.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6298 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-25 15:42:16 +00:00
Axel Dörfler
8d0b31a063 Fixed warnings.
Minor style changes.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6297 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-25 15:25:50 +00:00
Axel Dörfler
b103e03a71 Switched to kernel_cpp.h.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6296 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-25 15:13:57 +00:00
Axel Dörfler
d3d255f3a9 Got btree test to build again.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6295 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-25 15:11:19 +00:00
Axel Dörfler
6fbc2b70db Updated for change in the debug mode.
Switched to kernel_cpp.cpp/h.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6294 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-25 15:04:20 +00:00
Waldemar Kornewald
37eee613ca Updated PPP stuff of userland netstack tester.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6278 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-25 12:48:59 +00:00
Axel Dörfler
2ed1070506 Added structureSizes to the build.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6214 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-21 15:55:15 +00:00
Axel Dörfler
0207f71894 Added a simple test program to check if the disk structure sizes change
with different compiler options - couldn't find anything, though.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6213 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-21 15:54:53 +00:00
Philippe Houdoin
338e8e55bc Add OS.h header too, as we should not assert it comes with Drivers.h...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6167 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-20 00:04:33 +00:00
Waldemar Kornewald
7854985f97 Fixed userland net_stack_tester (I hope you don't mind, Philippe ;).
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6162 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-19 22:59:55 +00:00
Axel Dörfler
94628dc2b9 Added MusePack reader test to the build.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6132 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-18 04:41:09 +00:00
Axel Dörfler
cb1aa65fa6 Added a simple MusePack test application based on Marcus' mp3_reader_test.
It builds fine.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6131 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-18 04:40:41 +00:00
Matthew Wilber
74f9d75678 Changed the test to not care about dubious values in the fileSize field
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6090 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-15 01:59:31 +00:00
Tyler Dauwalder
57c80a0c50 Added DString.cpp.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5966 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-07 08:25:24 +00:00
Matthew Wilber
d2c9e14c64 Added bitmap with odd size values in its header
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5922 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-06 02:32:33 +00:00
Matthew Wilber
055b763078 Removed the debugging code mistakenly added in the last check in
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5903 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-04 20:18:10 +00:00
Matthew Wilber
0192d8f363 Oops! I didn't intend to check this in yet, I'm in the middle of debugging.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5902 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-04 19:50:08 +00:00
Matthew Wilber
a0c057d441 Updated Identify and Translate tests to match current behavior of the STXTTranslator
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5901 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-04 19:40:14 +00:00
Waldemar Kornewald
01b2564600 Removed uneeded chars and added modem to userland stack PPP add-ons.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5876 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-02 12:41:14 +00:00
Philippe Houdoin
9e4f133fe8 Signaled sockets forward a signal to their server counterparts,
which interrupt the server's socket thread, deleted when the socket close.
IPC message trace now reports message name instead of hexa opcode, which
increase a little their usefullness for an human reader :-)


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5715 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-12-19 20:32:01 +00:00
Tyler Dauwalder
dce2dc5cab CS0String -> UdfString
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5587 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-12-06 08:29:13 +00:00
Ingo Weinhold
8c470cd758 Made use of the new parameter of *SymLink and adjusted dependencies where
necessary.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5543 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-12-02 22:05:41 +00:00
Tyler Dauwalder
9c6a058880 DiskStructures.{h,cpp} -> UdfStructures.{h,cpp}
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5528 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-12-02 10:49:37 +00:00
Waldemar Kornewald
d5cd5d63ff Added IPCP and PAP modules to test suite.
NOTE: To make PPP usable with the test suite I will need to use a shared memory area to be able to pass structures to the ppp module.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5443 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-11-22 12:30:59 +00:00
Tyler Dauwalder
c6c7acd44e Removed PartitionMap.cpp from the build.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5318 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-11-11 09:17:06 +00:00
Waldemar Kornewald
e8e6c3e8ad Changed Jamfiles to use new <> (namespace or how was it called?) feature, so libuserlandppp.a is not added to distro/xxx/develop.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5274 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-11-07 15:41:53 +00:00
Tyler Dauwalder
2ab307bd3a Added Recognition.cpp to the build.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5238 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-11-02 06:52:24 +00:00
Tyler Dauwalder
72090c984b Added new partition classes to build.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5235 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-11-02 01:15:10 +00:00
Philippe Houdoin
3312e2a1e0 Fix warnings.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5208 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-28 22:20:46 +00:00