#
425ac1b6 |
|
20-Jun-2023 |
Alexander von Gluck IV <kallisti5@unixzen.com> |
refactor: Swap %Ld for %lld in all format usages * %Ld is an undocumented alias for %lld in glibc. * muslc doesn't implement it for this reason. * While we will likely never drop %Ld support, lets clean house and set a better example. Change-Id: Id46dad3104abae483e80cc5c05d1464d3ecd8030 Reviewed-on: https://review.haiku-os.org/c/haiku/+/6636 Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk> Reviewed-by: Alex von Gluck IV <kallisti5@unixzen.com> Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
|
#
208c3236 |
|
07-Jul-2018 |
Jérôme Duval <jerome.duval@gmail.com> |
real_time_clock: fix _user_get_timezone() after 6ad3d252128227b52c0fbba69b64c693cb488cac 6ad3d252128227b52c0fbba69b64c693cb488cac changed the timezoneOffset type from time_t to int32 without adjusting the user_memcpy size. Harmless as the function is hardly used with a non-null argument.
|
#
db9b70ee |
|
07-May-2018 |
Jérôme Duval <jerome.duval@gmail.com> |
kernel: add a compatibility commpage on x86_64. * x86 uses a commpage with 32-bit addresses, incompatible with the one used for x86_64. For this reason, a compatibility commpage is needed to support a 32-bit userland on x86_64. * define ADDRESS_TYPE as a macro for addr_t (default) or uint32 (for the 32-bit commpage). * team_create_thread_start_internal() will use clone_commpage_area() with KERNEL_USER_DATA_BASE or clone_commpage_compat_area() with KERNEL_USER32_DATA_BASE, to setup the correct commpage. * real_time_clock (in compatibility mode) also updates the compatibility commpage with real time data. Change-Id: I61605077ce0beabab4439ef54edd1eae26f26fd2
|
#
7d8eb4d7 |
|
16-Nov-2017 |
Augustin Cavalier <waddlesplash@gmail.com> |
time: Address review comments. * Use ENOSYS not B_DONT_DO_THAT (thanks korli) * Use unsigned long not uint64 (thanks axeld)
|
#
9a50e01e |
|
15-Nov-2017 |
Augustin Cavalier <waddlesplash@gmail.com> |
set_real_time_clock: Change parameter from uint32 to uint64. This should have been done along with the time_t change, but I forgot to check this then. Technically this breaks ABI against BeOS, but: 1. BeOS used an int32, so we'd already slightly broken ABI here 2. Only one thing at HaikuArchives (VMwareAddons) and one recipe at HaikuPorts (samba) uses this function at all. If it turns out some critical BeOS app uses this, then I guess we can enclose GCC2 guards around it, but since I can't find any evidence of that, I'm pushing it without them for now.
|
#
6ad3d252 |
|
05-Jun-2017 |
Augustin Cavalier <waddlesplash@gmail.com> |
real_time_clock: Change _user_{get|set}_timezone argument to int32. Both the user-mode syscalls.h and the kernel-mode one define it as an int32, not a time_t, and as it's a timezone offset not an actual time, there's no reason it needs to be one.
|
#
294711f9 |
|
27-Jun-2012 |
Alex Smith <alex@alex-smith.me.uk> |
Changed {,u}int64 to be long rather than long long on x86_64.
|
#
0e88a887 |
|
13-Jun-2012 |
Alex Smith <alex@alex-smith.me.uk> |
First round of 64-bit safety fixes in the kernel. * Most of this is incorrect printf format strings. Changed all strings causing errors to use the B_PRI* format string definitions, which means the strings should be correct across all platforms. * Some other fixes for errors, casts required, etc.
|
#
24df6592 |
|
11-Jun-2011 |
Ingo Weinhold <ingo_weinhold@gmx.de> |
Merged signals-merge branch into trunk with the following changes: * Reorganized the kernel locking related to threads and teams. * We now discriminate correctly between process and thread signals. Signal handlers have been moved to teams. Fixes #5679. * Implemented real-time signal support, including signal queuing, SA_SIGINFO support, sigqueue(), sigwaitinfo(), sigtimedwait(), waitid(), and the addition of the real-time signal range. Closes #1935 and #2695. * Gave SIGBUS a separate signal number. Fixes #6704. * Implemented <time.h> clock and timer support, and fixed/completed alarm() and [set]itimer(). Closes #5682. * Implemented support for thread cancellation. Closes #5686. * Moved send_signal() from <signal.h> to <OS.h>. Fixes #7554. * Lots over smaller more or less related changes. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42116 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
dbe1e23a |
|
16-Aug-2010 |
Oliver Tappe <zooey@hirschkaefer.de> |
Optimised passing around of timezone a bit * _kern_[sg]et_timezone() now accepts/passes out the timezone name, too * adjust Time preflet and clockconfig to pass the timezone name into the kernel when calling _kern_set_timezone() * ajust implementation of tzset() to fetch the timezone name from the kernel via _kern_get_timezone() instead of reading 'libroot_timezone_info' * the Time preflet no longer writes 'libroot_timezone_info' git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38164 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
e0ea55e0 |
|
04-Aug-2010 |
Oliver Tappe <zooey@hirschkaefer.de> |
* added get_timezone_offset() to kernel, which returns the offset in seconds * made FAT add-on use get_timezone_offset(), this time correctly adjusted for the difference in units (minutes/seconds) This makes the times in our FAT-fs agree with Linux again, at least :-) git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37905 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
7e965f50 |
|
03-Aug-2010 |
Oliver Tappe <zooey@hirschkaefer.de> |
More consolidation of timezone code: * dropped DaylightSavingTime from real_time_clock code in kernel, it was never really being used for what it meant (and just being referred to by gettimeofday(), which put a different meaning to it * adjusted the syscalls get_timezone() & set_timezone() as well as their callers accordingly * got rid of get_rtc_info() and rtc_info struct in kernel, as it was only being referred to by the FAT add-on and that one (like gettimeofday()) put a different meaning to tz_minuteswest. Added a comment to FAT's util.c showing a possible solution, should the hardcoded GMT timezone pose a problem. * fixed declaration of gettimeofday() to match POSIX base specs, issue 7 * changed implementation of gettimeofday() to not bother trying to fill struct timezone - it was using wrong values before, anyway. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37888 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
96ac47e3 |
|
03-Aug-2010 |
Oliver Tappe <zooey@hirschkaefer.de> |
Made some progress with consolidation of timezone-related code: * renamed syscalls _kern_[gs]et_tzfilename to _kern_[gs]et_real_time_clock_is_gmt, as the filename part is no longer relevant (and the two corresponding parameters were removed) * C++-ified and reworked clockconfig to use the info from 'Time settings' to setup the timezone info during boot * removed invocation of _kern_get_tzfilename() from tzset(), as the syscall no longer exists and tzset() is currently broken anyway * adjusted the Time preflet to use the renamed syscall when getting/setting the RTC info git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37881 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
bd185b41 |
|
01-Dec-2009 |
Ingo Weinhold <ingo_weinhold@gmx.de> |
*.c -> *.cpp git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34417 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
294711f98c107cf2d9d05b7fc34cd863e87bd358 |
|
27-Jun-2012 |
Alex Smith <alex@alex-smith.me.uk> |
Changed {,u}int64 to be long rather than long long on x86_64.
|
#
0e88a887b4a9ecaaf1062078d9ca9bfca78fcf3a |
|
13-Jun-2012 |
Alex Smith <alex@alex-smith.me.uk> |
First round of 64-bit safety fixes in the kernel. * Most of this is incorrect printf format strings. Changed all strings causing errors to use the B_PRI* format string definitions, which means the strings should be correct across all platforms. * Some other fixes for errors, casts required, etc.
|
#
24df65921befcd0ad0c5c7866118f922da61cb96 |
|
11-Jun-2011 |
Ingo Weinhold <ingo_weinhold@gmx.de> |
Merged signals-merge branch into trunk with the following changes: * Reorganized the kernel locking related to threads and teams. * We now discriminate correctly between process and thread signals. Signal handlers have been moved to teams. Fixes #5679. * Implemented real-time signal support, including signal queuing, SA_SIGINFO support, sigqueue(), sigwaitinfo(), sigtimedwait(), waitid(), and the addition of the real-time signal range. Closes #1935 and #2695. * Gave SIGBUS a separate signal number. Fixes #6704. * Implemented <time.h> clock and timer support, and fixed/completed alarm() and [set]itimer(). Closes #5682. * Implemented support for thread cancellation. Closes #5686. * Moved send_signal() from <signal.h> to <OS.h>. Fixes #7554. * Lots over smaller more or less related changes. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42116 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
dbe1e23aa87ced2603074f6e4eaca2c4d99cf971 |
|
16-Aug-2010 |
Oliver Tappe <zooey@hirschkaefer.de> |
Optimised passing around of timezone a bit * _kern_[sg]et_timezone() now accepts/passes out the timezone name, too * adjust Time preflet and clockconfig to pass the timezone name into the kernel when calling _kern_set_timezone() * ajust implementation of tzset() to fetch the timezone name from the kernel via _kern_get_timezone() instead of reading 'libroot_timezone_info' * the Time preflet no longer writes 'libroot_timezone_info' git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38164 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
e0ea55e0a087e09e68581bdf2de7521ed87f33b5 |
|
04-Aug-2010 |
Oliver Tappe <zooey@hirschkaefer.de> |
* added get_timezone_offset() to kernel, which returns the offset in seconds * made FAT add-on use get_timezone_offset(), this time correctly adjusted for the difference in units (minutes/seconds) This makes the times in our FAT-fs agree with Linux again, at least :-) git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37905 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
7e965f506df723e0253980218bc3ce819b7736e4 |
|
03-Aug-2010 |
Oliver Tappe <zooey@hirschkaefer.de> |
More consolidation of timezone code: * dropped DaylightSavingTime from real_time_clock code in kernel, it was never really being used for what it meant (and just being referred to by gettimeofday(), which put a different meaning to it * adjusted the syscalls get_timezone() & set_timezone() as well as their callers accordingly * got rid of get_rtc_info() and rtc_info struct in kernel, as it was only being referred to by the FAT add-on and that one (like gettimeofday()) put a different meaning to tz_minuteswest. Added a comment to FAT's util.c showing a possible solution, should the hardcoded GMT timezone pose a problem. * fixed declaration of gettimeofday() to match POSIX base specs, issue 7 * changed implementation of gettimeofday() to not bother trying to fill struct timezone - it was using wrong values before, anyway. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37888 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
96ac47e3126d4001093b745baf4b3d8f31636314 |
|
03-Aug-2010 |
Oliver Tappe <zooey@hirschkaefer.de> |
Made some progress with consolidation of timezone-related code: * renamed syscalls _kern_[gs]et_tzfilename to _kern_[gs]et_real_time_clock_is_gmt, as the filename part is no longer relevant (and the two corresponding parameters were removed) * C++-ified and reworked clockconfig to use the info from 'Time settings' to setup the timezone info during boot * removed invocation of _kern_get_tzfilename() from tzset(), as the syscall no longer exists and tzset() is currently broken anyway * adjusted the Time preflet to use the renamed syscall when getting/setting the RTC info git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37881 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
bd185b4117e06c1674c4d214abc3917acedc560d |
|
01-Dec-2009 |
Ingo Weinhold <ingo_weinhold@gmx.de> |
*.c -> *.cpp git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34417 a95241bf-73f2-0310-859d-f6bbb57e9c96
|