Commit Graph

10091 Commits

Author SHA1 Message Date
DarkWyrm
6c41be783c FBC fix
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10290 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-11-29 23:40:20 +00:00
Axel Dörfler
b5d786bdac Improved fs_unmount(): it will now free all vnodes directly via free_vnode(),
and no longer relies on put_vnode() for the root node. This will also call
the FS release/remove vnode calls. Extended comments.
Added "flags" parameter to unmount.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10289 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-11-29 22:45:27 +00:00
Axel Dörfler
4c8e8f2f19 Added "flags" parameter to unmount.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10288 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-11-29 22:42:01 +00:00
Axel Dörfler
41c3a7a3d5 Moved freeing the vnode out of dec_vnode_ref_count() into a separate function
(free_vnode()). Upon freeing, the file cache is now only written back if the
file is not deleted.
dec_vnode_ref_count() no longer frees vnodes that are not going to be deleted.
Instead, it will add them to an unused vnode list, so that they can be freed
if needed (currently only 512 unused vnodes will be kept around). This should
speed up the whole thing, and makes the file cache much more useful, as it's
no longer dumped after the file is closed.
fs_unmount() is not yet respecting this (ie. it doesn't free those nodes as
it should).


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10287 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-11-29 21:27:17 +00:00
Axel Dörfler
86a48e24ad Got inspired by mmu_man's dmidecode release and added a simple identification
of BIOS32, SMBIOS, and DMI services.
Also implemented a get_bios32_service() function which you can use to get
access to that service (ie. for use by the PCI bus manager).


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10286 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-11-29 20:42:04 +00:00
Axel Dörfler
22ca5e3c35 Added a comment to vm_page_write_modified() that writing pages can only
be done consistently if they are unmapped from memory - which is not yet
done.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10285 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-11-29 15:52:49 +00:00
Axel Dörfler
9a1e02770b config_ioctl() now returns the actual error as returned by the config manager,
as pointed out by Jerome.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10284 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-11-29 15:46:34 +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
shatty
a104c31b99 define __HAIKU__ for haiku target platform
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10282 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-11-28 23:30:28 +00:00
Jérôme Duval
9b50999cc7 reverted to rtc_boot_time
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10281 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-11-28 23:23:48 +00:00
Jérôme Duval
3366fbde02 names are based on system_time
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10280 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-11-28 23:20:24 +00:00
Jérôme Duval
1850c408f9 fixed copyright
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10279 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-11-28 23:17:36 +00:00
Jérôme Duval
bfb2692a61 Fixed set_timezone()
Added user_shutdown user control
Reverted to rtc_boot_time()


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10278 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-11-28 23:13:22 +00:00
Michael Pfeiffer
384bba914c Resolved race condition in methode Go of dialog windows.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10277 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-11-28 19:17:46 +00:00
Michael Pfeiffer
76145367cb Resolved race condition in methode Go of dialog windows.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10276 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-11-28 19:05:01 +00:00
Michael Pfeiffer
f0307bad5c Added class JSDSlider by Dr.H.Reh.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10275 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-11-28 18:57:49 +00:00
Stefano Ceccherini
25d65010fc Fixed warnings and license stuff
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10274 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-11-27 18:17:15 +00:00
Axel Dörfler
ef948c3cc7 Yeah, sure, don't compile stuff before checking it in.
bfs_open_dir() now checks for read access.
bfs_lookup() now checks for execute access and not read access anymore
(as reported by Ingo as well).


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10273 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-11-27 13:55:28 +00:00
Axel Dörfler
41cf387697 bfs_create() now only checks for write access in the parent directory if a
file really has to be created, thanks to Ingo for reporting this.
Inode::Create() now checks for write access to the inode when O_TRUNC is set.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10272 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-11-27 13:47:18 +00:00
Axel Dörfler
ffc023930d Reverted back to an older version of freopen.c (1.15 from sources.redhat.com,
which doesn't use fd_to_filename() yet) and added it to the build.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10271 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-11-27 13:14:19 +00:00
Axel Dörfler
8e3485c460 No longer needed.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10270 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-11-27 13:02:26 +00:00
Axel Dörfler
d76bee070b Added a note to the new B_TEAM_USAGE_SELF/CHILDREN constants that they
are compatible to sys/resource.h definitions.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10269 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-11-27 12:59:45 +00:00
Axel Dörfler
92af23fa88 Now uses the new Be-style constants for get_team_usage_info().
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10268 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-11-27 12:57:36 +00:00
Axel Dörfler
f05c404379 Updated to the changes made to OS.h.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10267 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-11-27 12:54:58 +00:00
Axel Dörfler
40bfa3f782 The inline version of find_thread() now references _kern_find_thread() if
__HAIKU__ is defined.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10266 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-11-27 12:52:29 +00:00
Axel Dörfler
9f30bca262 Moved _user_system_time() to real_time_clock.c.
Added safemode.h header.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10265 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-11-27 12:35:30 +00:00
Axel Dörfler
53c082117f Minor cleanup.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10264 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-11-27 12:34:11 +00:00
Axel Dörfler
db4008e263 Removed references to ktypes.h.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10263 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-11-27 12:32:29 +00:00
Axel Dörfler
e6ef7e58f4 No longer of use.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10262 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-11-27 12:06:41 +00:00
Axel Dörfler
841093cf3c Removed references to ktypes.h.
aspace_id is now defined in vm_types.h only, as it's only used internally anyway.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10261 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-11-27 12:05:41 +00:00
Axel Dörfler
515d213528 create_port() incremented the used ports counter twice, thanks to Stefano
Ceccherini for the hint.
The first port ID is now 1 and not 0 anymore.
Added a first free slot hint to speed up port creation.
Added more debug output when tracing is enabled.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10260 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-11-27 12:03:48 +00:00
Axel Dörfler
50edebb6cb Added B_CURRENT_TEAM support to get_team_info() as well - dunno though, if
BeOS supports this as well, at least it's not documented in the BeBook
(but it's useful anyway).


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10259 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-11-26 16:37:41 +00:00
Axel Dörfler
b9ead42463 Support for B_CURRENT_TEAM was missing from get_team_usage_info().
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10258 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-11-26 16:34:32 +00:00
Axel Dörfler
a09c4553a6 Made the get_safemode_option() function public.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10257 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-11-26 16:25:18 +00:00
Axel Dörfler
04169a304b Added header for additional safemode definitions.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10256 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-11-26 16:23:49 +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
c591847918 Renamed _kern_set_tzspecs() to _kern_set_timezone().
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10254 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-11-26 15:04:16 +00:00
Axel Dörfler
7c8c40ecb2 Moved _user_system_time() to real_time_clock.c.
Renamed _user_set_tzspecs() to _user_set_timezone().
Renamed sTzFilename to sTimezoneFilename.
Moved rtc_print() into rtc_debug().
Fixed changing system_time_offset; since this is a shared 64 bit value,
we have to use atomic calls when we change it.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10253 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-11-26 15:03:28 +00:00
Axel Dörfler
0d96fb1167 Moved _user_system_time() to real_time_clock.c.
Renamed _user_set_tzspecs() to _user_set_timezone().


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10252 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-11-26 15:00:27 +00:00
Axel Dörfler
9b6593acae Now remembers the time spent in children/threads that are already gone.
Implemented get_team_usage_info() - not really tested, though.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10251 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-11-26 14:58:01 +00:00
Axel Dörfler
2080a7c04f Added fields to be able to track the time spent in children and threads
that are already gone.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10250 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-11-26 14:46:47 +00:00
Axel Dörfler
791fc0bf95 Added _user_shutdown() prototype.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10249 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-11-26 14:41:53 +00:00
Ingo Weinhold
f59c73a3d5 Added a URL where to get the UserlandFS.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10248 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-11-26 14:10:20 +00:00
Jérôme Duval
fd681700c0 added timezones files, setting timezone to Europe/Paris (shouldn't be hardcoded in the future)
added find xargs locate


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10247 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-11-26 10:59:35 +00:00
Stefano Ceccherini
4e8891d152 Check in the serial mouse addon before I forget about it (hmmm holidays...).
Should be cleaned up a bit and maybe merged with the "other" mouse addon.
Courtesy of Oscar Lesta aka BiPolar


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10246 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-11-26 08:17:37 +00:00
Axel Dörfler
e7a9dbff59 Now uses the appropriate syscall.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10245 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-11-25 21:22:14 +00:00
Axel Dörfler
2ff908a59e Added empty get_team_usage_info().
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10244 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-11-25 21:20:17 +00:00
Axel Dörfler
08f58535d9 Added syscalls for get_team_usage_info().
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10243 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-11-25 21:18:54 +00:00
Jérôme Duval
82f223ea8c Implemented times
now uses system_time, because we don't have to return a real time


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10242 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-11-25 20:16:35 +00:00
Jérôme Duval
4693e9c7a5 Implemented getrusage
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10241 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-11-25 19:24:24 +00:00