#
363386 |
|
21-Jul-2020 |
kib |
MFC r363193: Make CLOCK_REALTIME and TIMER_ABSTIME available for XOPEN_SOURCE >= 500.
PR: 247701
|
#
332135 |
|
06-Apr-2018 |
kevans |
MFC r329859,r329860: Float protection in stand
r329859: Do not include float interfaces when using libsa.
We don't support float in the boot loaders, so don't include interfaces for float or double in systems headers. In addition, take the unusual step of spiking double and float to prevent any more accidental seepage.
r329860: Floaty McFloatface is funnier...
|
#
331722 |
|
29-Mar-2018 |
eadler |
Revert r330897:
This was intended to be a non-functional change. It wasn't. The commit message was thus wrong. In addition it broke arm, and merged crypto related code.
Revert with prejudice.
This revert skips files touched in r316370 since that commit was since MFCed. This revert also skips files that require $FreeBSD$ property changes.
Thank you to those who helped me get out of this mess including but not limited to gonzo, kevans, rgrimes.
Requested by: gjb (re)
|
#
330897 |
|
14-Mar-2018 |
eadler |
Partial merge of the SPDX changes
These changes are incomplete but are making it difficult to determine what other changes can/should be merged.
No objections from: pfg
|
#
317618 |
|
01-May-2017 |
vangyzen |
MFC r315526
Add clock_nanosleep()
Add a clock_nanosleep() syscall, as specified by POSIX. Make nanosleep() a wrapper around it.
Attach the clock_nanosleep test from NetBSD. Adjust it for the FreeBSD behavior of updating rmtp only when interrupted by a signal. I believe this to be POSIX-compliant, since POSIX mentions the rmtp parameter only in the paragraph about EINTR. This is also what Linux does. (NetBSD updates rmtp unconditionally.)
Copy the whole nanosleep.2 man page from NetBSD because it is complete and closely resembles the POSIX description. Edit, polish, and reword it a bit, being sure to keep any relevant text from the FreeBSD page.
Regenerate syscall files.
Relnotes: yes Sponsored by: Dell EMC
|
#
306905 |
|
09-Oct-2016 |
kib |
MFC r306588: Export the mq_getfd_np() and timer_oshandle_np() symbols from librt.so.
|
#
302408 |
|
07-Jul-2016 |
gjb |
Copy head@r302406 to stable/11 as part of the 11.0-RELEASE cycle. Prune svn:mergeinfo from the new branch, as nothing has been merged here.
Additional commits post-branch will follow.
Approved by: re (implicit) Sponsored by: The FreeBSD Foundation |
#
245428 |
|
14-Jan-2013 |
dim |
Add CLOCK_PROCESS_CPUTIME_ID to <time.h>, to synchronize the CLOCK_* values with those in <sys/time.h>. Otherwise, if a program includes <time.h> before <sys/time.h>, the CLOCK_PROCESS_CPUTIME_ID macro never gets defined.
Reviewed by: davidxu X-MFC-With: 239347
|
#
240295 |
|
10-Sep-2012 |
davidxu |
Add missing prototype for clock_getcpuclockid.
|
#
233600 |
|
28-Mar-2012 |
theraven |
Correctly expose xlocale functions if people include the headers in the wrong order (as some ports apparently do).
Approved by: dim (mentor)
|
#
232498 |
|
04-Mar-2012 |
theraven |
Reapply 227753 (xlocale cleanup), plus some fixes so that it passes build universe with gcc.
Approved by: dim (mentor)
|
#
231714 |
|
14-Feb-2012 |
dim |
Revert r231673 and r231682 for now, until we can run a full make universe with them. Sorry for the breakage.
Pointy hat to: me and brooks
|
#
231673 |
|
14-Feb-2012 |
theraven |
Cleanup of xlocale:
- Address performance regressions encountered by das@ by caching per-thread data in TLS where available. - Add a __NO_TLS flag to cdefs.h to indicate where not available. - Reorganise the xlocale.h definitions into xlocale/*.h so that they can be included from multiple places. - Export the POSIX2008 subset of xlocale when POSIX2008 says it should be exported, independently of whether xlocale.h is included. - Fix the bug where programs using ctype functions always assumed ASCII unless recompiled. - Fix some style(9) violations.
Reviewed by: brooks (mentor) Approved by: dim (mentor)
|
#
203964 |
|
16-Feb-2010 |
imp |
Remove the Berkeley clause 3's. Add a few $FreeBSD$
|
#
177494 |
|
22-Mar-2008 |
davidxu |
Add POSIX pthread API pthread_getcpuclockid() to get a thread's cpu time clock id.
|
#
157766 |
|
15-Apr-2006 |
jb |
Copy the new CLOCK_ defines from sys/time.h for SUSv3 compatibility.
Approved by: rwatson
|
#
151870 |
|
30-Oct-2005 |
davidxu |
Add POSIX timer interfaces.
|
#
144529 |
|
02-Apr-2005 |
das |
Define CLOCK_* and TIMER_* in time.h, where they are supposed to be.
|
#
123257 |
|
07-Dec-2003 |
marcel |
Change the definition of NULL on ia64 (for LP64 compilations) from an int constant to a long constant. This change improves consistency in the following two ways: 1. The first 8 arguments are always passed in registers on ia64, which by virtue of the generated code implicitly widens ints to longs and allows the use of an 32-bit integral type for 64-bit arguments. Subsequent arguments are passed onto the memory stack, which does not exhibit the same behaviour and consequently do not allow this. In practice this means that variadic functions taking pointers and given NULL (without cast) work as long as the NULL is passed in one of the first 8 arguments. A SIGSEGV is more likely the result if such would be done for stack-based arguments. This is due to the fact that the upper 4 bytes remain undefined. 2. All 64-bit platforms that FreeBSD supports, with the obvious exception of ia64, allow 32-bit integral types (specifically NULL) when 64-bit pointers are expected in variadic functions by way of how the compiler generates code. As such, code that works correctly (whether rightfully so or not) on any platform other than ia64, may fail on ia64.
To more easily allow tweaking of the definition of NULL, this commit removes the 12 definitions in the various headers and puts it in a new header that can be included whenever NULL is to be made visible.
This commit fixes GNOME, emacs, xemacs and a whole bunch of ports that I don't particularly care about at this time...
|
#
103012 |
|
06-Sep-2002 |
tjr |
Style: One space between "restrict" qualifier and "*".
|
#
102874 |
|
02-Sep-2002 |
mike |
Now that _BSD_CLK_TCK_ and _BSD_CLOCKS_PER_SEC_ are the same on all architectures, move the definition directly into <time.h> and finish the removal of <machine/ansi.h>.
|
#
102227 |
|
21-Aug-2002 |
mike |
o Merge <machine/ansi.h> and <machine/types.h> into a new header called <machine/_types.h>. o <machine/ansi.h> will continue to live so it can define MD clock macros, which are only MD because of gratuitous differences between architectures. o Change all headers to make use of this. This mainly involves changing: #ifdef _BSD_FOO_T_ typedef _BSD_FOO_T_ foo_t; #undef _BSD_FOO_T_ #endif to: #ifndef _FOO_T_DECLARED typedef __foo_t foo_t; #define _FOO_T_DECLARED #endif
Concept by: bde Reviewed by: jake, obrien
|
#
101888 |
|
14-Aug-2002 |
robert |
- Add the 'restrict' qualifier to the function definition of strftime(3) for IEEE Std 1003.1-2001 compliance and remove excessive usage of the 'const' qualifier that was neither present in the prototype in the publice header, nor in the local prototype just above the function definition. - Replace the K&R function definition with a ANSI-C one. - Update the prototype of strftime(3) in its manual page.
|
#
101886 |
|
14-Aug-2002 |
robert |
- Add the C99 'restrict' qualifier using the '__restrict' macro to function prototype and definition of strptime(3). - Update the manual page.
|
#
98930 |
|
27-Jun-2002 |
wollman |
The thread-safe time functions appear to have been introduced as of ISO 9945-1: 1996 (according to the change bars therein), which corresponds to 1003.1c-1995. Give them appropriate visibility protection.
|
#
98923 |
|
27-Jun-2002 |
wollman |
Resort namespace blocks into a more sensible order. Delete a redundant comment.
|
#
98313 |
|
16-Jun-2002 |
wollman |
Move dillon's time conversion functions to a new header <timeconv.h>. Since they were never documented and have never appeared in a FreeBSD release, no repo-copy of the header is done. This removes namespace pollution from <time.h>.
|
#
98312 |
|
16-Jun-2002 |
wollman |
Clean up a bit of namespace pollution which crept in with the last rev.
Submitted by: bde
|
#
98269 |
|
15-Jun-2002 |
wollman |
Partially fix namespace visibility issues by using new visibility macros. Some issues still remain, and will require research in old POSIX standards if we care to get them right.
|
#
93032 |
|
23-Mar-2002 |
imp |
Breath deep and take __P out of the system include files.
# This appears to not break X11, but I'm having problems compiling the # glide part of the server with or without this patch, so I can't tell # for sure.
|
#
89572 |
|
19-Jan-2002 |
dillon |
I've been meaning to do this for a while. Add an underscore to the time_to_xxx() and xxx_to_time() functions. e.g. _time_to_xxx() instead of time_to_xxx(), to make it more obvious that these are stopgap functions & placemarkers and not meant to create a defacto standard. They will eventually be replaced when a real standard comes out of committee.
|
#
85636 |
|
28-Oct-2001 |
dillon |
Add time_to_int(), int_to_time(), time_to_long(), long_to_time().
|
#
85634 |
|
28-Oct-2001 |
dillon |
Add routines to convert time_t to/from fixed-bit fields. These routines serve two purposes: (1) so we can maintain backwards compatibility with protocols (rwhod, dump, etc...) that either assume time_t is 32 bits or assume sizeof(time_t) == sizeof(int), or make other similar assumptions. (2) To tag such routines (by the presence of these calls) for future cleanup/extension work.
The 32->64 routine, time32_to_time() (when time_t is 64 bits, that is), is defined specifically to implement temporal locality to properly set the msb bits of a 64 bit time_t quantity, using the 50 year rule. The locality code has not been implemented yet (and doesn't need to be for a while), but that is the intent. This will allow us to maintain backwards protocol compatibility past 2038.
These routines are intended to be platform and time_t agnostic.
MFC after: 1 week
|
#
75033 |
|
31-Mar-2001 |
phk |
It's not CUT (the french would accept that back in 1879) and TUC wasn't palatable to the rest of the world. UTC was the compromise.
PR: 26238 Submitted by: Ying-Chieh Liao <ijliao@terry.dragon2.net>
|
#
42293 |
|
04-Jan-1999 |
dt |
Make ctime_r, asctime_r, gmtime_r, and localtime_r available in libc.
|
#
39113 |
|
12-Sep-1998 |
dt |
Change return type of strptime from const char* to char*. const char* was wrong and nonstandard.
|
#
38464 |
|
20-Aug-1998 |
jkoshy |
Add extern declaration for `tzname[]' to make this header comply better to POSIX90.
2-rounds-of-review-by: bde
|
#
35285 |
|
19-Apr-1998 |
phk |
ctime_r and asctime_r are not implemented. prototypes in time.h do not match POSIX.
PR: 6345 Reviewed by: phk Submitted by: Dmitry Khrustalev <dima@xyzzy.machaon.ru>
|
#
34925 |
|
28-Mar-1998 |
dufault |
Finish _POSIX_PRIORITY_SCHEDULING. Needs P1003_1B and _KPOSIX_PRIORITY_SCHEDULING options to work. Changes:
Change all "posix4" to "p1003_1b". Misnamed files are left as "posix4" until I'm told if I can simply delete them and add new ones;
Add _POSIX_PRIORITY_SCHEDULING system calls for FreeBSD and Linux;
Add man pages for _POSIX_PRIORITY_SCHEDULING system calls;
Add options to LINT;
Minor fixes to P1003_1B code during testing.
|
#
28021 |
|
09-Aug-1997 |
joerg |
Import strptime(3) into libc. We've got permission by Kevin Ruddy to modify the original `no modifications' copyright message, and i've included his mail into the source file.
The common localization functions between strptime(3) and strftime(3) have been broken out into timelocal.[ch].
|
#
25773 |
|
13-May-1997 |
peter |
struct timespec needs to be useable with just <time.h>, but needs to not conflict with the kernel visible one. Make the new stuff not visible if _ANSI_SOURCE or _POSIX_SOURCE is defined (!) because the new things are not part of the base 1003.1-1990 standard (or ansi).
|
#
25769 |
|
13-May-1997 |
ache |
Add clockid_t definition like in sys/types.h to allow time.h to be included without sys/types.h, it fixes broken groff compilation
|
#
25749 |
|
12-May-1997 |
peter |
Oops, move clock_*() and nanosleep() to time.h
Submitted by: Peter Dufault <dufault@hda.com>
|
#
19639 |
|
11-Nov-1996 |
hsu |
Change prototypes for gmtime_r() and localtime_r() in accordance with IEEE pthreads specification.
|
#
13545 |
|
21-Jan-1996 |
julian |
Reviewed by: julian and (hsu?) Submitted by: John Birrel(L?)
changes for threadsafe operations
|
#
6243 |
|
08-Feb-1995 |
bde |
Define CLK_TCK right.
|
#
6164 |
|
03-Feb-1995 |
bde |
Define CLOCKS_PER_SEC.
Define CLK_TCK only if _ANSI_SOURCE is not defined.
Don't include <machine/limits.h> to get the definition of CLK_TCK. CLK_TCK should never have been defined there, and the inclusion polluted the namespace.
|
#
5231 |
|
26-Dec-1994 |
ache |
Declare useful functions (timelocal() and timegm())
|
#
1540 |
|
24-May-1994 |
rgrimes |
This commit was generated by cvs2svn to compensate for changes in r1539, which included commits to RCS files with non-trunk default branches.
|
#
1539 |
|
24-May-1994 |
rgrimes |
BSD 4.4 Lite Include Sources
|