#
267654 |
|
19-Jun-2014 |
gjb |
Copy stable/9 to releng/9.3 as part of the 9.3-RELEASE cycle.
Approved by: re (implicit) Sponsored by: The FreeBSD Foundation |
#
254398 |
|
16-Aug-2013 |
davidxu |
MFC r239347, 240295, 240296 and 253325:
r239347 | davidxu | 2012-08-17 10:26:31 +0800 (Fri, 17 Aug 2012) | 7 lines
Implement syscall clock_getcpuclockid2, so we can get a clock id for process, thread or others we want to support. Use the syscall to implement POSIX API clock_getcpuclock and pthread_getcpuclockid.
PR: 168417
------------------------------------------------------------------------ r240295 | davidxu | 2012-09-10 13:00:29 +0800 (Mon, 10 Sep 2012) | 2 lines
Add missing prototype for clock_getcpuclockid.
------------------------------------------------------------------------ r240296 | davidxu | 2012-09-10 13:09:39 +0800 (Mon, 10 Sep 2012) | 2 lines
Process CPU-Time Clocks option is supported, define _POSIX_CPUTIME.
------------------------------------------------------------------------ r253325 | kib | 2013-07-14 03:32:50 +0800 (Sun, 14 Jul 2013) | 6 lines
Allow to call clock_gettime() on the clock id for zombie process.
Reported by: Petr Salinger <Petr.Salinger@seznam.cz> PR: threads/180496 Sponsored by: The FreeBSD Foundation
|
#
238136 |
|
05-Jul-2012 |
kib |
MFC r237660: Optimize the handling of SC_NPROCESSORS_CONF, by using auxv AT_NCPU value if present.
Approved by: re (kensmith)
|
#
225736 |
|
22-Sep-2011 |
kensmith |
Copy head to stable/9 as part of 9.0-RELEASE release cycle.
Approved by: re (implicit)
|
#
223136 |
|
16-Jun-2011 |
davidxu |
Use size of int to fetch sysctl kern.sched.cpusetsize because it had switched from long to int type in kernel.
Fixed by: pluknet
|
#
214510 |
|
29-Oct-2010 |
davidxu |
Add sysctl kern.sched.cpusetsize to export the size of kernel cpuset, also add sysconf() key _SC_CPUSET_SIZE to get sysctl value.
Submitted by: gcooper
|
#
204347 |
|
26-Feb-2010 |
edwin |
Split the contributed code from libc/stdtime from lib/libc/stdtime to contrib/tzcode/stdtime.
|
#
176618 |
|
27-Feb-2008 |
wollman |
stdio is currently limited to file descriptors not greater than {SHRT_MAX}, so {STREAM_MAX} should be no greater than that. (This does not exactly meet the letter of POSIX but comes reasonably close to it in spirit.)
MFC after: 14 days
|
#
168718 |
|
14-Apr-2007 |
pjd |
Cleanup sysconf(3) a bit. sysconf(3) assumes in some places it operates on int, but in fact it should operate on long. - Introduce 'lvalue' variable, which is long. - Fix _SC_XOPEN_SHM for 64bit archs. - Fix _SC_PHYS_PAGES for 64bit archs. Reported by: simokawa - Use lvalue for pathconf(3), as it returns long. - Cast value explicitly to long on return.
|
#
165903 |
|
08-Jan-2007 |
imp |
Per Regents of the University of Calfornia letter, remove advertising clause.
# If I've done so improperly on a file, please let me know.
|
#
165232 |
|
14-Dec-2006 |
imp |
band-aide until _SC_PHYS_PAGES actually is defined
|
#
165214 |
|
14-Dec-2006 |
pjd |
Force commit to note, that the last change was...
Discussed with: brooks, yar
|
#
165212 |
|
14-Dec-2006 |
pjd |
Add support for _SC_PHYS_PAGES, which is not standard, but can be found in Solaris and Linux.
|
#
107000 |
|
17-Nov-2002 |
dougb |
goto break; != break;
I've no idea if this is the right behavior for the library, but this at least fixes the build, and matches what seems to be alfred's intent in the commit message for 1.19.
|
#
106998 |
|
17-Nov-2002 |
alfred |
Rework the sysconf(3) interaction with aio:
sysconf.c: Use 'break' rather than 'goto yesno' in sysconf.c so that we report a '0' return value from the kernel sysctl.
vfs_aio.c: Make aio reset its configuration parameters to -1 after unloading instead of 0.
posix4_mib.c: Initialize the aio configuration parameters to -1 to indicate that it is not loaded. Add a facility (p31b_iscfg()) to determine if a posix4 facility has been initialized to avoid having to re-order the SYSINITs. Use p31b_iscfg() to determine if aio has had a chance to run yet which is likely if it is compiled into the kernel and avoid spamming its values. Introduce a macro P31B_VALID() instead of doing the same comparison over and over.
posix4.h: Prototype p31b_iscfg().
|
#
106976 |
|
16-Nov-2002 |
alfred |
Provide more correct default values for sysconf(3) reporting of the AIO subsystems capabilities:
_SC_AIO_LISTIO_MAX returns the default of _POSIX_AIO_LISTIO_MAX _SC_AIO_MAX returns the default _POSIX_AIO_MAX _SC_AIO_PRIO_DELTA_MAX returns the default of 0
Without these adjustments the values returned are -1 even when the aio side of the kernel returns '0' for them which is incorrect.
Noticed by: Craig Rodrigues <rodrigc@attbi.com>
|
#
106055 |
|
27-Oct-2002 |
wollman |
Update limits and configuration parameters for 1003.1/TC1/D6. Implement new sysconf keys. Change the implenentation of _SC_ASYNCHRONOUS_IO in preparation for the next set of changes.
Move some limits which had been in <sys/syslimits.h> to <limits.h> where they belong. They had only ever been in syslimits.h to provide for the kernel implementation of the CTL_USER MIB branch, which went away with newsysctl years ago. (There is a #error in <sys/syslimits.h> which I will downgrade in the next commit.)
|
#
103730 |
|
21-Sep-2002 |
wollman |
Initiate deorbit burn sequence for sysctl CTL_USER MIB branch. Use the correct constants directly from sysconf() rather than calling sysctl() to tell us the (still compiled-in) value. Leave the CTL_POSIX1B stuff alone for now (but I'd like to see this replaced with a single structure returning all of the relevant information).
Implement all of the keys from 1003.1-2001 that we can. Ensure that the build will break if someone redefines an option constant to zero without implementing the necessary presence-detection logic here.
(4 of 5)
|
#
100142 |
|
15-Jul-2002 |
wollman |
Don't bother asking the kernel about _SC_FSYNC; it's not optional.
|
#
93082 |
|
24-Mar-2002 |
dd |
A break after a return is useless.
|
#
90039 |
|
31-Jan-2002 |
obrien |
Fix SCM ID's.
|
#
87161 |
|
01-Dec-2001 |
jkoshy |
Add support for sysconf(_SC_NPROCESSORS_CONF) and sysconf(_SC_NPROCESSORS_ONLN). This API is supported in SVR4.0MP, Solaris, Linux, AIX and Tru64 Unix.
PR: bin/27489 Submitted by: Arun Sharma <arun@sharma-home.net> Reviewed by: bde (prior version)
|
#
78431 |
|
18-Jun-2001 |
wollman |
After one too many PRs on the subject, bite the bullet and define IOV_MAX and its associated constants. Implement _SC_IOV_MAX in the usual way. Be a bit sloppy about the namespace question; this should get cleared up in time for 5.0.
MFC after: 1 month
|
#
36577 |
|
01-Jun-1998 |
msmith |
Add a trivial mechanism for returning a useful default value if one is available and the kernel MIB setting is zero.
Return the result from getpagesize() if the p1003_1b.pagesize MIB value is zero.
Suggested by: Joerg Schilling <schilling@fokus.gmd.de>
|
#
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.
|
#
34319 |
|
08-Mar-1998 |
dufault |
Reviewed by: bde
Changes to support building with _POSIX_SOURCE set to 199309L:
1. Add sys/_posix.h to handle those preprocessor defs that POSIX says have effects when defined before including any header files;
2. Change POSIX4_VISIBLE back to _POSIX4_VISIBLE
3. Add _POSIX4_VISIBLE_HISTORICALLY for pre-existing BSD features now defined in POSIX. These show up when:
_POSIX_SOURCE and _POSIX_C_SOURCE are not set or _POSIX_C_SOURCE is set >= 199309L
and vanish when:
_POSIX_SOURCE is set or _POSIX_C_SOURCE is < 199309L.
4. Explain these in man 9 posix4;
5. Include _posix.h and conditionalize on new feature test.
|
#
34030 |
|
04-Mar-1998 |
dufault |
Reviewed by: msmith, bde long ago POSIX.4 headers and sysctl variables. Nothing should change unless POSIX4 is defined or _POSIX_VERSION is set to 199309.
|
#
12674 |
|
08-Dec-1995 |
dg |
Include sys/time.h, not sys/user.h.
Submitted by: "Marc G. Fournier" <scrappy@hub.org>
|
#
11874 |
|
28-Oct-1995 |
phk |
Add #include <sys/user.h>.
|
#
11659 |
|
22-Oct-1995 |
phk |
Minor cleanup, mostly unused vars and missing #includes.
|
#
8870 |
|
30-May-1995 |
rgrimes |
Remove trailing whitespace.
|
#
6171 |
|
03-Feb-1995 |
bde |
Include <time.h> instead of <sys/time.h> to get CLK_TCK. Including <sys/time.h> works because <sys/time.h> includes <time.h> if KERNEL is not defined, but is ugly.
|
#
1574 |
|
27-May-1994 |
rgrimes |
This commit was generated by cvs2svn to compensate for changes in r1573, which included commits to RCS files with non-trunk default branches.
|
#
1573 |
|
27-May-1994 |
rgrimes |
BSD 4.4 Lite Lib Sources
|