325090 |
29-Oct-2017 |
cy |
Sync (make same) the offsetof macro definition in include/ with the definition of the same in sys/sys/. The problem was discovered while working on implementing a new C11 gets_s() for libc. (The new gets_s() requires rsize_t found in include/stddef.h.) The solution to sync the two definitions was suggested by ed@ while discussing D12667.
Suggested by: ed |
319653 |
07-Jun-2017 |
kib |
MFC r318780: Use __BSD_VISIBLE test instead checking for absense of _POSIX_SOURCE. |
318198 |
11-May-2017 |
marius |
MFC: r292180 (partial), r297127 (partial), r311911, r311923, r312939, r313250, r313712, r314811 (partial), r314887 (partial), r315430, r317981, r315466
o Move the DRIVER_MODULE() statements that declare mmc(4) to be a child of the various bridge drivers out of dev/mmc.c and into the bridge drivers.
o Add ACPI platform support for SDHCI driver.
o Fix some overly long lines, whitespace and other bugs according to style(9) as well as spelling etc. in mmc(4), mmcsd(4) and sdhci(4).
o In the mmc(4) bridges and sdhci(4) (bus) front-ends: - Remove redundant assignments of the default bus_generic_print_child device method, - use DEVMETHOD_END, - use NULL instead of 0 for pointers.
o Trim/adjust includes.
o Add and use a MMC_DECLARE_BRIDGE macro for declaring mmc(4) bridges as kernel drivers and their dependency onto mmc(4).
o Add support for eMMC "partitions". Besides the user data area, i. e. the default partition, eMMC v4.41 and later devices can additionally provide up to: 1 enhanced user data area partition 2 boot partitions 1 RPMB (Replay Protected Memory Block) partition 4 general purpose partitions (optionally with a enhanced or extended attribute)
Besides simply subdividing eMMC devices, some Intel NUCs having UEFI code in the boot partitions etc., another use case for the partition support is the activation of pseudo-SLC mode, which manufacturers of eMMC chips typically associate with the enhanced user data area and/ or the enhanced attribute of general purpose partitions.
CAVEAT EMPTOR: Partitioning eMMC devices is a one-time operation.
o Now that properly issuing CMD6 is crucial (so data isn't written to the wrong partition for example), make a step into the direction of correctly handling the timeout for these commands in the MMC layer. Also, do a SEND_STATUS when CMD6 is invoked with an R1B response as recommended by relevant specifications.
o Add an IOCTL interface to mmcsd(4); this is sufficiently compatible with Linux so that the GNU mmc-utils can be ported to and used with FreeBSD (note that due to the remaining deficiencies outlined above SANITIZE operations issued by/with `mmc` currently most likely will fail). These latter have been added to ports as sysutils/mmc-utils. Among others, the `mmc` tool of mmc-utils allows for partitioning eMMC devices (tested working).
o For devices following the eMMC specification v4.41 or later, year 0 is 2013 rather than 1997; so correct this for assembling the device ID string properly.
o Let mmcsd.ko depend on mmc.ko. Additionally, bump MMC_VERSION as at least for some of the above a matching pair is required. |
316781 |
13-Apr-2017 |
ian |
MFC r291310:
Stop building vers.c in include/ and only build the needed osreldate.h.
Because of how osreldate.h was being built with newvers.sh, which always spat out a vers.c dependent on SVN or git, the meta mode build was considering osreldate.h to depend on the current git or SVN index. This would lead to entire tree rebuilds when modifying git's index. There's no reason to be generating vers.c here so just skip it.
While here, in mk-osreldate.sh rename PARAM_H to proper PARAMFILE (which newvers.sh already has a default for) and remove unneeded export.
Sponsored by: EMC / Isilon Storage Division |
313971 |
19-Feb-2017 |
pfg |
MFC r313819: Remove outdated claim.
Despite wishful thinking the removal of these old functions hasn't happened yet. |
312382 |
18-Jan-2017 |
avg |
MFC r310630: libkvm: support access to vmm guest memory, allow writes to fwmem and vmm
Sponsored by: Panzura |
311223 |
04-Jan-2017 |
sephe |
MFC 310048,310101
310048 hyperv: Implement "enlightened" time counter, which is rdtsc based.
Reviewed by: kib Sponsored by: Microsoft Differential Revision: https://reviews.freebsd.org/D8763
310101 hyperv: Allow userland to ro-mmap reference TSC page
This paves way to implement VDSO for the enlightened time counter.
Reviewed by: kib Sponsored by: Microsoft Differential Revision: https://reviews.freebsd.org/D8768 |
310735 |
29-Dec-2016 |
sephe |
MFC 308664,308742,308743
308664 hyperv/vss: Add driver and tools for VSS
VSS stands for "Volume Shadow Copy Service". Unlike virtual machine snapshot, it only takes snapshot for the virtual disks, so both filesystem and applications have to aware of it, and cooperate the whole VSS process.
This driver exposes two device files to the userland:
/dev/hv_fsvss_dev
Normally userland programs should _not_ mess with this device file. It is currently used by the hv_vss_daemon(8), which freezes and thaws the filesystem. NOTE: currently only UFS is supported, if the system mounts _any_ other filesystems, the hv_vss_daemon(8) will veto the VSS process.
If hv_vss_daemon(8) was disabled, then this device file must be opened, and proper ioctls must be issued to keep the VSS working.
/dev/hv_appvss_dev
Userland application can opened this device file to receive the VSS freeze notification, hold the VSS for a while (mainly to flush application data to filesystem), release the VSS process, and receive the VSS thaw notification i.e. applications can run again.
The VSS will still work, even if this device file is not opened. However, only filesystem consistency is promised, if this device file is not opened or is not operated properly.
hv_vss_daemon(8) is started by devd(8) by default. It can be disabled by editting /etc/devd/hyperv.conf.
Submitted by: Hongjiang Zhang <honzhan microsoft com> Reviewed by: kib, mckusick Sponsored by: Microsoft Differential Revision: https://reviews.freebsd.org/D8224
308742 hyperv/vss: Nuke unused variables.
Submitted by: markj Reported by: markj Sponsored by: Microsoft
308743 hyperv/vss: Install the userland daemon to /usr/sbin instead of /
Submitted by: markj Reported by: markj Sponsored by: Microsoft |
310134 |
16-Dec-2016 |
jhb |
MFC 309274: Use the correct name for the GCC macro indicating max_align_t is defined. |
309502 |
03-Dec-2016 |
ngie |
MFC r296133: r296133 (by pfg):
RPC: update the getrpcbyname() definition to include a const qualifier.
Add const qualifier making getrpcbyname() and getrpcbyname_r() prototypes match those used in latest Sun RPC code (TI-RPC 2.3).
Obtained from: NetBSD |
309258 |
28-Nov-2016 |
jhb |
MFC 307756: Define max_align_t for C11.
libc++'s stddef.h includes an existing definition of max_align_t for C++11, but it is only defined for C++, not for C. In addition, GCC and clang both define an alternate version of max_align_t that uses a union of multiple types rather than a plain long double as in libc++. This adds a __max_align_t to <sys/_types.h> that matches the GCC and clang definition that is mapped to max_align_t in <stddef.h>.
PR: 210890 |
308091 |
29-Oct-2016 |
ed |
Add posix_tnode to <search.h>.
In r307227 I've refactored the binary search tree functions to use the posix_tnode type. As this change does not apply cleanly to this version of FreeBSD, only make the change that matters: add the definition of the newly introduced type.
This will ease source-level compatibility going forward. |
308044 |
28-Oct-2016 |
avg |
MFC r307131: install header files required development with libzfs_core |
306846 |
08-Oct-2016 |
vangyzen |
MFC r306568, r306569
Add the __printflike attribute to the declarations of dprintf(3) and vdprintf(3).
Sponsored by: Dell EMC |
304862 |
26-Aug-2016 |
ache |
MFC r304703, r304755
1) _locale.h LC_*_MASK bit shifting order was partially broken from the initial commit time at year 2012. Only LC_COLLATE_MASK and LC_CTYPE_MASK are in the right order.
The order here should match XLC_* from "xlocale_private.h" which, in turn, match LC_* publicly visible order from <locale.h> which determines how locale components are stored in the structure. LC_*_MASK -> XLC_* translation done as "ffs(mask) - 1" in the querylocale() and equivalent shift loop in the newlocale(), so mapped to some wrong components (excluding two mentioned above).
Formally the fix is ABI breakage, but old code using those masks never works properly in any case. Only newlocale() and querylocale() are affected.
2) msgcat.c Use current locale (f.e. set by thread). It was global locale always previously.
PR: 211743 |
302008 |
18-Jun-2016 |
ed |
MFC r300998:
Add missing va_list to <wchar.h>.
It looks like va_list should always be defined when XSI is enabled. It moved over to the POSIX base in the 2008 edition. |
297432 |
30-Mar-2016 |
dim |
MFC r297212:
For C++, expose long long types and functions (lldiv_t, llabs, lldiv, etc) in stdlib.h. These will be needed for newer versions of libc++, which uses them for defining overloaded versions of abs() and div(). |
297259 |
25-Mar-2016 |
pfg |
MFC r296394: xdr: Fix xdr_rpc* defines.
The defines for xdr_rpc* in xdr.h are wrong. It could be very well that Solaris did strip the '_t' from xdr_u_int32_t, but Solaris has a xdr_u_int32 function, we don't have this. So all of this defines will lead to an unresolved symbol.
This explains why we do not use these functions in FreeBSD while they are used in Illumos/Solaris.
Obtained from: linux libtirpc (git 7864122e61ffe4db1aa8ace89117358a1e3a391b) |
293800 |
13-Jan-2016 |
kevlo |
MFC r293491: - Add the definition of CHARCLASS_NAME_MAX, as per POSIX.1-2001. - Avoid namespace pollution and move definitions of _POSIX2_CHARCLASS_NAME_MAX and _POSIX2_COLL_WEIGHTS_MAX into the .2001 section. With input from bde.
Reviewed by: bde |
292760 |
27-Dec-2015 |
ume |
MFC r292514: addrinfo.ai_family is an address family, not a protocol family.
PR: 162434 |
292722 |
25-Dec-2015 |
ume |
Add AI_V4MAPPED and AI_ALL support for getaddrinfo(3).
PR: 198092 |
291815 |
04-Dec-2015 |
bdrewery |
MFC r284289,r288267:
r284289: Misc fixes from projects/bmake r288267: Remove redundant .NOPATH. |
291792 |
04-Dec-2015 |
bdrewery |
MFC r289393:
Add more SUBDIR_PARALLEL. |
291602 |
01-Dec-2015 |
ngie |
MFC r285140: r285140 (by oshogbo):
Add fdclose(3) function.
This function is equivalent to fclose(3) function except that it does not close the underlying file descriptor. fdclose(3) is step forward to make FILE structure private.
Reviewed by: wblock, jilles, jhb, pjd Approved by: pjd (mentor) Differential Revision: https://reviews.freebsd.org/D2697 |
290544 |
08-Nov-2015 |
ache |
MFC: r289863,r289931,r290110,r290230,r290231,r290232
r290232:
Microoptimize.
r290231:
Addition to prev. commit. In some edge cases fp->_p can be changed in _sseek(), recalculate.
r290230:
Don't seek to the end if write buffer is empty (in append modes). PR: 204156
r290110:
Add _flags2 per jhb@ suggestion since no room left in _flags. Rewrite O_APPEND flag checking using new __S2OAP flag.
r289931:
According to POSIX, a write operation shall start at the current size of the stream (if mode had 'a' as the first character).
r289863:
Since no room left in the _flags, reuse __SALC for O_APPEND. It helps to remove _fcntl() call from _ftello() and optimize seek position calculation in _swrite(). |
282275 |
30-Apr-2015 |
tijl |
MFC r275805:
Fix incorrect type of "invalids" argument in __iconv() prototype.
MFC r281550,281591:
Remove the const qualifier from iconv(3) to comply with POSIX: http://pubs.opengroup.org/onlinepubs/9699919799/functions/iconv.html
Adjust all code that calls iconv.
PR: 199099 |
281036 |
03-Apr-2015 |
bdrewery |
MFC r278600:
Correct and clarify comment for __SMBF. |
280427 |
24-Mar-2015 |
ngie |
MFC r278204:
Sort the entries by build knob, then MACHINE_ARCH like other areas of the tree
Sponsored by: EMC / Isilon Storage Division |
280419 |
24-Mar-2015 |
ngie |
MFC r278135,r278202:
r278135 (by amdmi3):
- Remove more files when MK_USB == no
Reviewed by: ngie Approved by: ngie Differential Revision: D1600
r278202:
Clean up more usb related files when MK_USB == no when dealing with manpages, libraries, and binaries
Sponsored by: EMC / Isilon Storage Division |
274001 |
03-Nov-2014 |
rpaulo |
MFC 273598 273602 273607 273613 273647:
Userland HPET support. |
272850 |
09-Oct-2014 |
hrs |
MFC r258580: Replace Sun RPC license in TI-RPC library with a 3-clause BSD license, with the explicit permission of Sun Microsystems in 2009.
MFC r258581, 258582: Replace Sun Industry Standards Source License for Sun RPC code with a 3-clause BSD license as specified by Oracle America, Inc. in 2010. This license change was approved by Wim Coekaerts, Senior Vice President, Linux and Virtualization at Oracle Corporation.
MFC r259117, 259118: Replace Sun RPC license with a 3-clause BSD license. This license change was approved in 2010 by Wim Coekaerts, Senior Vice President, Linux and Virtualization at Oracle Corporation.
MFC r259417: Replace Sun RPC license for TI-RPC library with a 3-clause BSD license, with the explicit permission of Sun Microsystems in 2009. The code in question in this file was copied from lib/libc/rpc/pmap_getport.c. |
270838 |
30-Aug-2014 |
ume |
MFC r269867: Update our stub resolver to final version of libbind (libbind-6.0).
Obtained from: ISC |
270002 |
14-Aug-2014 |
jhb |
MFC 268531,269079,269204: Fix various edge cases with rewinddir(), seekdir(), and telldir(): - In the unionfs case, opendir() and fdopendir() read the directory's full contents and cache it. This cache is not refreshed when rewinddir() is called, so rewinddir() will not notice updates to a directory. Fix this by splitting the code to fetch a directory's contents out of __opendir_common() into a new _filldir() function and call this from rewinddir() when operating on a unionfs directory. - If rewinddir() is called on a directory opened with fdopendir() before any directory entries are fetched, rewinddir() will not adjust the seek location of the backing file descriptor. If the file descriptor passed to fdopendir() had a non-zero offset, the rewinddir() will not rewind to the beginning. Fix this by always seeking back to 0 in rewinddir(). This means the dd_rewind hack can also be removed. - Add missing locking to rewinddir() - POSIX says that passing a location returned by telldir() to seekdir() after an intervening call to rewinddir() is undefined, so reclaim any pending telldir() cookies in the directory when rewinddir() is called. - If telldir() is called immediately after a call to seekdir(), POSIX requires the return value of telldir() to equal the value passed to seekdir(). The current seekdir code with SINGLEUSE enabled breaks this case as each call to telldir() allocates a new cookie. Instead, remove the SINGLEUSE code and change telldir() to look for an existing cookie for the directory's current location rather than always creating a new cookie.
PR: 121656 |
267666 |
20-Jun-2014 |
tijl |
MFC r267441:
Don't install GSS-API headers when the GSSAPI option has been disabled. Some ports assume GSS-API is supported when they find the headers.
PR: 189156 Submitted by: Garrett Cooper <yanegomi@gmail.com> |
267465 |
14-Jun-2014 |
pfg |
MFC r266865;
Fix strcasecmp_l() and strncasecmp_l() POSIX 2008 compliance.
POSIX.1-2008 specifies that those two functions should be declared by including <strings.h>, not <string.h> (the latter only has strcoll_l() and strxfrm_l()):
http://pubs.opengroup.org/onlinepubs/9699919799/functions/strcasecmp.html
Bump __FreeBSD_version for ports that may be using the non-standard reference.
Obtained from: DragonFlyBSD Reviewed by: theraven |
267236 |
08-Jun-2014 |
nwhitehorn |
MFC r260913,266895: Add a new flag to /etc/ttys: onifconsole. This is equivalent to "on" if the device is an active kernel console and "off" otherwise. This is designed to allow serial-booting x86 systems to provide a login prompt on the serial line by default without providing one on all systems by default. Set this flag on x86 systems for ttyu0.
Comments and suggestions by: grehan, dteske, jilles |
264496 |
15-Apr-2014 |
tijl |
MFC r263998:
Rename __wchar_t so it no longer conflicts with __wchar_t from clang 3.4 -fms-extensions. |
263370 |
19-Mar-2014 |
glebius |
Merge r257485: install netpfil/pf includes. |
263086 |
12-Mar-2014 |
glebius |
Bulk sync of pf changes from head, in attempt to fixup broken build I made in r263029.
Merge r257186,257215,257349,259736,261797.
These changesets split pfvar.h into several smaller headers and make userland utilities to include only some of them. |
261046 |
22-Jan-2014 |
mav |
MFC r258578, r258580, r258581 (by hrs): Replace Sun RPC license in TI-RPC library with a 3-clause BSD license with the explicit permissions. |
259073 |
07-Dec-2013 |
peter |
Hoist all the mergeinfo up to the root in preparation for enforcing merges to the root only. All MFC's were rerecorded to the root.
Going forward, if an MFC includes mergeinfo, it will need to be made to the root and committed from the root. Merges with --ignore-ancestry or diff | patch can go anywhere.
The mergeinfo in HEAD is in a bad state from years of neglect and manual tampering and this was branched into 10.x. This confuses the coalescing code and prevents it from doing its job.
Approved by: re (gjb, implicit) |
258750 |
29-Nov-2013 |
gjb |
MFC r258537, r258587:
r258537 (hrs): Add ICONV_{GET,SET}_ILSEQ_INVALID iconvctl. GNU iconv returns EILSEQ when there is an invalid character in the output codeset while it is valid in the input. However, POSIX requires iconv() to perform an implementation-defined conversion on the character. So, Citrus iconv converts such a character to a special character which means it is invalid in the output codeset.
This is not a problem in most cases but some software like libxml2 depends on GNU's behavior to determine if a character is output as-is or another form such as a character entity (&#NNN;).
r258587 (peter): Move the iconv wrapper source from libc_nonshared to libc/iconv so that it is all in the one place again. Rename libc/iconv/iconv.c to bsd_iconv.c. Compile the wrappers into libc.a so that WITHOUT_DYNAMICROOT works again.
Approved by: re (kib) Sponsored by: The FreeBSD Foundation |
258398 |
20-Nov-2013 |
peter |
MFC r258283 - move iconv* symbols out of libc.so.7 namespace with compatibility symbols to aid transition for existing 10.x installs.
Approved by: re (kib) |
258230 |
16-Nov-2013 |
gjb |
MFC r257583, r258012, r258013:
r257583 (peter): Remove the WITH_LIBICONV_COMPAT hack that seems to do more harm than good. This caused libc to spoof the ports libiconv namespace and provide a colliding libiconv.so.3 to fool rtld. This should have been removed some time ago.
r258012: Remove WITH_LIBICONV_COMPAT file to chase after r257583.
r258013: Regenerate src.conf.5 after removal of WITH_LIBICONV_COMPAT.
Approved by: re (kib) Sponsored by: The FreeBSD Foundation
Sponsored by: The FreeBSD Foundation |
257113 |
25-Oct-2013 |
tijl |
MFC r256925:
Add a dummy statement to the beginning of the pthread_cleanup_pop() macro to allow a call of the macro to be labelled as in:
label: pthread_cleanup_pop();
Reviewed by: imp Approved by: re (glebius) |
256281 |
10-Oct-2013 |
gjb |
Copy head (r256279) to stable/10 as part of the 10.0-RELEASE cycle.
Approved by: re (implicit) Sponsored by: The FreeBSD Foundation
|
255957 |
30-Sep-2013 |
ian |
Set proper permissions on the generated osreldate.h file; a file readable only by root can cause install problems, especially over nfs.
Submitted by: jilles@ Approved by: re (gjb)
|
255949 |
30-Sep-2013 |
des |
Remove BIND.
Approved by: re (gjb)
|
255930 |
28-Sep-2013 |
ian |
Allow the path to the system source directory to be passed in to newvers.sh. Pass it in from include/Makefile. If it isn't passed in, fall back to the old logic of using dirname $0.
Using dirname $0 does not yield the path to the script if it was sourced in from another script in another directory; you end up with the parent script's path. That was causing newvers.sh to look one level below the FreeBSD src/ directory when building osreldate.h and it may find something like a git or svn repo there that has nothing to do with FreeBSD.
PR: 174422 Approved by: re () MFC after: 2 weeks
|
255929 |
28-Sep-2013 |
nwhitehorn |
Prevent the set -e from mk-osreldate.sh from propagating into newvers.sh. This would cause detection of old versions of SVN to cause fatal errors instead of being caught and handled, which would make the build fail if the tree had been checked out with an older version of SVN (e.g. 1.6).
Discussed with: gjb Approved by: re (marius)
|
255807 |
23-Sep-2013 |
ian |
Launch the bourne shell using "sh" rather than "${SHELL}", as the latter may come in from the environment and reflect the user's interactive shell. Using bare "sh" is the dominant pattern in existing makefiles.
MFC this together with r255775.
Approved by: re () MFC after: 2 weeks
|
255796 |
22-Sep-2013 |
ian |
Launch the shell, passing it the path to the mk-osreldate script, rather than launching the script directly and relying on #! to launch the shell. This avoids problems when the source is mounted with the noexec flag.
MFC this together with r255775.
Approved by: re (kib) MFC after: 2 weeks
|
255775 |
21-Sep-2013 |
ian |
Create a separate script to generate osreldate.h rather than sourcing newvers.sh into a temporary subshell with inline make rules.
Using a separate script fixes a variety of problems, including establishing the correct dependencies in the makefiles. It also eliminates a problem with the way newvers.sh uses `realpath $0`, because $0 expands differently within a script sourced into a rule in a makefile depending on the version of make and of /bin/sh being used. The latter can cause build breakage in a cross-build environment, and can also make it difficult to compile 10.0 on older pre-10.0 systems.
PR: 160646 174422 Submitted by: Garrett Cooper <yaneurabeya@gmail.com> Approved by: re (gjb) MFC after: 2 weeks
|
255629 |
17-Sep-2013 |
sbruno |
Assume that the -f argument is /dev/gpioc0 if it is not passed.
hrs@ provided this verison of the patch and showed me where all the needed changes were to be made outside of gpioctl.c
Approved by: re (hrs) MFC after: 2 weeks
|
255297 |
06-Sep-2013 |
theraven |
Fix the namespace pollution caused by iconv.h including stdbool.h This broke any C89 ports that defined bool themselves, including things like gcc, gtk, and so on.
|
254499 |
18-Aug-2013 |
pjd |
Implement fdclosedir(3) function, which is equivalent to the closedir(3) function, but returns directory file descriptor instead of closing it.
Submitted by: Mariusz Zaborski <oshogbo@FreeBSD.org> Sponsored by: Google Summer of Code 2013
|
254409 |
16-Aug-2013 |
jilles |
Add dup3(), based on F_DUP2FD and F_DUP2FD_CLOEXEC fcntls.
I removed functionality not proposed for POSIX in Austin group issue #411. A man page (my own) and test cases will follow in later commits.
PR: 176233 Submitted by: Jukka Ukkonen
|
254273 |
13-Aug-2013 |
peter |
The iconv in libc did two things - implement the standard APIs, the GNU extensions and also tried to be link time compatible with ports libiconv. This splits that functionality and enables the parts that shouldn't interfere with the port by default.
WITH_ICONV (now on by default) - adds iconv.h, iconv_open(3) etc. WITH_LIBICONV_COMPAT (off by default) adds the libiconv_open etc API, linker symbols and even a stub libiconv.so.3 that are good enough to be able to 'pkg delete -f libiconv' on a running system and reasonably expect it to work.
I have tortured many machines over the last few days to try and reduce the possibilities of foot-shooting as much as I can. I've successfully recompiled to enable and disable the libiconv_compat modes, ports that use libiconv alongside system iconv etc. If you don't enable the WITH_LIBICONV_COMPAT switch, they don't share symbol space.
This is an extension of behavior on other system. iconv(3) is a standard libc interface and libiconv port expects to be able to run alongside it on systems that have it.
Bumped osreldate.
|
254151 |
09-Aug-2013 |
jilles |
Add mkostemp() and mkostemps().
These are like mkstemp() and mkstemps() but allow passing open(2) flags like O_CLOEXEC.
|
252784 |
05-Jul-2013 |
jilles |
stdlib.h: Add correct POSIX version for POSIX extensions to C.
|
252608 |
03-Jul-2013 |
ache |
1) POSIX requires rand(3) return values to be in the [0, RAND_MAX] range, but ACM formula we use have internal state (and return value) in the [1, 0x7ffffffe] range, so our RAND_MAX (0x7fffffff) is never reached because it is off by one, zero is not reached too.
Correct both RAND_MAX and rand(3) return value, shifting last one to the 0 by 1 subtracted, resulting POSIXed [0, 0x7ffffffd(=new RAND_MAX)] range.
2) Add a checks for not overflowing on too big seeds. It may happens on the machines, where sizeof(unsigned int) > 32 bits.
Reviewed by: bde [1] MFC after: 2 weeks
|
252547 |
03-Jul-2013 |
peter |
Replace the #define for "iconv" so it is for the function name instead of a macro with parameters. Remove a __DECONST hack and add consts instead for gnu libiconv API compatability. This makes it work with things like devel/boost-libs that expects to use "iconv" as though it were a pointer.
|
252409 |
30-Jun-2013 |
hrs |
Fix gssapi/gssapi_krb5.h after Heimdal 1.5.1 import.
Reviewed by: dfr
|
252356 |
28-Jun-2013 |
davide |
- Trim an unused and bogus Makefile for mount_smbfs. - Reconnect with some minor modifications, in particular now selsocket() internals are adapted to use sbintime units after recent'ish calloutng switch.
|
252310 |
27-Jun-2013 |
hrs |
- Add vnode-backed swap space specification support. This is enabled when device names "md" or "md[0-9]*" and a "file" option are specified in /etc/fstab like this:
md none swap sw,file=/swap.bin 0 0
- Add GBDE/GELI encrypted swap space specification support, which rc.d/encswap supported. The /etc/fstab lines are like the following:
/dev/ada1p1.bde none swap sw 0 0 /dev/ada1p2.eli none swap sw 0 0
.eli devices accepts aalgo, ealgo, keylen, and sectorsize as options.
swapctl(8) can understand an encrypted device in the command line like this:
# swapctl -a /dev/ada2p1.bde
- "-L" flag is added to support "late" option to defer swapon until rc.d/mountlate runs.
- rc.d script change:
rc.d/encswap -> removed rc.d/addswap -> just display a warning message if $swapfile is defined rc.d/swap1 -> renamed to rc.d/swap rc.d/swaplate -> newly added to support "late" option
These changes alleviate a race condition between device creation/removal and swapon/swapoff.
MFC after: 1 week Reviewed by: wblock (manual page)
|
251230 |
01-Jun-2013 |
ed |
Move <stdatomic.h> into sys/sys/.
This will allow us to use C11 atomics in kernelspace, although it will need to be included as <sys/stdatomic.h>.
|
251192 |
31-May-2013 |
ed |
Fix misspelling of structure field name.
|
251121 |
30-May-2013 |
das |
I'm happy to finally commit stephen@'s implementations of cacos, cacosh, casin, casinh, catan, and catanh. Thanks to stephen@ and bde@ for working on these.
Submitted by: stephen@ Reviewed by: bde
|
250991 |
25-May-2013 |
marcel |
Make the malloc(3) family of functions weak and make their non-weak implementations visible for use by applications. The functions $F that are now weak symbols are: allocm, calloc, dallocm, free, malloc, malloc_usable_size, nallocm, posix_memalign, rallocm, realloc, sallocm
The non-weak implementations of $F are exported as __$F.
Submitted by: stevek@juniper.net Reviewed by: jasone@, kib@ Approved by: jasone@ (jemalloc) Obtained from: juniper Networks, Inc
|
250990 |
25-May-2013 |
ed |
Add C11 macros CMPLX(), CMPLXF() and CMPLXL().
Clang allows us to initialize complex numbers using an array initializer, casted to a complex type. GCC has a builtin called __builtin_complex().
|
250985 |
25-May-2013 |
ed |
Fix <uchar.h> in for C++11.
It turns out that in C++11, char16_t and char32_t are built-in types; language keywords. Just fix this by putting traditional _*_T_DECLARED blocks around the definitions. We'll just predefine these in <sys/_types.h>.
This also opens up the possibility to define char16_t in other header files, if ever needed (e.g. if we would gain a <ctype.h> for char16_t/char32_t).
|
250889 |
21-May-2013 |
ed |
Add proper prerequisites for even two more headers.
Spotted by: http://hacks.owlfolio.org/header-survey/
|
250887 |
21-May-2013 |
ed |
Allow certain headers to be included more easily.
Spotted by: http://hacks.owlfolio.org/header-survey/
|
250883 |
21-May-2013 |
ed |
Add <uchar.h>.
The <uchar.h> header, part of C11, adds a small number of utility functions for 16/32-bit "universal" characters, which may or may not be UTF-16/32. As our wchar_t is already ISO 10646, simply add light-weight wrappers around wcrtomb() and mbrtowc().
While there, also add (non-yet-standard) _l functions, similar to the ones we already have for the other locale-dependent functions.
Reviewed by: theraven
|
250159 |
01-May-2013 |
jilles |
Add pipe2() system call.
The pipe2() function is similar to pipe() but allows setting FD_CLOEXEC and O_NONBLOCK (on both sides) as part of the function.
If p points to two writable ints, pipe2(p, 0) is equivalent to pipe(p).
If the pointer is not valid, behaviour differs: pipe2() writes into the array from the kernel like socketpair() does, while pipe() writes into the array from an architecture-specific assembler wrapper.
Reviewed by: kan, kib
|
249995 |
27-Apr-2013 |
ed |
Enable improved <tgmath.h> for Clang even when not using C11.
By using __has_extension(c_generic_selections), we can explicitly test whether we're dealing with a version of Clang that supports _Generic(). That way we can use the improved <tgmath.h> code, even when not using -std=c11. This massively reduces the compilation time when invoking these functions.
|
249802 |
23-Apr-2013 |
eadler |
- sl_find does not modify 'name' - make the prototype of sl_find match NetBSD
Reviewed by: jilles Approved by: cperciva (mentor) MFC After: 3 days
|
249583 |
17-Apr-2013 |
gabor |
- Correct mispellings of the word necessary
Submitted by: Christoph Mallon <christoph.mallon@gmx.de> (via private mail)
|
249311 |
09-Apr-2013 |
ed |
Add static/const keywords to the arrays.
This theoretically allows a compiler to optimize (parts of) the array away if unused.
While there, make the array size implicit and use a _Static_assert() to ensure that the definition matches up with the number of elements in the list.
|
247411 |
27-Feb-2013 |
jhb |
Add an implementation of open_memstream() and open_wmemstream(). These routines provide write-only stdio FILE objects that store their data in a dynamically allocated buffer. They are a string builder interface somewhat akin to a completely dynamic sbuf.
Reviewed by: bde, jilles (earlier versions) MFC after: 1 month
|
246803 |
14-Feb-2013 |
zeising |
FreeBSD uses #if __BSD_VISIBLE to hide non-standard functions, fix this.
Noticed by: kib Approved by: kib
|
246766 |
13-Feb-2013 |
zeising |
Add strchrnul(), a GNU function similar to strchr(), except that it returns a pointer to the end of the string, rather than NULL, if the character was not found.
Approved by: theraven
|
246367 |
05-Feb-2013 |
jhb |
Install <dev/agp/agpreg.h> and <dev/pci/pcireg.h> as userland headers in /usr/include.
MFC after: 2 weeks
|
246120 |
30-Jan-2013 |
gahr |
Add fmemopen(3), an interface to get a FILE * from a buffer in memory, along with the respective regression test. See http://pubs.opengroup.org/onlinepubs/9699919799/functions/fmemopen.html
Reviewed by: cognet Approved by: cognet
|
245911 |
25-Jan-2013 |
brooks |
MK_* variable should be compared to "no" not "NO".
Submitted by: "b.f." <bf1783@googlemail.com>
|
245886 |
24-Jan-2013 |
brooks |
Don't install telnet.h if it will be installed by libtelnet.
|
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
|
244401 |
18-Dec-2012 |
brooks |
Replace our implementation of the vis(3) and unvis(3) APIs with NetBSD's. This output size limited versions of vis and unvis functions as well as a set of vis variants that allow arbitrary characters to be specified for encoding.
Finally, MIME Quoted-Printable encoding as described in RFC 2045 is supported.
|
243247 |
18-Nov-2012 |
trasz |
Add change missed in 243245.
|
243032 |
14-Nov-2012 |
demon |
Use defined() to test macro definitions.
Approved by: theraven
|
241731 |
19-Oct-2012 |
brooks |
Replace our version of the pwcache(3) API with NetBSD's implementation.
This adds two features: * uid_from_user() and gid_from_group() as the reverse of user_from_uid() and groups_from_gid(). * pwcache_userdb() and pwcache_groupdb() which allow alternative lookup functions to be used. For example lookups from passwd and group databases in a non-standard location.
|
241680 |
18-Oct-2012 |
attilio |
Disconnect non-MPSAFE SMBFS from the build in preparation for dropping GIANT from VFS. In addition, disconnect also netsmb, which is a base requirement for SMBFS.
In the while SMBFS regular users can use FUSE interface and smbnetfs port to work with their SMBFS partitions.
Also, there are ongoing efforts by vendor to support in-kernel smbfs, so there are good chances that it will get relinked once properly locked.
This is not targeted for MFC.
|
241641 |
17-Oct-2012 |
attilio |
Include a piece that was left out during r241629.
Pointy hat to: me
|
241636 |
17-Oct-2012 |
attilio |
Disconnect non-MPSAFE NTFS from the build in preparation for dropping GIANT from VFS. This code is particulary broken and fragile and other in-kernel implementations around, found in other operating systems, don't really seem clean and solid enough to be imported at all. If someone wants to reconsider in-kernel NTFS implementation for inclusion again, a fair effort for completely fixing and cleaning it up is expected.
In the while NTFS regular users can use FUSE interface and ntfs-3g port to work with their NTFS partitions.
This is not targeted for MFC.
|
241629 |
17-Oct-2012 |
attilio |
Disconnect non-MPSAFE NWFS from the build in preparation for dropping GIANT from VFS. In addition, disconnect also netncp, which is a base requirement for NWFS.
In the possibility of a future maintenance of the code and later readd to the FreeBSD base, maybe we should think about a better location for netncp. I'm not entirely sure the / top location is actually right, however I will let network people to comment on that more specifically.
This is not targeted for MFC.
|
241606 |
16-Oct-2012 |
attilio |
Disconnect non-MPSAFE PORTALFS from the build in preparation for dropping GIANT from VFS.
This is not targeted for MFC.
|
241181 |
04-Oct-2012 |
pfg |
rpc: convert all uid and gid variables to u_int.
After further discussion, instead of pretending to use uid_t and gid_t as upstream Solaris and linux try to, we are better using u_int, which is in fact what the code can handle and best approaches the range of values used by uid and gid.
Discussed with: bde Reviewed by: bde
|
241141 |
02-Oct-2012 |
pfg |
RPC: Convert all uid and gid variables of the type uid_t and gid_t.
This matches what upstream (OpenSolaris) does.
Tested by: David Wolfskill Obtained from: Bull GNU/Linux NFSv4 project (libtirpc) MFC after: 3 days
|
241077 |
30-Sep-2012 |
tijl |
- Simplify the implementation of atomic_compare_exchange_strong_explicit. - Evaluate the memory order argument in atomic_fetch_*_explicit macros. - Implement atomic_store_explicit using atomic_exchange_explicit instead of a plain assignment.
Reviewed by: theraven MFC after: 2 weeks
|
241008 |
27-Sep-2012 |
pfg |
Complete revert of r239963:
The attempt to merge changes from the linux libtirpc caused rpc.lockd to exit after startup under unclear conditions.
After many hours of selective experiments and inconsistent results the conclusion is that it's better to just revert everything and restart in a future time with a much smaller subset of the changes. ____
MFC after: 3 days Reported by: David Wolfskill Tested by: David Wolfskill
|
240970 |
26-Sep-2012 |
tijl |
- Make C11 atomic macros usable in expressions: - Replace do-while statements with void expressions. - Wrap __asm statements in statement expressions. - Make the macros function-like: - Evaluate all arguments exactly once. - Make sure there's a sequence point between evaluation of the arguments and the function body. Arguments should be evaluated before any memory barriers. - Fix use of __atomic_is_lock_free built-in. It requires the address of an atomic variable as second argument. Use this built-in on clang as well because clang's __c11_atomic_is_lock_free only takes the size of the variable into account. - In atomic_exchange_explicit put the barrier before instead of after the __sync_lock_test_and_set call.
Reviewed by: theraven
|
240621 |
17-Sep-2012 |
jimharris |
Integrate nvmecontrol(8) into the amd64 and i386 builds.
This includes adding NVMe header files to /usr/include/dev/nvme.
Sponsored by: Intel
|
240494 |
14-Sep-2012 |
glebius |
o Create directory sys/netpfil, where all packet filters should reside, and move there ipfw(4) and pf(4).
o Move most modified parts of pf out of contrib.
Actual movements:
sys/contrib/pf/net/*.c -> sys/netpfil/pf/ sys/contrib/pf/net/*.h -> sys/net/ contrib/pf/pfctl/*.c -> sbin/pfctl contrib/pf/pfctl/*.h -> sbin/pfctl contrib/pf/pfctl/pfctl.8 -> sbin/pfctl contrib/pf/pfctl/*.4 -> share/man/man4 contrib/pf/pfctl/*.5 -> share/man/man5
sys/netinet/ipfw -> sys/netpfil/ipfw
The arguable movement is pf/net/*.h -> sys/net. There are future plans to refactor pf includes, so I decided not to break things twice.
Not modified bits of pf left in contrib: authpf, ftp-proxy, tftp-proxy, pflogd.
The ipfw(4) movement is planned to be merged to stable/9, to make head and stable match.
Discussed with: bz, luigi
|
240297 |
10-Sep-2012 |
davidxu |
POSIX requires sigevent to be visible after mqueue.h is included.
|
240296 |
10-Sep-2012 |
davidxu |
Process CPU-Time Clocks option is supported, define _POSIX_CPUTIME.
|
240295 |
10-Sep-2012 |
davidxu |
Add missing prototype for clock_getcpuclockid.
|
240062 |
02-Sep-2012 |
pfg |
Revert r240060: (Partial)
__BEGIN_DECLS and __END_DECLS in cdefs.h take care of the __cplusplus mangling issues so most of the definitions were redundant.
In the few places where they were not redundant we should use BSD style instead of the guards used upstream.
Reported by: Yuri Pankov
|
240060 |
02-Sep-2012 |
pfg |
Fix RPC headers for C++
C++ mangling will cause trouble with variables like __rpc_xdr in xdr.h so rename this to XDR. While here add proper C++ guards to RPC headers.
PR: 137443 MFC after: 2 weeks
|
239963 |
01-Sep-2012 |
pfg |
Bring some changes from Bull's NFSv4 libtirpc implementation.
We especifically ignored the glibc compatibility changes but this should help interaction with Solaris and Linux. ____
Fixed infinite loop in svc_run() author Steve Dickson Tue, 10 Jun 2008 12:35:52 -0500 (13:35 -0400) Fixed infinite loop in svc_run() ____
__rpc_taddr2uaddr_af() assumes the netbuf to always have a non-zero data. This is a bad assumption and can lead to a seg-fault. This patch adds a check for zero length and returns NULL when found. author Steve Dickson Mon, 27 Oct 2008 11:46:54 -0500 (12:46 -0400) ____
Changed clnt_spcreateerror() to return clearer and more concise error messages. author Steve Dickson Thu, 20 Nov 2008 08:55:31 -0500 (08:55 -0500) ____
Converted all uid and gid variables of the type uid_t and gid_t. author Steve Dickson Wed, 28 Jan 2009 12:44:46 -0500 (12:44 -0500) ____
libtirpc: set r_netid and r_owner in __rpcb_findaddr_timed
These fields in the rpcbind GETADDR call are being passed uninitialized to CLNT_CALL. In the case of x86_64 at least, this usually leads to a segfault. On x86, it sometimes causes segfaults and other times causes garbage to be sent on the wire.
rpcbind generally ignores the r_owner field for calls that come in over the wire, so it really doesn't matter what we send in that slot. We just need to send something. The reference implementation from Sun seems to send a blank string. Have ours follow suit. author Jeff Layton Fri, 13 Mar 2009 11:44:16 -0500 (12:44 -0400) ____
libtirpc: be sure to free cl_netid and cl_tp
When creating a client with clnt_tli_create, it uses strdup to copy strings for these fields if nconf is passed in. clnt_dg_destroy frees these strings already. Make sure clnt_vc_destroy frees them in the same way.
author Jeff Layton Fri, 13 Mar 2009 11:47:36 -0500 (12:47 -0400)
Obtained from: Bull GNU/Linux NFSv4 Project MFC after: 3 weeks
|
239960 |
31-Aug-2012 |
ed |
Properly enable Clang-style atomics when available.
In addition to testing against cxx_atomic, we must check c_atomic. The former is only set when building C++ code. Also use __has_extension instead of __has_feature. This allows us to use the atomics outside of C11.
Reported by: Ariane van der Steldt <ariane stack nl> PR: threads/170073
|
239061 |
05-Aug-2012 |
dfr |
Reduce namespace pollution from gssapi.h
MFC after: 2 weeks
|
238111 |
04-Jul-2012 |
pjd |
The register_printf_render_std() function expects regular string. Change argument type from 'const unsigned char *' to 'const char *'.
MFC after: 2 weeks
|
237517 |
24-Jun-2012 |
andrew |
Make the wchar_t type machine dependent.
This is required for ARM EABI. Section 7.1.1 of the Procedure Call for the ARM Architecture (AAPCS) defines wchar_t as either an unsigned int or an unsigned short with the former preferred.
Because of this requirement we need to move the definition of __wchar_t to a machine dependent header. It also cleans up the macros defining the limits of wchar_t by defining __WCHAR_MIN and __WCHAR_MAX in the same machine dependent header then using them to define WCHAR_MIN and WCHAR_MAX respectively.
Discussed with: bde
|
237279 |
20-Jun-2012 |
obrien |
Install filemon.h into /usr/include for userland consumption.
|
236965 |
12-Jun-2012 |
des |
Finally nuke auth.conf, nine years after it was deprecated. The only thing it was still used for was to set the "global default" password hash. Since the stock auth.conf contained nothing but comments, the global default was actually the first algorithm in crypt(3)'s list, which happens to be DES; I take the fact that nobody noticed as proof that it was not used outside of crypt(3).
The only other use in our tree was in the Kerberos support code in in tinyware's passwd(1). I removed that code in an earlier commit; it would not have compiled anyway, as it only supported Kerberos IV.
The auth_getval() function is now a stub that always returns NULL, which has the same effect as a functional auth_getval() with an empty auth.conf.
MFC after: 3 weeks
|
236629 |
05-Jun-2012 |
ed |
Fix a small typo. Fireware -> firmware.
MFC after: 2 weeks
|
235780 |
22-May-2012 |
harti |
Fix a compilation error with some compilers: __attribute__ requires two parenthesis for its argument, but instead of using __attribute__ directly, use the appropriate __nonnull macro from cdefs.h.
|
235647 |
19-May-2012 |
gleb |
Hide DIR definition by making it an opaque struct typedef.
Introduce dirfd() libc exported symbol replacing macro with same name, preserve _dirfd() macro for internal use.
Replace dirp->dd_fd with dirfd() call. Avoid using dirfd as variable name to prevent shadowing global symbol.
Sponsored by: Google Summer Of Code 2011
|
235601 |
18-May-2012 |
gleb |
Don't use ino_t in dumprestore protocol definition.
Since ino_t size is about to change to 64-bits, replace ino_t used in dump protocol definition with 32-bit dump_ino_t to preserve backward compatibility. At some point, it may be necessary to use spare fields in struct in order to fully support 64-bit inode numbers.
Sponsored by: Google Summer of Code 2011
|
235537 |
17-May-2012 |
gber |
Import work done under project/nand (@235533) into head.
The NAND Flash environment consists of several distinct components: - NAND framework (drivers harness for NAND controllers and NAND chips) - NAND simulator (NANDsim) - NAND file system (NAND FS) - Companion tools and utilities - Documentation (manual pages)
This work is still experimental. Please use with caution.
Obtained from: Semihalf Supported by: FreeBSD Foundation, Juniper Networks
|
234958 |
03-May-2012 |
theraven |
Fix <stdatomic.h> after clang decided to rename all of its builtins to include a c11 prefix to disambiguate them from the one provided by GCC.
Note: Clang 3.1 also supports the GCC builtins for libstdc++ 4.7 compatibility, but I don't recommend using them because they are very poorly designed.
MFC after: 2 weeks
|
234785 |
29-Apr-2012 |
dim |
Add a convenience macro for the returns_twice attribute, and apply it to the prototypes of the appropriate functions (getcontext, savectx, setjmp, sigsetjmp and vfork).
MFC after: 2 weeks
|
234573 |
22-Apr-2012 |
theraven |
Fix a bug caused by some misplaced brackets.
Reported by: das
|
234370 |
17-Apr-2012 |
jasone |
Import jemalloc 9ef7f5dc34ff02f50d401e41c8d9a4a928e7c2aa (dev branch, prior to 3.0.0 release) as contrib/jemalloc, and integrate it into libc. The code being imported by this commit diverged from lib/libc/stdlib/malloc.c in March 2010, which means that a portion of the jemalloc 1.0.0 ChangeLog entries are relevant, as are the entries for all subsequent releases.
|
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)
|
232971 |
14-Mar-2012 |
theraven |
Expose some C11 stuff that is also C++11 stuff in C++11 mode.
Approved by: dim (mentor)
|
232931 |
13-Mar-2012 |
theraven |
And remove the duplicate inlines...
Approved by: dim (mentor)
|
232929 |
13-Mar-2012 |
theraven |
Fix the other missing prototypes.
Approved by: dim (mentor)
|
232927 |
13-Mar-2012 |
theraven |
Add missing prototypes.
Approved by: dim (mentor)
|
232926 |
13-Mar-2012 |
theraven |
More xlocale cleanups.
Approved by: dim (mentor)
|
232821 |
11-Mar-2012 |
kib |
Remove fifo.h. The only used function declaration from the header is migrated to sys/vnode.h.
Submitted by: gianni
|
232620 |
06-Mar-2012 |
dim |
After r232498, programs built with -ansi or -std=c89 including <ctype.h> would not compile anymore, due to plain 'inline' keywords. Fix this by using __inline instead.
Reported by: Jia-Shiun Li <jiashiun@gmail.com> Discussed with: theraven
|
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
|
231682 |
14-Feb-2012 |
theraven |
Fix a misplaced __NO_TLS locations, and change a GNUism to a C11ism for consistency.
Approved by: brooks (mentor)
|
231678 |
14-Feb-2012 |
tijl |
Change some headers such that lang/gcc* ports no longer patch them.
The lang/gcc* ports patch headers where they think something is non-standard. These patched headers override the system headers which means you have to rebuild these ports whenever you do installworld to make sure they contain the latest changes.
|
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)
|
231118 |
07-Feb-2012 |
dim |
Consistently set RPCGEN_CPP when running rpcgen, so the C preprocessor set via ${CPP} is used, instead of always using hardcoded /usr/bin/cpp.
MFC after: 1 week
|
230278 |
17-Jan-2012 |
ed |
Only use the static assertion when __generic is available.
Reported by: tijl
|
230267 |
17-Jan-2012 |
theraven |
Fix clang atomic to use for atomic_is_lock_free().
Reviewed by: ed Approved by: dim (mentor)
|
230225 |
16-Jan-2012 |
theraven |
Use the signal fence builtin in stdatomic.h when using the clang atomic builtins, rather than the __asm hack. Somehow I missed the existence of this builtin originally and only noticed that it was there when I went to implement it...
Note: Trunk clang now has support for (most of) the C[++]11 atomics stuff. Please test!
Approved by: brooks (mentor)
|
230156 |
15-Jan-2012 |
avg |
xlocale.h: consistently use __va_list
Plain 'va_list' in this header seems to cause troubles with non-base GCC which creates and uses "tortured" versions of some sysem header files including stdio.h (installed in a private 'include-fixed' directory).
Reviewed by: theraven X-MFC with: r227753
|
230062 |
13-Jan-2012 |
ed |
Correct mistake in atomic_flag macros.
The _explicit versions only have two parameters, namely the object and the order. There is no need to pass the values of the atomic variable.
|
229848 |
09-Jan-2012 |
ed |
Add aligned_alloc(3).
The C11 folks reinvented the wheel by introducing an aligned version of malloc(3) called aligned_alloc(3), instead of posix_memalign(3). Instead of returning the allocation by reference, it returns the address, just like malloc(3).
Reviewed by: jasone@
|
229807 |
08-Jan-2012 |
ed |
Fix spelling of C11 and sort functions by name.
|
229781 |
07-Jan-2012 |
uqs |
Spelling fixes for include/
|
229768 |
07-Jan-2012 |
kib |
Implement fdlopen(3), an rtld interface to load shared object by file descriptor.
Requested and tested by: des (previous version) Reviewed by: des, kan (previous version) MFC after: 2 weeks
|
229716 |
06-Jan-2012 |
ed |
Last attempt at <tgmath.h>: do enable the new code for C11 compilers.
I was thinking by myself, if the new code doesn't work with GCC 4.2, why not simply turn it into an efficient version for C11 compilers? By changing the code to use _Generic() directly in that case, I can build the tgmath regression test in a matter of milliseconds with Clang, instead of the 8 seconds it used to take.
So by the time C11 becomes the default, it will pick up the new code automatically. And now I will refrain from making more changes to <tgmath.h>.
|
229704 |
06-Jan-2012 |
ed |
Add an even faster implementation of <tgmath.h> for the future.
Instead of using an exponential number of cases with respect to the number of arguments, this version only uses a linear number. Unfortunately, it works with Clang, GCC 4.6 and GCC 4.7, but not GCC 4.2. Therefore, leave it commented out.
|
229594 |
05-Jan-2012 |
ed |
Remove redundant inclusion of <sys/cdefs.h>.
Mea culpa.
|
229591 |
05-Jan-2012 |
ed |
Remove _Complex_I workaround from <tgmath.h>.
This removes the use of __typeof() from this header, thus making it work with a plain C11 compiler.
|
229590 |
05-Jan-2012 |
ed |
Make _Complex_I a proper float _Complex when using GCC 4.2.
It turns out our GCC has quite an interesting bug:
typeof(1.0fi) != float _Complex typeof((float _Complex)1.0fi) != float _Complex typeof((float _Complex)1.0i) == float _Complex
In other words: if casting to an equal size, GCC seems to take a shortcut. By casting down from a double to a float, GCC doesn't take this shortcut, yielding the proper type.
To prevent foot-shooting, add a _Static_assert() to guarantee that _Complex_I is always a float _Complex. I'm not going to MFC this part of the diff.
MFC after: 2 weeks
|
229575 |
05-Jan-2012 |
ed |
Reimplement <tgmath.h> on top of __generic().
The macro construction used now, is almost identical to the code provided in C11 proposal N1404. This new version doesn't seem to introduce any regressions according to the regression test in tools/, but still seems to malfunction with Clang on certain aspects.
The new code does work successfully with GCC 4.2, 4.6 and 4.7. With 4.7, it also works when __generic() is implemented on top of _Generic().
Discussed with: stefanf
|
229437 |
03-Jan-2012 |
ed |
Simply disallow <stdnoreturn.h> to be used in combination with C++.
There is no way one could possibly use this header file in combination with C++ code. The problem is that in C11 the `noreturn' macro expands to the `_Noreturn' function specifier, while in C++11 the `noreturn' keyword is an attribute.
So in C11 you have to write:
noreturn void exit(int status);
While in C++11 you have to write:
[[noreturn]] void exit(int status);
It is impossible to #define noreturn for C++ in such a way that it allows both conventions.
By intentionally breaking this header this way, we prevent people from using this header in their C++<11 sources.
|
229332 |
02-Jan-2012 |
ed |
Remove extraneous semicolons.
These macros are supposed to be invoked as regular functions, so remove them.
|
228977 |
30-Dec-2011 |
ed |
Extend <stdatomic.h> to support GCC 4.7's __atomic.
The development version of GCC also supports an atomics interface similar to Clang's. Change the header file to work as follows:
- __CLANG_ATOMICS: Use Clang's new atomics interface, - __GNUC_ATOMICS: Use GCC's new atomics interface, - else: fall back to GCC's __sync interface.
|
228955 |
29-Dec-2011 |
ed |
Don't define static_assert for C++.
Even though _Static_assert() is pretty robust for C code, it cannot work correctly with C++ code. This is due to the fact that C++ template parameters may contain commas that are not enclosed in parentheses. For example:
static_assert(foo<int, int>::bar == baz, "...");
This causes _Static_assert to be called with an excessive number of parameters. If you want to use static_assert in C++, just use a C++11 compiler.
Reported on: current@, ports@
|
228924 |
28-Dec-2011 |
delphij |
In POSIX.1-2008:
P_tmpdir [OB XSI] Default directory prefix for tempnam().
This macro is used in a lot of places in legacy applications, and is why we see a lot of programs written for e.g. Linux store volatile temporary files in /var/tmp and not /tmp.
MFC after: 2 months
|
228906 |
26-Dec-2011 |
ed |
Fix some bugs in <stdatomic.h>.
- Make atomic_init() work for GCC, as assigning to structs doesn't work. - Fix misplaced parenthesis in atomic_is_lock_free() for GCC. - Make atomic_compare_exchange_strong() for GCC return the proper boolean value, whether object == expected. - Fix argument passing in atomic_exchange_explicit() for GCC.
|
228902 |
26-Dec-2011 |
ed |
As per C11, add static_assert() to <assert.h>.
|
228901 |
26-Dec-2011 |
ed |
Improve C11 bits in <stdlib.h>:
- Add missing semicolon to quick_exit(), - Remove `func' parameter name from at_quick_exit(), - Fix indentation. - Compare against 2011 value.
|
228882 |
25-Dec-2011 |
ed |
Make white space in this file a bit more consistent.
Remove trailing whitespace and place all macro definitions at the same column.
|
228880 |
25-Dec-2011 |
ed |
Fix field name.
The value field in the atomic structure is called __val; not value.
|
228879 |
25-Dec-2011 |
ed |
Add <stdalign.h> and <stdnoreturn.h>.
Even though these header files make little sense to me, they are part of the standard. By including these header files, you can simply use `alignas', `alignof' and `noreturn' instead of the underscore-prefixed versions.
|
228878 |
25-Dec-2011 |
ed |
Remove unneeded guard.
There is no reason why <stdbool.h> needs an include guard. It is already protected by __bool_true_false_are_defined.
|
228875 |
25-Dec-2011 |
theraven |
Restore __is_threaded in C++ mode. Some Google stuff needs it apparently.
Reported by: swills Approved by: dim (mentor)
|
228863 |
24-Dec-2011 |
theraven |
...and actually install it.
Approved by: dim (mentor)
|
228862 |
24-Dec-2011 |
theraven |
Initial implementation of stdatomic.h. Works (at least in the parts that were tested) with clang and gcc, and more efficiently with clang+a big out-of-tree diff that I need to commit soon (once it's been tidied and reviewed a bit).
Large portions by: ed Reviewed by: ed Approved by: dim (mentor)
|
228843 |
23-Dec-2011 |
cperciva |
Fix a problem whereby a corrupt DNS record can cause named to crash. [11:06]
Add an API for alerting internal libc routines to the presence of "unsafe" paths post-chroot, and use it in ftpd. [11:07]
Fix a buffer overflow in telnetd. [11:08]
Make pam_ssh ignore unpassphrased keys unless the "nullok" option is specified. [11:09]
Add sanity checking of service names in pam_start. [11:10]
Approved by: so (cperciva) Approved by: re (bz) Security: FreeBSD-SA-11:06.bind Security: FreeBSD-SA-11:07.chroot Security: FreeBSD-SA-11:08.telnetd Security: FreeBSD-SA-11:09.pam_ssh Security: FreeBSD-SA-11:10.pam
|
228754 |
20-Dec-2011 |
eadler |
- Add restrict keyword to glob(3)
PR: kern/161958 Submitted by: Henning Petersen <henning.petersen@t-online.de> Approved by: jilles MFC after: 3 days
|
228468 |
13-Dec-2011 |
ed |
Replace __const by const in all non-contributed source code.
As C1X is close to being released, there is no need to wrap around a feature that is already part of C90. Most of these files already use `const' in different placed as well.
|
228444 |
12-Dec-2011 |
mdf |
- Define true and false in sys/types.h for _KERNEL consumers, and typedef bool. Due to macro expansion it seemed better to use a typedef for kernel consumers (specifically ofed won't compile without more changes if a define is used). - <stdbool.h> should also not re-define bool/true/false if they are defined by <sys/types.h>. It would probably be a programming error to define _KERNEL for user-space code, but downstream consumers like Isilon have already been including <stdbool.h> in kernel sources, and this protects that usage. - sizeof(_Bool) is not necessarily the same as sizeof(int), so kernel modules should be rebuild with this change. Bump __FreeBSD_version.
MFC after: 2 weeks Sponsored by: Isilon Systems, LLC
|
228330 |
07-Dec-2011 |
theraven |
As per das@'s suggestion, s/__noreturn/_Noreturn/, since the latter is an identifier reserved for the implementation in C99 and earlier so there is no sensible reason for introducing yet another reserved identifier when we could just use the one C1x uses.
Approved by: brooks (mentor)
|
228322 |
07-Dec-2011 |
theraven |
Implement quick_exit() / at_quick_exit() from C++11 / C1x. Also add a __noreturn macro and modify the other exiting functions to use it.
The __noreturn macro, unlike __dead2, must be used BEFORE the function. This is in line with the C and C++ specifications that place _Noreturn (c1x) and [[noreturn]] (C++11) in front of the functions. As with __dead2, this macro falls back to using the GCC attribute.
Unfortunately, clang currently sets the same value for the C version macro in C99 and C1x modes, so these functions are hidden by default. At some point before 10.0, I need to go through the headers and clean up the C1x / C++11 visibility.
Reviewed by: brooks (mentor)
|
227753 |
20-Nov-2011 |
theraven |
Implement xlocale APIs from Darwin, mainly for use by libc++. This adds a load of _l suffixed versions of various standard library functions that use the global locale, making them take an explicit locale parameter. Also adds support for per-thread locales. This work was funded by the FreeBSD Foundation.
Please test any code you have that uses the C standard locale functions!
Reviewed by: das (gdtoa changes) Approved by: dim (mentor)
|
227490 |
13-Nov-2011 |
theraven |
Hide some more macros that will break C++ when compiling in C++ mode.
Approved by: dim (mentor)
|
227487 |
13-Nov-2011 |
theraven |
The spec says that FILE must be defined in wchar.h, but it wasn't. It is now. Also hide some macros in C++ mode that will break C++ namespaced calls.
Approved by: dim (mentor)
|
227476 |
12-Nov-2011 |
theraven |
Don't expose the wctype.h macros in C++ mode. They cause problems when people try to invoke the namespaced versions of the functions of the same names.
Approved by: dim (mentor)
|
226607 |
21-Oct-2011 |
das |
People porting FreeBSD to new architectures ought not have to implement a deprecated FPU control interface in addition to the standard one. To make this clearer, further deprecate ieeefp.h by not declaring the function prototypes except on architectures that implement them already.
Currently i386 and amd64 implement the ieeefp.h interface for compatibility, and for fp[gs]etprec(), which doesn't exist on most other hardware. Powerpc, sparc64, and ia64 partially implement it and probably shouldn't, and other architectures don't implement it at all.
|
226458 |
17-Oct-2011 |
das |
Add c{cos,sin,tan}{,h}{,f} functions. This is joint work with bde and kargl.
|
225801 |
27-Sep-2011 |
jkim |
Avoid accidental conflicts with C++ operator keywords.
MFC after: 1 week
|
225790 |
27-Sep-2011 |
kib |
Install ciss(4) ioctl header (together with other .h files from sys/dev/ciss).
PR: kern/109813 Discussued with: Alex Samorukov <samm os2 kiev ua> (smartmontools maintainer) MFC after: 1 week
|
223906 |
10-Jul-2011 |
kevlo |
Revert the previous change and add xdr_sizeof
Requested by: bde
|
223877 |
09-Jul-2011 |
kevlo |
- Add xdr_sizeof(3) to libc - Document xdr_sizeof(3); from NetBSD
Discussed with: kib
|
220370 |
05-Apr-2011 |
obrien |
* Add the readline(3) API to libedit. The libedit versions of {readline,history}.h are in /usr/include/edit so as to not conflict with the GNU libreadline versions. To use the libedit readline(3) one should add "-I/usr/include/edit" to their Makefile (spelled "-I${DESTDIR}/${INCLUDEDIR}/edit" within the FreeBSD source tree).
* Enable its use in the BSD licensed utilities that support readline(3).
* To make it easier to sync libedit development with NetBSD, histedit.h is moved into libedit's directory as history shows shown we keep merging it into that location.
Obtained from: NetBSD Sponsored by: Juniper Networks
|
219974 |
24-Mar-2011 |
mav |
MFgraid/head: Add new RAID GEOM class, that is going to replace ataraid(4) in supporting various BIOS-based software RAIDs. Unlike ataraid(4) this implementation does not depend on legacy ata(4) subsystem and can be used with any disk drivers, including new CAM-based ones (ahci(4), siis(4), mvs(4), ata(4) with `options ATA_CAM`). To make code more readable and extensible, this implementation follows modular design, including core part and two sets of modules, implementing support for different metadata formats and RAID levels.
Support for such popular metadata formats is now implemented: Intel, JMicron, NVIDIA, Promise (also used by AMD/ATI) and SiliconImage.
Such RAID levels are now supported: RAID0, RAID1, RAID1E, RAID10, SINGLE, CONCAT.
For any all of these RAID levels and metadata formats this class supports full cycle of volume operations: reading, writing, creation, deletion, disk removal and insertion, rebuilding, dirty shutdown detection and resynchronization, bad sector recovery, faulty disks tracking, hot-spare disks. For Intel and Promise formats there is support multiple volumes per disk set.
Look graid(8) manual page for additional details.
Co-authored by: imp Sponsored by: Cisco Systems, Inc. and iXsystems, Inc.
|
219379 |
07-Mar-2011 |
das |
Add missing declarations that I intended to commit with r219359. Not sure why we have math.h in lib/msun/ and complex.h in include/.
|
219343 |
06-Mar-2011 |
pjd |
Include stdio.h, so we can include printf.h in any order, as it needs FILE.
MFC after: 2 weeks
|
219304 |
05-Mar-2011 |
trasz |
Add two new system calls, setloginclass(2) and getloginclass(2). This makes it possible for the kernel to track login class the process is assigned to, which is required for RCTL. This change also make setusercontext(3) call setloginclass(2) and makes it possible to retrieve current login class using id(1).
Reviewed by: kib (as part of a larger patch)
|
219271 |
04-Mar-2011 |
jilles |
POSIX.1-2008 moved some constants from the XSI option to the Base.
MFC after: 2 weeks
|
219256 |
03-Mar-2011 |
jilles |
Fix some _POSIX minimum/maximum values in limits.h: * Some values changed in POSIX.1-2001; provide the former value if a program requests compliance to an earlier version of POSIX. [1] * Add missing _POSIX_CLOCKRES_MIN constant. This is a maximum value but otherwise works the same as the minimum values.
PR: standards/104743 Submitted by: bde [1] (not exact #ifdefs, but the values) MFC after: 2 weeks
|
219019 |
25-Feb-2011 |
gabor |
Add the BSD-licensed Citrus iconv to the base system with default off setting. It can be built by setting the WITH_ICONV knob. While this knob is unset, the library part, the binaries, the header file and the metadata files will not be built or installed so it makes no impact on the system if left turned off.
This work is based on the iconv implementation in NetBSD but a great number of improvements and feature additions have been included:
- Some utilities have been added. There is a conversion table generator, which can compare conversion tables to reference data generated by GNU libiconv. This helps ensuring conversion compatibility. - UTF-16 surrogate support and some endianness issues have been fixed. - The rather chaotic Makefiles to build metadata have been refactored and cleaned up, now it is easy to read and it is also easier to add support for new encodings. - A bunch of new encodings and encoding aliases have been added. - Support for 1->2, 1->3 and 1->4 mappings, which is needed for transliterating with flying accents as GNU does, like "u. - Lots of warnings have been fixed, the major part of the code is now WARNS=6 clean. - New section 1 and section 5 manual pages have been added. - Some GNU-specific calls have been implemented: iconvlist(), iconvctl(), iconv_canonicalize(), iconv_open_into() - Support for GNU's //IGNORE suffix has been added. - The "-" argument for stdin is now recognized in iconv(1) as per POSIX. - The Big5 conversion module has been fixed. - The iconv.h header files is supposed to be compatible with the GNU version, i.e. sources should build with base iconv.h and GNU libiconv. It also includes a macro magic to deal with the char ** and const char ** incompatibility. - GNU compatibility: "" or "char" means the current local encoding in use - Various cleanups and style(9) fixes.
Approved by: delphij (mentor) Obtained from: The NetBSD Project Sponsored by: Google Summer of Code 2009
|
218881 |
20-Feb-2011 |
kib |
Add restrict keyword to pthread_sigmask prototype and manpage.
MFC after: 1 week
|
218772 |
17-Feb-2011 |
kib |
Install iodev.h.
Reviewed by: attilio MFC after: 1 week
|
218414 |
07-Feb-2011 |
jkim |
Introduce a non-portable function pthread_getthreadid_np(3) to retrieve calling thread's unique integral ID, which is similar to AIX function of the same name. Bump __FreeBSD_version to note its introduction.
Reviewed by: kib
|
217207 |
09-Jan-2011 |
ed |
Add missing __dead2 to __assert().
__assert() is called when an assertion fails. After printing an error message, it will call abort(). abort() never returns, hence it has the __dead2 attribute. Also add this attribute to __assert().
MFC after: 3 weeks
|
217039 |
06-Jan-2011 |
davidxu |
Remove leftover for r214093.
|
216603 |
20-Dec-2010 |
uqs |
rpc.lockd(8) WARNS cleanup
- Provide function prototype for nlm_syscall - Don't assign a variable from the stack to a global var[1] - Remove unused vars
Found by: clang static analyser [1] Reviewed by: dfr
|
215236 |
13-Nov-2010 |
delphij |
Sync with OpenBSD, primarily better signal and terminal handling.
Obtained from: OpenBSD MFC after: 2 weeks
|
214680 |
02-Nov-2010 |
ed |
Add a new libc function: cfmakesane(3).
I've noticed various terminal emulators that need to obtain a sane default termios structure use very complex `hacks'. Even though POSIX doesn't provide any functionality for this, extend our termios API with cfmakesane(3), which is similar to the commonly supported cfmakeraw(3), except that it fills the termios structure with sane defaults.
Change all code in our base system to use this function, instead of depending on <sys/ttydefaults.h> to provide TTYDEF_*.
|
214629 |
01-Nov-2010 |
jhb |
Add an x86/include directory to the kernel to hold headers that are common to amd64, i386, and pc98. The headers are installed to /usr/include/x86 during an installworld, and an 'x86' symlink is created for kernel builds similar to 'machine' so that the headers can be included as <x86/foo.h>.
Reviewed by: imp
|
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
|
214007 |
18-Oct-2010 |
davidxu |
Add pthread_rwlockattr_setkind_np and pthread_rwlockattr_getkind_np, the functions set or get pthread_rwlock type, current supported types are: PTHREAD_RWLOCK_PREFER_READER_NP, PTHREAD_RWLOCK_PREFER_WRITER_NONRECURSIVE_NP, PTHREAD_RWLOCK_PREFER_WRITER_NP, default is PTHREAD_RWLOCK_PREFER_WRITER_NONCECURSIVE_NP, this maintains binary compatible with old code.
|
213290 |
30-Sep-2010 |
davidxu |
Also the stop function should accept 64-bit exception class.
|
213289 |
30-Sep-2010 |
davidxu |
- Sizeof exception class type should always be 64-bit. - Make some functions be visible to BSD source code.
|
213288 |
30-Sep-2010 |
davidxu |
Import unwind.h from libunwind-0.99.
Approved by: core (kib, rwatson, imp, brooks)
|
213241 |
28-Sep-2010 |
davidxu |
In current code, statically initialized and destroyed object have same null value, the code can not distinguish between them, to fix the problem, now a destroyed object is assigned to a non-null value, and it will be rejected by some pthread functions. PTHREAD_ADAPTIVE_MUTEX_INITIALIZER_NP is changed to number 1, so that adaptive mutex can be statically initialized correctly.
|
211980 |
29-Aug-2010 |
jilles |
Correct value for _POSIX_AIO_LISTIO_MAX in <limits.h>.
All the "Minimum Values" (POSIX.1-2008 XBD 13 Headers <limits.h>) are now correct. These should all be exactly as they are in the specification; the possibly higher values we support are announced differently.
PR: standards/104743 Submitted by: gcooper MFC after: 2 weeks
|
211725 |
23-Aug-2010 |
imp |
MFtbemd:
Prefer MACHNE_CPUARCH to MACHINE_ARCH in most contexts where you want to test of all the CPUs of a given family conform.
|
211175 |
11-Aug-2010 |
kevlo |
Style: tabs after #define
|
210957 |
06-Aug-2010 |
ed |
Remove stale reference to UT_NAMESIZE from <stdio.h>.
Spotted by: bde@
|
210024 |
13-Jul-2010 |
nwhitehorn |
Connect powerpc64 to the build. It is not presently part of make universe, which will be added soon.
Reviewed by: imp
|
209715 |
06-Jul-2010 |
maxim |
o addr2ascii(3) was removed ages ago. Fix the comment.
PR: docs/148383 Submitted by: pluknet MFC after: 1 week
|
209219 |
15-Jun-2010 |
jilles |
libedit: Allow simple quoting in filename completion.
The completer recognizes characters escaped with backslashes as being literal parts of a word, and adds backslashes to avoid almost all misinterpretation. In particular, filenames containing spaces can be completed correctly.
For bug compatibility with the NetBSD version, the improved completion function has a new name, _el_fn_sh_complete, and _el_fn_complete is unchanged.
Submitted by: Guy Yur
|
209136 |
13-Jun-2010 |
jilles |
libedit: Add basic filename completion code from NetBSD.
This will be used to provide filename completion in sh(1).
Changes from the NetBSD code: * wide character support disabled, as in the rest of libedit * config.h and related portability stuff reduced/disabled, as in the rest of libedit
Submitted by: Guy Yur Obtained from: NetBSD
|
206997 |
21-Apr-2010 |
kib |
Move realpath(3) prototype to a POSIX section.
Noted by: bde MFC after: 2 weeks
|
206893 |
20-Apr-2010 |
kib |
Slightly modernize realpath(3).
SUSv4 requires that implementation returns EINVAL if supplied path is NULL, and ENOENT if path is empty string [1]. Bring prototype in conformance with SUSv4, adding restrict keywords. Allow the resolved path buffer pointer be NULL, in which case realpath(3) allocates storage with malloc().
PR: kern/121897 [1] MFC after: 2 weeks
|
206155 |
04-Apr-2010 |
ume |
Add capability to use a db version of services. It is enabled by specifying `db' as source of service in /etc/nsswitch.conf.
MFC after: 2 weeks
|
205954 |
31-Mar-2010 |
jmallett |
Be like stdlib.h and bring in a wchar_t definition and use it to prototype wcstoimax and wcstoumax, rather than spelling it __wchar_t. This is necessary to use these functions in C++ where wchar_t is different to __wchar_t and is a built-in type.
It may be better to use __wchar_t here and to simply define __wchar_t as being wchar_t in C++ mode rather than to bring in wchar_t, but this is less invasive and follows our existing practice, and restores wchar_t usage in this file to what it was before r1.8.
|
205606 |
24-Mar-2010 |
gahr |
- Remove const'ness from dlerror(3) prototype, for consistency with POSIX.
Approved by: cognet MFC after: 1 week
|
205146 |
14-Mar-2010 |
ed |
Trim down libcompat by removing <regexp.h>.
Erwin ran an exp-run with libcompat and <regexp.h> removed. It turns out the regexp library is almost entirely unused. In fact, it looks like it is sometimes used by accident. Because these function names clash with libc's <regex.h>, some application use both <regex.h> and libcompat, which means they link against the wrong regex library.
This commit removes the regexp library and reimplements re_comp() and re_exec() using <regex.h>. It seems the grammar of the regular expressions accepted by these functions is similar to POSIX EREs.
After this commit, 1 low-profile port will be broken, but the maintainer already has a patch for it sitting in his mailbox.
|
204926 |
09-Mar-2010 |
ed |
Add warnings to <regexp.h> and <sys/timeb.h>.
These header files only provide functionality that can be used in combination with libcompat. In order to prevent people from including them without any actual use (which happens a lot with <sys/timeb.h>), put a warning here to make people more aware.
This means we have to lower WARNS for libcompat, which is no big deal.
|
204649 |
03-Mar-2010 |
ed |
Remove last traces of <utmp.h>.
|
203965 |
16-Feb-2010 |
imp |
Remove clause 3 from Berkeley copyrights. Add a few $FreeBSD$'s.
|
203964 |
16-Feb-2010 |
imp |
Remove the Berkeley clause 3's. Add a few $FreeBSD$
|
203963 |
16-Feb-2010 |
imp |
Remove NetBSD Foundation clauses 3 & 4. They eliminated those clauses last year.
|
202437 |
16-Jan-2010 |
trasz |
Add gmountver, disk mount verification GEOM class.
Note that due to e.g. write throttling ('wdrain'), it can stall all the disk I/O instead of just the device it's configured for. Using it for removable media is therefore not a good idea.
Reviewed by: pjd (earlier version)
|
202274 |
14-Jan-2010 |
ed |
Phase out ttyslot(3).
The ttyslot() function was originally part for SUSv1, marked LEGACY in SUSv2 and removed later on. This function only makes sense when using utmp(5), because it was used to determine the offset of the record for the controlling TTY. It makes little sense to keep it here, because the new utmpx file format doesn't index based on TTY slots.
|
202217 |
13-Jan-2010 |
ed |
Remove <utmp.h> and its corresponding manual page.
|
202188 |
13-Jan-2010 |
ed |
Implement <utmpx.h>.
The utmpx interface is the standardized interface of the user accounting database. The standard only defines a subset of the functions that were present in System V-like systems.
I'd like to highlight some of the traits my implementation has:
- The standard allows the on-disk format to be different than the in-memory representation (struct utmpx). Most operating systems don't do this, but we do. This allows us to keep our ABI more stable, while giving us the opportunity to modify the on-disk format. It also allows us to use a common file format across different architectures (i.e. byte ordering).
- Our implementation of pututxline() also updates wtmp and lastlog (now called utx.log and utx.lastlogin). This means the databases are more likely to be in sync.
- Care must be taken that our implementation discard any fields that are not applicable. For example, our DEAD_PROCESS records do not hold a TTY name. Just a time stamp, a record identifier and a process identifier. It also guarantees that strings (ut_host, ut_line and ut_user) are null terminated. ut_id is obviously not null terminated, because it's not a string.
- The API and its behaviour should be conformant to POSIX, but there may be things that slightly deviate from the standard. This implementation uses separate file descriptors when writing to the log files. It also doesn't use getutxid() to search for a field to overwrite. It uses an allocation strategy similar to getutxid(), but prevents DEAD_PROCESS records from accumulating.
Make sure libulog doesn't overwrite the manpages shipped with our C library. Also keep the symbol list in Symbol.map sorted.
I'll bump __FreeBSD_version later this evening. I first want to convert everything to <utmpx.h> and get rid of <utmp.h>.
|
201602 |
05-Jan-2010 |
kib |
Move scandir(3) and alphasort(3) into XSI namespace.
Noted and reviewed by: bde MFC after: 2 weeks
|
201546 |
05-Jan-2010 |
davidxu |
Use umtx to implement process sharable semaphore, to make this work, now type sema_t is a structure which can be put in a shared memory area, and multiple processes can operate it concurrently. User can either use mmap(MAP_SHARED) + sem_init(pshared=1) or use sem_open() to initialize a shared semaphore. Named semaphore uses file system and is located in /tmp directory, and its file name is prefixed with 'SEMD', so now it is chroot or jail friendly. In simplist cases, both for named and un-named semaphore, userland code does not have to enter kernel to reduce/increase semaphore's count. The semaphore is designed to be crash-safe, it means even if an application is crashed in the middle of operating semaphore, the semaphore state is still safely recovered by later use, there is no waiter counter maintained by userland code. The main semaphore code is in libc and libthr only has some necessary stubs, this makes it possible that a non-threaded application can use semaphore without linking to thread library. Old semaphore implementation is kept libc to maintain binary compatibility. The kernel ksem API is no longer used in the new implemenation.
Discussed on: threads@
|
201525 |
04-Jan-2010 |
ed |
This should read #if __BSD_VISIBLE instead of #ifdef __BSD_VISIBLE.
|
201512 |
04-Jan-2010 |
kib |
Modernize scandir(3) and alphasort(3) interfaces according to the IEEE Std 1003.1-2008. Both Linux and Solaris conforms to the new definitions, so we better follow too (older glibc used old BSDish alphasort prototype and corresponding type of the comparision function for scandir). While there, change the definitions of the functions to ANSI C and fix several style issues nearby.
Remove requirement for "sys/types.h" include for functions from manpage.
POSIX also requires that alphasort(3) sorts as if strcoll(3) was used, but leave the strcmp(3) call in the function for now.
Adapt in-tree callers of scandir(3) to new declaration. The fact that select_sections() from catman(1) could modify supplied struct dirent is a bug.
PR: standards/142255 MFC after: 2 weeks
|
201258 |
30-Dec-2009 |
jilles |
Remove the current directory from _PATH_STDPATH.
|
200881 |
22-Dec-2009 |
cognet |
Don't name parameters, for consistency with the rest of the file, and because it breaks third-party apps.
Submitted by: gahr
|
199898 |
29-Nov-2009 |
ed |
Decompose <sys/termios.h>.
The <sys/termios.h> header file is hardlinked to <termios.h>. It contains both the structures and the flag definitions, but also the C library interface that's implemented by the C library.
This header file has the typical problem of including too many random things and being badly ordered. Instead of trying to fix this, decompose it into two header files:
- <sys/_termios.h>, which contains struct termios and the flags. - <termios.h>, which includes <sys/_termios.h> and contains the C library interface.
This means userspace has to include <termios.h> for struct termios, while kernelspace code has to include <sys/tty.h>. Also add a <sys/termios.h>, which prints a warning message before including <termios.h>. I am aware that there are some applications that use this header file as well.
|
199827 |
26-Nov-2009 |
kib |
Implement sighold, sigignore, sigpause, sigrelse, sigset functions from SUSv4 XSI. Note that the functions are obsoleted, and only provided to ease porting from System V-like systems. Since sigpause already exists in compat with different interface, XSI sigpause is named xsi_sigpause.
Reviewed by: davidxu MFC after: 3 weeks
|
197804 |
06-Oct-2009 |
rwatson |
Add basename_r(3) to complement basename(3). basename_r(3) which accepts a caller-allocated buffer of at least MAXPATHLEN, rather than using a global buffer.
MFC after: 1 month Sponsored by: Google
|
197764 |
05-Oct-2009 |
edwin |
Modified locale(1) to be able to show the altmon_X fields and the [cxX]_fmt's. Also modify the "-k list" option to display only fields with a certain prefix.
MFC after: 1 week
|
196200 |
13-Aug-2009 |
scottl |
ntroduce mfiutil, a basic utility for managing LSI SAS-RAID & Dell PERC5/6 controllers. Controller, array, and drive status can be checked, basic attributes can be changed, and arrays and spares can be created and deleted. Controller firmware can also be flashed.
This does not replace MegaCLI, found in ports, as that is officially sanctioned and supported by LSI and includes vastly more functionality. However, mfiutil is open source and guaranteed to provide basic functionality, which can be especially useful if you have a problem and can't get MegaCLI to work.
Approved by: re Obtained from: Yahoo! Inc.
|
195745 |
17-Jul-2009 |
kib |
Implement RTLD_NOLOAD flag for dlopen(3).
Requested and tested by: jkim Reviewed by: kan Approved by: re (kensmith)
|
195534 |
10-Jul-2009 |
scottl |
Separate the parallel scsi knowledge out of the core of the XPT, and modularize it so that new transports can be created.
Add a transport for SATA
Add a periph+protocol layer for ATA
Add a driver for AHCI-compliant hardware.
Add a maxio field to CAM so that drivers can advertise their max I/O capability. Modify various drivers so that they are insulated from the value of MAXPHYS.
The new ATA/SATA code supports AHCI-compliant hardware, and will override the classic ATA driver if it is loaded as a module at boot time or compiled into the kernel. The stack now support NCQ (tagged queueing) for increased performance on modern SATA drives. It also supports port multipliers.
ATA drives are accessed via 'ada' device nodes. ATAPI drives are accessed via 'cd' device nodes. They can all be enumerated and manipulated via camcontrol, just like SCSI drives. SCSI commands are not translated to their ATA equivalents; ATA native commands are used throughout the entire stack, including camcontrol. See the camcontrol manpage for further details. Testing this code may require that you update your fstab, and possibly modify your BIOS to enable AHCI functionality, if available.
This code is very experimental at the moment. The userland ABI/API has changed, so applications will need to be recompiled. It may change further in the near future. The 'ada' device name may also change as more infrastructure is completed in this project. The goal is to eventually put all CAM busses and devices until newbus, allowing for interesting topology and management options.
Few functional changes will be seen with existing SCSI/SAS/FC drivers, though the userland ABI has still changed. In the future, transports specific modules for SAS and FC may appear in order to better support the topologies and capabilities of these technologies.
The modularization of CAM and the addition of the ATA/SATA modules is meant to break CAM out of the mold of being specific to SCSI, letting it grow to be a framework for arbitrary transports and protocols. It also allows drivers to be written to support discrete hardware without jeopardizing the stability of non-related hardware. While only an AHCI driver is provided now, a Silicon Image driver is also in the works. Drivers for ICH1-4, ICH5-6, PIIX, classic IDE, and any other hardware is possible and encouraged. Help with new transports is also encouraged.
Submitted by: scottl, mav Approved by: re
|
195458 |
08-Jul-2009 |
trasz |
There is an optimization in chmod(1), that makes it not to call chmod(2) if the new file mode is the same as it was before; however, this optimization must be disabled for filesystems that support NFSv4 ACLs. Chmod uses pathconf(2) to determine whether this is the case - however, pathconf(2) always follows symbolic links, while the 'chmod -h' doesn't.
This change adds lpathconf(3) to make it possible to solve that problem in a clean way.
Reviewed by: rwatson (earlier version) Approved by: re (kib)
|
194801 |
24-Jun-2009 |
delphij |
Merge fmtcheck() prototype change.
Obtained from: NetBSD
|
194448 |
18-Jun-2009 |
kan |
Re-do r192913 in less intrusive way. Only do IP_RECVDSTADDR/IP_SENDSRCADDR dace for UPDv4 sockets bound to INADDR_ANY. Move the code to set IP_RECVDSTADDR/IP_SENDSRCADDR into svc_dg.c, so that both TLI and non-TLI users will be using it.
Back out my previous commit to mountd. Turns out the problem was affecting more than one binary so it needs to me addressed in generic rpc code in libc in order to fix them all.
Reported by: lstewart Tested by: lstewart
|
194262 |
15-Jun-2009 |
jhb |
Add a new 'void closefrom(int lowfd)' system call. When called, it closes any open file descriptors >= 'lowfd'. It is largely identical to the same function on other operating systems such as Solaris, DFly, NetBSD, and OpenBSD. One difference from other *BSD is that this closefrom() does not fail with any errors. In practice, while the manpages for NetBSD and OpenBSD claim that they return EINTR, they ignore internal errors from close() and never return EINTR. DFly does return EINTR, but for the common use case (closing fd's prior to execve()), the caller really wants all fd's closed and returning EINTR just forces callers to call closefrom() in a loop until it stops failing.
Note that this implementation of closefrom(2) does not make any effort to resolve userland races with open(2) in other threads. As such, it is not multithread safe.
Submitted by: rwatson (initial version) Reviewed by: rwatson MFC after: 2 weeks
|
192901 |
27-May-2009 |
thompsa |
Delete the old USB stack. The new stack has settled in and has all the drivers/functionality and then some.
|
192545 |
21-May-2009 |
rmacklem |
Modify src/etc/mtree/BSD.include.dist and src/include/Makefile so that the .h files in src/sys/fs/nfs will be installed under /usr/include/fs/nfs. This will allow the following utilities to build, once additions and changes for the experimental nfs subsystem are committed: usr.sbin/mountd - Once modified to add support for the experimental nfs subsystem. ur.sbin/nfsstat - Once modified to add support for the experimental nfs subsystem. usr.sbin/nfscbd - The client side callback daemon for NFSv4. usr.sbin/nfsuserd - The NFSv4 user/group name<->uid/gid mapping daemon. usr.sbin/nfsdumpstate - The NFSv4 utility for dumping open/lock state. usr.sbin/nfsrevoke - The sysadmin command for revoking NFSv4 state.
Approved by: kib (mentor)
|
191202 |
17-Apr-2009 |
das |
Revert r190943, since the problem in ports seems to be fixed now. It's amazing how a well-placed eyesore generates more motivation in a day than email generates in three weeks.
|
190943 |
11-Apr-2009 |
das |
GNU Pth has some fragile kludges that were broken by r189828. I've discussed this with the Pth maintainer and no clear solution has emerged on the ports side of things, so for now, hack around the issue in signal.h.
|
190543 |
30-Mar-2009 |
kib |
Implement support for RTLD_NODELETE flag for dlopen() and -z nodelete static linker option. Do it by incrementing reference count on the loaded object and its dependencies.
Reviewed by: davidxu, kan
|
190498 |
28-Mar-2009 |
delphij |
Minor changes from Berkeley DB 1.86 and further improvements from OpenBSD. This does not include the new hash routines since they will cause problems when reading old hash files.
Since mpool(3) has been changed, provide a compatibility shim for older binaries.
Obtained from: OpenBSD
|
190409 |
25-Mar-2009 |
das |
Make programs that define a macro called `dprintf' more likely to work.
|
189828 |
14-Mar-2009 |
das |
Fix the visibility of several prototypes. Also move pthread_kill() and pthread_sigmask() to signal.h. In principle, this shouldn't break anything, since they're already in signal.h on other systems, and the FreeBSD manpage says that both pthread.h and signal.h need to be included to get these functions.
Add a hack to declare pthread_t in the P1003.1-2008 namespace in signal.h.
|
189827 |
14-Mar-2009 |
das |
Hide dbopen() in the POSIX namespace, and use standard type names throughout so that this compiles in strict POSIX mode.
|
189826 |
14-Mar-2009 |
das |
Hide numerous BSD extensions in the POSIX namespace.
|
189820 |
14-Mar-2009 |
das |
Namespace: abort2() is a BSD extension.
|
189819 |
14-Mar-2009 |
das |
Namespace: endpwent, getpwent, and setpwent are XSI extensions.
|
189818 |
14-Mar-2009 |
das |
Namespace: dprintf() and getline() are in P1003.1-2008.
|
189817 |
14-Mar-2009 |
das |
Various namespace cleanups, including exposing fchmod() and fchmodat() in the POSIX namespace, and hiding eaccess() and setproctitle(). Also move mknodat() from unistd.h to sys/stat.h where it belongs. The *at() syscalls are only in CURRENT, so this shouldn't cause problems.
|
189812 |
14-Mar-2009 |
das |
Namespace: setgrent() is an XSI extension.
|
189811 |
14-Mar-2009 |
das |
Don't prototype _tolower() and _toupper(). They're not supposed to be functions, and there's no implementation of them in any case.
|
189809 |
14-Mar-2009 |
das |
Namespace: memccpy() and memchr() are XSI, and memrchr() is a BSD extension.
|
189808 |
14-Mar-2009 |
das |
Namespace: dbm_forder() and dbm_dirfno() are BSD extensions.
|
189807 |
14-Mar-2009 |
das |
Namespace: _setjmp() and _longjmp() are XSI extensions.
|
189806 |
14-Mar-2009 |
das |
Namespace: inet_ntoa_r() is a BSD extension.
|
189782 |
14-Mar-2009 |
das |
r189349 removed mktemp() from the XSI namespace when __XOPEN_SOURCE >= 700, since mktemp() was withdrawn from the standard. However, __XSI_VISIBLE is set to 700 in the default BSD envrionment, where mktemp() should still exist; hence, check for this.
|
189365 |
04-Mar-2009 |
das |
Put the restrict qualifiers in the right place in the wcp[n]cpy prototypes.
Submitted by: Pawel Worach <pawel.worach@gmail.com>
|
189361 |
04-Mar-2009 |
das |
Add wcpcpy(3) and wcpncpy(3).
|
189356 |
04-Mar-2009 |
das |
Add dprintf() and vdprintf() from POSIX.1-2008. Like getline(), dprintf() is a simple wrapper around another function, so we may as well implement it. But also like getline(), we can't prototype it by default right now because it would break too many ports.
|
189355 |
04-Mar-2009 |
das |
Add renameat to the POSIX.1-2008 namespace.
|
189352 |
04-Mar-2009 |
das |
Add psignal to the POSIX.1-2008 namespace.
|
189351 |
04-Mar-2009 |
das |
- Add getsid, fchdir, getpgid, lchown, pread, pwrite, truncate, *at, and fexecve to the POSIX.1-2008 namespace. - Remove getwd, ualarm, usleep, and vfork from the XSI namespace. - Remove mkdtemp from the POSIX.1-2008 namespace (should be in stdlib.h).
|
189350 |
04-Mar-2009 |
das |
- Remove bcmp, bcopy, bzero, index, and rindex from the POSIX.1-2008 namespace. - Add ffs to the XSI namespace.
|
189349 |
04-Mar-2009 |
das |
- Add getsubopt and mkdtemp to the POSIX.1-2008 namespace. - Add mkstemp to the POSIX.1-2008 and BSD namespaces. - Remove mktemp from the XSI namespace.
|
189136 |
28-Feb-2009 |
das |
- Add getdelim(), getline(), stpncpy(), strnlen(), wcsnlen(), wcscasecmp(), and wcsncasecmp(). - Make some previously non-standard extensions visible if POSIX_VISIBLE >= 200809. - Use restrict qualifiers in stpcpy(). - Declare off_t and size_t in stdio.h. - Bump __FreeBSD_version in case the new symbols (particularly getline()) cause issues with ports.
Reviewed by: standards@
|
189133 |
28-Feb-2009 |
das |
Add restrict qualifiers to the parameters to strlcpy() and strlcat(). The annotation mainly just serves as a hint that they're not intended for use with overlapping strings.
|
189132 |
28-Feb-2009 |
das |
Mark memmem() __pure.
|
188978 |
24-Feb-2009 |
thompsa |
Install the old usb headers under /usr/include/legacy/dev/usb as they are needed by the hal port. This will be removed before 8.0.
Add an exclusion to kdump as some structs will be redefined.
Requested by: marcus
|
188945 |
23-Feb-2009 |
thompsa |
Build fixups for the new USB stack.
|
188642 |
15-Feb-2009 |
nyan |
sys/pccard is gone.
|
188497 |
11-Feb-2009 |
ed |
Add two new routines: fdevname() and fdevname_r().
A more elegant way of obtaining a name of a character device by its file descriptor on FreeBSD, is to use the FIODGNAME ioctl. Because a valid file descriptor implies a file descriptor is visible in /dev, it will always resolve a valid device name.
I'm adding a more friendly wrapper for this ioctl, called fdevname(). It is a lot easier to use than devname() and also has better error handling. When a device name cannot be resolved, it will just return NULL instead of a generated device name that makes no sense.
Discussed with: kib
|
187969 |
01-Feb-2009 |
obrien |
Also un-split _PATH_STDPATH for grepability. While I'm here, fix other style bugs reported to me.
|
187961 |
31-Jan-2009 |
das |
Add a function attribute called `__malloc_like', which informs gcc that the annotated function returns a pointer that doesn't alias any extant pointer. This results in a 50%+ speedup in microbenchmarks such as the following:
char *cp = malloc(1), *buf = malloc(BUF); for (i = 0; i < BUF; i++) buf[i] = *cp;
In real programs, your mileage will vary. Note that gcc already performs this optimization automatically for any function called `malloc', `calloc', `strdup', or `strndup' unless -fno-builtins is used.
|
187724 |
26-Jan-2009 |
obrien |
No need to wrap _PATH_SYSPATH. It makes it harder to grep(1) for its value. (also unwrapping better matches existing style)
|
186090 |
14-Dec-2008 |
ume |
Merge the resolver part of BIND 9.4.3 into HEAD. It includes the following fix:
2426. [bug] libbind: inet_net_pton() can sometimes return the wrong value if excessively large netmasks are supplied. [RT #18512]
Reported by: Maksymilian Arciemowicz <cxib__at__securityreason.com>
|
185777 |
08-Dec-2008 |
kib |
Add strndup(3) prototype to string.h.
This change was erronously ommitted from the r185690, and attempt to simply add the prototype to string.h has revealed that several contributed programs defined local prototypes for strndup(), controlled by autoconfed config.h. So, manually change #undef HAVE_STRNDUP to #define HAVE_STRNDUP 1. Next import of the corresponding program would regenerate config.h, overriding the changes in this commit.
No objections from: kan
|
185087 |
19-Nov-2008 |
alfred |
src/sys/dev/usb2/controller/uss820dci_pccard.c src/sys/dev/usb2/core/usbdevs src/sys/dev/usb2/include/urio2_ioctl.h src/sys/dev/usb2/storage/ustorage2_fs.h
These files are not used any more.
src/usr.sbin/Makefile src/etc/mtree/BSD.include.dist src/include/Makefile src/lib/Makefile src/share/man/man7/hier.7 src/share/mk/bsd.libnames.mk src/etc/mtree/BSD.include.dist
Make "usbconfig" and "libusb20" a part of the default build.
src/sys/dev/usb/rio500_usb.h src/sys/dev/usb2/storage/urio2.c
Use common include file.
src/sys/dev/usb2/bluetooth/ng_ubt2.c
Make USB bluetooth depend on "ng_hci" module.
src/sys/dev/usb2/controller/ehci2.c src/sys/dev/usb2/controller/ehci2.h
Patches for Marvell EHCI.
src/sys/dev/usb2/core/usb2_busdma.c
Bugfix for 64-bit platforms. Need to unload the previously loaded DMA map and some cleanup regarding some corner cases.
src/sys/dev/usb2/core/usb2_core.h src/sys/dev/usb2/core/usb2_dev.c src/sys/dev/usb2/core/usb2_dev.h
Bugfix for libusb filesystem interface.
New feature: Add support for filtering device data at the expense of the userland process.
Add some more comments.
Some minor code styling.
Remove unused function, usb2_fifo_get_data_next().
Fix an issue about "fifo_index" being used instead of "ep_index".
src/sys/dev/usb2/core/usb2_device.c src/sys/dev/usb2/core/usb2_generic.c
Bugfix for Linux USB compat layer. Do not free non-generic FIFOs when doing an alternate setting.
Cleanup USB IOCTL and USB reference handling. Fix a corner case where USB-FS was left initialised after setting a new configuration or alternate setting.
src/sys/dev/usb2/core/usb2_hub.c
Improvement: Check all USB HUB ports by default at least one time.
src/sys/dev/usb2/core/usb2_request.c
Bugfix: Make sure destination ASCII string is properly zero terminated in all cases.
Improvement: Skip invalid characters instead of replacing with a dot.
src/sys/dev/usb2/core/usb2_util.c src/sys/dev/usb2/image/uscanner2.c
Spelling.
src/sys/dev/usb2/include/Makefile
Share "usbdevs" with the old USB stack.
src/sys/dev/usb2/include/usb2_devid.h src/sys/dev/usb2/include/usb2_devtable.h
Regenerate files.
Alfred: Please fix the RCS tag at the top.
src/sys/dev/usb2/include/usb2_ioctl.h
Fix compilation of "kdump".
src/sys/dev/usb2/serial/ubsa2.c src/sys/dev/usb2/serial/ugensa2.c
Remove device ID's which will end up in a new 3G driver.
src/sys/dev/usb2/sound/uaudio2.c
Correct a debug printout.
src/sys/dev/usb2/storage/umass2.c
Sync with old USB stack.
src/lib/libusb20/libusb20.3
Add more documentation.
src/lib/libusb20/libusb20.c
Various bugfixes and improvements.
src/usr.sbin/usbconfig/dump.c src/usr.sbin/usbconfig/usbconfig.c
New commands for dumping strings and doing custom USB requests from the command line.
Remove keyword requirements from generated files: "head/sys/dev/usb2/include/usb2_devid.h" "head/sys/dev/usb2/include/usb2_devtable.h"
|
185000 |
16-Nov-2008 |
ed |
Add a comment to utmp.h about the sizes of UT_HOSTSIZE and UT_LINESIZE.
UT_HOSTSIZE and UT_LINESIZE are too small right now. If we ever bump UT_HOSTSIZE, we must not forget to increase UT_LINESIZE as well. If we add a comment, we're pretty sure we increase both values at the same time.
PR: bin/108743 (maybe others)
|
184588 |
03-Nov-2008 |
dfr |
Implement support for RPCSEC_GSS authentication to both the NFS client and server. This replaces the RPC implementation of the NFS client and server with the newer RPC implementation originally developed (actually ported from the userland sunrpc code) to support the NFS Lock Manager. I have tested this code extensively and I believe it is stable and that performance is at least equal to the legacy RPC implementation.
The NFS code currently contains support for both the new RPC implementation and the older legacy implementation inherited from the original NFS codebase. The default is to use the new implementation - add the NFS_LEGACYRPC option to fall back to the old code. When I merge this support back to RELENG_7, I will probably change this so that users have to 'opt in' to get the new code.
To use RPCSEC_GSS on either client or server, you must build a kernel which includes the KGSSAPI option and the crypto device. On the userland side, you must build at least a new libc, mountd, mount_nfs and gssd. You must install new versions of /etc/rc.d/gssd and /etc/rc.d/nfsd and add 'gssd_enable=YES' to /etc/rc.conf.
As long as gssd is running, you should be able to mount an NFS filesystem from a server that requires RPCSEC_GSS authentication. The mount itself can happen without any kerberos credentials but all access to the filesystem will be denied unless the accessing user has a valid ticket file in the standard place (/tmp/krb5cc_<uid>). There is currently no support for situations where the ticket file is in a different place, such as when the user logged in via SSH and has delegated credentials from that login. This restriction is also present in Solaris and Linux. In theory, we could improve this in future, possibly using Brooks Davis' implementation of variant symlinks.
Supporting RPCSEC_GSS on a server is nearly as simple. You must create service creds for the server in the form 'nfs/<fqdn>@<REALM>' and install them in /etc/krb5.keytab. The standard heimdal utility ktutil makes this fairly easy. After the service creds have been created, you can add a '-sec=krb5' option to /etc/exports and restart both mountd and nfsd.
The only other difference an administrator should notice is that nfsd doesn't fork to create service threads any more. In normal operation, there will be two nfsd processes, one in userland waiting for TCP connections and one in the kernel handling requests. The latter process will create as many kthreads as required - these should be visible via 'top -H'. The code has some support for varying the number of service threads according to load but initially at least, nfsd uses a fixed number of threads according to the value supplied to its '-n' option.
Sponsored by: Isilon Systems MFC after: 1 month
|
184587 |
03-Nov-2008 |
kib |
Add the ffsll and flsll functions. These are ffs and fls operating on long long arguments.
Reviewed by: bde (previous version, that included asm implementation for all ffs and fls functions on i386 and amd64) MFC after: 2 weeks
|
183390 |
26-Sep-2008 |
peter |
Move getosreldate(3) prototype from the machine generated <osreldate.h> to <unistd.h> in the BSD section.
Suggested by: kib
|
183378 |
26-Sep-2008 |
peter |
Re-add getosreldate(3) function prototype in the form that I've been using for quite some time now. While I'm not sure if it'll break IA64 again, this way doesn't cause problems with my builds of XFree86/Xorg and the way they #include <osreldate.h> via cpp in the imake system.
|
183057 |
16-Sep-2008 |
emax |
Add missing prototypes for uuid_enc,dec_le,be() functions. Pointy hat goes to me.
MFC after: 3 days
|
183004 |
13-Sep-2008 |
antoine |
Fix TELOPT(opt) when opt > TELOPT_TN3270E.
PR: 127194 Submitted by: Joost Bekkers MFC after: 1 month
|
182891 |
09-Sep-2008 |
dfr |
Initialise the SVCAUTH field for new transport structures when they are allocated instead of waiting for the first request. This fixes an issue with rpcbind's support for PMAPPROC_CALLIT.
Reviewed by: markm
|
181377 |
07-Aug-2008 |
das |
Implement cproj{,f,l}().
|
181375 |
07-Aug-2008 |
das |
Annotate creal(), cimag(), and conj() with __pure2.
|
181344 |
06-Aug-2008 |
dfr |
Add an implementation of the RPCSEC_GSS authentication protocol for RPC. This is based on an old implementation from the University of Michigan with lots of changes and fixes by me and the addition of a Solaris-compatible API.
Sponsored by: Isilon Systems Reviewed by: alfred
|
180800 |
25-Jul-2008 |
ed |
Remove <sgtty.h> now it has no practical usage.
When I turned sgtty into a binary-only interface (last month), I added this explicit #error to the header file, to make sure nobody forgot to remove the header file after updating world.
I think it is now a good moment to remove this header file.
Approved by: philip (mentor)
|
180689 |
22-Jul-2008 |
ache |
Add arc4random_uniform()
Obtained from: OpenBSD
|
180658 |
21-Jul-2008 |
ache |
Add arc4random_buf. Style: remove arg names from arc4random_addrandom.
|
180360 |
08-Jul-2008 |
davidxu |
posix_spawn() is supported, set _POSIX_SPAWN to 200212L.
|
179947 |
23-Jun-2008 |
ed |
Turn execvpe() into an internal libc routine.
Adding exevpe() has caused some ports to break. Even though execvpe() is a useful routine, it does not conform to any standards.
This patch is a little bit different from the patch sent to the mailing list. I forgot to remove execvpe from the Symbol.map (which does not seem to miscompile libc, though).
Reviewed by: davidxu Approved by: philip
|
179873 |
19-Jun-2008 |
ed |
Remove __restrict keywords from array arguments to make GCC's -std=c99 work.
When GCC is invoked with -std=c99, the following errors are displayed when including <spawn.h>:
/usr/include/spawn.h:69: error: static or type qualifiers in abstract declarator /usr/include/spawn.h:69: error: static or type qualifiers in abstract declarator /usr/include/spawn.h:72: error: static or type qualifiers in abstract declarator /usr/include/spawn.h:72: error: static or type qualifiers in abstract declarator
We'd better remove the __restrict keywords here. The same is also done in <regex.h>.
Submitted by: Andrzej Tobola <ato iem pw edu pl> Reviewed by: davidxu Approved by: philip (mentor, implicit)
|
179840 |
17-Jun-2008 |
ed |
Change my email address to the one from the FreeBSD project.
Approved by: philip (mentor, implicit), davidxu
|
179838 |
17-Jun-2008 |
davidxu |
Add POSIX routines called posix_spawn() and posix_spawnp(), which can be used as replacements for exec/fork in a lot of cases. This change also added execvpe() which allows environment variable PATH to be used for searching executable file, it is used for implementing posix_spawnp().
PR: standards/122051
|
179784 |
14-Jun-2008 |
ed |
Turn sgtty into a binary-only compatibility interface.
sgtty was the original interface to configure terminal attributes on my UNIX-like operating systems. It has been deprecated by the POSIX termios interface, which is implemented in almost any modern system.
An advantage of turning this into a binary compatibility interface, is that we can now eventually remove the COMPAT_43TTY switch from kernel configurations. This removes many ioctl()'s from the TTY layer.
While there, increase the __FreeBSD_version, which may be useful for the people working on the Ports tree.
Reviewed by: kib Approved by: philip (mentor)
|
179662 |
09-Jun-2008 |
davidxu |
Make pthread_cleanup_push() and pthread_cleanup_pop() as a pair of macros, use stack space to keep cleanup information, this eliminates overhead of calling malloc() and free() in thread library.
Discussed on: thread@
|
179315 |
26-May-2008 |
bz |
Remove ISDN4BSD (I4B) from HEAD as it is not MPSAFE and parts relied on the now removed NET_NEEDS_GIANT. Most of I4B has been disconnected from the build since July 2007 in HEAD/RELENG_7.
This is what was removed: - configuration in /etc/isdn - examples - man pages - kernel configuration - sys/i4b (drivers, layers, include files) - user space tools - i4b support from ppp - further documentation
Discussed with: rwatson, re
|
179308 |
25-May-2008 |
rwatson |
Remove netatm from HEAD as it is not MPSAFE and relies on the now removed NET_NEEDS_GIANT. netatm has been disconnected from the build for ten months in HEAD/RELENG_7. Specifics:
- netatm include files - netatm command line management tools - libatm - ATM parts in rescue and sysinstall - sample configuration files and documents - kernel support as a module or in NOTES - netgraph wrapper nodes for netatm - ctags data for netatm. - netatm-specific device drivers.
MFC after: 3 weeks Reviewed by: bz Discussed with: bms, bz, harti
|
179275 |
24-May-2008 |
mckusick |
Expand dump to allow MAX_INT dump levels.
PR: bin/100732 Submitted by: Matthew Vincenz <msvincen@midway.uchicago.edu>
|
179033 |
16-May-2008 |
dfr |
Make this c++ compatible.
PR: 87726
|
179021 |
15-May-2008 |
dfr |
Add definition for OM_uint64.
Submitted by: tmclaugh
|
178863 |
08-May-2008 |
scf |
Define the size_t type since readpassphrase(3) requires it in its definition and sys/types.h is not listed within the synopsis of the man page.
MFC after: 1 week
|
178829 |
07-May-2008 |
jhb |
Tag FILE's _bf as being part of the public ABI as well due to the in-tree sort(1) referencing it.
|
178828 |
07-May-2008 |
dfr |
Fix conflicts after heimdal-1.1 import and add build infrastructure. Import all non-style changes made by heimdal to our own libgssapi.
|
178818 |
07-May-2008 |
jhb |
Install the mpilib headers from mpt(4) into /usr/include/dev/mpt/mpilib. This allows <sys/mpt_ioctl.h> to be used from userland.
Prodded by: scottl
|
178782 |
05-May-2008 |
jhb |
Retire the __fgetcookie(), __fgetpendout(), and __fsetfileno() accessors as we aren't hiding FILE's internals anymore.
|
178779 |
05-May-2008 |
jhb |
Note that FILE's __cookie is also part of the public ABI.
|
178778 |
05-May-2008 |
jhb |
Expose FILE's internals to the world again in all their glory. Restore all the previous inline optimizations as well. FILE is back to using __mbstate_t, struct pthread *, and struct pthread_mutex *.
|
178755 |
03-May-2008 |
marcel |
Unbreak build: gnu sort has been configured to grope inside struct __sFILE. It's opaque now, so add a function that returns the pending output bytes.
Pointy hat: jhb
|
178747 |
03-May-2008 |
marcel |
Unbreak build: libftpio gropes inside struct __sFILE. Implement accessor functions for its benefit now thaat FILE is opaque. I'm sure there's a better way. I leave that for people to work on in a src tree that isn't broken.
Pointy hat: jhb
|
178723 |
02-May-2008 |
jhb |
Axe now-empty __BSD_VISIBLE block that held renameat().
Reported by: kib Pointy hat: jhb
|
178722 |
02-May-2008 |
jhb |
- Move declaration of renameat() to the existing section of BSD_VISIBLE function prototypes. - Fix a few whitespace inconsistencies in prototypes.
MFC after: 1 month
|
178721 |
02-May-2008 |
jhb |
Next round of stdio changes: Remove all inlining of stdio operations and move the definition of the type backing FILE (struct __sFILE) into an internal header. - Remove macros to inline certain operations from stdio.h. Applications will now always call the functions instead. - Move the various foo_unlocked() functions from unlocked.c into foo.c. This lets some of the inlining macros (e.g. __sfeof()) move into foo.c. - Update a few comments. - struct __sFILE can now go back to using mbstate_t, pthread_t, and pthread_mutex_t instead of knowing about their private, backing types.
MFC after: 1 month Reviewed by: kan
|
178287 |
17-Apr-2008 |
jhb |
Next stage of stdio cleanup: Retire __sFILEX and merge the fields back into __sFILE. This was supposed to be done in 6.0. Some notes: - Where possible I restored the various lines to their pre-__sFILEX state. - Retire INITEXTRA() and just initialize the wchar bits (orientation and mbstate) explicitly instead. The various places that used INITEXTRA didn't need the locking fields or _up initialized. (Some places needed _up to exist and not be off the end of a NULL or garbage pointer, but they didn't require it to be initialized to a specific value.) - For now, stdio.h "knows" that pthread_t is a 'struct pthread *' to avoid namespace pollution of including all the pthread types in stdio.h. Once we remove all the inlines and make __sFILE private it can go back to using pthread_t, etc. - This does not remove any of the inlines currently and does not change any of the public ABI of 'FILE'.
MFC after: 1 month Reviewed by: peter
|
178282 |
17-Apr-2008 |
jhb |
Specifically mark the members of 'FILE' that are accessed via inline functions or macros since they are part of the public ABI as a result.
MFC after: 1 month
|
178256 |
16-Apr-2008 |
delphij |
Implement fdopendir(3) by splitting __opendir2() into two parts, the upper part deals with the usual __opendir2() calls, and the rest part with an interface translator to expose fdopendir(3) functionality. Manual page was obtained from kib@'s work for *at(2) system calls.
|
178064 |
10-Apr-2008 |
kib |
Add the restrict qualifiers to the pointer arguments of the readlinkat.
|
178051 |
10-Apr-2008 |
delphij |
Add memrchr(3).
Obtained from: OpenBSD
|
177830 |
01-Apr-2008 |
kib |
Correct the prototype for the faccessat().
Reported by: ru
|
177791 |
31-Mar-2008 |
kib |
Add the libc glue and headers definitions for the *at() syscalls.
Based on the submission by rdivacky, sponsored by Google Summer of Code 2007 Reviewed by: rwatson, rdivacky Tested by: pho
|
177761 |
30-Mar-2008 |
das |
Implement csqrtl().
|
177760 |
30-Mar-2008 |
das |
Hook hypotl() and cabsl() up to the build.
|
177653 |
26-Mar-2008 |
jb |
Allow an application to define FOPEN_MAX (like we allow for OPEN_MAX in sys/syslimits.h).
|
177494 |
22-Mar-2008 |
davidxu |
Add POSIX pthread API pthread_getcpuclockid() to get a thread's cpu time clock id.
|
176760 |
03-Mar-2008 |
davidxu |
Add cpu affinity APIs to get and set thread's cpu affinity mask, the functions are intented to be are compatible with glibc.
|
176607 |
26-Feb-2008 |
ru |
Added the "restrict" type-qualifier to the readlink() prototype.
|
176215 |
12-Feb-2008 |
ru |
Change readlink(2)'s return type and type of the last argument to match POSIX.
Prodded by: Alexey Lyashkov
|
176049 |
06-Feb-2008 |
des |
Per discussion on -threads, rename _islocked_np() to _isowned_np().
|
175958 |
03-Feb-2008 |
des |
Add pthread_mutex_islocked_np(), a cheap way to verify that a mutex is locked. This is intended primarily to support the userland equivalent of the various *_ASSERT_LOCKED() macros we have in the kernel.
MFC after: 2 weeks
|
175688 |
26-Jan-2008 |
yar |
Our fts(3) API, as inherited from 4.4BSD, suffers from integer fields in FTS and FTSENT structs being too narrow. In addition, the narrow types creep from there into fts.c. As a result, fts(3) consumers, e.g., find(1) or rm(1), can't handle file trees an ordinary user can create, which can have security implications.
To fix the historic implementation of fts(3), OpenBSD and NetBSD have already changed <fts.h> in somewhat incompatible ways, so we are free to do so, too. This change is a superset of changes from the other BSDs with a few more improvements. It doesn't touch fts(3) functionality; it just extends integer types used by it to match modern reality and the C standard.
Here are its points:
o For C object sizes, use size_t unless it's 100% certain that the object will be really small. (Note that fts(3) can construct pathnames _much_ longer than PATH_MAX for its consumers.)
o Avoid the short types because on modern platforms using them results in larger and slower code. Change shorts to ints as follows:
- For variables than count simple, limited things like states, use plain vanilla `int' as it's the type of choice in C.
- For a limited number of bit flags use `unsigned' because signed bit-wise operations are implementation-defined, i.e., unportable, in C.
o For things that should be at least 64 bits wide, use long long and not int64_t, as the latter is an optional type. See FTSENT.fts_number aka FTS.fts_bignum. Extending fts_number `to satisfy future needs' is pointless because there is fts_pointer, which can be used to link to arbitrary data from an FTSENT. However, there already are fts(3) consumers that require fts_number, or fts_bignum, have at least 64 bits in it, so we must allow for them.
o For the tree depth, use `long'. This is a trade-off between making this field too wide and allowing for 64-bit inode numbers and/or chain-mounted filesystems. On the one hand, `long' is almost enough for 32-bit filesystems on a 32-bit platform (our ino_t is uint32_t now). On the other hand, platforms with a 64-bit (or wider) `long' will be ready for 64-bit inode numbers, as well as for several 32-bit filesystems mounted one under another. Note that fts_level has to be signed because -1 is a magic value for it, FTS_ROOTPARENTLEVEL.
o For the `nlinks' local var in fts_build(), use `long'. The logic in fts_build() requires that `nlinks' be signed, but our nlink_t currently is uint16_t. Therefore let's make the signed var wide enough to be able to represent 2^16-1 in pure C99, and even 2^32-1 on a 64-bit platform. Perhaps the logic should be changed just to use nlink_t, but it can be done later w/o breaking fts(3) ABI any more because `nlinks' is just a local var.
This commit also inludes supporting stuff for the fts change:
o Preserve the old versions of fts(3) functions through libc symbol versioning because the old versions appeared in all our former releases.
o Bump __FreeBSD_version just in case. There is a small chance that some ill-written 3-rd party apps may fail to build or work correctly if compiled after this change.
o Update the fts(3) manpage accordingly. In particular, remove references to fts_bignum, which was a FreeBSD-specific hack to work around the too narrow types of FTSENT members. Now fts_number is at least 64 bits wide (long long) and fts_bignum is an undocumented alias for fts_number kept around for compatibility reasons. According to Google Code Search, the only big consumers of fts_bignum are in our own source tree, so they can be fixed easily to use fts_number.
o Mention the change in src/UPDATING.
PR: bin/104458 Approved by: re (quite a while ago) Discussed with: deischen (the symbol versioning part) Reviewed by: -arch (mostly silence); das (generally OK, but we didn't agree on some types used; assuming that no objections on -arch let me to stick to my opinion)
|
175431 |
18-Jan-2008 |
davidxu |
_POSIX_THREAD_CPUTIME is now supported.
|
175220 |
10-Jan-2008 |
jhb |
Add a feature_present(3) function which checks to see if a named kernel feature is present by checking the kern.features sysctl MIB.
MFC after: 1 week
|
174617 |
15-Dec-2007 |
das |
Implement and document csqrt(3) and csqrtf(3).
|
174585 |
14-Dec-2007 |
davidxu |
1. Add function pthread_mutex_setspinloops_np to turn a mutex's spin loop count. 2. Add function pthread_mutex_setyieldloops_np to turn a mutex's yield loop count. 3. Make environment variables PTHREAD_SPINLOOPS and PTHREAD_YIELDLOOPS to be only used for turnning PTHREAD_MUTEX_ADAPTIVE_NP mutex.
|
174561 |
12-Dec-2007 |
das |
Implement carg(3) and cargf(3).
Rotting in an old src tree since: March 2005
|
174547 |
12-Dec-2007 |
bushman |
Implementing 'fallback' nsswitch source. 'fallback' source is used when particular function can't be found in nsswitch-module. For example, getgrouplist(3) will use module-supplied 'getgroupmembership' function (which can work in an optimal way for such source as LDAP) and will fall back to the stanard iterate-through-all-groups implementation otherwise.
PR: ports/114655 Submitted by: Michael Hanselmann <freebsd AT hansmi DOT ch> Reviewed by: brooks (mentor)
|
174133 |
01-Dec-2007 |
phk |
Only protect the prototypes with #ifndef _ASSERT_H_, the standards specifically allow changes to the NDEBUG macro between #includes of assert.h
|
174131 |
01-Dec-2007 |
phk |
Add missing #ifndef _ASSERT_H_ protection against multiple inclusions
|
174044 |
28-Nov-2007 |
jb |
Remove some OpenSolaris compatibility stuff now that we're doing it a different way.
|
173762 |
20-Nov-2007 |
jb |
Use a forward definition of an opaque structure rather than a void to avoid a strict alias type check failure in gcc 4.2.
|
173244 |
01-Nov-2007 |
ache |
Back out not human readable optimization in prev. commit which shown to generate 3bytes longer opcode.
|
173154 |
29-Oct-2007 |
kris |
Add a new "non-portable" mutex type, PTHREAD_MUTEX_ADAPTIVE_NP. This is also implemented in glibc and is used by a number of existing applications (mysql, firefox, etc).
This mutex type is a default mutex with the additional property that it spins briefly when attempting to acquire a contested lock, doing trylock operations in userland before entering the kernel to block if eventually unsuccessful.
The expectation is that applications requesting this mutex type know that the mutex is likely to be only held for very brief periods, so it is faster to spin in userland and probably succeed in acquiring the mutex, than to enter the kernel and sleep, only to be woken up almost immediately. This can help significantly in certain cases when pthread mutexes are heavily contended and held for brief durations (such as mysql).
Spin up to 200 times before entering the kernel, which represents only a few us on modern CPUs. No performance degradation was observed with this value and it is sufficient to avoid a large performance drop in mysql performance in the heavily contended pthread mutex case.
The libkse implementation is a NOP.
Reviewed by: jeff MFC after: 3 days
|
173127 |
29-Oct-2007 |
imp |
Remove 3rd clause and renumber after getting permission from the author (quite some time ago).
|
173084 |
27-Oct-2007 |
ache |
Micro-optimization of prev. commit, change (_c < 0 || _c >= 128) to (_c & ~0x7F)
|
173053 |
27-Oct-2007 |
ache |
Small improvement for __isctype(): don't use __mb_sb_limit but hardcode 128 here instead, since default locale never define anything above 127 char.
|
172630 |
14-Oct-2007 |
ache |
Back out iswascii change from prev. commit, iswascii was right, some overlook from me.
|
172619 |
13-Oct-2007 |
ache |
The problem is: currently our single byte ctype(3) functions are broken for wide characters locales in the argument range >= 0x80 - they may return false positives.
Example 1: for UTF-8 locale we currently have: iswspace(0xA0)==1 and isspace(0xA0)==1 (because iswspace() and isspace() are the same code) but must have iswspace(0xA0)==1 and isspace(0xA0)==0 (because there is no such character and all others in the range 0x80..0xff for the UTF-8 locale, it keeps ASCII only in the single byte range because our internal wchar_t representation for UTF-8 is UCS-4).
Example 2: for all wide character locales isalpha(arg) when arg > 0xFF may return false positives (must be 0). (because iswalpha() and isalpha() are the same code)
This change address this issue separating single byte and wide ctype and also fix iswascii() (currently iswascii() is broken for arguments > 0xFF). This change is 100% binary compatible with old binaries.
Reviewied by: i18n@
|
172397 |
01-Oct-2007 |
ru |
Install the forgotten /usr/include/geom/multipath/ header.
Approved by: re (kensmith)
|
172302 |
23-Sep-2007 |
pjd |
Bring in the GEOM Virtualisation class, which allows to create huge GEOM providers with limited physical storage and add physical storage as needed.
Submitted by: Ivan Voras Sponsored by: Google Summer of Code 2006 Approved by: re (kensmith)
|
171954 |
24-Aug-2007 |
bms |
Remove old prototypes for addr2ascii() and ascii2addr(), functions which no longer exist in libc.
Requested by: Craig Rodrigues Approved by: re (kensmith)
|
171680 |
01-Aug-2007 |
ticso |
declare struct tftphdr and embedded union as beeing packed, which is required for arm.
Tested on: arm, i386, amd64 Approved by: re (rwatson) MFC after: 1 week
|
171453 |
14-Jul-2007 |
rwatson |
Disconnect netatm from the build as it is not MPSAFE and relies on NET_NEEDS_GIANT, which will shortly be removed. This is done in a away that it may be easily reattached to the build before 7.1 if appropriate locking is added. Specifics:
- Don't install netatm include files - Disconnect netatm command line management tools - Don't build libatm - Don't include ATM parts in rescue or sysinstall - Don't install sample configuration files and documents - Don't build kernel support as a module or in NOTES - Don't build netgraph wrapper nodes for netatm
This removes the last remaining consumer of NET_NEEDS_GIANT.
Reviewed by: harti Discussed with: bz, bms Approved by: re (kensmith)
|
171271 |
06-Jul-2007 |
bz |
I4B header files were repo-copied from sys/i386/include to sys/i4b/include/ so they will be available to all architectures once I4B compiles on those.
I4B header files are now installed in include/i4b/ and no longer in include/machine/.
For now we still install the headers for i386 only.
Approved by: re (kensmith)
|
171195 |
04-Jul-2007 |
scf |
Significantly reduce the memory leak as noted in BUGS section for setenv(3) by tracking the size of the memory allocated instead of using strlen() on the current value.
Convert all calls to POSIX from historic BSD API: - unsetenv returns an int. - putenv takes a char * instead of const char *. - putenv no longer makes a copy of the input string. - errno is set appropriately for POSIX. Exceptions involve bad environ variable and internal initialization code. These both set errno to EFAULT.
Several patches to base utilities to handle the POSIX changes from Andrey Chernov's previous commit. A few I re-wrote to use setenv() instead of putenv().
New regression module for tools/regression/environ to test these functions. It also can be used to test the performance.
Bump __FreeBSD_version to 700050 due to API change.
PR: kern/99826 Approved by: wes Approved by: re (kensmith)
|
171135 |
01-Jul-2007 |
gnn |
Commit IPv6 support for FAST_IPSEC to the tree. This commit includes all remaining changes for the time being including user space updates.
Submitted by: bz Approved by: re
|
171023 |
25-Jun-2007 |
rafan |
- Remove UMAP filesystem. It was disconnected from build three years ago, and it is seriously broken.
Discussed on: freebsd-arch@ Approved by: re (mux)
|
170715 |
14-Jun-2007 |
delphij |
Require users to provide a length information for inet_ntoa_r, this is common on other platforms.
Reported by: pointyhat via kris
|
170548 |
11-Jun-2007 |
delphij |
Add inet_ntoa_r, a reentrant version of inet_ntoa. This is available on a lot of platforms, as well as libkern for years.
Submitted by: "MQ"
|
170547 |
11-Jun-2007 |
stefanf |
Use tabs after #define.
Obtained from: NetBSD Spotted by: njl
|
170527 |
11-Jun-2007 |
simokawa |
Add _PATH_FWMEM for libkvm.
|
170511 |
10-Jun-2007 |
stefanf |
Merge NetBSD changes, among them:
el.c 1.44, el.h 1.17, editline.3 1.53, histedit.h 1.31: # add EL_GETFP, and EL_SETFP.
el.c 1.42, term.c 1.46, term.h 1.18, editline.3 1.52, histedit.h 1.29: # - Add more readline functions, enough for gdb-6.5 # - Make el_get varyadic, and implement EL_GETTC. # - XXX: the EL_SETTC api will change in the future.
Note: The latter change breaks the ABI of the el_get() function.
Approved by: re (kensmith)
|
170244 |
03-Jun-2007 |
ume |
Merge BIND 9.4.1 into main chunk.
MFC after: 2 weeks
|
169177 |
01-May-2007 |
ache |
Back out all POSIXified *env() changes.
Not because I admit they are technically wrong and not because of bug reports (I receive nothing). But because I surprisingly meets so strong opposition and resistance so lost any desire to continue that.
Anyone who interested in POSIX can dig out what changes and how through cvs diffs.
|
169110 |
30-Apr-2007 |
ache |
Fix unsetenv and putenv prototypes to conform Open Group specs Issue 6 (also IEEE Std 1003.1-2001)
|
168677 |
13-Apr-2007 |
pjd |
Install only types.h from sys/rpc/.
Requested by: ache Explained how by: ru
|
168606 |
10-Apr-2007 |
pjd |
Move rpc/types.h under sys/, as this is used by ZFS kernel module.
Repo-copied by: simon
|
168469 |
07-Apr-2007 |
pjd |
- Remove SEEK_DATA and SEEK_HOLE from stdio.h, they don't belong here. - Only define SEEK_DATA and SEEK_HOLE in sys/unistd.h when neither _POSIX_SOURCE nor _XOPEN_SOURCE is defined.
Pointed out by: bde, ache
|
168397 |
05-Apr-2007 |
pjd |
Implement SEEK_DATA and SEEK_HOLE extensions to lseek(2) as found in OpenSolaris. For more information please refer to:
http://blogs.sun.com/bonwick/entry/seek_hole_and_seek_data
|
167011 |
26-Feb-2007 |
mckusick |
Update the dump program to save extended attributes. Update the restore program to restore all dumped extended attributes.
If the restore is running as root, it will always be able to restore all extended attributes. If it is not running as root, it makes a best effort to set them. Using the -v command line flag or the `verbose' command in interactive mode will display all the extended attributes being set on files (and at the end on directories) that are being restored. It will note any extended attributes that could not be set.
The extended attributes are placed on the dump image immediately following each file's data. Older versions of restore can work with the newer dump images. Old versions of restore will correctly restore the file data and then (silently) skip over the extended attribute data and proceed to the next file.
This resolves PR 93085 which will be closed once the code has been MFC'ed.
Note that this code will not compile until these header files have been updated: <protocols/dumprestore.h> and <sys/extattr.h>.
PR: bin/93085 Comments from: Poul-Henning Kamp and Robert Watson MFC after: 3 weeks
|
166640 |
11-Feb-2007 |
rodrigc |
Makefile changes to reflect moving sys/isofs/cd9660 to sys/fs/cd9660. Continue to install userland include files in /usr/include/isofs/cd9660 so as not to break userland applications such as libstand.
|
166432 |
02-Feb-2007 |
schweikh |
Properly parenthesize the __tg_is_complex() macro by moving a closing paren to where it belongs.
MFC after: 7 days
|
166431 |
02-Feb-2007 |
schweikh |
Comment the token after #endif, like we do everywhere else. Static analyzers like FlexeLint complain about it.
MFC after: 7 days
|
166243 |
25-Jan-2007 |
peter |
Oops, remove an objformat.h reference.
|
166241 |
25-Jan-2007 |
peter |
Remove more a.out strays, as threatened in 2002.
|
165828 |
06-Jan-2007 |
davidxu |
Add function __mq_oshandle() to get file handle of a mqueue.
|
165258 |
15-Dec-2006 |
ume |
Merge BIND9 9.3.3 into main chunk.
Obtained from: ISC MFC after: 1 week
|
165230 |
14-Dec-2006 |
pjd |
Forgot to commit this file: add definition for _SC_PHYS_PAGES.
|
164244 |
13-Nov-2006 |
jkoshy |
Attempt to improve application portability by marking `struct ar_hdr' as `packed'.
The C standard leaves the alignment of individual members of a C struct upto the implementation, so pedantically speaking portable code cannot assume that the layout of a `struct ar_hdr' in memory will match its layout in a file. Using a __packed attribute declaration forces file and memory layouts for this structure to match.
Submitted by: ru
|
164184 |
11-Nov-2006 |
trhodes |
Merge posix4/* into normal kernel hierarchy.
Reviewed by: glanced at by jhb Approved by: silence on -arch@ and -standards@
|
163851 |
31-Oct-2006 |
pjd |
Hook up gjournal bits to the build.
Sponsored by: home.pl
|
163048 |
06-Oct-2006 |
ru |
A GEOM cache can speed up read performance by sending fixed size read requests to its consumer. It has been developed to address the problem of a horrible read performance of a 64k blocksize FS residing on a RAID3 array with 8 data components, where a single disk component would only get 8k read requests, thus effectively killing disk performance under high load. Documentation will be provided later. I'd like to thank Vsevolod Lobko for his bright ideas, and Pawel Jakub Dawidek for helping me fix the nasty bug.
|
163001 |
04-Oct-2006 |
jb |
Include the Solaris compatibility definions iff _SOLARIS_C_SOURCE is defined.
|
162117 |
07-Sep-2006 |
emax |
Prepare for upcoming bthidd(8) update. Install vkbd(4) header into dev/vkbd.
MFC after: 1 month
|
160892 |
01-Aug-2006 |
sobomax |
Add device to access and modify Open Firmware NVRAM settings in PowerPC-based Apple's machines and small utility to do it from userland modelled after the similar utility in Darwin/OSX.
Only tested on 1.25GHz G4 Mac Mini.
MFC after: 1 month
|
160056 |
30-Jun-2006 |
jasone |
Add __{BEGIN,END}_DECLS macros, so that function prototypes remain unmangled for C++ programs.
Submitted by: Niklas Sorensson <nik@cs.chalmers.se>
|
158811 |
22-May-2006 |
ache |
Add size_t declaration
|
158810 |
22-May-2006 |
ache |
Make gl_offs size_t too, as required by POSIX
Make non-standard gl_matchc in the similar fashion as gl_pathc size_t too, like done in NetBSD & others
|
158808 |
22-May-2006 |
ache |
Use size_t for gl_pathc as asked in the libc's Makefile: # If you bump SHLIB_MAJOR, see standards/55112.
PR: 55112 Reviewed by: ume
|
158791 |
21-May-2006 |
ume |
Fix gethostbyaddr() prototype to conform to IEEE Std 1003.1 on 64 bit arch.
X-MFC after: never
|
158790 |
21-May-2006 |
ume |
Return EAI_OVERFLOW instead of EAI_MEMORY when the supplied buffer is too short. This conforms to RFC3493, POSIX and XPG6.
Obtained from: NetBSD
|
158787 |
21-May-2006 |
ume |
Upgrade res_update(3) and the friends to BIND9's one excluding TSIG support.
X-MFC after: never
|
158518 |
13-May-2006 |
ume |
Comment out the function prototypes which our libc actually doesn't have.
|
158477 |
12-May-2006 |
ume |
Fix gethostbyaddr() prototype to conform to IEEE Std 1003.1:
http://www.opengroup.org/onlinepubs/009695399/functions/gethostbyaddr.html
gethostbyaddr_r() is changed as well. It breaks ABI backward compatibility on 64 bit arch. So, we fix it on 32 bit arch only for now.
Reported by: Rostislav Krasny <rosti.bsd@gmail.com>
|
158138 |
29-Apr-2006 |
ume |
English grammar fix in comment.
Submitted by: keramida
|
158115 |
28-Apr-2006 |
ume |
- Extend the nsswitch to support Services, Protocols and Rpc databases. - Make nsswitch support caching.
Submitted by: Michael Bushkov <bushman__at__rsu.ru> Sponsored by: Google Summer of Code 2005
|
157960 |
22-Apr-2006 |
deischen |
Add a prototype for fcloseall().
|
157779 |
15-Apr-2006 |
ume |
- make reentrant version of netdb functions glibc style API, and expose them to outside of libc. - make netdb functions NSS friendly.
Reviewed by: arch@ and current@ (no objection)
|
157766 |
15-Apr-2006 |
jb |
Copy the new CLOCK_ defines from sys/time.h for SUSv3 compatibility.
Approved by: rwatson
|
157308 |
30-Mar-2006 |
ume |
Expose res_update and friends again. At least, ports/mail/spamilter uses them. Now, we have res_nupdate and res_nmkupdate as well, but they are still based on our old resolver for binary backward compatibility. So, they don't provide new features such as TSIG support.
Reported by: pointyhat via kris
|
157236 |
28-Mar-2006 |
jasone |
Add malloc_usable_size(3).
Discussed with: arch@
|
156960 |
21-Mar-2006 |
ume |
Update the resolver in libc to BIND9's one.
Since, res_sendsigned(3) and the friends use MD5 functions, it is hard to include them without having MD5 functions in libc. So, res_sendsigned(3) is not merged into libc.
Since, res_update(3) in BIND9 is not binary compatible with our res_update(3), res_update(3) is leaved as is, except some necessary modifications. The res_update(3) and the friends are not essential part of the resolver. They are not defined in resolv.h but defined in res_update.h separately in BIND9. Further, they are not called from our tree. So, I hide them from our resolv.h, but leave them only for binary backward compatibility (perhaps, no one calls them).
Since, struct __res_state_ext is not exposed in BIND9, I hide it from our resolv.h. And, global variable _res_ext is removed. It breaks binary backward compatibility. But, since it is not used from outside of our libc, I think it is safe.
Reviewed by: arch@ (no objection)
|
156905 |
20-Mar-2006 |
ru |
Extend coverage of the MK_IPX build option to the following:
- <netipx> headers [1] - IPX library (libipx) - IPX support in ifconfig(8) - IPXrouted(8) - new MK_NCP option
New MK_NCP build option controls:
- <netncp> and <fs/nwfs> headers - NCP library (libncp) - ncplist(1) and ncplogin(1) - mount_nwfs(8) - ncp and nwfs kernel modules
User knobs: WITHOUT_IPX, WITHOUT_IPX_SUPPORT, WITHOUT_NCP.
[1] <netsmb/netbios.h> unconditionally uses <netipx> headers so they are still installed. This needs to be dealt with.
|
156885 |
19-Mar-2006 |
rwatson |
Merge Perforce change 93569 from TrustedBSD audit3 branch:
Do install sys/security/audit include files. It would be nice just to install audit_ioctl.h, but we seem only to support installing directories, so we get them all. The two not intended for extra- kernel use have !_KERNEL #error's, which should help.
Obtained from: TrustedBSD Project
|
156813 |
17-Mar-2006 |
ru |
Reimplementation of world/kernel build options. For details, see:
http://lists.freebsd.org/pipermail/freebsd-current/2006-March/061725.html
The src.conf(5) manpage is to follow in a few days.
Brought to you by: imp, jhb, kris, phk, ru (all bugs are mine)
|
156707 |
14-Mar-2006 |
andre |
Import of OpenBSD's strtonum(3) which is a nicer version of strtoll(3) providing proper error checking and other improvements.
Obtained from: OpenBSD Requested by: flz (to port Open[BGP|OSPF]D) MFC after: 3 days
|
156532 |
10-Mar-2006 |
ru |
Hopefully fix all nearby style bugs that Bruce has mentioned.
|
156531 |
10-Mar-2006 |
ru |
- Fix variable assignment to be portable. - "Line up" continuations.
Submitted by: bde
|
156467 |
09-Mar-2006 |
ume |
ns_name_skip was not prefixed by `__'.
Obtained from: BIND9
|
156208 |
02-Mar-2006 |
phk |
Add nested include of <wchar.h>
|
156109 |
28-Feb-2006 |
deischen |
Const'ify arguments to a couple of functions to fix breakage with -O2.
|
155984 |
24-Feb-2006 |
ume |
Decrease the value of RES_DFLRETRY from 4 to 2.
PR: bin/62139 Reported by: Rostislav Krasny <rosti.bsd__at__gmail.com> Obtained from: BIND9 MFC after: 1 week
|
155412 |
07-Feb-2006 |
davidxu |
Introduce a new proc service routine ps_linfo() to get LWP info.
|
155300 |
04-Feb-2006 |
phk |
Remove spurious "union arg" from printf.h
Make sure to always print something in the alternate time format.
|
154867 |
26-Jan-2006 |
stefanf |
Analogous to __printflike and __scanflike, add the macro __format_arg which expands to the GCC format_arg attribute if supported.
This fixes a syntax error in <nl_types.h> for compilers/tools not implementing the GCC __attribute__ extensions.
|
154815 |
25-Jan-2006 |
phk |
Make the %V{is} extension handle a NULL pointer like %s does: output "(null)"
Add %M{essage} extension which prints an errno value as the corresponding string if possible or numerically otherwise.
It is not currently possible to do the syslog(3) like %m extension because errno would need to get capatured on entry to the first function in the printf family, so %M requires you to supply errno as an argument.
Add %Q{uote} extension which will print a string in double quotes with appropriate back-slash escapes (only) if necessary.
|
154250 |
12-Jan-2006 |
jasone |
Expose the posix_memalign() prototype, now that the function is implemented by libc.
|
153838 |
29-Dec-2005 |
dfr |
Add a new extensible GSS-API layer which can support GSS-API plugins, similar the the Solaris implementation. Repackage the krb5 GSS mechanism as a plugin library for the new implementation. This also includes a comprehensive set of manpages for the GSS-API functions with text mostly taken from the RFC.
Reviewed by: Love Hörnquist Åstrand <lha@it.su.se>, ru (build system), des (openssh parts)
|
153707 |
24-Dec-2005 |
trhodes |
Add a64l(), l64a(), and l64a_r() XSI extentions. These functions convert between a 32-bit integer and a radix-64 ASCII string. The l64a_r() function is a NetBSD addition.
PR: 51209 (based on submission, but very different) Reviewed by: bde, ru
|
153684 |
23-Dec-2005 |
phk |
Add abort2() prototype
|
153515 |
18-Dec-2005 |
kan |
Implement ELF symbol versioning using GNU semantics. This code aims to be compatible with symbol versioning support as implemented by GNU libc and documented by http://people.redhat.com/~drepper/symbol-versioning and LSB 3.0.
Implement dlvsym() function to allow lookups for a specific version of a given symbol.
|
153486 |
16-Dec-2005 |
phk |
Add an extensible version of our *printf(3) implementation to libc on probationary terms: it may go away again if it transpires it is a bad idea.
This extensible printf version will only be used if either environment variable USE_XPRINTF is defined or one of the extension functions are called. or the global variable __use_xprintf is set greater than zero.
In all other cases our traditional printf implementation will be used.
The extensible version is slower than the default printf, mostly because less opportunity for combining I/O operation exists when faced with extensions. The default printf on the other hand is a bad case of spaghetti code.
The extension API has a GLIBC compatible part and a FreeBSD version of same. The FreeBSD version exists because the GLIBC version may run afoul of our FILE * locking in multithreaded programs and it even further eliminate the opportunities for combining I/O operations.
Include three demo extensions which can be enabled if desired: time (%T), hexdump (%H) and strvis (%V).
%T can format time_t (%T), struct timeval (%lT) and struct timespec (%llT) in one of two human readable duration formats: "%.3llT" -> "20349.245" "%#.3llT" -> "5h39m9.245"
%H will hexdump a sequence of bytes and takes a pointer and a length argument. The width specifies number of bytes per line. "%4H" -> "65 72 20 65" "%+4H" -> "0000 65 72 20 65" "%#4H" -> "65 72 20 65 |er e|" "%+#4H" -> "0000 65 72 20 65 |er e|"
%V will dump a string in strvis format. "%V" -> "Hello\tWor\377ld" (C-style) "%0V" -> "Hello\011Wor\377ld" (octal) "%+V" -> "Hello%09Wor%FFld" (http-style)
Tests, comments, bugreports etc are most welcome.
|
153149 |
06-Dec-2005 |
peter |
Fix ypwhich -m. This should be MFC'ed back at least as far as RELENG_5.
Submitted by: Gil Kloepfer <gil@arlut.utexas.edu> PR: 64445
|
153005 |
02-Dec-2005 |
davidxu |
barrier and spin_lock had already been implemented in libpthread and libthr for a long time, set both _POSIX_BARRIERS and _POSIX_SPIN_LOCKS to 200112L.
|
152994 |
01-Dec-2005 |
ru |
Install the mqueue.h header.
|
152950 |
30-Nov-2005 |
davidxu |
Fix compiling for c++, include cdefs.h.
|
152868 |
28-Nov-2005 |
rodrigc |
Remove commented out reference to posix4/mqueue.h. It hasn't been installed for 3 years, and now we have another (working) implementation of POSIX message queues elsewhere in the source tree.
|
152830 |
26-Nov-2005 |
davidxu |
Bring in POSIX message queue header file.
|
152754 |
24-Nov-2005 |
ru |
Revert last revision, strmode() should be moved to <unistd.h> to be properly fixed.
|
152750 |
24-Nov-2005 |
ru |
Fix prototype to match the code and documentation.
|
152747 |
24-Nov-2005 |
ru |
Fix prototype of strmode() to match the code and documentation.
|
152317 |
11-Nov-2005 |
delphij |
Since speaker.h now lives in sys/dev/speaker, reflect this fact here.
|
151870 |
30-Oct-2005 |
davidxu |
Add POSIX timer interfaces.
|
151617 |
24-Oct-2005 |
davidxu |
Add prototype for following functions, plus tab fixes. pthread_condattr_getpshared pthread_condattr_setpshared pthread_mutexattr_getpshared pthread_mutexattr_setpshared
|
151395 |
16-Oct-2005 |
davidxu |
Use __pid_t instead of pid_t for sigqueue as other functions.
|
151318 |
14-Oct-2005 |
davidxu |
Add sigqueue function prototype.
|
150902 |
04-Oct-2005 |
davidxu |
Add pthread_timedjoin_np prototype.
|
150850 |
03-Oct-2005 |
scottl |
Add the lmcconfig tool for controlling the lmc driver. Add man pages and glue.
Submitted by: David Boggs
|
150123 |
14-Sep-2005 |
stefanf |
Back out 1.247. On ia64 <osreldate.h> is included from assembler source, the prototype broke buildword.
Noticed by: marcel
|
150057 |
12-Sep-2005 |
stefanf |
Put a getosreldate() prototype into <osreldate.h>, getosreldate(3) implies there is one.
|
150052 |
12-Sep-2005 |
stefanf |
Fix the prototypes for devname() and devname_r(), the first two argument types are supposed to be dev_t and mode_t (prefixed with __ due to namespace reasons).
|
150048 |
12-Sep-2005 |
stefanf |
Don't declare ___res_ext() twice.
|
149692 |
01-Sep-2005 |
stefanf |
Improve POSIX conformance: - Don't pollute the namespace by including <sys/types.h>, <sys/time.h>, <sys/signal.h> and <limits.h>. Use __MINSIGSTKSZ and __ULONG_MAX from <machine/_limits.h>, __sigset_t from <sys/_sigset.h> instead. - Include <time.h> because POSIX says we have to.
PTHREAD_{DESTRUCTOR_ITERATIONS,KEYS_MAX,STACK_MIN,THREADS_MAX} should eventually move to <limits.h> but are left here for now.
Discussed on: standards@, threads@
|
149469 |
25-Aug-2005 |
andre |
Appropriate namespace protection for memmem(3).
Submitted by: wollman MFC after: 3 days
|
149466 |
25-Aug-2005 |
andre |
Add the function memmem(3) as found in glibc and others. It is the binary equivalent to strstr(3).
void *memmem(const void *big, size_t big_len, const void *little, size_t little_len);
Submitted by: Pascal Gloor <pascal.gloor at spale.com> MFC after: 3 days
|
149298 |
19-Aug-2005 |
stefanf |
- Prefix MUTEX_TYPE_MAX with PTHREAD_ to avoid namespace pollution. - Remove the macros MUTEX_TYPE_FAST and MUTEX_TYPE_COUNTING_FAST.
OK'ed by: deischen
|
149273 |
19-Aug-2005 |
stefanf |
Remove parameter names, the identifiers were in the user namespace.
|
149011 |
13-Aug-2005 |
tjr |
Add an implementation of the semi-standard wcsdup() function, as found on Microsoft and GNU systems.
|
148834 |
07-Aug-2005 |
stefanf |
Sync libedit with recent NetBSD developments. Including improvements to the vi-mode, removal of clause 3, cleanups and the export of the tokenization functions.
Not included: config.h, filecomplete.{c,h}
|
148796 |
06-Aug-2005 |
phk |
Respect the YES_HESIOD build variable.
|
148457 |
27-Jul-2005 |
pjd |
Connect GEOM_ELI class to the build.
MFC after: 1 week
|
148308 |
22-Jul-2005 |
ume |
Remove padding for ABI compatibility of ai_addrlen member from struct addrinfo. This change break ABI compatibility on 64 bit arch.
|
147191 |
09-Jun-2005 |
jkoshy |
MFP4:
- Implement sampling modes and logging support in hwpmc(4).
- Separate MI and MD parts of hwpmc(4) and allow sharing of PMC implementations across different architectures. Add support for P4 (EMT64) style PMCs to the amd64 code.
- New pmcstat(8) options: -E (exit time counts) -W (counts every context switch), -R (print log file).
- pmc(3) API changes, improve our ability to keep ABI compatibility in the future. Add more 'alias' names for commonly used events.
- bug fixes & documentation.
|
146904 |
03-Jun-2005 |
ume |
- Remove padding for ABI compatibility of n_net member from struct netent. - Change 1st argument of getnetbyaddr() to an uint32_t on 64 bit arch as well to confirm to POSIX-2001.
These changes break ABI compatibility on 64 bit arch. There is similar padding issue for ai_addrlen of struct addrinfo. However, it is leaved as is for now.
Discussed on: arch@, standards@ and current@ X-MFC after: never
|
146824 |
31-May-2005 |
rodrigc |
According to: http://www.opengroup.org/onlinepubs/009695399/basedefs/sys/types.h.html
#include <sys/types.h> should include the definitions of pthread types.
PR: standards/78907 Reported by: Brooks Davis Approved by: das (mentor)
|
146818 |
31-May-2005 |
dfr |
Add support for XMM registers in GDB for x86 processors that support SSE (or its successors).
Reviewed by: marcel, davidxu MFC After: 2 weeks
|
146795 |
30-May-2005 |
rwatson |
Correct mistake in previous commit: add 'bsm' to LDIRS not LSUBDIRS.
Pointy hat: over here, please
|
146761 |
29-May-2005 |
rwatson |
Do install BSM include files (such as they are) when installing system includes.
Submitted by: wsalamon Obtained from: TrustedBSD Project
|
146690 |
27-May-2005 |
ume |
disable defining NI_WITHSCOPEID. It was obsoleted, and was exist only for backward compatibility since 5.2-RELEASE.
|
146261 |
16-May-2005 |
ru |
Make <runefile.h> internal to libc.
Suggested by: phantom
|
146244 |
15-May-2005 |
ume |
- The ai_addrlen of a struct addrinfo used to be a size_t, per RFC 2553. In XNS5.2, and subsequently in POSIX-2001 and RFC 3493, it was changed to a socklen_t. And, the n_net of a struct netent used to be an unsigned long integer. In XNS5, and subsequently in POSIX-2001, it was changed to an uint32_t. To accomodate for this while preserving ABI compatibility with the old interface, we need to prepend or append 32 bits of padding, depending on the (LP64) architecture's endianness. - Correct 1st argument of getnetbyaddr() to uint32_t on 32 bit arch. Stay as is on 64 bit arch for ABI backward compatibility for now.
Reviewed by: das, peter MFC after: 2 weeks
|
146186 |
13-May-2005 |
delphij |
Provide more POSIX-complaint ttyname_r(3) interface[1], which is slightly different from what has been offered in libc_r (the one spotted in the original PR which is found in libthr has already been removed by David's commit, which is rev. 1.44 of lib/libthr/thread/thr_private.h): - Use POSIX standard prototype for ttyname_r, which is, int ttyname_r(int, char *, size_t); Instead of: char *ttyname_r(int, char *, size_t); This is to conform IEEE Std 1003.1, 2004 Edition [1]. - Since we need to use standard errno for return code, include errno.h in ttyname.c - Update ttyname(3) implementation according to reflect the API change. - Document new ttyname_r(3) behavior - Since we already make use of a thread local storage for ttyname(3), remove the BUGS section. - Remove conflicting ttyname_r related declarations found in libc_r.
Hopefully this change should not have changed the API/ABI, as the ttyname_r symbol was never introduced before the last unistd.h change which happens a couple of days before.
[1] http://www.opengroup.org/onlinepubs/009695399/functions/ttyname.html
Requested by: Tom McLaughlin <tmclaugh sdf lonestar org> Through PR: threads/76938 Patched by: Craig Rodrigues <rodrigc crodrigues org> (with minor changes) Prompted by: mezz@
|
146099 |
11-May-2005 |
delphij |
Connect MLINKS for ttyname_r(3), and add prototype into unistd.h.
|
145602 |
27-Apr-2005 |
ume |
hide implementation specific internal functions from netdb.h. it is needed to make get{host,net}by*() thread-safe.
|
145539 |
26-Apr-2005 |
scottl |
Conditionalize the ipfilter header files on NO_IPFILTER. While normally these should be harmless, the kdump(1) build does evil things with collecting system header files, and thus would unconditionally collect and process these.
MFC After: 3 days
|
144892 |
11-Apr-2005 |
davidxu |
Increase PTHREAD_STACK_MIN to MINSIGSTKSZ because thread libraries now use makecontext which enforces a minimum stack size to be MINSIGSTKSZ.
Bug report: Bill Middleton <flashdict at gmail dot com>, BSD-sharp project.
|
144615 |
03-Apr-2005 |
davidxu |
Add pthread_condattr_getclock, pthread_condattr_setclock.
|
144561 |
03-Apr-2005 |
imp |
Make sure that $_MARCH and friends exist
Submitted by: nyan@
|
144529 |
02-Apr-2005 |
das |
Define CLOCK_* and TIMER_* in time.h, where they are supposed to be.
|
144514 |
01-Apr-2005 |
imp |
When $MACHINE != $MACHINE_ARCH, install $MACHINE_ARCH/include into /usr/include/$MACHINE_ARCH in addition to installing $MACHINE/include into /usr/include/machine.
|
143952 |
22-Mar-2005 |
das |
- Declare mknod in stat.h (in addition to unistd.h), as per XSI. - Use blksize_t and blkcnt_t in struct stat. - Hide non-standard fields in stat.h when !__BSD_VISIBLE. - Add restrict qualifiers in stat.h.
|
143423 |
11-Mar-2005 |
ume |
just use crypto/rijndael, and nuke opencrypto/rindael.[ch]. the two became almost identical since latest KAME merge.
Discussed with: sam
|
143013 |
02-Mar-2005 |
njl |
Only install acpiio.h in /usr/include. That's all we want to export to users.
Submitted by: ru (any bugs by me) MFC after: 1 day
|
142992 |
02-Mar-2005 |
ru |
Sync the list of headers visible with SHARED=symlinks with those visible with SHARED=copies.
Inspired by: njl
|
142744 |
28-Feb-2005 |
njl |
Install acpi includes in dev/acpica. This should later be trimmed (the pci bus one is not needed) and ifdef _KERNEL added.
PR: kern/74215 MFC after: 1 day
|
142661 |
27-Feb-2005 |
phantom |
Bring in NetBSD's improvements and cleanups to NLS subsystem, making it type and endian clean and removing of stdio dependency from NLS functions (catalog files now are processed via mmap()).
Also following changes were done (against NetBSD version):
. ANSI'fy prototypes . Mention FreeBSD in comments . Pull in sys/types.h instead of sys/_types.h since some types used here are defined in sys/types.h
Obtained from: NetBSD (mostly)
|
142582 |
26-Feb-2005 |
ru |
Make the format of LC_CTYPE files architecture independent by introducing the disk formats for _RuneLocale and friends.
The disk formats do not have (useless) pointers and have 32-bit quantities instead of rune_t and long. (htonl(3) only works with 32-bit quantities, so there's no loss).
Bootstrap mklocale(1) when necessary. (Bootstrapping from 4.x would be trivial (verified), but we no longer provide pre-5.3 source upgrades and this is the first commit to actually break it.)
|
142088 |
19-Feb-2005 |
marius |
The Intel C/C++ compiler doesn't require a typedef for _Bool when compiling C source so don't declare one when using the GCC-compatibility (defaulting to GCC 2.95.0) of ICC.
Submitted by: netchild MFC after: 1 week
|
141908 |
14-Feb-2005 |
phantom |
. Convert return type of gai_strerror() to 'const char *' as POSIX requires. . Convert ai_errlist[] to simple 'char *' array, and appropriately optimize gai_strerror()
|
141397 |
06-Feb-2005 |
phk |
Install GPIB related includefiles (unless NO_GPIB)
|
140908 |
27-Jan-2005 |
ume |
implement AI_NUMERICSERV (as defined in RFC3493).
Obtained from: KAME MFC after: 1 week
|
140868 |
26-Jan-2005 |
nectar |
Correct a typo in the definition of _PW_VERSION_MASK. This macro is currently unused other than as documentation.
Reported by: Stefan Farfeleder <stefan@fafoe.narf.at>
|
140246 |
14-Jan-2005 |
dds |
Fix the pbio include file installation process and the corresponding documentation.
Noticed by: ru Reviewed by: ru
|
140084 |
11-Jan-2005 |
pjd |
Add missing entry.
Reported by: sos
|
139922 |
09-Jan-2005 |
tjr |
Implement rpmatch(), a semi-standard interface (as found on AIX, Tru64, GNU) for determining whether a string is an affirmative or negative response to a question according to the current locale. This is done by matching the response against nl_langinfo(3) items YESEXPR and NOEXPR.
|
139902 |
08-Jan-2005 |
davidxu |
Fix typo, function name pthread_rwlock_timedrwlock should be pthread_rwlock_timedwrlock.
|
139811 |
07-Jan-2005 |
pjd |
Introduce new field 'fts_bignum' which is 64bit long and will allow to make utilities like du(1) 64bit-clean. When this field is used, one cannot use 'fts_number' and 'fts_pointer' fields.
This commit doesn't break API nor ABI.
This work is part of the BigDisk project:
http://www.FreeBSD.org/projects/bigdisk/
Discussed on: arch@ MFC after: 5 days
|
139601 |
03-Jan-2005 |
marcel |
Constify arguments.
|
139103 |
21-Dec-2004 |
ru |
Start the dreaded NOFOO -> NO_FOO conversion.
OK'ed by: core
|
138659 |
10-Dec-2004 |
trhodes |
According to the information on: http://www.opengroup.org/onlinepubs/009695399/functions/swab.html the prototype for swab() should be in <unistd.h> and not in <string.h>. Move it, and update to match SUS. Leave the prototype in string.h for now, for backwards compat.
PR: 74751 Submitted by: Craig Rodrigues <rodrigc@crodrigues.org> Discussed with: das
|
138508 |
07-Dec-2004 |
phk |
Remove nfsclnt() prototype.
|
137836 |
17-Nov-2004 |
ru |
Fixed transition from SHARED=symlinks to SHARED=copies.
|
137556 |
10-Nov-2004 |
markm |
Help Tinderbox and remove autofs
|
136910 |
24-Oct-2004 |
ru |
For variables that are only checked with defined(), don't provide any fake value.
|
136609 |
17-Oct-2004 |
tjr |
Remove the obsolete <rune.h> interface.
|
135851 |
27-Sep-2004 |
dougb |
1. Add much finer granularity to the NO_BIND knobs with the addition of: NO_BIND_DNSSEC, NO_BIND_ETC, NO_BIND_NAMED, and NO_BIND_UTILS.
2. Make creation of directories in /usr/include that are only needed in the WITH_BIND_LIBS case conditional.
Reviewed by: ru, des
|
135371 |
17-Sep-2004 |
ru |
Pass the idea of the make(1) binary to use down to newvers.sh. This is necessary so source upgrades use the correct binary.
MFC after: 3 days
For the record: Problem spotted by Scott Long, who mentioned that source upgrades from 4.7 to recent 5.x and 6.0 are broken. Detailed analysis shows that 4.7 has a broken make(1) binary. A breakage was fixed in RELENG_4 in make/main.c,v 1.35.2.7 by imp@, though the commit log erroneously stated "MFC 1.68" while in fact it should have been spelled as "MFC 1.67".
|
135339 |
16-Sep-2004 |
glebius |
Install netflow includes.
Approved by: julian (mentor)
|
134999 |
09-Sep-2004 |
yar |
Add the macro RES_DFLRETRY long-promised by resolver(5). It specifies the default number of retries per a name server. This makes the code consistent with the manpage and allows to kill another constant in res_init.c that should have been a #define'd parameter. (This appears to be a case when the manpage was better than the code, so the latter was to be fixed.)
PR: bin/62139 (in the audit trail)
|
134736 |
03-Sep-2004 |
stefanf |
Add a workaround to recognise I/_Complex_I as complex arguments. Although the GCC manual claims that the expression 1.0fi has type float _Complex, __builtin_types_compatible_p(float _Complex, __typeof__(1.0fi))) yields 0.
|
134735 |
03-Sep-2004 |
stefanf |
Use the keyword '_Complex' rather than the macro 'complex' since applications are allowed to undefine the latter.
|
134733 |
03-Sep-2004 |
stefanf |
Embarrassing typo: s/nextbyint/nearbyint/
|
134657 |
02-Sep-2004 |
alfred |
Hook autofs to the build.
|
134244 |
24-Aug-2004 |
tjr |
Replace the current implementations of ftw() and nftw() with the OpenBSD implementations written by Todd C. Miller. These are cleaner, less buggy and actively maintained.
|
134101 |
21-Aug-2004 |
tjr |
Let GCC know that ___runetype(), ___tolower() and ___toupper() are pure functions, allowing it to generate better code for the <ctype.h> and <wctype.h> functions. For example, it can now keep _CurrentRuneLocale in a register across calls to these functions, and can delete calls to ___runetype() if the result is already known or not used.
|
133812 |
16-Aug-2004 |
pjd |
Connect RAID3 GEOM class to the build.
|
133725 |
14-Aug-2004 |
stefanf |
Stop defining '_Complex' in a C99 environment, it is supposed to be a keyword.
|
133724 |
14-Aug-2004 |
stefanf |
Use tabulators after '#define'.
|
133567 |
12-Aug-2004 |
tjr |
Sort in dictionary order.
Suggested by: ru
|
133564 |
12-Aug-2004 |
tjr |
Implement wcwidth() as an inline function.
|
133560 |
12-Aug-2004 |
tjr |
Include _ctype.h instead of ctype.h to avoid namespace pollution.
|
133559 |
12-Aug-2004 |
tjr |
Move some internal macros and inlines from ctype.h to a new file, _ctype.h, which has been repo-copied from ctype.h. This will allow us to remove namespace pollution from <wctype.h> and to make wcwidth() an inline function without introducing more pollution.
|
133333 |
08-Aug-2004 |
stefanf |
Implement C99's standard header <tgmath.h>. It provides type-generic macros for the <math.h> and <complex.h> functions that have float, double and long double implementations. Such type-generic macros expand to an actual function, depending on the types of the macro arguments, eg. if <tgmath.h> is included, the invocation cos(1.0f) calls the function cosf().
|
132905 |
30-Jul-2004 |
pjd |
Connect GEOM_MIRROR class to the build.
|
132577 |
23-Jul-2004 |
tjr |
Add __pure and __pure2 where appropriate.
|
132565 |
23-Jul-2004 |
tjr |
Mark functions pure where applicable.
|
132564 |
23-Jul-2004 |
tjr |
Mark functions pure where applicable. A notable exclusion is strcoll(), which is not strictly pure because it calls malloc()/free() in some cases.
|
132497 |
21-Jul-2004 |
tjr |
Implement the GNU extensions of mbsnrtowcs() and wcsnrtombs(). These are convenient when the source string isn't null-terminated.
Implement the other conversion functions (mbstowcs(), mbsrtowcs(), wcstombs(), wcsrtombs()) in terms of these new functions.
|
132297 |
17-Jul-2004 |
marcel |
Re-implement this file, including copyright notice. Keep David Xu as copyright owner. Typical bugs fixed by this are: o various style(9) bugs, o #ifdef'd out code, o lack of comments, o missing const, o introduction of obsolete functions, o missing __BEGIN_DECLS & __END_DECLS,
The major flaw in this version, that was also present in the previous version is the lack of man page. Minor flaws undoubtedly still exist.
|
132242 |
16-Jul-2004 |
tjr |
Add fgetwln(), a wide character version of fgetln().
|
132173 |
15-Jul-2004 |
davidxu |
Add proc_service.h, the common file both debugger and libthread_db will use, program wants to load libthread_db.so should provid proc service interface.
|
132017 |
12-Jul-2004 |
tjr |
Add a new error code, REG_ILLSEQ, to indicate that a regular expression contains an illegal multibyte character sequence.
|
131875 |
09-Jul-2004 |
des |
Reduce namespace pollution.
|
131787 |
08-Jul-2004 |
tjr |
Add a function to iterate over all characters in a particular character class. This is necessary in order to implement tr(1) efficiently in multibyte locales, since the brute force method of finding all characters in a class is infeasible with a 32-bit (or wider) wchar_t.
|
131661 |
05-Jul-2004 |
das |
Add implementations of ftw(3) and nftw(3) and the corresponding header ftw.h. This is the implementation written by Joel Baker <fenton@debian.org> for inclusion in NetBSD, but with several bugfixes.
Obtained from: Debian
|
131476 |
02-Jul-2004 |
pjd |
Introduce GEOM_LABEL class. This class is used for detecting volume labels on file systems: UFS, MSDOSFS (FAT12, FAT16, FAT32) and ISO9660. It also provide native labelization (there is no need for file system).
g_label_ufs.c is based on geom_vol_ffs from Gordon Tetlow. g_label_msdos.c and g_label_iso9660.c are probably hacks, I just found where volume labels are stored and I use those offsets here, but with this class it should be easy to do it as it should be done by someone who know how. Implementing volume labels detection for other file systems also should be trivial.
New providers are created in those directories: /dev/ufs/ (UFS1, UFS2) /dev/msdosfs/ (FAT12, FAT16, FAT32) /dev/iso9660/ (ISO9660) /dev/label/ (native labels, configured with glabel(8))
Manual page cleanups and some comments inside were submitted by Simon L. Nielsen, who was, as always, very helpful. Thanks!
|
131331 |
30-Jun-2004 |
tjr |
Fix typo: WRDE_DOOFS -> WRDE_DOOFFS.
Noticed by: Stoned Elipot
|
130962 |
23-Jun-2004 |
tjr |
Now that <runetype.h> no longer brings in namespace pollution, bring back the inline functions for the !__BSD_VISIBLE case.
|
130961 |
23-Jun-2004 |
tjr |
Prefix the names of members of _RuneLocale and its sub-structures with ``__'' to avoid polluting the namespace. This doesn't change the documented rune interface at all, but breaks applications that accessed _RuneLocale directly.
|
130927 |
22-Jun-2004 |
obrien |
Adjust the system endian and a.out headers to be more MI and cross-building friendly. Use the systems headers rather than local versions.
Reviewed by: ru
|
130773 |
20-Jun-2004 |
tjr |
Remove outdated comments.
|
130416 |
13-Jun-2004 |
mlaier |
Link ALTQ to the build and break with ABI for struct ifnet. Please recompile your (network) modules as well as any userland that might make sense of sizeof(struct ifnet). This does not change the queueing yet. These changes will follow in a seperate commit. Same with the driver changes, which need case by case evaluation.
__FreeBSD_version bump will follow.
Tested-by: (i386)LINT
|
130185 |
07-Jun-2004 |
tjr |
Fix typo in putwc().
Noticed by: stefanf
|
129892 |
31-May-2004 |
tjr |
Use __isctype() instead of __istype() for iswdigit() and iswxdigit() for consistency with <ctype.h>.
|
129864 |
30-May-2004 |
stefanf |
Add implementations for cimag{,f,l}, creal{,f,l} and conj{,f,l}. They are needed for cases where GCC's builtin functions cannot be used and for compilers that don't know about them.
Approved by: das (mentor)
|
129861 |
30-May-2004 |
stefanf |
Remove the macros for creal{,f} and cimag{,f}. They failed to convert their arguments to the needed type and so the result type depended on the argument type. Fixing them isn't really worth the effort because GCC emits the same assembler code with or without them.
Not minded by: ru Approved by: das (mentor)
|
129777 |
27-May-2004 |
tmm |
Correct some types in the yp structures; this fixes a number of problems on sparc64. Obtained from and cross-checked with the NetBSD version of this file and the rpcgen-generated code.
|
129774 |
27-May-2004 |
tjr |
Bring back the macro versions of getwc(), getwchar(), putwc() and putwchar(), but this time avoid redundantly declaring __stdinp and __stdoutp when source files include both <stdio.h> and <wchar.h>.
|
129713 |
25-May-2004 |
tjr |
Revert to rev. 1.36 until issues with -Wredundant-decls are sorted out.
|
129710 |
25-May-2004 |
tjr |
Fix typo in previous: getwc() should call fgetwc(), not the function version of itself.
Noticed by: stefanf
|
129705 |
25-May-2004 |
tjr |
Provide trivial macro implementations of getwc(), getwchar(), putwc() and putwchar() to reduce function call overhead.
|
129476 |
20-May-2004 |
pjd |
- Install includes used by STRIPE and NOP GEOM classes. - Create needed directories.
Supported by: Wheel - Open Technologies - http://www.wheel.pl
|
129161 |
12-May-2004 |
peadar |
Fix some^Wseveral style bugs from last commit.
Remove "sys/types.h" as "sys/param.h" is already included
Use cast rather than back-pointer to convert from public to private version of FTS data, and so avoid littering fts.h with any of the details.
Pointed out By: bde, kientzle
|
129081 |
10-May-2004 |
bde |
Fixed style bugs in previous commit (bogus forward declaration and inconsistent capitalization in comments).
|
129052 |
08-May-2004 |
peadar |
The FTS_NOSTAT option is an optimisation that reduces the number of stat(2) calls by keeping an eye of the number of links a directory has. It assumes that each subdirectory will have a hard link to its parent, to represent the ".." node, and stops calling stat(2) when all links are accounted for in a given directory.
This assumption is really only valid for UNIX-like filesystems: A concrete example is NTFS. The NTFS "i-node" does contain a link count, but most/all directories have a link count between 0 and 2 inclusive. The end result is that find on an NTFS volume won't actually traverse the entire hierarchy of the directories passed to it. (Those with a link count of two are not traversed at all)
The fix checks the "UFSness" of the filesystem before enabling the optimisation.
Reviewed By: Tim Kientzle (kientzle@)
|
128769 |
30-Apr-2004 |
pjd |
- Look into geom/gate/ and geom/concat/ for includes. - Put geom/ subdirectories into separate line, while there are more to come.
|
128523 |
21-Apr-2004 |
tjr |
Make isblank() visible in the C99 namespace.
PR: 63371 Submitted by: Stefan Farfeleder
|
127230 |
20-Mar-2004 |
tjr |
Parenthesize function names in masking macros for getc() etc. for the benefit of obsolete C preprocessors.
|
127100 |
17-Mar-2004 |
tjr |
Re-add macro versions of getc(), getchar(), putc(), putchar(), feof(), ferror(), fileno() and clearerr(), using the value of __isthreaded to decide between the fast inline single-threaded code and the more general function equivalent. This gives most of the performance benefits of the old unsafe macros while preserving thread safety.
|
127028 |
15-Mar-2004 |
des |
Don't try to pass off a struct sockaddr as a struct sockaddr_in when it may in fact very well be a struct sockaddr_in6. Just use plain struct sockaddr.
This brings us yet another step closer to a clean -O2 build.
|
126385 |
28-Feb-2004 |
mlaier |
Add skeleton build dirs for pf userland: libexec/ftp-proxy - ftp proxy for pf sbin/pfctl - equivalent to sbin/ipf sbin/pflogd - deamon logging packets via if_pflog in pcap format usr.sbin/authpf - authentification shell to modify pf rulesets
Bring along some altq headers used to satisfy pfctl/authpf compile. This helps to keep the diff down and will make it easy to have a altq-patchset use the full powers of pf.
Also make sure that the pf headers are installed.
This does not link anything to the build. There will be a NO_PF switch for make.conf once pf userland is linked.
Approved by: bms(mentor)
|
126250 |
25-Feb-2004 |
bms |
Sync HEAD sources to vendor branch import of routed v2.27 from rhyolite.com. Update <protocols/routed.h> for the MD5 changes requested in bin/35843. Preserve local changes.
Education by: obrien, markm, pointy-stick PR: bin/35843 (and doubtless others)
|
126243 |
25-Feb-2004 |
green |
Make the resolver(3) and many associated interfaces much more reentrant. The getaddrinfo(3), getipnodebyname(3) and resolver(3) can coincide now with what should be totally reentrant, and h_errno values will now be preserved correctly, but this does not affect interfaces such as gethostbyname(3) which are still mostly non-reentrant.
In all of these relevant functions, the thread-safety has been pushed down as far as it seems possible right now. This means that operations that are selected via nsdispatch(3) (i.e. files, yp, dns) are protected still under global locks that getaddrinfo(3) defines, but where possible the locking is greatly reduced. The most noticeable improvement is that multiple DNS lookups can now be run at the same time, and this shows major improvement in performance of DNS-lookup threaded programs, and solves the "Mozilla tab serialization" problem.
No single-threaded applications need to be recompiled. Multi-threaded applications that reference "_res" to change resolver(3) options will need to be recompiled, and ones which reference "h_errno" will also if they desire the correct h_errno values. If the applications already understood that _res and h_errno were not thread-safe and had their own locking, they will see no performance improvement but will not actually break in any way.
Please note that when NSS modules are used, or when nsdispatch(3) defaults to adding any lookups of its own to the individual libc _nsdispatch() calls, those MUST be reentrant as well.
|
126190 |
24-Feb-2004 |
ache |
Add getopt_long_only()
|
126155 |
23-Feb-2004 |
ache |
In the comment tell about optreset extension for NetBSD ghetopt_long()
|
126142 |
23-Feb-2004 |
ache |
Add optreset to getopt.h too since NetBSD getopt_long() (but not GNU one) use it too.
|
126141 |
23-Feb-2004 |
ache |
Try to better mimic GNU getopt.h which does not assume to make visible all unistd.h functions, use _GETOPT_DECLARE define for that.
|
126140 |
23-Feb-2004 |
ache |
Fix comment: GNU getopt.h to which this header tries to mimic does not declare getsubopt/optreset
|
126136 |
23-Feb-2004 |
ache |
POSIX clearly states that getsubopt() should be declared in <stdlib.h>, not in <unistd.h>
|
125123 |
28-Jan-2004 |
emax |
Add NO_BLUETOOTH knob to the build process
Requested by: phk Reviewed by: imp (mentor), ru
|
124558 |
15-Jan-2004 |
ume |
remove EAI_NODATA aliased to EAI_NONAME.
PR: bin/61369
|
124483 |
13-Jan-2004 |
des |
Add and document ffsl(), fls() and flsl().
|
124289 |
09-Jan-2004 |
nectar |
It was reported that when using nss_ldap, getgrent(3) would behave incorrectly when encountering `large' groups (many members and/or many long member names). The reporter tracked this down to the glibc NSS module compatibility code (nss_compat.c): it would prematurely record that a NSS module was finished iterating through its database in some cases.
Two aspects are corrected:
1. nss_compat.c recorded that a NSS module was finished iterating whenever the module reported something other than SUCCESS. The correct logic is to continue iteration when the module reports either SUCCESS or RETURN. The __nss_compat_getgrent_r and __nss_compat_getpwent_r routines are updated to reflect this.
2. An internal helper macro __nss_compat_result is used to map glibc NSS status codes to BSD NSS status codes (e.g. NSS_STATUS_SUCCESS -> NS_SUCCESS). It provided the obvious mapping.
When a NSS routine is called with a too-small buffer, the convention in the BSD NSS code is to report RETURN. (This is used to implement reentrant APIs such as getpwnam_r(3).) However, the convention in glibc for this case is to set errno = ERANGE and overload TRYAGAIN. __nss_compat_result is updated to handle this case.
PR: bin/60287 Reported by: Lachlan O'Dea <odela01@ca.com>
|
124132 |
04-Jan-2004 |
iedowse |
Define _PATH_MKSNAP_FFS and use it in dump(8) instead of assuming that mksnap_ffs(8) can be found using the current $PATH.
Reviewed by: mckusick
|
123636 |
18-Dec-2003 |
jkh |
Now I understand what Bruce was getting at - -1 can be parsed as two tokens, so it does indeed need to be parenthesized. Duh. Sometimes it can stare you right and the face and you still don't see it. Thanks, bde.
|
123630 |
18-Dec-2003 |
jkh |
Adjust in response to various bits of brucification:
1) Fix style issues in comments. 2) Properly namespaceify changes 3) Appropriate sectioning of changes
Not changed: parenthesis around macro rvalue. That would make the additions inconsistent with the other entries there, merely a different style violation rather than a clear and obvious improvement so I'm going to have to disagree with the judges on that one. If someone wishes to adjust *all* the rvalues to conform to fully parenthesized marco rule, that would be both consistent and reasonable but that's beyond the scope of the changes I wish to make at this time.
|
123597 |
17-Dec-2003 |
jkh |
OK, someone was tab happy in this file. A tab after #define?! OK, fine, I'll keep the same style regardless of the wisdom of it. :) Clarified by: eivind
|
123589 |
17-Dec-2003 |
jkh |
Correct inexplicable tab smash. Noticed by: Nate Lawson <nate@root.org>
|
123586 |
17-Dec-2003 |
jkh |
Conformance: Add REG_ENOSYS (see http://www.opengroup.org/onlinepubs/007904975/basedefs/regex.h.html)
|
123585 |
17-Dec-2003 |
jkh |
Conformance: Define FNM_NOSYS (see http://www.opengroup.org/onlinepubs/007904975/basedefs/fnmatch.h.html)
|
123288 |
08-Dec-2003 |
obrien |
Move the bktr(4) <arch>/include/ioctl_{bt848,meteor}.h files to dev/bktr as these ioctl's aren't MD. This also means they are installed in /usr/include/dev/bktr now. Also provide compatability wrappers for where these headers lived in 4.x.
|
123287 |
08-Dec-2003 |
obrien |
Fix sort order.
|
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...
|
123236 |
07-Dec-2003 |
murray |
Add support for timeout: and attempts: resolver options.
Submitted by: Paul Vixie <paul@vix.com> / ISC MFC After: 1 week
|
122956 |
22-Nov-2003 |
scottl |
Install UDF header files to unbreak /sbin building when /sys is not present.
Submitted by: imura@ryu16.org
|
122687 |
14-Nov-2003 |
bms |
Add the userland part of the NET_RT_IFMALIST sysctl MIB. A new function, getifmaddrs(), is added to retrieve current multicast group memberships.
Reviewed by: harti
|
122076 |
04-Nov-2003 |
deischen |
Add the pthread_atfork() prototype.
Reviewed by: davidxu
|
121728 |
30-Oct-2003 |
phk |
Add a new flag to vis(3): VIS_GLOB which encodes the glob(3) magic characters '*', '?' and '['.
|
121640 |
29-Oct-2003 |
peter |
*blush*. stdhash.h != strhash.h Sorry folks.
|
121639 |
28-Oct-2003 |
peter |
Don peril sensitive (ie: bikeshed sensitive) sunglasses and quietly send strhash(3) off to sleep with the fishes. Nothing in our tree uses it. It has no documentation. It is nonstandard and in spite of the filename strhash.c and strhash.h, it lives in application namespace by providing compulsory global symbols hash_create()/hash_destroy()/hash_search()/ hash_traverse()/hash_purge()/hash_stats() regardless of whether you #include <strhash.h> or not. If it turns out that there is a huge application for this after all, I can repocopy it somewhere safer and we can revive it elsewhere. But please, not in libc!
|
121577 |
26-Oct-2003 |
peter |
Argh. Forward declare some structs rather than increase include file dependencies.
|
121549 |
26-Oct-2003 |
peter |
Prototype yp_maplist()
|
121458 |
24-Oct-2003 |
ume |
style.
Reported by: bde
|
121451 |
24-Oct-2003 |
ume |
oops, EAI_NONAME is not EAINONAME.
|
121439 |
23-Oct-2003 |
ume |
workaround to have backward compatibility for EAI_NODATA. it will be removed on 23 Apr 2004.
Submitted by: terry
|
121430 |
23-Oct-2003 |
ume |
oops, I forget to diable EAI_ADDRFAMILY and EAI_NODATA.
|
121316 |
21-Oct-2003 |
ume |
stop use of NI_WITHSCOPEID. it was deprecated.
Obtained from: KAME
|
119909 |
09-Sep-2003 |
davidxu |
Add code to support pthread spin lock.
Reviewed by: deischen
|
119790 |
06-Sep-2003 |
davidxu |
Add small piece of code to support pthread_rwlock_timedrdlock and pthread_rwlock_timedrwlock.
|
119736 |
04-Sep-2003 |
davidxu |
Add code to support barrier synchronous object and implement pthread_mutex_timedlock().
Reviewed by: deischen
|
119630 |
01-Sep-2003 |
kan |
Add a new machine independent varargs.h and use it as a central place to announce the demise of varargs support in GCC versions 3.3+ and to direct users to stdarg.h instead.
Fall back to machine/varargs.h for older GCC versions.
|
119141 |
19-Aug-2003 |
wollman |
Update gethostname() prototype to match source and standard.
|
117556 |
14-Jul-2003 |
imp |
Make C++ safe
|
117236 |
04-Jul-2003 |
ru |
Don't be so chatty about osreldate.h creation steps when make(1) is run in non-compat mode (-j without -B).
|
117105 |
01-Jul-2003 |
bde |
Fixed namespace pollution and unsorting of the 1003.1-1990 list in previous commit.
|
117035 |
29-Jun-2003 |
gordon |
Add /rescue bits. This basically encompasses all of bin and sbin along with a couple of bits from usr.bin in a crunchgen'd binary.
Submitted by: Tim Kientzle <kientzle@acm.org>
|
117033 |
29-Jun-2003 |
gordon |
Move path definitions to include/paths.h. This makes it easier to override these definitions in the /rescue case.
Submitted by: Tim Kientzle <kientzle@acm.org>
|
117031 |
29-Jun-2003 |
gordon |
Convert fsck and mount to using execvP to find fsck_foo and mount_foo. This simplifies the code path and makes the default path easy to override in the /rescue case.
Submitted by: Tim Kientzle <kientzle@acm.org>
|
117030 |
29-Jun-2003 |
gordon |
Add a libc function execvP that takes the search path as an arguement. Change execvp to be a wrapper around execvP. This is necessary for some of the /rescue pieces. It may also be more generally applicable as well.
Submitted by: Tim Kientzle <kientzle@acm.org> Approved by: Silence on arch@
|
116948 |
28-Jun-2003 |
sam |
enable installation of sys/net80211
|
116844 |
25-Jun-2003 |
phantom |
Move _PATH_LOCALE to place where it really belongs to (rune.h -> paths.h)
Reviewed by: ache
|
116835 |
25-Jun-2003 |
sam |
back out install of net80211 include files until I can remove the old code
|
116833 |
25-Jun-2003 |
obrien |
Push the alloca #error warning farther down to play nicer with some out of tree local translator.
Requested by: jmallett
|
116832 |
25-Jun-2003 |
obrien |
Fix a mismerge.
|
116831 |
25-Jun-2003 |
obrien |
Don't blindly provide alloca() for all compilers -- it is too implementation dependent. Instead provide one for GCC & Intel's GCC copy and one for lint. Anyone using any other translator tool needs to look closely at how that tool can handle alloca.
|
116818 |
25-Jun-2003 |
sam |
install new 802.11 headers
|
116811 |
25-Jun-2003 |
harti |
Install the include file for the netgraph ATM node.
|
116734 |
23-Jun-2003 |
ru |
Bring back IPFilter headers to /usr/include, now that SHARED=symlinks installs the per-header symlinks.
Prodded by: many
|
116680 |
22-Jun-2003 |
dwmalone |
Remove argument names from a function declaration.
Reviewed by: phk
|
116637 |
20-Jun-2003 |
phk |
Remove _PATH_DEVDB
|
116610 |
20-Jun-2003 |
phk |
Add devname_r(3) which takes a buffer as argument.
|
116397 |
15-Jun-2003 |
des |
Use __builtin_alloca() on compilers that have it. Keep the prototype for the benefit of lint and non-{GNU,Intel} compilers.
|
116391 |
15-Jun-2003 |
mbr |
Replace the old SCM_CREDS cred procedures. They can now be replaced just fine with getpeereid() and the whole code gets a lot simpler. We don't break the ABI, since all server programms use __rpc_get_local_uid(), and we just change library internals.
Reviewed by: des
|
116306 |
13-Jun-2003 |
phk |
Finish the repocopy of bitstring.h to sys so it can be used from kernel code.
|
116258 |
12-Jun-2003 |
harti |
This is a driver for the physical layer chips used in ATM interfaces. It currently supports the PMC Sierra Lite, Ultra and 622 chips and the IDT 77105. The driver handles media options and state in a consistent manner for ATM drivers. The next commit to the midway driver will make it use utopia.
|
114763 |
05-May-2003 |
obrien |
Centralize _PATH_* definitions.
Submitted by: Tim Kientzle <kientzle@acm.org> (embellished by me)
|
114731 |
05-May-2003 |
bde |
Install symlinks to individual headers instead of symlinks to directories in the SHARED=symlinks case. Symlinks to directories only work if all the the necessary headers are in 1 directory, but the necessary headers are scattered for at least ipfilter headers in <netinet>. This change also avoids polluting /usr/include with non-headers; the /usr/include hierarchy is now independent of the setting of SHARED.
Submitted by: ru (edited to fix netgraph/bluetooth/include and machine/pc) PR: 44148
|
114629 |
04-May-2003 |
obrien |
Use __FBSDID vs. rcsid[].
|
114216 |
29-Apr-2003 |
kan |
Deprecate machine/limits.h in favor of new sys/limits.h. Change all in-tree consumers to include <sys/limits.h>
Discussed on: standards@ Partially submitted by: Craig Rodrigues <rodrigc@attbi.com>
|
114185 |
28-Apr-2003 |
kan |
Add definitions for WCHAR_MIN and WCHAR_MAX.
|
113729 |
20-Apr-2003 |
jdp |
Add stub implementations of pthread_[gs]etconcurrency to libc_r and libthr. No changes were made to libpthread by request of deischen, who will soon commit a real implementation for that library.
PR: standards/50848 Submitted by: Sergey A. Osokin <osa@freebsd.org.ru> MFC after: 1 week
|
113666 |
18-Apr-2003 |
nectar |
Revert the definitions of _PW_KEY* to their previous values. There is at least one consumer outside of libc and pwd_mkdb. Adjust the versioning in libc and pwd_mkdb accordingly.
named was the application affected, and that fact was first Reported by: Zherdev Anatoly <tolyar@mx.ru>
Sponsored by: DARPA, Network Associates Laboratories
|
113596 |
17-Apr-2003 |
nectar |
= Implement thread-safe versions of the getpwent(3) and getgrent(3) family of functions using the new nsdispatch(3) core. Remove arbitrary size limits when using the thread-safe versions.
= Re-implement the traditional getpwent(3)/getgrent(3) functions on top of the thread-safe versions.
= Update the on-disk format of the hashed version of the passwd(5) databases to allow for versioned entries. The legacy version is `3'. (Don't ask.)
= Add support for version `4' entries in the passwd(5) database. Entries in this format are identical to version 3 entries except that all integers are stored as 32-bit integers in network byte order (big endian).
= pwd_mkdb is updated to generate both version 3 and version 4 entries.
Sponsored by: DARPA, Network Associates Laboratories
|
113595 |
17-Apr-2003 |
nectar |
= Implement name service switch modules (NSS modules). NSS modules may be built into libc (`static NSS modules') or dynamically loaded via dlopen (`dynamic NSS modules'). Modules are loaded/initialized at configuration time (i.e. when nsdispatch is called and nsswitch.conf is read or re-read).
= Make the nsdispatch(3) core thread-safe.
= New status code for nsdispatch(3) `NS_RETURN', currently used to signal ERANGE-type issues.
= syslog(3) problems, don't warn/err/abort.
= Try harder to avoid namespace pollution.
= Implement some shims to assist in porting NSS modules written for the GNU C Library nsswitch interface.
Sponsored by: DARPA, Network Associates Laboratories
|
113229 |
07-Apr-2003 |
mdodd |
Dynamic object dependency mapping: libmap.
This is an optional feature, disabled by default.
This will be useful to people testing the various POSIX threading libraries under -CURRENT but can easily serve other needs.
|
113219 |
07-Apr-2003 |
mdodd |
- Add setfstab() and getfstab(). - Use the environment variable 'PATH_FSTAB' if set rather than the hardcoded '/etc/fstab' (fstab.h:_PATH_FSTAB)
|
112893 |
31-Mar-2003 |
jeff |
- Define sigwait, sigtimedwait, and sigwaitinfo in terms of kern_sigtimedwait() which is capable of supporting all of their semantics. - These should be POSIX compliant but more careful review is needed before we announce this.
|
112177 |
13-Mar-2003 |
tjr |
MFp4: Implementations of the wcstof() and wcstold() functions.
|
112163 |
12-Mar-2003 |
das |
Replace our ancient dtoa/strtod implementation with the gdtoa package, a more recent, generalized set of routines. Among the changes: - Declare strtof() and strtold() in stdlib.h. - Add glue to libc to support these routines for all kinds of ``long double''. - Update printf() to reflect the fact that dtoa works slightly differently now.
As soon as I see that nothing has blown up, I will kill src/lib/libc/stdlib/strtod.c. Soon printf() will be able to use the new routines to output long doubles without loss of precision, but numerous bugs in the existing code must be addressed first.
Reviewed by: bde (briefly), mike (mentor), obrien
|
111962 |
07-Mar-2003 |
nectar |
Clean up some signed/unsigned issues in the XDR code.
Obtained from: OpenBSD
|
111924 |
05-Mar-2003 |
peter |
Drop netns from include file installation
|
111618 |
27-Feb-2003 |
nectar |
Eliminate 19 warnings in libc (at level WARNS=2) of the `implicit declaration of function' variety.
|
110804 |
13-Feb-2003 |
kan |
Implement dlinfo() function.
Introdice RTLD_SELF special handle and properly process it within dlsym() and dlinfo() functions.
The intention is to improve our compatibility with Solaris and to make a Java port easier.
Partially submitted by: phantom
|
110636 |
10-Feb-2003 |
alfred |
Add pthread_attr_getstack() and pthread_attr_setstack().
Submitted by: Craig Rodrigues <rodrigc@attbi.com>
|
110542 |
08-Feb-2003 |
phk |
Install geom include files.
|
109773 |
24-Jan-2003 |
fjoe |
unifdef -D_THREAD_SAFE
|
109719 |
23-Jan-2003 |
wollman |
In the absence of consensus as to implement stubs for these TSH-shaded routines, remove their declarations. Even though rwlocks have the same functions, XBDft does not shade those declarations so I am leaving them in. (This is probably a bug in the Standard.)
|
109520 |
19-Jan-2003 |
marcel |
o Move the contents of <machine/floatingpoint.h> over to <machine/ieeefp.h> where it belongs. o Remove the i386 specific inclusion of <machine/floatingpoint.h> from <ieeefp.h>, now that including <machine/ieeefp.h> is enough for all architectures. o Allow <machine/ieeefp.h> to inline the functions exposed by the headers by checking for _IEEEFP_INLINED_ in the MI header. When defined, prototypes are not given and it is assumed that the MD headers, when inlining only a subset of the functions provide prototypes for the functions not being inlined.
Based on patch from: Terry Lambert <tlambert2@mindspring.com> Tested with: make release.
|
109508 |
19-Jan-2003 |
obrien |
Sync with NetBSD -- sl_add() now returns an int.
|
109467 |
18-Jan-2003 |
billf |
MFCrypto: update RFC assigned telnet options (r1.9)
|
109359 |
16-Jan-2003 |
mbr |
Implement non-blocking tcp-connections.
Reviewed by: rwatson Obtained from: NetBSD MFC after: 1 day
|
109168 |
13-Jan-2003 |
tjr |
Add prototypes for the non-standard _unlocked functions.
|
108910 |
08-Jan-2003 |
tjr |
No need to support UL_GETSIZE and UL_SETSIZE anymore; they are about to be renamed in RELENG_5_0.
|
108898 |
07-Jan-2003 |
fjoe |
pthread_attr_get_np() now takes 'pthread_t' (not 'pthread_t *') to be consistent with other pthread_XXX functions
|
108637 |
04-Jan-2003 |
tjr |
Rename UL_GETSIZE to UL_GETFSIZE and UL_SETSIZE to UL_SETFSIZE; these are the names required by 1003.1-2001. The old names are retained for source compatibility with FreeBSD 5.0 and will be removed before 6.0.
|
108634 |
04-Jan-2003 |
tjr |
Bracket the prototype for ulimit() with __BEGIN_DECLS/__END_DECLS so that it can be called from C++.
|
108596 |
03-Jan-2003 |
tjr |
Describe WRDE_NOCMD in the same way that we describe the rest of the flags.
|
108574 |
02-Jan-2003 |
jmallett |
Implement POSIX grantpt(3) functionality, and add a pt_chown utility (akin to Solaris, it is in /usr/libexec) to perform the handing over of tty nodes to the user being granted the pty.
Submitted by: Ryan Younce <ryany@pobox.com> Reviewed by: security-officer@, standards@, mike@
|
108533 |
01-Jan-2003 |
schweikh |
Correct typos, mostly s/ a / an / where appropriate. Some whitespace cleanup, especially in troff files.
|
108445 |
30-Dec-2002 |
obrien |
Back out the s/int */size_t */ commit. It makes a difference on 64-bit arches, and no one really wants a 2^64 block size [yet].
|
108433 |
30-Dec-2002 |
simokawa |
Install /sys/dev/firewire/*.h under /usr/include/dev/firewire for userland utilities.
|
108381 |
29-Dec-2002 |
mike |
o Add typedef for off_t, pid_t, and useconds_t. o Use useconds_t where appropriate. o Fix a bug in typedef for uid_t (5.0-R candidate).
|
108291 |
26-Dec-2002 |
tjr |
Unbreak for the !__XSI_VISIBLE case when another header that defines size_t has not been included first.
|
108290 |
26-Dec-2002 |
tjr |
Add "restrict" qualifiers to the prototype for wordexp().
|
108287 |
26-Dec-2002 |
tjr |
Add the POSIX <wordexp.h> header file.
PR: 13420
|
108175 |
22-Dec-2002 |
tjr |
MB_LEN_MAX is not MD, move it to the MI limits.h.
|
107913 |
15-Dec-2002 |
dillon |
This is David Schultz's swapoff code which I am finally able to commit. This should be considered highly experimental for the moment.
Submitted by: David Schultz <dschultz@uclink.Berkeley.EDU> MFC after: 3 weeks
|
107547 |
03-Dec-2002 |
rwatson |
Don't install old LOMAC include files; do install new mac_lomac include files.
Approved by: re (jhb) Obtained from: TrustedBSD Project Sponsored by: DARPA, Network Associates Laboratories
|
107223 |
25-Nov-2002 |
ru |
Align the comment with functionality changes from previous revision.
Approved by: re
|
107151 |
21-Nov-2002 |
julian |
Re-enable installing of Bluetooth include files Hopefully this time it works right.. Who understands this stuff?
|
107139 |
21-Nov-2002 |
julian |
Temporarily remove the install of bluetooth include files.. something "VERY WIERD" happens to them during buildworld.. The sources get replaced by symlinks to themselves (!?)
|
107124 |
21-Nov-2002 |
julian |
Populate with bluetooth includes
|
107046 |
18-Nov-2002 |
marcel |
libc header files are normally in src/include. Therefore, uuid.h has been repo-copied from src/lib/libc/uuid to src/include. Update the makefiles.
While in src/include/Makefile, reformat and resort INCS. Reverting the functional change only involves removing uuid.h.
Pompted by: ru
|
106812 |
12-Nov-2002 |
mike |
Fix XSI (X/Open) namespace support.
|
106452 |
05-Nov-2002 |
jmallett |
Wrap function prototype declarations in __BEGIN_DECLS to do the right thing with them in non-C cases.
Requested by: Patrick Hartling <patrick@137.org>
|
106184 |
30-Oct-2002 |
marcel |
Implement DCE 1.1 compliant UUID functions. Immediate use of these functions is expected for uuidgen(1), mca(8) and gpt(8). Given the generic use of UUIDs beyond the scope of the DCE 1.1 specification, visibility of the data structure at all levels of the machine, including firmware and the wish to not create a permanent build- time FreeBSD-ism for DCE compliant applications by creating a new library, it was decided that libc would be the least inappropriate place. Also, because the UUID functions live in libc under IRIX as well, we have maximized our portability and left as many options open as possible.
This implementation introduces an extension not found in the specification: the status parameter is allowed to be a NULL- pointer. The reason for introducing the extension is because the status is almost never of any use.
The manpage that's part of this commit is a minimal place-holder and is further fleshed-out in the near future.
Approved by: re@ Contributed by: Hiten Mahesh Pandya <hiten@unixdaemons.com> Sponsored by: marcel :-) Tested on: alpha, i386, ia64
|
106065 |
28-Oct-2002 |
wollman |
Create a small library function, check_utility_compat(3), to determine whether a named utility should behave in FreeBSD 4.x-compatible mode or in a standard mode (default standard). The configuration is done malloc(3)-style, with either an environment variable or a symlink.
Update expr(1) to use this new interface.
|
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.)
|
106035 |
27-Oct-2002 |
tjr |
Correct visibility for v*wscanf(), wcstoll() and wcstoull(). These functions did not exist in ISO C Amd. 1. Add #ifdef __LONG_LONG_SUPPORTED and lint comments around wcstoll() and wcstoull().
|
105987 |
26-Oct-2002 |
phantom |
Prototype for pthread_attr_get_np().
|
105875 |
24-Oct-2002 |
rwatson |
Install mac_partition include files.
Obtained from: TrustedBSD Project Sponsored by: DARPA, Network Associates Laboratories
|
105797 |
23-Oct-2002 |
markm |
Make the first argument of getbsize a size_t* instead of an int*, as this is what the quantity actually is. Fix an easy const while I'm here.
|
105727 |
22-Oct-2002 |
fjoe |
fix pthread_suspend/resume_all_np() declarations
Approved by: deischen
|
105400 |
18-Oct-2002 |
tmm |
Install the include files in sys/dev/ofw.
|
105376 |
18-Oct-2002 |
sam |
install "fast ipsec" include files
|
105250 |
16-Oct-2002 |
robert |
- Remove the lsearch() and lfind() functions and their manpage from the compatibility library libcompat. - Add new implementations of lsearch() and lfind() which conform to IEEE Std 1003.1-2001 to libc. Add a new manual page for them and add them to the makefile. - Add function prototypes for lsearch() and lfind() to the search.h header.
|
105245 |
16-Oct-2002 |
robert |
- Remove the old insque() and remque() functions and their manual page from the compatibility library. - Add new implementations of insque() and remque() which conform to IEEE Std 1003.1-2001 to libc. Add a new manual page for them and connect them to the build. - Add the prototypes of insque() and remque() to the search.h header.
|
105208 |
16-Oct-2002 |
bde |
Fixed style bug near $FreeBSD$. VCS ids in copyrights should not be separated by a blank line.
|
105128 |
14-Oct-2002 |
mike |
Correct visibility conditionals for memccpy(), strdup(), and strtok_r(). Merge conditional prototypes into the regular block.
|
105107 |
14-Oct-2002 |
mike |
o Move forward declaration for struct timespec to a more appropriate location. o Don't prototype functions for which we don't have an implementation. o Add forward declaration for struct __ucontext, previously this was forward declared in <sys/signal.h>. o Add a comment about the size of NSIG.
PR: 35924 Submitted by: bde
|
105098 |
14-Oct-2002 |
tjr |
Use a weak reference instead of a macro to make vfscanf an alias for __vfscanf.
|
105045 |
13-Oct-2002 |
mike |
Move the _POSIX_VERSION constant from <unistd.h> to <sys/unistd.h>, so that it can be used in-kernel for a sysctl.
|
105013 |
13-Oct-2002 |
mike |
Assume POSIX/XSI is always visible in the __BSD_VISIBLE case. Fix a mix-up with siginterrupt().
|
104989 |
12-Oct-2002 |
mike |
Add restrict type-qualifier.
|
104941 |
11-Oct-2002 |
peter |
Zap the early-adopter transition aid before we get into serious 5.0-R territory, as threatened. This only affects antique 5.0 systems that have not had a 'make world' done for well over a year.
|
104711 |
09-Oct-2002 |
tjr |
Add support for the 6 new C99 struct lconv members dealing with formatting international monetary values: int_p_cs_precedes, int_n_cs_precedes, int_p_sep_by_space, int_n_sep_by_space, int_p_sign_posn, int_n_sign_posn. This should not break existing binaries or LC_MONETARY data files.
Reviewed by: ache MFC after: 1 month
|
104634 |
07-Oct-2002 |
mike |
Remove duplicate uninstalled aio.h header.
|
104585 |
06-Oct-2002 |
mike |
o Move location of the fpos_t typedef to be closer to other typedefs. o Add typedef for va_list. o Add comment about missing restrict type-qualifiers. o Move vscanf(), vsscanf() and vfscanf() to the C99-visible block. o Add note about missing backing function for vfscanf(). o Restrict L_cuserid to only older versions of POSIX, and BSD namespaces. o Conditionalize some BSD-specific foo_unlock() macros.
|
104582 |
06-Oct-2002 |
mike |
o Use relatively new visibility primitives from <sys/cdefs.h>. o Add typedef for pid_t. o Add comment about missing restrict type-qualifier. o Remove unneeded includes (<sys/_posix.h> and <sys/time.h>).
|
104544 |
05-Oct-2002 |
obrien |
Make stpcpy() only visiable w/in __BSD_VISIBLE.
|
104506 |
05-Oct-2002 |
mike |
Fix namespace issues by using visibility conditionals from <sys/cdefs.h>. Sort function prototypes.
|
104489 |
04-Oct-2002 |
sam |
install sys/opencrypto include files in /usr/include/crypto
|
104443 |
04-Oct-2002 |
tjr |
Add a placeholder implementation of wcscoll() and wcsxfrm() which gives locale-sensitive collation only in single-byte locales, and just does binary comparison for the others with extended character sets.
|
104420 |
03-Oct-2002 |
obrien |
Add stpcpy(3).
|
104416 |
03-Oct-2002 |
mike |
Cope with a GCC bug by using an alternative, but equivalent function prototype for regexec().
Noticed by: robert
|
104399 |
03-Oct-2002 |
mike |
Fix various style(9) bugs: o Source ID's in wrong location. o Space used, instead of tab, after typedef. o Unaligned function prototype for twalk().
Other changes: o Add missing const qualifier in tfind(). o Add comment about missing functions.
|
104368 |
02-Oct-2002 |
robert |
Add the 'restrict' type qualifier to the prototypes of `sigaction', `sigprocmask', `sigaltstack', and `sigwait' as well as to the prototypes of the apparantly unimplemented functions `sigtimedwait' and `sigwaitinfo'. This complies with IEEE Std 1003.1-2001.
|
104356 |
02-Oct-2002 |
mike |
o Add typedef for size_t. o Fix regoff_t typedef to not require <sys/types.h> as a prerequisite (specifically use `__off_t' instead of `off_t'). o Add restrict type-qualifier to function prototypes.
|
104311 |
01-Oct-2002 |
alfred |
Add prototypes for rstat(3) and havedisk(3).
Requested by: kris, Emil Mikulic <emikulic@optushome.com.au> MFC After: 1 day
|
104288 |
01-Oct-2002 |
ru |
test -h is deprecated; use -L instead.
PR: bin/40846
|
104280 |
01-Oct-2002 |
bde |
Merged all interesting difference between the old math.h and the current one into the latter and removed the former.
This works around the bug that some broken Makefiles add -I.../src/include to CFLAGS, resulting in the old math.h being preferred and differences between the headers possibly being fatal.
The merge mainly involves declaring some functions as __pure2 although they are not yet all strictly free of side effects.
PR: 43544
|
104219 |
30-Sep-2002 |
mike |
Don't install mqueue.h, since it only makes things harder for porting software when you provide prototypes for non-existent functions.
|
104128 |
29-Sep-2002 |
eric |
Add getopt_long(3).
Obtained from: NetBSD Sponsored by: Apple
|
104080 |
28-Sep-2002 |
tjr |
Remove masking macros for getwc(), putwc(), putwchar() and getwchar(). Although there was nothing wrong with getwc() and putwc(), getwchar() and putwchar() assumed that <stdio.h> had been included before <wchar.h>, which is not allowed by the standard.
|
103929 |
25-Sep-2002 |
wollman |
Back down to 1003.2-1992 for the time being -- it is causing too many headaches for common but deprecated uses of standard utilities.
|
103899 |
24-Sep-2002 |
mike |
Add forgotten <sys/_types.h> include. Fix some style bugs while I'm here.
PR: 43326
|
103867 |
23-Sep-2002 |
mike |
o Move select() helper macros from <sys/types.h> to <sys/select.h>. o Include <sys/select.h> from <sys/types.h> in the __BSD_VISIBLE case, so applications and base software can be slowly updated. o Prototype select() in <sys/select.h>. It was previously only prototyped in <unistd.h>. o Add some XXX's to <sys/types.h>.
Reviewed by: -standards
|
103856 |
23-Sep-2002 |
tjr |
Add implementations of wscanf() and related functions: fwscanf(), swscanf(), vfwscanf(), vswscanf(), vwscanf(). As the name suggests, these are wide- character versions of the scanf() family of functions.
|
103793 |
22-Sep-2002 |
tjr |
Add the remaining C99 wide character string to integer conversion functions. Restrict qualifiers were added to the existing prototypes in <inttypes.h> and the typedef for wchar_t was removed.
|
103766 |
21-Sep-2002 |
bde |
Whitespace cleanup (half for fixing missing whitespace before `__restrict' again).
Removed the second pair of banal comments about `quot' and `rem'.
|
103762 |
21-Sep-2002 |
bde |
Whitespace fixes (mainly for a space instead of a tab after #define).
|
103739 |
21-Sep-2002 |
tjr |
Add implementations of the wprintf() family of functions, which perform formatted wide-character output.
|
103737 |
21-Sep-2002 |
tjr |
Restrict visibility of wcslcat() and wcslcpy() to the __BSD_VISIBLE case.
|
103729 |
21-Sep-2002 |
wollman |
Define constants for those POSIX options and option groups which are (or would be) implemented (or not) exclusively in user-land. A threads expert should check over the values I have set to make sure that they correctly reflect reality.
Move all sysconf() keys here from <sys/unistd.h> as they are not implemented in the kernel. Add new keys from 1003.1-2001 final text. (Some additional keys are expected in TC1.)
Add some protection against redundant declarations between <stdlib.h> and <unistd.h> for some functions which XSI requires in the former and BSD traditionally declares in the latter. Restrict qualifiers and other changes from 1003.1-2001 have not been made to the functions prototyped here.
(3 of 5)
|
103728 |
21-Sep-2002 |
wollman |
Use new visibility macros. Reorder some disordered declarations. Add new 1003.1-2001 declarations, commented out in cases where we do not implement the function. Note that strtoq() and strtouq() are slated for deletion in 6.0. (2 of 5)
|
103727 |
21-Sep-2002 |
wollman |
Use new visibility macros. (1 of 5)
|
103726 |
21-Sep-2002 |
wollman |
Make the threatened fts(3) ABI fix. FTSENT now avoids the use of the struct hack, thereby allowing future extensions to the structure (e.g., for extended attributes) without rebreaking the ABI. FTSENT now contains a pointer to the parent stream, which fts_compar() can then take advantage of, avoiding the undefined behavior previously warned about. As a consequence of this change, the prototype of the comparison function passed to fts_open() has changed to reflect the required amount of constness for its use. All callers in the tree are updated to use the correct prototype.
Comparison functions can now make use of the new parent pointer to access the new stream-specific private data pointer, which is intended to assist creation of reentrant library routines which use fts(3) internally.
Not objected to in spirit by: -arch
|
103667 |
20-Sep-2002 |
mike |
Fix an error which prevented ssize_t from becoming defined. Add restrict type-qualifier.
|
103589 |
19-Sep-2002 |
peter |
Add dev/iicbus and dev/smbus to LSUBDIRS list
|
103577 |
19-Sep-2002 |
alfred |
Install _semaphore.h.
|
103567 |
18-Sep-2002 |
mike |
style(9): tab after #define.
|
103522 |
18-Sep-2002 |
mike |
o Don't include <nl_types.h>, instead provide a typedef for nl_item. o Use relatively new visibility primitives to conditionalize some constants.
|
103521 |
18-Sep-2002 |
mike |
Move definition of nl_item type to <sys/_types.h>, so that it can be shared.
|
103515 |
18-Sep-2002 |
mike |
Use relatively new visibility primitives for conditionals. Document unimplemented functions.
|
103509 |
17-Sep-2002 |
mike |
style(9): line up function names
|
103507 |
17-Sep-2002 |
mike |
Use the relatively new visibility primitives for conditionals.
|
103436 |
17-Sep-2002 |
peter |
Initiate deorbit burn for the i386-only a.out related support. Moves are under way to move the remnants of the a.out toolchain to ports. As the comment in src/Makefile said, this stuff is deprecated and one should not expect this to remain beyond 4.0-REL. It has already lasted WAY beyond that.
Notable exceptions: gcc - I have not touched the a.out generation stuff there. ldd/ldconfig - still have some code to interface with a.out rtld. old as/ld/etc - I have not removed these yet, pending their move to ports. some includes - necessary for ldd/ldconfig for now.
Tested on: i386 (extensively), alpha
|
103339 |
15-Sep-2002 |
tjr |
Add wcstod() as a wrapper around strtod(). It does not handle any characters that strtod() does not (alternate digit characters, etc. are not handled).
|
103269 |
12-Sep-2002 |
tjr |
Style: tab between #define and macro name.
|
103246 |
12-Sep-2002 |
tjr |
Protect arguments to the putwc and putwchar macros with parens.
|
103218 |
11-Sep-2002 |
tjr |
Add an implementation of wcsftime() (wide character version of strftime()).
|
103212 |
11-Sep-2002 |
mike |
Conditionalize some objects to match the functions that they are used with. Enable `restrict' type-qualifier.
|
103196 |
10-Sep-2002 |
mike |
Fix some style bugs: o Space used instead of a tab after `#define' and `typedef'. o Sentences not ended with a period. o Unaligned function names and other spacing issues.
|
103192 |
10-Sep-2002 |
mike |
Fix namespace issues by using the relatively new visibility primitives.
|
103177 |
10-Sep-2002 |
tjr |
Replace FILE with struct __sFILE in the prototypes for the wide character I/O functions to avoid having to bring in pollution from <stdio.h>.
Suggested by: bde
|
103164 |
10-Sep-2002 |
wollman |
Without fixing the namespace issues, add prototypes for the new _Exit() and qsort_r() functions. Fix one other missorted declaration.
|
103118 |
09-Sep-2002 |
tjr |
Remove the typedef of wctype_t from this header; we don't support the XSI mistake of making everything from <wctype.h> visible here. If we did choose to support it, we could just #include <wctype.h>.
|
103113 |
09-Sep-2002 |
mike |
Solve the <runetype.h> pollution problem by disabling inline optimizations when a standard has been requested, except when the inline optimizations are also specifically requested.
|
103111 |
09-Sep-2002 |
mike |
style(9): line up function names.
|
103097 |
08-Sep-2002 |
tjr |
Add wcstol() and wcstoul(), based on strtol() and strtoul().
|
103067 |
07-Sep-2002 |
tjr |
Add an implementation of wcstok(), based on strtok_r().
|
103058 |
07-Sep-2002 |
tjr |
Add restrict qualifiers to wcsstr()'s arguments.
|
103012 |
06-Sep-2002 |
tjr |
Style: One space between "restrict" qualifier and "*".
|
102998 |
06-Sep-2002 |
mike |
o Fix namespace scope issues in <ctype.h> by using the relatively new visibility primitives. o Implement _tolower() and _toupper() POSIX.1-2001 (XSI) macros in <ctype.h>. o Reduce pollution in <runetype.h> by removing typedefs and using implementation namespaced types. o Add a typedef in <rune.h> to compensate for <runetype.h> losing its typedefs.
Reviewed by: bde
|
102945 |
04-Sep-2002 |
alfred |
remove #pragma ident
|
102874 |
03-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>.
|
102777 |
01-Sep-2002 |
mike |
Be more explicit about a namespace by using the relatively new visibility primitives.
|
102762 |
01-Sep-2002 |
tjr |
Add restrict qualifiers to the arguments of mbstowcs, mbtowc() and wcstombs().
|
102337 |
24-Aug-2002 |
mike |
Add time_t typedef for POSIX compatibility, move an include.
|
102287 |
22-Aug-2002 |
peter |
Use sys/nlist_aout.h for shared-with-kernel definitions.
|
102286 |
22-Aug-2002 |
peter |
Use sys/link_elf.h or sys/link_aout.h based on compile environment
|
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
|
102198 |
20-Aug-2002 |
tjr |
Restrict visibility of wcwidth() and wcswidth(); they are XSI extensions.
|
102142 |
19-Aug-2002 |
ache |
Sort unsorted prototypes
|
102140 |
19-Aug-2002 |
ache |
Activate (uncomment) wcwidth() and wcswidth() now implemented
|
102094 |
19-Aug-2002 |
ache |
Move internal defines from here to libc/locale/wcwidth.c
|
102093 |
19-Aug-2002 |
ache |
Properly define SWIDTH1, add autowidth (was SWIDTH1)
|
102050 |
18-Aug-2002 |
tjr |
Implement the ISO C90 Amd.1 restartable wide and multibyte character manipulation functions mbrlen(), mbrtowc(), mbsinit(), mbsrtowcs(), wcrtomb(), wcsrtombs().
|
101995 |
16-Aug-2002 |
mike |
Change a POSIX conditional to use the new __BSD_VISIBLE macro.
Fix the following style bugs: o #ifdef, #ifndef, and #undef should be followed by a space, not a tab. o The second level of indentation in prototypes is 4 characters even when the function names are indented 1 extra character. o Type qualifiers that appear next to a * need a seperating space so that the qualifier isn't easily confused with parameter names. (eg. `char * __restrict' instead of `char *__restrict')
Submitted by: bde (mostly)
|
101984 |
16-Aug-2002 |
keichii |
Add swidth definition for wchar stuff
Submitted by: clkao@clkao.org Reviewed by: keichii Obtained from: NetBSD MFC after: 1 month
|
101969 |
16-Aug-2002 |
alfred |
add a check for GNUC < 3 to typedef bool because gcc 3 always seems to define it.
Suggested by: tjr
|
101914 |
15-Aug-2002 |
robert |
- For compliance with IEEE Std 1003.1-2001, add the 'restrict' qualifier to function prototypes and definitions where appropriate using the '__restrict' macro. - Update the manual page.
|
101913 |
15-Aug-2002 |
robert |
- Introduce the 'restrict' qualifier to function prototypes and definitions to comply with IEEE Std 1003.1-2001. - Update the manual pages.
|
101912 |
15-Aug-2002 |
robert |
- Add the 'restrict' qualifier to the function prototypes and definitions of the functions that convert strings to numbers and are defined by IEEE Std 1003-1.2001. - Use ANSI-C function definitions for all of the functions mentioned above plus strtouq and strtoq. - Update the prototypes in the manual pages.
|
101889 |
14-Aug-2002 |
robert |
- Add the 'restrict' qualifier to the function definitions and public prototypes of setbuf(3) and setvbuf(3) using the '__restrict' macro from <sys/cdefs.h> to be compliant with IEEE Std 1003.1-2001. - Replace the K&R with ANSI-C function definitions. - Bring the manual page up-to-date.
|
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.
|
101882 |
14-Aug-2002 |
robert |
- Add the 'restrict' qualifier to match the IEEE Std 1003.1-2001 prototype of the tdelete(3) function. - Remove duplicated space. - Use an ANSI-C function definition for tdelete(3). - Update the manual page.
|
101880 |
14-Aug-2002 |
robert |
-Add the restrict required by IEEE Std 1003.1-2001 in form of our __restrict macro to the prototypes and function definitions of inet_pton and inet_ntop. - Use ANSI-C function argument lists. - Adjust the prototypes in the manual page.
|
101776 |
13-Aug-2002 |
tjr |
Basic support for wide character I/O: getwc(), fgetwc(), getwchar(), putwc(), fputwc(), putwchar(), ungetwc(), fwide().
|
101497 |
08-Aug-2002 |
mike |
Implement POSIX.1-2001 (XSI)'s ulimit(3).
Submitted by: Kyle Martin <mkm@ieee.org>
|
101411 |
06-Aug-2002 |
tjr |
Sort prototypes by function name.
|
101409 |
06-Aug-2002 |
tjr |
Whitespace formatting changes: line up macro bodies, function names, place tabs after #define and typedef. Sort typedefs by name.
Requested by: mike
|
101390 |
05-Aug-2002 |
mike |
Fix some style bugs.
Submitted by: bde
|
101369 |
05-Aug-2002 |
tjr |
Implement the missing <wctype.h> functions: isw*() (iswalnum() etc.), towlower() and towupper() required by ISO C90 Amd. 1.
iswascii(), iswhexnumber(), iswideogram(), iswnumber(), iswphonogram(), iswrune() and iswspecial() have also been implemented for consistency with the BSD extensions in <ctype.h>.
|
101353 |
05-Aug-2002 |
mike |
Implement POSIX.1-2001 (XSI)'s fmtmsg(3).
|
101314 |
04-Aug-2002 |
tjr |
Change wctype_t to an unsigned type to avoid warnings.
|
101313 |
04-Aug-2002 |
tjr |
Add the ISO C90 Amd. 1 wctrans(3) and towctrans(3) functions.
|
101267 |
03-Aug-2002 |
tjr |
Add ISO C90 Amd. 1 btowc(3) and wctob(3) functions.
|
101253 |
03-Aug-2002 |
tjr |
Add ISO C90 Amd. 1 wctype(3) and iswctype(3) functions.
|
101204 |
02-Aug-2002 |
rwatson |
Install MAC policy include files as part of the normal includes install.
Obtained from: TrustedBSD Project Sponsored by: DARPA, NAI Labs
|
101138 |
01-Aug-2002 |
mike |
Implement the POSIX.1-2001 (XSI) header, <cpio.h>.
|
100451 |
21-Jul-2002 |
robert |
Remove duplicated '__BEGIN_DECLS' which obviated compiling C++ sources that use this header.
Reported by: Jan Stocker <Jan.Stocker@t-online.de>
|
100217 |
17-Jul-2002 |
mikeh |
Update glob(3) to add all the POSIX required options, specifically:
- add GLOB_NOMATCH return value and use it when we don't get a match - rename GLOB_ABEND to GLOB_ABORTED and use it instead of returning 1 in some places - add GLOB_NOESCAPE flag and retire GLOB_QUOTE to compatibility section
Suggestions/advice on correct usage of POSIX defines: wollman
|
100207 |
17-Jul-2002 |
mckusick |
Change utimes to set the file creation time (for filesystems that support creation times such as UFS2) to the value of the modification time if the value of the modification time is older than the current creation time. See utimes(2) for further details.
Sponsored by: DARPA & NAI Labs.
|
100149 |
15-Jul-2002 |
wollman |
Support POSIX/SUS ``programming environment'' mistake in confstr().
|
100147 |
15-Jul-2002 |
wollman |
Move _CS_PATH from <sys/unistd.h> to <unistd.h> -- the kernel isn't involved in confstr() processing.
|
100145 |
15-Jul-2002 |
wollman |
getopt(3) was also added in 1003.2-1992.
|
100140 |
15-Jul-2002 |
wollman |
Fix visibility: - symlink() is from 1003.1-2001 and XPG4.2 - fchown() is from 1003.1-2001 - fsync() is from ISO/IEC 9945-1:1995 - confstr() is from 1003.2-1992
|
100133 |
15-Jul-2002 |
wollman |
Clean up some of the rather strange structure and ordering of this file. Correct visibility conditions and order blocks of declarations in order of increasing inclusiveness. Note that [v]snprintf() is now in ISO C and f{seek,tell}o() are now in POSIX. Deprecated getw() and putw() are no longer visible in XSH6 namespace (and should probably be removed from BSD namespace as well).
|
100001 |
14-Jul-2002 |
alfred |
clnt_vc_create() has const scalar arguments that wind up being modified, fix it (make them non-const) and update the associated documentation.
Submitted by: mbr
|
99958 |
14-Jul-2002 |
sobomax |
Correct _PATH_RCP to be /bin/rcp, not /usr/bin/rcp.
|
99775 |
11-Jul-2002 |
alfred |
Add functions allowing for the user to specify a timeout for rpc functions.
Update copyrights to reflect where this code was lifted from. (tirpc '99)
Submitted by: mbr
|
99640 |
09-Jul-2002 |
obrien |
Don't define wchar_t if we are a C++ compiler.
PR: 31864, 40084
|
99594 |
08-Jul-2002 |
mike |
Move __offsetof() macro from <machine/ansi.h> to <sys/cdefs.h>. It's hardly MD, since all our platforms share the same macro. It's not really compiler dependent either, but this helps in reducing <machine/ansi.h> to only type definitions.
|
99404 |
04-Jul-2002 |
markm |
Convince lint via the standard lint-comment /* LONGLONG */ to not whine about our (valid) "long long" usage.
|
99403 |
04-Jul-2002 |
markm |
This header is for Solaris compatibility only (according to David O'Brien), so add a comment to that effect to remind folks.
|
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.
|
98866 |
26-Jun-2002 |
imp |
Minor libc internal-only interface change for mapv4v6.
|
98542 |
21-Jun-2002 |
mckusick |
This commit adds basic support for the UFS2 filesystem. The UFS2 filesystem expands the inode to 256 bytes to make space for 64-bit block pointers. It also adds a file-creation time field, an ability to use jumbo blocks per inode to allow extent like pointer density, and space for extended attributes (up to twice the filesystem block size worth of attributes, e.g., on a 16K filesystem, there is space for 32K of attributes). UFS2 fully supports and runs existing UFS1 filesystems. New filesystems built using newfs can be built in either UFS1 or UFS2 format using the -O option. In this commit UFS1 is the default format, so if you want to build UFS2 format filesystems, you must specify -O 2. This default will be changed to UFS2 when UFS2 proves itself to be stable. In this commit the boot code for reading UFS2 filesystems is not compiled (see /sys/boot/common/ufsread.c) as there is insufficient space in the boot block. Once the size of the boot block is increased, this code can be defined.
Things to note: the definition of SBSIZE has changed to SBLOCKSIZE. The header file <ufs/ufs/dinode.h> must be included before <ufs/ffs/fs.h> so as to get the definitions of ufs2_daddr_t and ufs_lbn_t.
Still TODO: Verify that the first level bootstraps work for all the architectures. Convert the utility ffsinfo to understand UFS2 and test growfs. Add support for the extended attribute storage. Update soft updates to ensure integrity of extended attribute storage. Switch the current extended attribute interfaces to use the extended attribute storage. Add the extent like functionality (framework is there, but is currently never used).
Sponsored by: DARPA & NAI Labs. Reviewed by: Poul-Henning Kamp <phk@freebsd.org>
|
98415 |
19-Jun-2002 |
obrien |
Guard definitions for use with C++ code.
Submitted by: Ed Hall <edhall@yahoo-inc.com>
|
98313 |
17-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 |
17-Jun-2002 |
wollman |
Clean up a bit of namespace pollution which crept in with the last rev.
Submitted by: bde
|
98293 |
16-Jun-2002 |
mdodd |
Restore local bits lost in recent merge from NetBSD.
|
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.
|
98070 |
09-Jun-2002 |
mike |
o Remove include of <sys/types.h>, it adds too much pollution; instead, add typedefs of only gid_t, time_t, and uid_t. o Remove an unneeded conditional that hid macros that are in the implementation namespace and therefore don't need to be hidden when _POSIX_SOURCE is defined. o Adjust some conditionals for compatibility with X/Open and POSIX. o Note missing functions getpwnam_r() and getpwuid_r().
|
97639 |
30-May-2002 |
phk |
Const poison.
Partially submitted by: wollman
|
97509 |
29-May-2002 |
wollman |
Since POSIX gives us plenary authority to define _t types, change __dlfunc_t to dlfunc_t to match what I have proposed to the Austin Group. (This also makes it easier for applications to store these values before they decide what to do with them, e.g., in a wrapper function.)
|
97475 |
29-May-2002 |
wollman |
Reorganize dlfcn.h slightly to separate out XSI and BSD interfaces. Add new dlfunc() interface, which is a version of dlsym() with a return type that can be cast to a function pointer without turning your computer into a frog.
Reviewed by: freebsd-standards
|
97406 |
28-May-2002 |
alfred |
Assume __STDC__, remove non-__STDC__ code. Add $FreeBSD$.
Submitted by: keramida
|
97363 |
28-May-2002 |
mike |
Prepend BIG_ENDIAN, BYTE_ORDER, LITTLE_ENDIAN, and PDP_ENDIAN with an underscore. This is the preferred form. Also fix a preprocessor syntax error in an error-detection section.
|
97206 |
24-May-2002 |
deischen |
Reorder prototypes to be in alphabetical order.
|
97205 |
24-May-2002 |
deischen |
Add the prototypes for pthread_suspend_all_np and pthread_resume_all_np.
|
96807 |
17-May-2002 |
jmallett |
Move _PATH_WALL from dump and shutdown's local pathnames.h to paths.h.
|
96668 |
15-May-2002 |
ru |
Rename `includes' to `buildincludes'. Rename `incsinstall' to `installincludes'. Make `includes' a -j safe shortcut for `buildincludes' + `installincludes'. `buildincludes' and `installincludes' are SUBDIR friendly, if run directly.
|
96562 |
14-May-2002 |
phk |
Use explicitly sized fields for the tape format definition.
Sponsored by: DARPA & NAI Labs.
|
96462 |
12-May-2002 |
ru |
Added new bsd.incs.mk which handles installing of header files via INCS. Implemented INCSLINKS (equivalent to SYMLINKS) to handle symlinking include files. Allow for multiple groups of include files to be installed, with the powerful INCSGROUPS knob. Documentation to follow.
Added standard `includes' and `incsinstall' targets, use them in Makefile.inc1. Headers from the following makefiles were not installed before (during `includes' in Makefile.inc1):
kerberos5/lib/libtelnet/Makefile lib/libbz2/Makefile lib/libdevinfo/Makefile lib/libform/Makefile lib/libisc/Makefile lib/libmenu/Makefile lib/libmilter/Makefile lib/libpanel/Makefile
Replaced all `beforeinstall' targets for installing includes with the INCS stuff.
Renamed INCDIR to INCSDIR, for consistency with FILES and SCRIPTS, and for compatibility with NetBSD. Similarly for INCOWN, INCGRP, and INCMODE.
Consistently use INCLUDEDIR instead of /usr/include.
gnu/lib/libstdc++/Makefile and gnu/lib/libsupc++/Makefile changes were only lightly tested due to the missing contrib/libstdc++-v3. I fully tested the pre-WIP_GCC31 version of this patch with the contrib/libstdc++.295 stuff.
These changes have been tested on i386 with the -DNO_WERROR "make world" and "make release".
|
96194 |
08-May-2002 |
des |
Add some more commonly-used directories and files.
Sponsored by: DARPA, NAI Labs
|
95658 |
28-Apr-2002 |
des |
Spell void * as void * rather than caddr_t. This is complicated by the fact that caddr_t is often misspelled as char *.
Sponsored by: DARPA, NAI Labs
|
95377 |
24-Apr-2002 |
phk |
Constify _malloc_options.
|
94936 |
17-Apr-2002 |
mux |
Rework the kernel environment subsystem. We now convert the static environment needed at boot time to a dynamic subsystem when VM is up. The dynamic kernel environment is protected by an sx lock.
This adds some new functions to manipulate the kernel environment : freeenv(), setenv(), unsetenv() and testenv(). freeenv() has to be called after every getenv() when you have finished using the string. testenv() only tests if an environment variable is present, and doesn't require a freeenv() call. setenv() and unsetenv() are self explanatory.
The kenv(2) syscall exports these new functionalities to userland, mainly for kenv(1).
Reviewed by: peter
|
94722 |
15-Apr-2002 |
mike |
Include <sys/_types.h>. This should have been part of the previous revision.
|
94721 |
15-Apr-2002 |
mike |
Add support for X/Open.
PR: 37078
|
94688 |
14-Apr-2002 |
des |
(ab)use unused bits in the pw_fields member of struct passwd to record the source of the data contained in the structure.
Sponsored by: DARPA, NAI Labs
|
94353 |
10-Apr-2002 |
mike |
Be more strict about exposing BSD-specific functions when a standard has been requested.
Unconditionalize the definition of INET_ADDRSTRLEN and INET6_ADDRSTRLEN. Doing this helps expose bogus redefinitions in 3rd party software.
|
93747 |
04-Apr-2002 |
mike |
o Move some function prototypes from <string.h> to the newly rewritten <strings.h>, based on POSIX.1-2001's requirements. o Add 'restrict' qualifier (spelled '__restrict') to functions in <string.h>, as per C99 and POSIX.1-2001. o Properly expose new POSIX.1-2001 functions in <string.h>.
|
93730 |
03-Apr-2002 |
ru |
Don't clobber headers that we didn't create.
Noticed by: bde Reviewed by: bde
|
93584 |
01-Apr-2002 |
phk |
Remove the disktab.h include file from the build.
|
93576 |
01-Apr-2002 |
phk |
This file is entirely bogus.
|
93514 |
01-Apr-2002 |
mike |
o Implement <sys/_types.h>, a new header for storing types that are MI, not required to be a fixed size, and used in multiple headers. This will grow in time, as more things move here from <sys/types.h> and <machine/ansi.h>. o Add missing type definitions (uint16_t and uint32_t) to <arpa/inet.h> and <netinet/in.h>. o Reduce pollution in <sys/types.h> by using `#if _FOO_T_DECLARED' widgets to avoid including <sys/stdint.h>. o Add some missing type definitions to <unistd.h> and note the ones that still need to be added. o Make use of <sys/_types.h> primitives in <grp.h> and <sys/types.h>.
Reviewed by: bde
|
93229 |
26-Mar-2002 |
ru |
Install sys/security/lomac/*.h to /usr/include/security/lomac/.
Install sys/<arch>/include/pc/*.h to /usr/include/machine/pc/.
PR: docs/29534
Install sys/netatm/*/*.h to /usr/include/netatm/*/.
Don't install compatibility symlinks for <machine/soundcard.h> and <machine/joystick.h>. Three years is enough to be aware of the change, and these weren't visible in the SHARED=symlinks case.
Back out include/Makefile,v 1.160 that was a null change anyway due to the bug in the path, and we now don't want to install these headers because they would otherwise be invisible in the SHARED=symlinks case.
Don't install IPFILTER headers. Userland utilities fetch them directly, and they were not visible in the SHARED=symlinks case.
Resurrect SHARED=symlinks in Makefile.inc1.
PR: bin/28002
Prodded by: bde MFC after: 2 weeks
|
93190 |
26-Mar-2002 |
bde |
Join continuation lines that fit in 80 columns after removal of __P(()).
|
93189 |
26-Mar-2002 |
bde |
Fixed some style bugs in the removal of __P(()). Some function parameter lists were outdented to column 0.
|
93064 |
24-Mar-2002 |
imp |
Missed a __P in a .x file, remove it anyway
|
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.
|
92970 |
22-Mar-2002 |
alfred |
rename 'enum res' and 'struct status' to 'enum sm_res' and 'struct sm_status' to avoid -Wshadow warnings in consumers of its generated header files.
|
92968 |
22-Mar-2002 |
alfred |
Constify the first arg to callrpc(3).
|
92925 |
22-Mar-2002 |
imp |
const poison just like NetBSD.
|
92924 |
22-Mar-2002 |
imp |
Make user_from_uid and group_from_gid return const char *, just like NetBSD. Update man page to reflect this.
|
92868 |
21-Mar-2002 |
ru |
Replaced hacks in sbin/Makefile,v 1.99 and usr.sbin/Makefile,v 1.217 with the NO_IPFILTER make.conf(5) knob.
(So that we can "make the-rest-of-the-world" again.)
|
92223 |
13-Mar-2002 |
obrien |
Tokens after #endif are not strict ISO.
|
91984 |
10-Mar-2002 |
mike |
o Add INET_ADDRSTRLEN and INET6_ADDRSTRLEN defines to <arpa/inet.h> for POSIX.1-2001 conformance. o Add magic to <netinet/in.h> and <netinet6/in6.h> to prevent redefining INET_ADDRSTRLEN and INET6_ADDRSTRLEN. o Add a note about missing typedefs in <arpa/inet.h>.
|
91959 |
09-Mar-2002 |
mike |
o Don't require long long support in bswap64() functions. o In i386's <machine/endian.h>, macros have some advantages over inlines, so change some inlines to macros. o In i386's <machine/endian.h>, ungarbage collect word_swap_int() (previously __uint16_swap_uint32), it has some uses on i386's with PDP endianness.
Submitted by: bde
o Move a comment up in <machine/endian.h> that was accidentially moved down a few revisions ago. o Reenable userland's use of optimized inline-asm versions of byteorder(3) functions. o Fix ordering of prototypes vs. redefinition of byteorder(3) functions, so that the non-GCC (libc asm) case has proper prototypes. o Add proper prototypes for byteorder(3) functions in <sys/param.h>. o Prevent redundant duplicate prototypes by making use of the _BYTEORDER_PROTOTYPED define. o Move the bswap16(), bswap32(), bswap64() C functions into MD space for platforms in which asm versions don't exist. This significantly reduces the complexity of some things at the cost of duplicate code.
Reviewed by: bde
|
91911 |
08-Mar-2002 |
green |
Synch with OpenBSD (style).
|
91848 |
08-Mar-2002 |
mike |
Use a integral type that doesn't require <sys/types.h>. This accomplishes the goal of actually making <grp.h> independent of other headers for the definition of its types.
Pointy hat to: mike
|
91325 |
26-Feb-2002 |
mike |
Rather than include namespace pollution in <grp.h> in order to declare `gid_t', use the canonical protection scheme to define a type in two or more headers. This brings <grp.h> closer to POSIX.1-2001 conformance.
|
91245 |
25-Feb-2002 |
sobomax |
Per POSIX <grp.h> doesn't require <sys/types.h>.
Submitted by: ache
|
91243 |
25-Feb-2002 |
sobomax |
Backout rev.1.5 - it seems that it's posixly correct that the program needs to include <sys/types.h> before <grp.h>.
Submitted by: fjoe, sheldonh David Malone <dwmalone@maths.tcd.ie>
|
91242 |
25-Feb-2002 |
sobomax |
In rev.1.4 type of (group)->gr_gid was changes from (int) to (gid_t), so that <sys/types.h> is now required. Add it, otherwise it breaks some ports.
Submitted by: Joe Marcus Clarke <marcus@marcuscom.com>
|
90868 |
18-Feb-2002 |
mike |
o Move NTOHL() and associated macros into <sys/param.h>. These are deprecated in favor of the POSIX-defined lowercase variants. o Change all occurrences of NTOHL() and associated marcros in the source tree to use the lowercase function variants. o Add missing license bits to sparc64's <machine/endian.h>. Approved by: jake o Clean up <machine/endian.h> files. o Remove unused __uint16_swap_uint32() from i386's <machine/endian.h>. o Remove prototypes for non-existent bswapXX() functions. o Include <machine/endian.h> in <arpa/inet.h> to define the POSIX-required ntohl() family of functions. o Do similar things to expose the ntohl() family in libstand, <netinet/in.h>, and <sys/param.h>. o Prepend underscores to the ntohl() family to help deal with complexities associated with having MD (asm and inline) versions, and having to prevent exposure of these functions in other headers that happen to make use of endian-specific defines. o Create weak aliases to the canonical function name to help deal with third-party software forgetting to include an appropriate header. o Remove some now unneeded pollution from <sys/types.h>. o Add missing <arpa/inet.h> includes in userland.
Tested on: alpha, i386 Reviewed by: bde, jake, tmm
|
90780 |
17-Feb-2002 |
deischen |
Oops, forgot to commit this (s/ucontext_t/struct __ucontext/).
|
90644 |
14-Feb-2002 |
imp |
Move user_from_uid to pwd.h Move group_from_gid to grp.h Remove from stdlib.h Make the prototypes match the code Fix rm and mv to include new files.
NetBSD has these defined in those files, and others too that I've not done.
Approved by: terminal room kabal Reviewed by: jhb, phk
|
90607 |
13-Feb-2002 |
imp |
Revert 1.29. It breaks the build. Will figure out a better way to do this that doesn't break things.
|
90606 |
13-Feb-2002 |
imp |
Make the user_from_uid and group_from_gid prototypes match the actual function definitions.
|
90297 |
06-Feb-2002 |
des |
Apply the following mechanical transformations in preparation for ansification and constification:
s{\s+__P\((\(.*?\))\)}{$1}g; s{\(\s+}{\(}g; s{\s+\)}{\)}g; s{\s+,}{,}g; s{(\s+)(for|if|switch|while)\(}{$1$2 \(}g; s{return ([^\(].*?);}{return ($1);}g; s{([\w\)])([!=+/\*-]?=)([\w\(+-])}{$1 $2 $3}g; s{\s+$}{\n};g
Also add $FreeBSD$ where needed.
MFC after: 1 week
|
90271 |
05-Feb-2002 |
alfred |
Fix cc -Wall, fix rcsid warnings, add missing prototypes, change prototypes to be the same as in the original sun tirpc code. Remove ()P macro in a file where the mayority had ()P already removed. Add them if the mayority use ()P macros.
Submitted by: mbr Requested by: bde
|
90232 |
05-Feb-2002 |
des |
Move arguments in prototype out of application namespace.
Sponsored by: DARPA, NAI Labs
|
90231 |
05-Feb-2002 |
bbraun |
Makes __istype() an inline (and a non inlined) function to avoid C++ compile issues. std::isspace(' ') was expanding to std::(!!_maskrune...) which would cause a C++ compile error. Making __istype() an inline causes the expansion to be std::__istype() instead, which is valid.
Reviewed by: jkh
|
90172 |
04-Feb-2002 |
sobomax |
Allow ldd(1) be used on shared libraries in addition to executables.
|
90138 |
03-Feb-2002 |
markm |
WARNS-n and lint(1) silencer. Declare (const) strings properly as 'const char *'.
|
89732 |
24-Jan-2002 |
dwmalone |
Change brk's prototype from char *brk(const char *) to int brk(const void *) and sbrk's prototype from char *sbrk(int) to void *sbrk(intptr_t).
This makes us more consistant with NetBSD and standards which include these functions. Bruce pointed out that ptrdiff_t would probably have been better than intptr_t, but this doesn't match other implimentations.
Also remove local declarations of sbrk and unnecessary casting.
PR: 32296 Tested by: Harti Brandt <brandt@fokus.gmd.de> MFC after: 1 month
|
89663 |
22-Jan-2002 |
markm |
Use the proper type (gid_t) for (group)->gr_gid to be orthogonal with uid_t usage and (user)->pw_uid.
PR: 3242
|
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.
|
88962 |
06-Jan-2002 |
mike |
Add support for C++.
Submitted by: bde PR: 33590
|
88748 |
31-Dec-2001 |
ambrisko |
Fix bugs in the structure for rx_frame by making gap length one byte and a packed array so sizeof work. This broke RFMON mode and passing up 802.11 packets.
The Linux emulation code was derived from the open source Linux driver to maintain compatibility.
LEAP support is added, hints from Richard Johnson. I've verified this locally with PC350v42510.img firmware. More bug fixing from Marco to fix long passwords.
Change DELAYs in flash part of driver to FLASH_DELAY which uses tsleep so it doesn't look like your system died during a flash update.
Install header files in /usr/include/dev/an
Cleanup some ifmedia bugs add "Home" key mode to ifmedia and ancontrol. This way you can manage 2 keys a little easier. Map the home mode into key 5. Enhance ifconfig to dump the various configured SSIDs. I use a bunch of different ones and roam between them. Use the syntax similar to the WEP keys to deal with setting difference SSIDs.
Bump up up the Card capabilities RID since they added 2 bytes to it in the latest firmware. Thankfully we changed it from a terminal failure so the card still worked but the driver whined.
Some cleanup patches from Marco Molteni.
Submitted by: Richard Johnson <raj@cisco.com> Marco Molteni <molter@tin.it> and myself Various checks: David Wolfskill <david@catwhisker.org> Reviewed by: Brooks Davis <brooks@freebsd.org> Warner Losh <imp@freebsd.org> Approved by: Brooks Davis <brooks@freebsd.org> Warner Losh <imp@freebsd.org> Obtained from: Linux emulation API's from Aironet driver.
|
88399 |
22-Dec-2001 |
mike |
Fix support for K&R C.
MFC after: 3 days
|
88055 |
17-Dec-2001 |
ru |
FILES support for bsd.prog.mk. See bsd.README for details.
Stolen from: NetBSD
|
88050 |
17-Dec-2001 |
green |
Install devfs includes.
|
87874 |
14-Dec-2001 |
sheldonh |
Add bmake glue for src/contrib/smbfs and connect userland smbfs support to the build.
The MFC reminder below is subject to <re@FreeBSD.org> approval prior to 4.5-RELEASE.
Reviewed by: bp, fjoe MFC: 1 week
|
87744 |
12-Dec-2001 |
phantom |
* style(9)'ify * add K&R support to langinfo.h
Requested by: bde (2)
|
87663 |
11-Dec-2001 |
phantom |
Get rid of unsed since rev 1.109 of lib/Makefile WANT_CSRG_LIBM define.
We'll never install math.h wrapped by this define since msun's math.h is using, so it should be removed from the source tree at some point (after merge of useful stuff to msun's math.h which is installing now to /usr/include)
Reviewed by: bde
|
87659 |
11-Dec-2001 |
phantom |
Add my e-mail to copyrights
|
87379 |
05-Dec-2001 |
obrien |
An extra #ifdef crept in with rev 1.38.
|
87369 |
04-Dec-2001 |
obrien |
Turn back on fmtcheck's attribute checks, guarded for non-GCC compilers.
Submitted by: bde
|
87319 |
04-Dec-2001 |
obrien |
Remove the GCC'ism "__attribute__" from the 'fmtcheck' prototype. I leave it up to someone else to fix this breakage properly.
|
87268 |
03-Dec-2001 |
markm |
Merge from master (crypto) telnet. WARNS fixes for alpha.
|
87159 |
01-Dec-2001 |
mike |
Add a missing underscore.
Submitted by: fenner
|
87158 |
01-Dec-2001 |
mike |
o Stop abusing MD headers with non-MD types. o Hide nonstandard functions and types in <netinet/in.h> when _POSIX_SOURCE is defined. o Add some missing types (required by POSIX.1-200x) to <netinet/in.h>. o Restore vendor ID from Rev 1.1 in <netinet/in.h> and make use of new __FBSDID() macro. o Fix some miscellaneous issues in <arpa/inet.h>. o Correct final argument for the inet_ntop() function (POSIX.1-200x). o Get rid of the namespace pollution from <sys/types.h> in <arpa/inet.h>.
Reviewed by: fenner Partially submitted by: bde
|
87136 |
30-Nov-2001 |
rwatson |
o Improve consistency of style by fixing tabs around _PATH_AUTHCONF.
|
87135 |
30-Nov-2001 |
rwatson |
o Introduce _PATH_CAPABILITY and _PATH_CAPABILITY_DB to the system path set. These files will hold per-user capability information.
Obtained from: TrustedBSD Project Submitted by: tmm
|
87086 |
29-Nov-2001 |
bde |
Oops, actually fix the namespace pollution for atoll() as the previous commit claimed to do.
|
87071 |
28-Nov-2001 |
bde |
Fixed namespace pollution and/or breakage of K&R and C90 support related to the following functions in the following commits: - atoll() in revs 1.23-1.25 - llabs() and lldiv() in revs 1.22 - strtoq() and strtouq() in revs 1.18 C99 functions must not be declared in C90/POSIX.1-1990 sections, and "long long" must not be exposed to compilers that don't support it.
Fixed style bugs (mainly misindentation and disorder) related the following functions in the following commits: - atoll() in revs 1.23-1.25 - getprogname() in rev.1.21 - sranddev() in revs 1.19-1.20 - strtoq() and strtouq() in rev.1.13 - user_from_uid() in rev.1.1 Breakage of K&R and C90 support used to be avoided by conditializing the "long long"s for strtoq() and strtouq() on __STRICT_ANSI__, but the conditionals should have gone away in rev.1.13 when the "long long"s went away (the problem was moved to the places that declare quad_t and u_quad_t).
|
87069 |
28-Nov-2001 |
bde |
Fixed namespace pollution in previous commit. The C99 function sterror_r() must not be declared in the C90/POSIX.1-1990 section. Put it in the nonstandard section for now.
|
87021 |
28-Nov-2001 |
ache |
Whitespace formatting
|
87019 |
28-Nov-2001 |
ache |
Fix just added atoll prototype
|
87017 |
28-Nov-2001 |
ache |
Add atoll(3) to conform POSIX and C99
|
86944 |
27-Nov-2001 |
wes |
Add strerror_r function per Posix prototype.
Reviewed by: Mike Barcroft <mike@FreeBSD.org> MFC after: 2 weeks
|
86669 |
20-Nov-2001 |
green |
Introduce readpassphrase(3), a superset of getpass(3). This comes originally from Todd Miller.
Obtained from: OpenBSD
|
86667 |
20-Nov-2001 |
green |
Install LOMAC includes from the new directory.
|
86644 |
20-Nov-2001 |
jhb |
Use fixed-size fields in the structure for the timed protocol. This includes changing a struct timeval to an explicit structure of two int32_t's. This requires using temporary timevals in several places when calling gettimeofday(), settimeofday(), etc. With this timed now works properly on 64-bit platforms such as Alpha.
Obtained from: NetBSD
|
86574 |
19-Nov-2001 |
green |
Install LOMAC public headers.
Sponsored by: DARPA, NAI Labs (CBOSS project)
|
86368 |
15-Nov-2001 |
mike |
o Implement imaxabs(), imaxdiv(), llabs(), lldiv(). o Update abs(3), div(3), labs(3), ldiv(3) to reflect standards conformance and add additional references.
Reviewed by: bde, wollman
|
86317 |
13-Nov-2001 |
alfred |
NFS split forgot to prototype nfsclnt() syscall, do it.
|
86214 |
09-Nov-2001 |
ru |
- Put missing prototype for rcmd() in <unistd.h>. - Clean up the manpage. - style(9) rcmdsh.c.
Committed from: BSDCon/EU 2k+1 terminal room
|
86178 |
07-Nov-2001 |
obrien |
Traditionally work in the -traditional case.
Submitted by: joerg
|
85961 |
03-Nov-2001 |
peter |
Remove FreeBSD/vax and FreeBSD/tahoe support. Add $FreeBSD$
Submitted by: phk
|
85892 |
02-Nov-2001 |
mike |
o Add new header <sys/stdint.h>. o Make <stdint.h> a symbolic link to <sys/stdint.h>. o Move most of <sys/inttypes.h> into <sys/stdint.h>, as per C99. o Remove <sys/inttypes.h>. o Adjust includes in sys/types.h and boot/efi/include/ia64/efibind.h to reflect new location of integer types in <sys/stdint.h>. o Remove previously symbolicly linked <inttypes.h>, instead create a new file. o Add MD headers <machine/_inttypes.h> from NetBSD. o Include <sys/stdint.h> in <inttypes.h>, as required by C99; and include <machine/_inttypes.h> in <inttypes.h>, to fill in the remaining requirements for <inttypes.h>. o Add additional integer types in <machine/ansi.h> and <machine/limits.h> which are included via <sys/stdint.h>.
Partially obtain from: NetBSD Tested on: alpha, i386 Discussed on: freebsd-standards@bostonradio.org Reviewed by: bde, fenner, obrien, wollman
|
85636 |
28-Oct-2001 |
dillon |
Add time_to_int(), int_to_time(), time_to_long(), long_to_time().
|
85635 |
28-Oct-2001 |
dillon |
Make the protocol/dumprestore.h header match restore's idea of the dump header for the case where sizeof(time_t) != sizeof(int). dumprestore.h was embedding time_t when it should have been embedding int32_t.
Use time_to_time32() and time32_to_time() to convert between the protocoll/file-format time and time_t.
|
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
|
85609 |
27-Oct-2001 |
peter |
ll_time and ut_time are int32_t on disk and have to remain that way unless we dont want to run 4.x binaries any more.
|
85605 |
27-Oct-2001 |
mike |
Restore K&R prototype. Fix other style bugs.
Reviewed by: asmodai, bde
|
85600 |
27-Oct-2001 |
markm |
Diff-reduce these two.
Really, one of them needs to disappear. I'll figure out which later.
Reported by: bde
|
85454 |
25-Oct-2001 |
wollman |
Resume deorbit burn sequence for <malloc.h>. Inspection of my make logs reveals no programs in the standard build which hit the previous warning message. This change will NOT be merged to 4-stable.
|
85421 |
24-Oct-2001 |
asmodai |
Add $FreeBSD$. Change assert() macro to print failing function name. Change K&R function prototype wrapper to ANSI prototype. This makes us C99 conforming.
|
84747 |
10-Oct-2001 |
bde |
Fixed some style bugs: - rev.1.6: corrupt tab before strlcpy. - rev.1.7: "From: " in vendor id. - rev.1.8: unsorted prototype for strccasestr.
|
84741 |
10-Oct-2001 |
ache |
Implement strcasestr() which many others (f.e. Linux) already have
|
84699 |
09-Oct-2001 |
mike |
Add a new libc function, strnstr(3), which allows one to limit the number of characters that are searched. This is especially useful with file operations and non-NUL terminated strings.
Silence from: -audit, -hackers MFC after: 5 days
|
84487 |
04-Oct-2001 |
wpaul |
Add compatibility functions for the AF_LOCAL RPC transport stuff that used to live in RPC 4.0. This is needed for yppasswd and rpc.yppasswdd to work correctly. Patch supplied by Martin Blapp.
|
84463 |
04-Oct-2001 |
bde |
Fixed order of includes. <sys/cdefs.h> must be included before <machine/ansi.h> for the definition of __signed, unless the compiler is gcc.
Moved the declaration of socklen_t up together with the declaration of size_t, and removed low-quality comment about this declaration. Declaring socklen_t in this file is normal in POSIX-1.200x, unlike declaring size_t.
|
84442 |
04-Oct-2001 |
bde |
Fixed some style bugs.
|
84441 |
04-Oct-2001 |
bde |
Fixed namespace pollution: - only declare the application symbols specified in Posix.1-200x drafts, not everything in <sys/types.h> and <stddef.h>. - don't use the application symbol 'm' for an arg name.
|
84328 |
01-Oct-2001 |
obrien |
Back out WIP that snuck in with revs 1.15[23].
|
84326 |
01-Oct-2001 |
obrien |
Merge style with NetBSD -- ANSI-C prototypes, style(9) tabing, etc.
|
84325 |
01-Oct-2001 |
obrien |
Merge functional changes from NetBSD.
|
84261 |
01-Oct-2001 |
obrien |
*** empty log message ***
|
84047 |
27-Sep-2001 |
obrien |
RFC2349 (http://www.hypermail.org/rfcs/rfc2349.html) adds support for negotiation of timeout and file size to the tftp protocol. This is required by some firmware like EFI boot managers (at least on HP i2000 Itanium servers) in order to boot an image using tftp. The attached patch implements the RFC, and in doing so also implements RFC2347; a generic tftp option extension.
PR: 30710 Submitted by: Espen Skoglund <esk@ira.uka.de>
|
83806 |
21-Sep-2001 |
rwatson |
o Update unistd.h with the prototype for the new eaccess(2) system call.
Obtained from: TrustedBSD Project
|
83712 |
20-Sep-2001 |
peter |
Now that the compat4x libc.so.4 binary has been updated, we can finally switch over to using a future-proof stdin/out/err.
Note that if you run 4.x binaries on your system, you will certainly want to update /usr/lib/compat/libc.so.4. The easiest way is to add "COMPAT4X= yes" in your /etc/make.conf.
|
83653 |
18-Sep-2001 |
peter |
Userland part of nfs client/server split and cleanup.
|
83265 |
10-Sep-2001 |
peter |
Stop gcc's fixincludes making an exception for this file
|
83134 |
06-Sep-2001 |
ru |
Sort FILES.
|
83105 |
05-Sep-2001 |
phantom |
add monetary.h as per POSIX requirement
|
83047 |
05-Sep-2001 |
obrien |
style(9) the structure definitions.
|
82628 |
31-Aug-2001 |
mike |
Revert previous delta; <arpa/inet.h> isn't quite ready to stop including <sys/types.h>.
|
82626 |
31-Aug-2001 |
mike |
o Deprecate byteorder(3) prototypes from <sys/types.h>, these are now prototyped indirectly in <arpa/inet.h>. o Deprecate in_addr_t and in_port_t typedefs in <sys/types.h>, these are now typedef'd in <arpa/inet.h>.
Discussed with: bde PR: 29946
|
81861 |
17-Aug-2001 |
dd |
Implement getpeereid(3), a front-end to the LOCAL_PEERCRED socket option for the Unix domain. It's weaker than the socket option (this only returns the uid and gid, while the socket opt. can return the entire group list), and is implemented mostly for compatibility with OpenBSD.
|
81600 |
13-Aug-2001 |
peter |
Rip out the old __stdin/out/err stuff. It was completely 100% useless. :-( It was foiled because of dynamic copy relocations that caused compile-time space to be reserved in .bss and at run time a blob of data was copied to that space and everything used the .bss version.. The problem is that the space is reserved at compile time, not runtime... So we *still* could not change the size of FILE. Sigh. :-(
Replace it with something that does actually work and really does let us make 'FILE' extendable. It also happens to be the same as Linux does in glibc, but has the slight cost of a pointer. Note that this is the same cost that 'fp = fopen(), fprintf(fp, ...); fclose(fp);' has. Fortunately, actual references to stdin/out/err are not all that common since we have implicit stdin/out/err-using versions of functions (printf() vs. fprintf()).
|
81586 |
13-Aug-2001 |
ru |
Removed duplicate VCS ID tags, as per style(9).
|
81585 |
13-Aug-2001 |
asmodai |
Remove comment, which didn't even help anyway.
Submitted by: bde, long ago
|
81524 |
11-Aug-2001 |
imp |
Make the name parameter const char *.
|
80525 |
29-Jul-2001 |
mikeh |
Rename the GLOB_MAXPATH flag of glob(3) to GLOB_LIMIT to be compatible with NetBSD and OpenBSD. glob(3) will now return GLOB_NOSPACE with errno set to 0 instead of GLOB_LIMIT when we match more than `gl_matchc' patterns. GLOB_MAXPATH has been left as an alias of GLOB_LIMIT to maintain backwards compatibility.
Reviewed by: sheldonh, assar Obtained from: NetBSD/OpenBSD
|
80153 |
22-Jul-2001 |
mike |
Remove namespace pollution.
PR: 14327 Reviewed by: des Approved by: des MFC after: 7 days
|
80021 |
20-Jul-2001 |
jasone |
Implement pthread_attr_[gs]etguardsize(). Non-default-size stacks used to be malloc()ed, but they are now allocated using mmap(), just as the default-size stacks are. A separate cache of stacks is kept for non-default-size stacks.
Collaboration with: deischen
|
79555 |
10-Jul-2001 |
obrien |
VCS ID fixup
|
78678 |
23-Jun-2001 |
iedowse |
Add a new clnt_control() request `CLSET_CONNECT' that controls whether or not connect(2) is used for UDP client sockets. The default is not to connect(), so existing clients will see no change in behaviour.
The use of connect(2) for UDP clients has a number of advantages: only replies from the intended address are received, and ICMP errors pertaining to the connection are reported back to the application.
|
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
|
78376 |
17-Jun-2001 |
peter |
Revise wording of osreldate.h vs kernel warning to make it clear that it is a userland-only header.
|
78172 |
13-Jun-2001 |
ru |
Added skeleton <complex.h> (aligned with the POSIX.1-200x), mostly to fix the "-nostdinc WARNS=X" breakage caused by broken prototypes for cabs() and cabsl() in <math.h>.
Reimplemented cabs() and cabsl() using new complex numbers types and moved prototypes from <math.h> to <complex.h>.
|
78169 |
13-Jun-2001 |
ru |
Complete prototype for fts_compar.
|
78012 |
10-Jun-2001 |
ume |
Implement EDNS0 support, as EDNS0 support will be made mandatory for IPv6 transport-ready resolvers/DNS servers. Need careful configuration when enable it. (default config is not affected). See manpage for details.
XXX visible symbol __res_opt() is added, however, it is not supposed to be called from outside, libc minor is not bumped.
Obtained from: KAME/NetBSD
|
77932 |
09-Jun-2001 |
obrien |
Update copyright.
|
77857 |
07-Jun-2001 |
jlemon |
Fix previous commit which inadverdently deleted a section.
|
77854 |
07-Jun-2001 |
jlemon |
Relocate IPFilter from sys/netinet to sys/contrib/ipfilter.
|
77728 |
04-Jun-2001 |
joerg |
Round #2 of the sys/isa/ic/ => sys/dev/ic/ move: install sys/dev/ic as /usr/include/dev/ic.
|
77434 |
29-May-2001 |
phk |
Remove MFS.
|
77272 |
27-May-2001 |
rnordier |
Drop nested __P(). This trips up Supelec's dcc.
|
77223 |
26-May-2001 |
ru |
- sys/n[tw]fs moved to sys/fs/n[tw]fs - /usr/include/n[tw]fs moved to /usr/include/fs/n[tw]fs
|
77204 |
25-May-2001 |
obrien |
Include elf32.h and elf64.h to be more code compatable with Solaris.
|
77162 |
25-May-2001 |
ru |
- sys/msdosfs moved to sys/fs/msdosfs - msdos.ko renamed to msdosfs.ko - /usr/include/msdosfs moved to /usr/include/fs/msdosfs
|
77144 |
24-May-2001 |
obrien |
Back out rev 1.4 (wint_t and mbstate_t) as I am tired of the complaints. The STLport will probably become broken again, but I'll work on fixing it later.
I wish someone would explain why the NetBSD Cirtus branch has the types in their stddef.h...
Requested by: bde, ru PR: 27606 Submitted by: Naohiko Tsuji <yakisoba@f2.dion.ne.jp>
|
77046 |
23-May-2001 |
ru |
Backout (almost) revision 1.137 changes.
Removal of LSYMSUBDIRS was a regression.
The purpose of LSYMSUBDIRS is to export only those /sys headers in the SHARED=symlinks case that are also visible in the SHARED=copies case.
Requested by: bde
|
77043 |
23-May-2001 |
ru |
Argh, unbreak SHARED=copied case.
|
77031 |
23-May-2001 |
ru |
- FDESC, FIFO, NULL, PORTAL, PROC, UMAP and UNION file systems were repo-copied from sys/miscfs to sys/fs.
- Renamed the following file systems and their modules: fdesc -> fdescfs, portal -> portalfs, union -> unionfs.
- Renamed corresponding kernel options: FDESC -> FDESCFS, PORTAL -> PORTALFS, UNION -> UNIONFS.
- Install header files for the above file systems.
- Removed bogus -I${.CURDIR}/../../sys CFLAGS from userland Makefiles.
|
76930 |
21-May-2001 |
ru |
Get rid of LSYMSUBDIRS by merely setting up symlinks to LNOHEADERDIRS.
|
76849 |
19-May-2001 |
brian |
Back out previous commit. digiio.h has moved to /usr/include/sys
|
76793 |
18-May-2001 |
obrien |
Add mbstate_t and wint_t.
|
76706 |
17-May-2001 |
brian |
Install /sys/dev/digi/digiio.h as /usr/include/dev/digi/digiio.h
I use the (new) DEVFILES variable rather than LSUBDIRS because only the public interface (digiio.h) should be installed.
|
76680 |
16-May-2001 |
ru |
Install wchar.h and wctype.h.
Forgotten by: tshiozak
|
76653 |
15-May-2001 |
dd |
Introduce getprogname(3) and setprogname(3) library calls. These get and set __progname, respectively.
Discussed on: -arch (Feb 2001), -audit Reviewed by: -audit Approved by: kris Obtained from: (mostly) NetBSD
|
76636 |
15-May-2001 |
tshiozak |
adapt to FreeBSD. - add #define NULL 0 instead of sys/null.h. - enable locale-insensitive functions: wcscat.c wcschr.c wcscmp.c wcscpy.c wcscspn.c wcslcat.c wcslcpy.c wcslen.c wcsncat.c wcsncmp.c wcsncpy.c wcspbrk.c wcsrchr.c wcsspn.c wcsstr.c wmemchr.c wmemcmp.c wmemcpy.c wmemmove.c wmemset.c - disable some locale-sensitive functions defined in wchar.h temporarily: mbrlen mbrtowc mbsinit mbsrtowcs wcrtomb wcsrtombs wcwidth wcswidth - disable all functions defined in wctype.h temporarily: is* tow*
|
76633 |
15-May-2001 |
tshiozak |
initial import of wchar.h and wctype.h
Obtained from: NetBSD and Citrus XPG4DL
|
76317 |
06-May-2001 |
obrien |
Add elf.h header back, its existance is an SVR4-ELF tradition. Our ELF hints bits are still a seperate file.
Requested by: jdp
|
76294 |
05-May-2001 |
obrien |
Add this header back, its existance is an SVR4-ELF tradition. Our ELF hints bits are still a seperate file.
Requested by: jdp
|
76224 |
02-May-2001 |
obrien |
* include/elf.h has been repo copied to include/elf-hints.h, and it no longer includes machine/elf.h. * consumers of elf.h now use the minimalist elf header possible.
This change is motivated by Binutils 2.11.0 and too much clashing over our base elf headers and the Binutils elf headers.
|
75859 |
23-Apr-2001 |
ache |
Move sranddev() to !ANSI_SOURCE !POSIX_SOURCE section
Pointed out by: bde
|
75846 |
23-Apr-2001 |
ache |
Add sranddev() prototype
|
75818 |
22-Apr-2001 |
obrien |
Style(9) fixes: * get rid of space (0x20) before tab (^I) * indent with ^I, not 0x20 * continuation line for prototypes is for 0x20's past function's name col. * etc.
|
75631 |
17-Apr-2001 |
alfred |
Implement client side NFS locks.
Obtained from: BSD/os Import Ok'd by: mckusick, jkh, motd on builder.freebsd.org
|
75621 |
17-Apr-2001 |
kris |
I think this was supposed to be __const like in NetBSD: I have no idea why I changed it to const.
Noticed by: David Wolfskill <david@catwhisker.org>
|
75578 |
17-Apr-2001 |
kris |
Add fmtcheck(), a function for checking consistency of format string arguments where the format string is obtained from user data, or otherwise difficult to verify statically.
Example usage:
printf(fmtcheck(user_format, standard_format), arg1, arg2);
checks the format string user_format for consistency (same number/order/ type of format operators) with standard_format. If they differ, standard_format is used instead to avoid potential crashes or security violations.
Obtained from: NetBSD Reviewed by: -arch
|
75415 |
11-Apr-2001 |
bp |
Actually install include/fs/smbfs and include/netsmb directories.
|
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>
|
74879 |
27-Mar-2001 |
wpaul |
Add a CLSET_ASYNC command, which allows us to (ab)use the clnt_dg transport to make asynchronous RPCs. This is needed to help fix ypbind, which can no longer override the clnt_dg_call() method (formerly the clntudp_call() method) due to all the internal descriptor locking code in TI-RPC. Turning on this flag allows us to send an RPC request, then return immediately, and handle a reply later, rather than being forced to do the request and reply in a single function call.
Also fix a byte ordering bug: when clnt_dg_call() increments the XID prior to transmitting a request, it uses the raw value, which is wrong. The XID is stored in network byte order, i.e. big-endian. The CLSET_XID and CLGET_XID commands in clnt_dg_control() use ntohl()/htonl() to get the byte ordering right, but because clnt_dg_call() does not do this, using CLSET_XID/CLGET_XID doesn't actually work, unless you're on a big endian host, which we aren't (yet). Fix clnt_dg_call() to byte swap properly when doing the increment.
|
74844 |
27-Mar-2001 |
alfred |
give the "netgrent" functions a home in netdb.h
|
74843 |
27-Mar-2001 |
alfred |
const'ify
|
74801 |
26-Mar-2001 |
alfred |
fix: text following `#else' violates ANSI standard
Pointed out by: ${BDECFLAGS}
|
74700 |
23-Mar-2001 |
ume |
IPv4 address is not unsigned int. This change introduces in_addr_t.
PR: 9982 Adviced by: des Reviewed by: -alpha and -net (no objection) Obtained from: OpenBSD
|
74695 |
23-Mar-2001 |
alfred |
change callrpc() from taking "char *" args, I'm quite sure they really meant to use "void *".
remove a duplicate prototype for callrpc() from libexec/ypxfr/ypxfr_extern.h
|
74658 |
22-Mar-2001 |
alfred |
forgot prototyle for __rpc_get_local_uid()
|
74515 |
20-Mar-2001 |
alfred |
Unbreak LINT.
because rpcb_clnt.h is generated during buildworld and only installed into /usr/include/rpc (and not present in src/include/rpc) we can fix it by simply not including it when _KERNEL is defined.
this isn't the most elegant, way and might deserve some revisiting later.
Pointed out by: bde
|
74510 |
20-Mar-2001 |
alfred |
The TI-RPC spammed over a '#ifdef _KERNEL' hack for the xdrproc_t typedef revert the spammage
Pointed out by: bde
|
74509 |
20-Mar-2001 |
alfred |
comment out #pragma directive containing Sun SCM tags
|
74472 |
19-Mar-2001 |
alfred |
Add missing comma when KERBEROS is defined.
|
74469 |
19-Mar-2001 |
jlemon |
Introduce the GLOB_MAXPATH flag, which allows the user to limit the number of paths which glob(3) will return. Remove the hardcoded limit from the last commit, which restores the previous unbounded behavior.
Document the new flag in the manual page.
|
74462 |
19-Mar-2001 |
alfred |
Bring in a hybrid of SunSoft's transport-independent RPC (TI-RPC) and associated changes that had to happen to make this possible as well as bugs fixed along the way.
Bring in required TLI library routines to support this.
Since we don't support TLI we've essentially copied what NetBSD has done, adding a thin layer to emulate direct the TLI calls into BSD socket calls.
This is mostly from Sun's tirpc release that was made in 1994, however some fixes were backported from the 1999 release (supposedly only made available after this porting effort was underway).
The submitter has agreed to continue on and bring us up to the 1999 release.
Several key features are introduced with this update: Client calls are thread safe. (1999 code has server side thread safe) Updated, a more modern interface.
Many userland updates were done to bring the code up to par with the recent RPC API.
There is an update to the pthreads library, a function pthread_main_np() was added to emulate a function of Sun's threads library.
While we're at it, bring in NetBSD's lockd, it's been far too long of a wait.
New rpcbind(8) replaces portmap(8) (supporting communication over an authenticated Unix-domain socket, and by default only allowing set and unset requests over that channel). It's much more secure than the old portmapper.
Umount(8), mountd(8), mount_nfs(8), nfsd(8) have also been upgraded to support TI-RPC and to support IPV6.
Umount(8) is also fixed to unmount pathnames longer than 80 chars, which are currently truncated by the Kernel statfs structure.
Submitted by: Martin Blapp <mb@imp.ch> Manpage review: ru Secure RPC implemented by: wpaul
|
74458 |
19-Mar-2001 |
ache |
Add D_MD_ORDER (local extension) to get month/day order from locale
|
74393 |
17-Mar-2001 |
ume |
Nuke non-standard EAI_RESNULL.
|
73986 |
08-Mar-2001 |
obrien |
Move _PATH_DEFTAPE to <paths.h> to remove all the duplication of definitons, and remove leading `r'(aw) from it.
|
73548 |
04-Mar-2001 |
alfred |
mark pthread_exit() as non-returning.
Requested by: Farooq Mela <fmela0@sm.socccd.cc.ca.us>
|
73254 |
01-Mar-2001 |
deischen |
Hide the definition of struct __sFILEX and add the needed lock definitions to it. flockfile state is now allocated along with the rest of FILE. This eliminates the need for a separate allocation of flockfile state as well as eliminating the mutex/lock used to serialize its allocation.
|
73152 |
27-Feb-2001 |
obrien |
Impliment the ISO-C99 strto[u]ll() and rewrite strto[u]q() in terms of it.
|
72693 |
19-Feb-2001 |
ume |
Enable AI_ADDRCONFIG as a valid flag of getaddrinfo(3). Some applications specify AI_ADDRCONFIG and fail to run under FreeBSD. Latest mews is known. Now, getaddrinfo(3) behaves according to AI_ADDRCONFIG.
|
72673 |
18-Feb-2001 |
peter |
Be extra certain that "#include <osreldate.h>" must not be used in kernel code.
|
72529 |
16-Feb-2001 |
imp |
Fix the current libc breakage in current: o Back out the __std* stuff. Can't figure out how to do this right now, so we'll save it for late. o use _up as a pointer for extra fields that we need to access. o back out the libc major version bump.
Submitted by: green reviewed by: peter, imp, green, obrien (to varying degrees).
We'll fix the "how do we stop encoding sizeof(FILE) in binaries" part later.
|
72510 |
15-Feb-2001 |
ume |
Correct 2nd argument of getnameinfo(3) to socklen_t.
Reviewed by: itojun
|
72472 |
14-Feb-2001 |
peter |
Commit a libc fix going by the current state of the version numbering bikeshed in -arch. It isn't quite over, but it has been well established that this can be adjusted or refined. But we do seem to have consensis on a major bump of some sort. After this, it should reasonably safe to build world again.
This change is to get rid of __sF[] and use seperate __stdin/out/err handles. This means we can pad on extra bits onto the end of FILE at will without going through this all over again. __sF[] was evil because it compiled the sizeof(FILE) into every stdio using program.
Asbestos suit on: check! Peril sensitive sunglasses on: check! *gulp!*
|
72394 |
12-Feb-2001 |
peter |
It sounded like a good idea at the time. The previous change breaks FILE *buffer = stdout; so back it out for now.
|
72391 |
12-Feb-2001 |
peter |
Take advantage of the current libc sizeof(FILE) breakage (__sF[]) and try a hopefully more robust stdin/stdout/stderr. This costs an indirect pointer fetch, but saves us from changes in 'FILE'. The __stdin stuff is there to not pollute application name space if the application does not use <stdio.h> and also in case something depended on the current behavior where stdin etc was a #define.
Reviewed by: eischen, dillon
|
72372 |
11-Feb-2001 |
deischen |
libc MT-safety, part 2.
Add a lock to FILE and define an additional flag.
|
72171 |
08-Feb-2001 |
phantom |
add langinfo.h
|
72169 |
08-Feb-2001 |
phantom |
Add SUSv2 compatible nl_langinfo() function. It still need some work, but this is already usable one.
|
72112 |
06-Feb-2001 |
asmodai |
Fix some nits:
- whitespace: incorrect usage of tab or space - removal of comments which served either no purpose or were misleading
Submitted by: bde [a while ago]
|
72092 |
06-Feb-2001 |
asmodai |
Fix typo: compatability -> compatibility.
Compatability is not an existing english word.
Add $FreeBSD$.
|
72089 |
06-Feb-2001 |
asmodai |
Fix typo: seperate -> separate.
Seperate does not exist in the english language.
Submitted to look at by: kris
|
72068 |
06-Feb-2001 |
bde |
Declare strunvisx().
|
71580 |
24-Jan-2001 |
deischen |
Add a lock to DIR to make telldir and friends MT-safe.
Clean up stdio.h a bit and remove _THREAD_SAFE. Some of the usual macros getc, putc, getchar, putchar are no longer macros.
Approved by: -arch
|
70811 |
09-Jan-2001 |
peter |
Move MD <machine/if_wavelan_ieee.h> to MI <dev/wi/if_wavelan_ieee.h>
|
70632 |
03-Jan-2001 |
sheldonh |
Remove struct.h, which has been punted into the Attic.
|
70626 |
03-Jan-2001 |
phk |
Finally put this mistake to rest.
|
70558 |
01-Jan-2001 |
deischen |
Change prototype to getlogin_r to reflect recent change to its implementation (conformance to '96 POSIX standard).
|
70492 |
29-Dec-2000 |
phk |
Use TAILQ instead of CIRCLEQ.
|
70442 |
28-Dec-2000 |
jasone |
Remove prototypes for pthread_attr_[gs]etfloatstate(), which we don't implement.
|
69841 |
11-Dec-2000 |
deischen |
Move telldir position recording type definitions and prototypes to "telldir.h" in order to prevent namespace pollution in <dirent.h> (which was including <sys/queue.h>).
Add $FreeBSD$ to rewinddir.c and seekdir.c.
|
69793 |
09-Dec-2000 |
obrien |
Add `_PATH_DEVZERO'. Use _PATH_* where where possible.
|
69655 |
06-Dec-2000 |
deischen |
Add a LIST_HEAD to DIR for a queue of telldir positions. Also add a location count (used as the magic for telldir) to DIR. A future change will also add a mutex/lock.
|
69498 |
01-Dec-2000 |
phk |
Make <struct.h> #error instead of #warn that it is going away on jan 1st.
|
69394 |
30-Nov-2000 |
alfred |
remove unneeded sys/ucred.h include
|
69356 |
29-Nov-2000 |
asmodai |
Fix stdbool.h to actually work as advertised.
PR: 22936 Submitted by: Donald J. Maddox <Donald.J.Maddox@cae88-102-101.sc.rr.com> bde
|
69201 |
26-Nov-2000 |
phk |
Make it possible to override the function which writes messages to stderr in case of warnings and errors.
Rename malloc_options to have a leading underscore, I belive I have been told that is more correct namespace wise.
|
67708 |
27-Oct-2000 |
phk |
Convert all users of fldoff() to offsetof(). fldoff() is bad because it only takes a struct tag which makes it impossible to use unions, typedefs etc.
Define __offsetof() in <machine/ansi.h>
Define offsetof() in terms of __offsetof() in <stddef.h> and <sys/types.h>
Remove myriad of local offsetof() definitions.
Remove includes of <stddef.h> in kernel code.
NB: Kernelcode should *never* include from /usr/include !
Make <sys/queue.h> include <machine/ansi.h> to avoid polluting the API.
Deprecate <struct.h> with a warning. The warning turns into an error on 01-12-2000 and the file gets removed entirely on 01-01-2001.
Paritials reviews by: various. Significant brucifications by: bde
|
67182 |
16-Oct-2000 |
brian |
Add netnatm to LDIRS
Submitted by: Makoto MATSUSHITA <matusita@jp.FreeBSD.org>
|
66872 |
09-Oct-2000 |
dwmalone |
Cleanup of bitstring.h:
1) Add FreeBSD: tag. 2) Add parenthesis around macro args. 3) Add parenthesis around macros which are expressions. 4) Add do { ... } while (0) around macros which are compound statements. 5) Sync bitstr_size and bit_alloc with neater versions from NetBSD. 6) Fix bit_ffs and bit_ffc so that they don't search off the end of the bitstirng. 7) Try to avoid rightshifting signed ints.
I didn't take NetBSD's version directly as the macros are significantly slower for long bitstrings. Bruce reviewed a previous version of this patch.
PR: 21204 Submitted by: bob@immure.com Reviewed by: bde
|
66055 |
19-Sep-2000 |
jdp |
Add a definition for RTLD_DEFAULT.
|
66043 |
18-Sep-2000 |
jdp |
Update the prototype for "r_brk" to correspond with the change in "src/libexec/rtld-elf/rtld.c" revision 1.48. This eliminates a warning when building the dynamic linker, and it doesn't seem to hurt anything else.
|
65918 |
16-Sep-2000 |
asmodai |
Welcome stdbool.h. A header file from the ANSI C99 specification. It defines the boolean values.
|
65885 |
15-Sep-2000 |
ache |
Use MTREE_FOLLOWS_SYMLINKS option This is part of whole subsystem fixing
Reviewed by: imp
|
65834 |
14-Sep-2000 |
ru |
There is no reason to clobber ${DESTDIR}/usr/include/{isofs,ufs,dev} in SHARED=copies case since all symbolic links previously created by SHARED=symlinks install have already been removed to that point.
PR: misc/21150
|
65553 |
07-Sep-2000 |
peter |
I have not tested this to completion yet, but this appears to fix world. Add nsswitch.h to the list of includes installed.
|
65532 |
06-Sep-2000 |
nectar |
Add nsswitch support. By creating an /etc/nsswitch.conf file, you can configure FreeBSD so that various databases such as passwd and group can be looked up using flat files, NIS, or Hesiod.
= Hesiod has been added to libc (see hesiod(3)).
= A library routine for parsing nsswitch.conf and invoking callback functions as specified has been added to libc (see nsdispatch(3)).
= The following C library functions have been modified to use nsdispatch: . getgrent, getgrnam, getgrgid . getpwent, getpwnam, getpwuid . getusershell . getaddrinfo . gethostbyname, gethostbyname2, gethostbyaddr . getnetbyname, getnetbyaddr . getipnodebyname, getipnodebyaddr, getnodebyname, getnodebyaddr
= host.conf has been removed from src/etc. rc.network has been modified to warn that host.conf is no longer used at boot time. In addition, if there is a host.conf but no nsswitch.conf, the latter is created at boot time from the former.
Obtained from: NetBSD
|
65353 |
02-Sep-2000 |
brian |
Move setproctitle() from libutil to libc (after a repo-copy) and bump __FreeBSD_version to 500012 to mark the occasion.
setproctitle() is prototyped in unistd.h as opposed to stdlib.h where OpenBSD and NetBSD have it.
Reviewed by: peter
|
65294 |
31-Aug-2000 |
des |
Import XPG4-compliant basename(3) and dirname(3) from OpenBSD. The man pages need some adjustments.
PR: 12960, 12962 Submitted by: James Howard <howardjp@wam.umd.edu> Obtained from: OpenBSD
|
64918 |
22-Aug-2000 |
green |
Add working and easy crypt(3)-switching. Yes, we need a whole new API for crypt(3) by now. In any case:
Add crypt_set_format(3) + documentation to -lcrypt. Add login_setcryptfmt(3) + documentation to -lutil. Support for switching crypt formats in passwd(8). Support for switching crypt formats in pw(8).
The simple synopsis is: edit login.conf; add a passwd_format field set to "des" or "md5"; go nuts :)
Reviewed by: peter
|
64767 |
17-Aug-2000 |
jhb |
Revert gratuitous whitespace changes from revisions 1.111 and 1.112.
|
64005 |
29-Jul-2000 |
peter |
Add a prototype for rfork_thread(). pid_t rfork_thread(int forkflags, void *stack, int (*func)(void *arg), void *arg); A new process is created, presumably using RFMEM shared address space. The child process switches to the supplied stack, which is set up with a function call frame. The function is called with the supplied arguement. If the function returns, the return value will be used with _exit(2).
|
63776 |
23-Jul-2000 |
marcel |
Backout addition of -L switch to mtree. Using -L breaks the build process in too many cases. Adding mtree to bootstrap-tools to solve this breaks the upgrade path because mtree needs a libc that has strtofflags and fflagstostr.
|
63725 |
21-Jul-2000 |
nsayer |
Back out 1.15. It caused more harm than good. Something, however, must be done to fix this situation.
Submitted by: bde
|
63259 |
16-Jul-2000 |
ache |
Add -L to mtree
|
62780 |
07-Jul-2000 |
alfred |
fix spelling errors.
Pointed out by: bde
|
62684 |
06-Jul-2000 |
alfred |
cleanup the tsearch import.
remove (comment out) functions defined or depricated elsewhere: bsearch, lfind, lsearch, insque, remque
change hcreate to take a size_t rather than uint (essentially the same)
since hcreate/hdestroy are now in <search.h>, remove private search.h in lib/libc/db/hash/
add $FreeBSD tags to hsearch.c
|
62606 |
05-Jul-2000 |
itojun |
add getifaddrs(3) from bsdi. this is a magic function which lets you grab interface addresses in a portable manner, without headache of SIOCGIFCONF or sysctl. it is in bsdi/openbsd/netbsd already. from kame tree (actually, mandatory for latest kame tree).
|
62356 |
01-Jul-2000 |
dan |
Add URI encoding to the vis/unvis routines courtesy of VIS_HTTPSTYLE. Since alex is a -doc committer, he can update his own manpage. :-)
Also add $FreeBSD$ while I'm here.
Submitted by: alex
|
62321 |
01-Jul-2000 |
alfred |
bring in binary search tree code.
Obtained from: NetBSD
|
61927 |
22-Jun-2000 |
nsayer |
Moving forward on my commitment to always make at least one commit from a terminal room of any conference I attend....
Fix xdrproc_t prototype. () instead of (...) breaks C++ programs.
|
61747 |
17-Jun-2000 |
joe |
Add strtofflags and fflagstostr to libc.
|
60938 |
26-May-2000 |
jake |
Back out the previous change to the queue(3) interface. It was not discussed and should probably not happen.
Requested by: msmith and others
|
60833 |
23-May-2000 |
jake |
Change the way that the queue(3) structures are declared; don't assume that the type argument to *_HEAD and *_ENTRY is a struct.
Suggested by: phk Reviewed by: phk Approved by: mdodd
|
60725 |
19-May-2000 |
peter |
Install /usr/include/dev/ppbus as well as dev/usb
|
60382 |
11-May-2000 |
bde |
Fixed missing consts for function parameters, so that the code matches the man page and POSIX.1. Fixed nearby misformatting. Fixed a missing prototype.
|
60338 |
10-May-2000 |
jhb |
Finish moving all IEEE fp types to be the same on all arch's.
|
60335 |
10-May-2000 |
obrien |
fp_except => fp_except_t for consistancy with the i386 and the tradition C methoid of nameing types.
|
59374 |
18-Apr-2000 |
jlemon |
Revert previous commit, and remove the <event.h> symlink. As this is a system-specific extension, not a standardized interface, it should be located with the sys/ includes.
Requested by: wollman
|
59296 |
16-Apr-2000 |
jlemon |
Create <event.h> -> <sys/event.h> link that I forgot earlier.
Reminded by: ache
|
59065 |
06-Apr-2000 |
ru |
The idea always was that `make copies' should undo the `make symlinks' job, but it got broken in rev 1.109.
Restore the correct behaviour.
|
57350 |
20-Feb-2000 |
jasone |
Do not conditionalize function prototype definition for functions we implement.
Noticed by: Thimble Smith <tim@mysql.com> Approved by: jkh
|
57035 |
08-Feb-2000 |
obrien |
There is a problem in that one cannot use ctype.h at the same time as parts of the C++ stdlib. Our ctype.h uses symbols of the form _<X> to denote the various character classes. Our ctype.h also extends the usual ctype.h offering by adding the "_T" (special) class. Problem is parts of the STL also use the symbol "_T" as its parameterized type. These two uses are incompatible.
Thus change the form of the symbols used in ctype to something that fixes the current problem and is less likely to cause conflicts in the future.
Requested by: Tomoaki NISHIYAMA <tomoaki@biol.s.u-tokyo.ac.jp> Ok'ed by: JKH
|
57033 |
08-Feb-2000 |
shin |
Change IPv6 address scope delimeter from '@' to '%' as recent KAME change. '@' conflicts with existing notations such as user@host, so '%' is better.
Approved by: jkh
Obtained from: KAME project
|
57003 |
05-Feb-2000 |
joe |
Revert part of the last commit, remove {g|s}etflags from the libc interface, and statically link them to the programs using them. These functions, upon reflection and discussion, are too generically named for a library interface with such specific functionality. Also the api that they use, whilst ok for private use, isn't good enough for a libc function.
Additionally there were complications with the build/install-world process. It depends heavily upon xinstall, which got broken by the change in api, and caused bootstrap problems and general mayhem.
There is work in progress to address future problems that may be caused by changes in install-chain tools, and better names for {g|s}etflags can be derived when some future program requires them. For now the code has been left in src/lib/libc/gen (it started off in src/bin/ls).
It's important to provide library functions for manipulating file flag strings if we ever want this interface to be adopted outside of the source tree, but now isn't necessarily the right moment with 4.0-release just around the corner.
Approved: jkh
|
56939 |
01-Feb-2000 |
shin |
sync iruserok() extension API with other BSDs
Some of rcmd related function is need to be updated to support IPv6. Some of them are already updated as standard document. But there is also several de-facto functions and they are not listed in standard documents. They are,
iruserok() (used by rlogind, rshd) ruserok() (used by kerberos, etc)
KAME package updated those functions in original way.
iruserok_af() ruserok_af()
But recently there was discussion on IETF IPng mailing list about how to sync those API, and it is decided,
-Those function is not standard and not documented. -But let BSDs sync their API as de-facto.
And after some discussion, it is announced that
-add update to iruserok() as iruserok_sa() -no ruserok() API change(it is only updated internaly)
So I sync those API before 4.0 is released. The changes are, -prototype changes -ruserok() internal update (use iruserok_sa() inside) -removal of ruserok_af() -change iruserok_af() as static functioin, and also prefix the name with __. -add iruserok_sa() (Just call __iruserok_af() inside) -adding flag AI_ALL to getipnodebyaddr() called from __icheckhost(). This is necessary to support IPv4 communication via AF_INET6 socket could be correctly authenticated via iruserok_sa() -irusreok_af() call is replaced to iruserok_sa() call in rlogind, and rshd.
Approved by: jkh
|
56782 |
29-Jan-2000 |
jdp |
Add a #define for RTLD_LOCAL as required by the Single Unix Specification.
|
56692 |
27-Jan-2000 |
joe |
Historically file flags (schg, uschg, etc) have been converted from string to u_long and back using two functions, flags_to_string and string_to_flags, which co-existed with 'ls'. As time has progressed more and more other tools have used these private functions to manipulate the file flags.
Recently I moved these functions from /usr/src/bin/ls to libutil, but after some discussion with bde it's been decided that they really ought to go in libc.
There are two already existing libc functions for manipulating file modes: setmode and getmode. In keeping with these flags_to_string has been renamed getflags and string_to_flags to setflags.
The manual page could probably be improved upon ;)
|
56646 |
26-Jan-2000 |
peter |
Sigh. Really fix it this time. It seems the first time through the run it would modify the source tree, causing it to fail the second time around. Sigh.
|
56645 |
26-Jan-2000 |
peter |
Fix world breakage (kdump, truss) causes by rev 1.107 (adding dev/usb). It was creating ${.OBJDIR}/${MACHINE}/usr/include/dev -> .../sys/dev and mkioctls would descend that and saw *all* of src/sys/dev/*/*.h, not just dev/usb/*.h. It then choked on the dpt includes.
|
56629 |
26-Jan-2000 |
shin |
bindresvport related changes -changed bindresvport2 to bindresvport_sa -merged the man into bindresvport.3
All discussion between Jean-Luc Richier <Jean-Luc.Richier@imag.fr>, Theo de Raadt <deraadt@cvs.openbsd.org>, itojun, is reflected to this code. (Actually Theo de Raadt write the code simultaneously as the discussion change.)
|
56590 |
25-Jan-2000 |
shin |
several tcp apps IPv6 update -inetd -rshd -rlogind -telnetd -rsh -rlogin
Reviewed by: freebsd-arch, cvs-committers Obtained from: KAME project
|
56583 |
25-Jan-2000 |
n_hibma |
Install the USB include files in /usr/include/dev/usb.
We should still sort out some way of avoiding the clutter. Not all files should be there.
Prompted by: Louis A. Mamakos <louie@TransSys.COM>
|
56183 |
17-Jan-2000 |
peter |
Add prototypes for [sg]etres[ug]id().
|
55975 |
14-Jan-2000 |
bde |
Fixed disordering, misformatting, and duplicate declaration of iruserok_af() in previous commit.
|
55918 |
13-Jan-2000 |
shin |
libc rcmd update for IPv6. A new function bindresvport2(), AF independent version of bindresvport() is also added.
Reviewed by: sumikawa Obtained from: KAME project
|
55708 |
10-Jan-2000 |
deischen |
Make sched_param parameter a const to comply with POSIX and SUSv2 specs. This doesn't need to be applied to stable, because somehow -stable seems to have gotten it right.
Reviewed by: jasone
|
55681 |
09-Jan-2000 |
jdp |
Remove the comment warning that the dllockinit() interface might change. I have decided that the interface is general enough to last.
|
55206 |
29-Dec-1999 |
peter |
Change #ifdef KERNEL to #ifdef _KERNEL in the public headers. "KERNEL" is an application space macro and the applications are supposed to be free to use it as they please (but cannot). This is consistant with the other BSD's who made this change quite some time ago. More commits to come.
|
55165 |
28-Dec-1999 |
jdp |
Work around an assert failure in the dynamic linker's default thread locking functions. If an application loads a shared object with dlopen() and the shared object has an init function which requires lazy binding, then _rtld_bind is called when the thread is already inside the dynamic linker. This leads to a recursive acquisition of the lock, which I was not expecting -- hence the assert failure.
This work-around makes the default locking functions handle recursive locking. It is NOT the correct fix -- that should be implemented at the generic locking level rather than in the default locking functions. I will implement the correct fix in a future commit.
Since the dllockinit() interface will likely need to change, warn about that in both the man page and the header file.
|
55163 |
28-Dec-1999 |
shin |
Getaddrinfo(), getnameinfo(), and etc support in libc/net. Several udp and raw apps IPv6 support.
Reviewed by: freebsd-arch, cvs-committers Obtained from: KAME project
|
55122 |
27-Dec-1999 |
jdp |
Add a new function dllockinit() for registering thread locking functions to be used by the dynamic linker. This can be called by threads packages at start-up time. I will add the call to libc_r soon.
Also add a default locking method that is used up until dllockinit() is called. The default method works by blocking SIGVTALRM, SIGPROF, and SIGALRM in critical sections. It is based on the observation that most user-space threads packages implement thread preemption with one of these signals (usually SIGVTALRM).
The dynamic linker has never been reentrant, but it became less reentrant in revision 1.34 of "src/libexec/rtld-elf/rtld.c". Starting with that revision, multiple threads each doing lazy binding could interfere with each other. The usual symptom was that a symbol was falsely reported as undefined at start-up time. It was rare but not unseen. This commit fixes it.
|
55036 |
23-Dec-1999 |
bde |
Fixed missing declaration of ctermid_r(3).
|
55033 |
23-Dec-1999 |
bde |
Fixed missing declaration of getlogin_r(3).
|
55031 |
23-Dec-1999 |
bde |
Fixed missing declaration of rand_r(3).
|
55030 |
23-Dec-1999 |
bde |
Fixed missing declaration of getdents(2).
|
54757 |
18-Dec-1999 |
jasone |
Fix some minor POSIX/SUSv2 compliance nits.
PR: kern/11982
|
54746 |
17-Dec-1999 |
phantom |
Back up following macros by functions: ishexnumber, isideogram, isnumber, isphonogram, isrune, isspecial. Fix ordering.
Reviewed by: bde
|
54699 |
16-Dec-1999 |
jasone |
Move POSIX feature constants from pthread.h to unistd.h, as required by 1003.1c-1995.
Undefine _POSIX_THREAD_SAFE_FUNCTIONS, since we do not implement all of the necessary interfaces. At least getgrgid_r(), getrnam_r(), getpwuid_r(), getpwnam_r(), getc_unlocked(), getchar_unlocked(), putc_unlocked(), and putchar_unlocked() are missing. Due to a likely typo in 1003.1c-1995, we are not technically allowed to define _POSIX_THREADS without defining _POSIX_THREAD_SAFE_FUNCTIONS, but either way we're non-compliant, so I'm leaving _POSIX_THREADS defined.
PR: bin/8281
|
54351 |
09-Dec-1999 |
marcel |
Revert previous commit.
Requested by: bde
|
54312 |
08-Dec-1999 |
marcel |
Remove support for symlinks instead of copies. This also avoids using mtree. Space is being saved by other means.
|
54169 |
05-Dec-1999 |
peter |
Create a symlink for <machine/joystick.h>, like soundcard.h
|
54092 |
03-Dec-1999 |
semenu |
Added ntfs subdir to be filled.
|
53892 |
29-Nov-1999 |
alfred |
style fixes, remove extra braces.
readdir_r is not POSIX according to POSIX_SOURCE, bruce says: > readdir_r() is in the _POSIX_SOURCE section, but is not a POSIX.1-1990 > function. It's POSIX.1-1996 so it should be under a different feature > test which we don't support yet.
make sure errno is saved so that its contents are cleared unless necessary.
Submitted by: bde
|
53812 |
28-Nov-1999 |
alfred |
add pthread_cancel, obtained from OpenBSD.
eischen (Daniel Eischen) added wrappers to protect against cancled threads orphaning internal resources.
the cancelability code is still a bit fuzzy but works for test programs of my own, OpenBSD's and some examples from ORA's books.
add readdir_r to both libc and libc_r
add some 'const' attributes to function parameters
Reviewed by: eischen, jasone
|
53516 |
21-Nov-1999 |
ache |
Add FNM_FILE_NAME - GNU alias to FNM_PATHNAME Move all excepting NOESCAPE,PATHNAME,PERIOD under !defined(_POSIX_SOURCE)
|
52905 |
05-Nov-1999 |
jlemon |
Add missing netinet6.
Detected by: make world
|
52419 |
21-Oct-1999 |
julian |
Whistle's Netgraph link-layer (sometimes more) networking infrastructure. Been in production for 3 years now. Gives Instant Frame relay to if_sr and if_ar drivers, and PPPOE support soon. See: ftp://ftp.whistle.com/pub/archie/netgraph/index.html for on-line manual pages.
Reviewed by: Doug Rabson (dfr@freebsd.org) Obtained from: Whistle CVS tree
|
52228 |
14-Oct-1999 |
bp |
Make libncp actually compiled.
Reviewed by: mdodd
|
51935 |
04-Oct-1999 |
peter |
Complete move of kvm.h to lib/libkvm so it's self contained.
|
51910 |
03-Oct-1999 |
marcel |
Link ucontext.h to sys/ucontext.h
Pointed out by: bde
|
51871 |
02-Oct-1999 |
marcel |
Remove the inline versions of sigaddset, sigdelset, sigemptyset, sigfillset and sigismember.
Submitted by: bde
|
51794 |
29-Sep-1999 |
marcel |
sigset_t change (part 5 of 5) -----------------------------
Most of the userland changes are in libc. For both the alpha and the i386 setjmp has been changed to accomodate for the new sigset_t. Internally, libc is mostly rewritten to use the new syscalls. The exception is in compat-43/sigcompat.c
The POSIX thread library has also been rewritten to use the new sigset_t. Except, that it currently only handles NSIG signals instead of the maximum _SIG_MAXSIG. This should not be a problem because current applications don't use any signals higher than NSIG.
There are version bumps for the following libraries: libdialog libreadline libc libc_r libedit libftpio libss
These libraries either a) have one of the modified structures visible in the interface, or b) use sigset_t internally and may cause breakage if new binaries are used against libraries that don't have the sigset_t change. This not an immediate issue, but will be as soon as applications start using the new range to its fullest.
NOTE: libncurses already had an version bump and has not been given one now.
NOTE: doscmd is a real casualty and has been disconnected for the moment. Reconnection will eventually happen after doscmd has been fixed. I'm aware that being the last one to touch it, I'm automaticly promoted to being maintainer. According to good taste this means that I will receive a badge which either will be glued or mechanically stapled, drilled or otherwise violently forced onto me :-)
NOTE: pcvt/vttest cannot be compiled with -traditional. The change cause sys/types to be included along the way which contains the const and volatile modifiers. I don't consider this a solution, but more a workaround.
|
50968 |
05-Sep-1999 |
peter |
Zap $Revision$
|
50949 |
05-Sep-1999 |
peter |
Only install backwards compat symlink for <machine/soundcard.h> if using the default SHARED=copies, otherwise the kernel source tree gets modified if /usr/include/machine is a symlink to the source tree (which is not the case by default). Nothing in our src tree uses <machine/soundcard.h>.
Pointed out by: bde
|
50914 |
04-Sep-1999 |
peter |
Install a symlink for <machine/soundcard.h> -> <sys/soundcard.h> rather than having stubs. (OK'ed by dfr)
|
50603 |
30-Aug-1999 |
jdp |
Add definition for RTLD_GLOBAL, which is soon to be supported.
|
50488 |
28-Aug-1999 |
peter |
$Header$ -> $FreeBSD$
|
50473 |
27-Aug-1999 |
peter |
$Id$ -> $FreeBSD$
|
50070 |
20-Aug-1999 |
mdodd |
Add 2 functions: el_data_set() and el_data_get() which do what you would expect. (Allow user data to be associated with an EditLine context).
As this changes no existing interfaces and doesn't alter any structs visable to the user I've been told that its not necessary to bump the version of the library.
|
49875 |
16-Aug-1999 |
imp |
Add prototypes for strl* functions
Forgotten by: imp Reported by: bde
|
49307 |
31-Jul-1999 |
rse |
Cleanups to the pthread header files.
Submitted by: Ralf S. Engelschall <rse@engelschall.com> Reviewed by: John Birrell <jb@cimlogic.com.au>
|
49127 |
27-Jul-1999 |
deischen |
Hide pthread cancellation routines behind #ifdef NOT_YET. They are not currently supported. Also corrected the declaration for pthread_testcancel which incorrectly returned int when POSIX and SUSv2 both say it should be void.
Submitted by: Ralf S. Engelschall <rse@engelschall.com> Reviewed by: John Birrell <jb@freebsd.org>
|
48835 |
16-Jul-1999 |
simokawa |
Make profil() 64bit-safe for alpha. uintfptr_t may be better for offset, but we must wait until the definition of uintfptr_t moves from machine/profile.h.
Reviewed by: bde
|
48106 |
22-Jun-1999 |
steve |
Allow fpsetmask(3) and friends to be used from a C++ program on the Alpha.
Reviewed by: dfr
|
48081 |
21-Jun-1999 |
sheldonh |
Add missing declarations.
PR: 12058 Submitted by: Mikhail Teterin <mi@aldan.algebra.com>
|
47742 |
04-Jun-1999 |
peter |
Change an internal variable from "class" to "ns_class" for C++'s benefit. Apparently BIND-8.2.1 uses ns_class.
Submitted by: John Plevyak <jplevyak@inktomi.com>
|
47289 |
18-May-1999 |
peter |
Add a strsignal(3) (like strerror(3)) for libc compatability with other systems. NetBSD, Linux, SVR4 etc all have it.
|
46990 |
11-May-1999 |
bde |
Restored rev.1.11 which was clobbered by rev.1.12 (translated to `C').
|
46673 |
08-May-1999 |
jkh |
Protect declarations for C++ users.
Submitted by: Richard Wiwatowski <rjwiwat@ozemail.com.au>
|
46663 |
08-May-1999 |
nectar |
16 characters for the device name in /etc/dumpdates is not long enough, particularly when using vinum. Allow 32 characters (arbitrary, I know) instead.
PR: bin/11433
|
46305 |
02-May-1999 |
markm |
Part of routed upgrade. Submitted by: Vernon Schryver <vjs@calcite.rhyolite.com>
|
45929 |
22-Apr-1999 |
jdp |
Back out my change from 6 April PDT that added a new dlversion() function. It was an ill-considered feature. It didn't solve the problem I wanted it to solve. And it added Yet Another Version Number that would have to be maintained at every release point. I'm nuking it now before anybody grows too fond of it.
|
45525 |
10-Apr-1999 |
bde |
Oops, the previous log message should have been:
Include <machine/ansi.h> so that this file is self-sufficient again. Rev.1.6 doesn't do this as claimed unless <nlist.h> has nonstandard pollution.
Cleaned up includes.
|
45513 |
09-Apr-1999 |
bde |
Declare mkstemps().
|
45398 |
07-Apr-1999 |
jdp |
Add a new function dlversion() which returns the version number of the dynamic linker in the same form as __FreeBSD_version. This is mainly intended for checking the dynamic linker version during a make world.
|
45315 |
04-Apr-1999 |
dt |
Add prototypes for pread and pwrite.
|
44965 |
23-Mar-1999 |
jb |
o Runnable threads are now maintained in priority queues. The implementation requires two things:
1.) The priority queues must be protected during insertion and removal of threads. Since the kernel scheduler must modify the priority queues, a spinlock for protection cannot be used. The functions _thread_kern_sched_defer() and _thread_kern_sched_undefer() were added to {un}defer kernel scheduler activation.
2.) A thread (active) priority change can be performed only when the thread is removed from the priority queue. The implementation uses a threads active priority when inserting it into the queue.
A by-product is that thread switches are much faster. A separate queue is used for waiting and/or blocked threads, and it is searched at most 2 times in the kernel scheduler when there are active threads. It should be possible to reduce this to once by combining polling of threads waiting on I/O with the loop that looks for timed out threads and the minimum timeout value.
o Functions to defer kernel scheduler activation were added. These are _thread_kern_sched_defer() and _thread_kern_sched_undefer() and may be called recursively. These routines do not block the scheduling signal, but latch its occurrence. The signal handler will not call the kernel scheduler when the running thread has deferred scheduling, but it will be called when running thread undefers scheduling.
o Added support for _POSIX_THREAD_PRIORITY_SCHEDULING. All the POSIX routines required by this should now be implemented. One note, SCHED_OTHER, SCHED_FIFO, and SCHED_RR are required to be defined by including pthread.h. These defines are currently in sched.h. I modified pthread.h to include sched.h but don't know if this is the proper thing to do.
o Added support for priority protection and inheritence mutexes. This allows definition of _POSIX_THREAD_PRIO_PROTECT and _POSIX_THREAD_PRIO_INHERIT.
o Added additional error checks required by POSIX for mutexes and condition variables.
o Provided a wrapper for sigpending which is marked as a hidden syscall.
o Added a non-portable function as a debugging aid to allow an application to monitor thread context switches. An application can install a routine that gets called everytime a thread (explicitly created by the application) gets context switched. The routine gets passed the pthread IDs of the threads that are being switched in and out. I found this useful, but we can get rid of it if you want.
Submitted by: Dan Eischen <eischen@vigrid.com>
|
44937 |
22-Mar-1999 |
phk |
Nuke old copies of /usr/include/timepps.h
|
44667 |
11-Mar-1999 |
phk |
Remove <timepps.h> here as well.
You will need to manually rip it from /usr/include if it gives you any trouble.
|
44665 |
11-Mar-1999 |
phk |
removed from PPS-API draft
|
44492 |
05-Mar-1999 |
bde |
Use __i386__ instead of i386 in an ifdef.
|
43782 |
08-Feb-1999 |
dt |
Added functions fseeko() and ftello() (from susv2). Fixed fgetpos() and fsetpos() for offsets > 2GB.
PR: 8637 Submitted by: Dan Nelson <dnelson@emsphone.com> (adjusted by me a little)
|
43282 |
27-Jan-1999 |
bde |
Removed evil typedef kvm_swap_t and all uses of it (not many).
Hoped for by: wollman
|
43085 |
23-Jan-1999 |
dillon |
Oops, forgot this. Needed by libkvm.
|
42913 |
20-Jan-1999 |
jdp |
Add a prototype for strtok_r().
|
42780 |
18-Jan-1999 |
des |
Use the correct type for uid and gid in struct passwd. Document it.
|
42774 |
17-Jan-1999 |
dt |
Install <sys/aio.h> as <aio.h>.
|
42663 |
14-Jan-1999 |
jdp |
Instead of a wrapper <linker_set.h>, use a symlink to <sys/linker_set.h>.
Submitted by: bde
|
42646 |
14-Jan-1999 |
jdp |
Add a wrapper <linker_set.h> for <sys/linker_set.h>, so that userland programs can use linker sets.
|
42518 |
11-Jan-1999 |
msmith |
optreset is a POSIX extension, make it visible in POSIX_SOURCE scope. Submitted by: Andrzej Bialecki <abial@nask.pl>
|
42515 |
11-Jan-1999 |
asami |
Move nologin from /etc to /var/run. This means one less file that has to be written to /etc.
The only essential change is in paths.h, so any third-party software written correctly will pick it up in the next rebuild.
Reviewed by: the committers list (actually an old version)
|
42511 |
11-Jan-1999 |
msmith |
POSIX introduced optreset to deal with multiple invocations of getopt (as in, multiple input lines :). This is documented in the man page and is used in the code, but unistd.h and stand.h do not declare it. Incidentally, it prevents me fixing a bug in loader's code... :-)
PR: misc/9373 Submitted by: "Daniel C. Sobral" <dcs@newsguy.com>
|
42293 |
04-Jan-1999 |
dt |
Make ctime_r, asctime_r, gmtime_r, and localtime_r available in libc.
|
42029 |
23-Dec-1998 |
dfr |
Implement fpsetmask() and other fp*() functions. Programs should use
#include <ieeefp.h>
to access these functions instead of the i386 specific
#include <machine/floatingpoint.h>
Submitted by: Hidetoshi Shimokawa <simokawa@sat.t.u-tokyo.ac.jp>
|
41928 |
19-Dec-1998 |
dt |
Install <sys/inttypes.h> as <inttypes.h>.
|
41927 |
19-Dec-1998 |
dt |
Little reorganization: - created internal names for fixed-size integral types, like __int32_t. They will be used to make several headers self-sufficient. - <stdlib.h> don't include <machine/types.h> anymore. - created <sys/inttypes.h>, which can be used as <inttypes.h>. - declaration of uoff_t and ufs_daddr_t moved to <sys/types.h>.
Reviewed by: bde
|
41882 |
16-Dec-1998 |
bde |
Declare size_t and ssize_t if they are not already declared, so that <kvm.h> is self-sufficient again.
Moved typedefs and forward struct declarations out of __BEGIN_DECLS/ __END_DECLS.
Don't comment out the prototype for kvm_uread(). This was a 4 year old kludge for previous breakage of self-sufficiency. The prototypwe was broken instead.
Fixed bitrot (const poisoning) in the type of kvm_uread().
Fixed order of the declaration of kvm_uread().
|
41798 |
14-Dec-1998 |
dt |
Make this protototype of mmap return void *, like two other copies.
|
41557 |
06-Dec-1998 |
archie |
Make rcsid a const char[] instead of char[] to avoid compiler warnings
|
41390 |
28-Nov-1998 |
eivind |
Add support for pthread_mutexattr_settype(). As a side effect of testing this, fix MUTEX_TYPE_COUNTING_FAST. Recursive locks now work.
|
41284 |
22-Nov-1998 |
bde |
Don't forget to use the appropriate __printf*like attribute for verr* and vwarn*.
Sorted attributes.
UnFrom'ed vendor id.
|
40999 |
08-Nov-1998 |
dima |
64bit clean now
|
40739 |
29-Oct-1998 |
jdp |
Add support for -Wformat consistency checking between format strings and their argument lists for the err(3) family of functions. Note, I intentionally used __printflike instead of __printf0like for warnx. Although a NULL format string is legal for that function, it doesn't make any sense.
|
40668 |
27-Oct-1998 |
dima |
64bit fixes. (Note: ``dump'' doesn't work on alpha yet. Apparently there's a problem somewhere is the physio() area)
Submitted by: myself && Matt Dillon.
|
40536 |
20-Oct-1998 |
dima |
make talk/talkd work on alpha.
|
40496 |
17-Oct-1998 |
bde |
Don't even think about using a sysctl to build osreldate.h, since this breaks cross-builds. Just depend on ${.CURDIR}/../sys/conf/newvers.sh existing.
Don't override the (correct) defaults for the depend, lint or tags target.
In LDIRS: fixed order-rot. Don't comment out dead networking directories; remove them.
|
40111 |
09-Oct-1998 |
jkh |
Move auth.conf path in here. Doesn't affect published interface.
|
39892 |
02-Oct-1998 |
ache |
back out h2ph from here, Bruce found another proper place
|
39877 |
02-Oct-1998 |
ache |
Add h2ph call to afterinstall target Error code ignored to allow building without perl installed
|
39661 |
26-Sep-1998 |
wpaul |
#ifdef out DES ioctls which don't exist in FreeBSD. These originated with the SunRPC code to allow the use of hardware DES on certain Sun hardware that supported it (if you installed the appropriate kit). We don't have them and they apparently break the ioctl table generation for kdump.
Pointed out by: bde
|
39534 |
21-Sep-1998 |
bde |
Don't declare functions without a prototype if KERNEL is defined. This fixes lots of warnings about missing prototypes in sys/netatm/spans/*.
|
39429 |
17-Sep-1998 |
obrien |
Build headers with -DWANT_NFS3. (finishing up on Amd upgrade)
|
39353 |
16-Sep-1998 |
dfr |
Adjust the declarations of kvm_read and kvm_write to match reality a little closer.
|
39271 |
15-Sep-1998 |
phk |
(this is an extract from src/share/examples/atm/README)
=================================== HARP | Host ATM Research Platform ===================================
HARP 3
What is this stuff? ------------------- The Advanced Networking Group (ANG) at the Minnesota Supercomputer Center, Inc. (MSCI), as part of its work on the MAGIC Gigabit Testbed, developed the Host ATM Research Platform (HARP) software, which allows IP hosts to communicate over ATM networks using standard protocols. It is intended to be a high-quality platform for IP/ATM research.
HARP provides a way for IP hosts to connect to ATM networks. It supports standard methods of communication using IP over ATM. A host's standard IP software sends and receives datagrams via a HARP ATM interface. HARP provides functionality similar to (and typically replaces) vendor-provided ATM device driver software.
HARP includes full source code, making it possible for researchers to experiment with different approaches to running IP over ATM. HARP is self-contained; it requires no other licenses or commercial software packages.
HARP implements support for the IETF Classical IP model for using IP over ATM networks, including:
o IETF ATMARP address resolution client o IETF ATMARP address resolution server o IETF SCSP/ATMARP server o UNI 3.1 and 3.0 signalling protocols o Fore Systems's SPANS signalling protocol
What's supported ---------------- The following are supported by HARP 3:
o ATM Host Interfaces - FORE Systems, Inc. SBA-200 and SBA-200E ATM SBus Adapters - FORE Systems, Inc. PCA-200E ATM PCI Adapters - Efficient Networks, Inc. ENI-155p ATM PCI Adapters
o ATM Signalling Protocols - The ATM Forum UNI 3.1 signalling protocol - The ATM Forum UNI 3.0 signalling protocol - The ATM Forum ILMI address registration - FORE Systems's proprietary SPANS signalling protocol - Permanent Virtual Channels (PVCs)
o IETF "Classical IP and ARP over ATM" model - RFC 1483, "Multiprotocol Encapsulation over ATM Adaptation Layer 5" - RFC 1577, "Classical IP and ARP over ATM" - RFC 1626, "Default IP MTU for use over ATM AAL5" - RFC 1755, "ATM Signaling Support for IP over ATM" - RFC 2225, "Classical IP and ARP over ATM" - RFC 2334, "Server Cache Synchronization Protocol (SCSP)" - Internet Draft draft-ietf-ion-scsp-atmarp-00.txt, "A Distributed ATMARP Service Using SCSP"
o ATM Sockets interface - The file atm-sockets.txt contains further information
What's not supported -------------------- The following major features of the above list are not currently supported:
o UNI point-to-multipoint support o Driver support for Traffic Control/Quality of Service o SPANS multicast and MPP support o SPANS signalling using Efficient adapters
This software was developed under the sponsorship of the Defense Advanced Research Projects Agency (DARPA).
Reviewed (lightly) by: phk Submitted by: Network Computing Services, Inc.
|
39250 |
15-Sep-1998 |
gibbs |
Add new cam include hierarchy.
|
39191 |
14-Sep-1998 |
imp |
Add reallocf to the library. This function is simliar to realloc, but when it returns NULL to indicate failure, it will also free the memory that was passed to it, if that was non-null.
This does not change the semantics of realloc.
A second commit will be done to commit the conversion of those places in the code that can safely use this to avoid memory leaks when confronted with low memory situations.
Beaten-to-death-but-finally-approved-in: -current
|
39113 |
12-Sep-1998 |
dt |
Change return type of strptime from const char* to char*. const char* was wrong and nonstandard.
|
39112 |
12-Sep-1998 |
wollman |
A small last-minute iitem for 3.0:
- Fix some style errors I made back in 1995.
- Add a new flavor of the err(3) family, which takes an explicit errno argument rather than implicitly examining errno. This will make it easier to use these functions in conjunction with modern library interfaces that return an errno value explicitly.
|
38994 |
09-Sep-1998 |
kato |
Change i386 in a few paths to ${MACHINE} to support MACHINE=pc98.
|
38960 |
09-Sep-1998 |
jdp |
Add a new library function getobjformat(). It checks all the standard places ("/etc/objformat", ${OBJFORMAT}, argv) for an indication of the user's preferred object file format. This consolidates some code that was starting to be duplicated in more and more places.
Use the new function in ldconfig.
Note: I don't think that gcc should use getobjformat(), even though it could. The compiler should limit itself to functions that are widespread, to ease porting and cross-compilation.
|
38952 |
08-Sep-1998 |
obrien |
Add support for the RPC 64-bit integer type ``hyper''.
|
38922 |
07-Sep-1998 |
brian |
Remove the extern decl of ``h_errno''. It's already externed in netdb.h - where all of its #define values live. If anything requires h_errno here (nothing in /usr/src seems to) it's almost definitely broken.
|
38919 |
07-Sep-1998 |
alex |
Implement pthread read/write locks as defined by Version 2 of the Single UNIX Specification.
As with our standard mutexes, process shared locks are not supported at this time.
|
38879 |
06-Sep-1998 |
obrien |
Fix tons of cut-n-paste errors in the WANT_NFS3 code.
|
38830 |
05-Sep-1998 |
jdp |
Add hints file structures and defines.
|
38538 |
25-Aug-1998 |
jb |
Add the prototype for sigwait().
|
38464 |
21-Aug-1998 |
jkoshy |
Add extern declaration for `tzname[]' to make this header comply better to POSIX90.
2-rounds-of-review-by: bde
|
38119 |
05-Aug-1998 |
dfr |
Move the include of <machine/ansi.h> to before <sys/signal.h>.
|
38051 |
03-Aug-1998 |
bde |
Fixed garbage after comment after #endif. Fixed reversed sense of same comment.
|
38001 |
01-Aug-1998 |
alex |
Added iso646.h as defined by the Single UNIX Specification, version 2.
|
37692 |
16-Jul-1998 |
jkh |
MF22: prototype fix.
|
37614 |
13-Jul-1998 |
bde |
Added macros __printflike() and __scanflike() to <sys/cdefs.h>. Use them to `make gcc -Wformat' check formats for all printf-like and scanf-like functions in /usr/src except for the err()/warn() family. err() isn't quite printf-like since its format arg can legitimately be NULL. syslog() isn't quite printf-like, but gcc already accepts %m, even for plain printf() when it shouldn't.
|
37566 |
11-Jul-1998 |
bde |
Fixed whitespace lossage and long lines in previous commit.
|
37509 |
08-Jul-1998 |
dt |
Declare lockf().
|
37489 |
08-Jul-1998 |
peter |
New flag for internal stdio use to enable dynamic string allocation for asprintf() implementation.
Obtained from: Todd Miller <Todd.Miller@courtesan.com> via OpenBSD
|
36981 |
14-Jun-1998 |
bde |
Complete the switch to using gcc-2.4 features to declare fpos_t , as threatened in the 4-5 year old comment. Most of the change is in <machine/ansi.h>; this commit just removes cruft for the strict ANSI case. 64-bit types couldn't actually be defined using __attribute__(()) in gcc-2.4, since attribute names in the implementation namespace only became available in gcc-2.7. I've probably just broken gcc-2.6 support by using the gcc-2.7 names unconditionally.
|
36898 |
11-Jun-1998 |
peter |
Damn, bind8 includes added <arpa/nameser.h> as a prerequisite for <resolv.h>. This breaks user ppp at least, and goodness knows how many ports. :-(
This a bit of a hack, but is probably simpler than duplicating the typedefs and protecting them from each other.
Also, remove some temporary XXX notes that I forgot to remove before.
|
36890 |
11-Jun-1998 |
peter |
Install arpa/nameser_compat.h
|
36888 |
11-Jun-1998 |
peter |
Update nameserver interface to bind-8.1.2 levels. We do not use IRS (yet?) since it has far wider impact than hostname lookups (including passwords). Note that this has more ugly symbol hiding and binary compatability hacks that can go away the second we bump majors.
Obtained from: Mostly from diff against ISC bind-8.1.2 sources
|
36739 |
07-Jun-1998 |
phk |
This is a prototype implementation of the draft-mogul-pps-api-##.txt paper.
It will be updated along with the draft and possible subsequent standard.
The ppbus based pps driver is updated to implement this API.
|
36311 |
23-May-1998 |
dfr |
Add GDB support for ELF shared libs.
|
36283 |
21-May-1998 |
eivind |
Move __FreeBSD_version from src/sys/conf/newvers.sh to src/sys/sys/param.h, to facilitate access from the kernel. This make it possible to do outside kernel development and have it actually work properly.
|
36036 |
14-May-1998 |
peter |
nuke signanosleep().
|
35943 |
11-May-1998 |
jb |
Change the return types for strtoq and strtouq to int64_t and u_int64_t instead of long long and unsigned long long. Really they should be quad_t and u_quad_t, but that would require sys/types.h and this header only includes machine/types.h. The difference here is that int64_t and u_int64_t on alpha are long and unsigned long, not long long etc. This is required to pass gcc's type checking where long != long long even though they are the same size of alpha.
|
35921 |
10-May-1998 |
jb |
ut_time is a time_t, not a long.
|
35758 |
05-May-1998 |
jb |
I have a long list of issues to address here, mostly related to namespace and revision levels of ANSI and POSIX. This change only removes the leading underscrore from the FILE locking functions that POSIX defines.
|
35545 |
30-Apr-1998 |
ache |
Prototypes/typedefs cleanup Add NL_CAT_LOCALE (will be implemented soon)
|
35523 |
29-Apr-1998 |
ache |
Basic support for LC_MESSAGES
|
35299 |
19-Apr-1998 |
brian |
Remove duplicate decls Not objected to by: freebsd-hackers
|
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>
|
35163 |
12-Apr-1998 |
jb |
Format changes in an attempt to address some of Bruce's comments about spaces and tabs.
The externs in the static inline functions remain 'cause (a) they're required; and (b) I can't find any gcc -W* cases where they generate warnings.
|
35127 |
11-Apr-1998 |
jb |
Add *_unlocked() macros according to POSIX. In the _THREAD_SAFE case, test for __isthreaded before calling the lock/unlock functions to try to save some performance. The _THREAD_SAFE case should become the default, but since it tests for a global variable in libc, people won't be able to build -current on pre-3.0 systems unless the default leaves it out. Such is life.
|
35123 |
11-Apr-1998 |
jb |
Add a function prototype to set the name of a thread for debugging purposes.
|
35025 |
04-Apr-1998 |
jb |
Add static initializer defines as specified by POSIX.
|
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.
|
34521 |
12-Mar-1998 |
bde |
Added forgotten declaration of mkdtemp().
|
34328 |
08-Mar-1998 |
dufault |
Remove AIO_LISTIO_MAX until it is done properly.
|
34327 |
08-Mar-1998 |
dufault |
Put sigevent and AIO_LISTIO_MAX back in aio.h so that kernels can be built.
|
34326 |
08-Mar-1998 |
jb |
My sched.h is getting walloped by Peter Dufault's. Nuke mine. Sorry.
|
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.
|
34223 |
08-Mar-1998 |
jb |
Add a POSIX sched header. pthread_yield() in draft 4 becomes sched_yield() in the final draft (10). This header contains the prototype. Other things in here are "future".
|
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.
|
33861 |
27-Feb-1998 |
bde |
Moved include of <sys/cdefs.h> earlier for the same reasons as moving it in <sys/types.h>.
PR: 5785
|
33806 |
25-Feb-1998 |
bde |
Removed _POSIX_SOURCE ifdefs. This is not a POSIX.1 header.
|
33298 |
13-Feb-1998 |
bde |
Uncommit the generated file key_prot.h. Install it from where it is generated. It must be installed in both /usr/include/rpc/ and /usr/include/rpcsvc/ for historical reasons. The generated version was once missing ANSI prototypes because the wrong flags were passed to rpcgen, but that is fixed now. The committed version had `#pragma indent' which gratuitously broke K&R support. Apart from this, all versions before and after this commit are identical.
|
33237 |
11-Feb-1998 |
jdp |
Replace bogus "@(#)err.h 8.1 (Berkeley) 6/2/93" with RCS Id keyword. Somebody must have blindly copied the leader comment when they created this file.
|
33236 |
11-Feb-1998 |
jdp |
Remove the include of <dlfcn.h> from crt0.c; it is not needed now that the dl* trampolines have been moved into libc.
Move dlfcn.h from src/lib/csu/i386 into src/include. Nothing in src/lib/csu/i386 uses it any more.
|
33137 |
06-Feb-1998 |
jdp |
Implement dladdr.
|
32962 |
01-Feb-1998 |
steve |
XOpen says the void setpwent(void) is correct. Also call setpassent(0) instead of duplicating code, albeit trivial (inspired by NetBSD).
PR: 5524
|
32928 |
31-Jan-1998 |
imp |
kill ufs/lfs so that make installworld completes successfully.
|
32641 |
20-Jan-1998 |
jb |
Suggested by: bde Move sigjmp_buf and jmp_buf structure definitions to machine/setjmp.h so that i386 can continue to use int as the basic register type and alpha can use long. Bruce was concerned about possible differing alignment. I've left the definition of _JBLEN in machine/setjmp.h even though Bruce's example used the number directly. I don't know if any other code relies on _JBLEN, so I left it to avoid potential breakage.
|
32624 |
19-Jan-1998 |
wpaul |
Invoke rpcgen with -C so that headers are created with ANSI prototypes.
Note: this may cause some problems in a few cases. With very old versions of rpcgen, if you defined a procedure called foo, then rpcen would create client stubs for function foo_1() and server stubs _also_ with function foo_1(). This only worked because of the lack of ANSI prototypes: the client side stub takes different arguments than the server side stub. (The client side takes a CLIENT * handle, while the server side wants an svc_req *.)
To fix this conflict, rpcgen in ANSI mode generates foo_1() for the client and foo_1_svc() for the server. RPC server code that depends on the old behavior might break because of this. (Fixing it is just a matter of adding the _svc suffix onto the server procedure names.)
|
32557 |
16-Jan-1998 |
bde |
Added missing declaration of signanosleep().
|
32556 |
16-Jan-1998 |
bde |
Fixed pedantic syntax error (trailing comma in enum).
|
32555 |
16-Jan-1998 |
bde |
Removed `#pragma ident' (for a FreeBSD Id) so that the K&R support isn't gratuitously broken. This also prevents ANSI compilers from recognizing the pragma as a request to run /usr/games/hack... FreeBSD Ids should be in comments or rcsids, not in `#pragma ident's (which are equivalent to comments when compiled by gcc), and the only FreeBSD change in this file seems to be adding the Id.
|
32554 |
16-Jan-1998 |
bde |
Commented out `#pragma ident' (for a Sun id) so that the K&R support isn't gratuitously broken. This also prevents ANSI compilers from recognizing the pragma as a request to run /usr/games/hack...
|
32553 |
16-Jan-1998 |
bde |
Removed redundant declarations. rpcgen generates `typedef enum foo;' from `enum foo;'.
|
32552 |
16-Jan-1998 |
bde |
Made this header self-sufficent. It had unnecessary dependencies on <sys/cdefs.h>, <sys/types.h>, <rpcsvc/yp_prot.h>, and on the latter's prerequisites (5 more).
|
32551 |
16-Jan-1998 |
bde |
Fixed a missing dependency.
|
32550 |
16-Jan-1998 |
bde |
Null change to attach the correct log message for the previous commit:
Added some forward struct declarations so that this file is less self-insufficent. Fixed an incomplete prototype. Fixed some misformattings.
|
32549 |
16-Jan-1998 |
bde |
Added a forward struct declaration so that this file is less self-insufficent.
|
32548 |
16-Jan-1998 |
bde |
Commented out `#pragma ident' so that the K&R support isn't gratuitously broken. This also prevents ANSI compilers from recognizing the pragma as a request to run /usr/games/hack...
|
32545 |
16-Jan-1998 |
bde |
Translated to `C' - commented out #ident.
|
32419 |
11-Jan-1998 |
jb |
Move _JBLEN definition to <machine/setjmp.h> like on NetBSD. Remove definitions for architectures that we don't have libc MD source for.
Change 'int' to 'long' in sigjmp_buf and jmp_buf structures so that they are suitable for the register size on both i386 and alpha. Although FreeBSD defines these structures differently to NetBSD, the element size is now the same.
If Bruce doesn't like this [8-)], we'll need to add a typedef to each <machine/setjmp.h> and use that in <setjmp.h>.
|
32181 |
02-Jan-1998 |
jkh |
unborkify osreldate.h install (change \ to / - someone was in DOS mode! ;)
|
32170 |
01-Jan-1998 |
steve |
Install osreldate.h from ${.OBJDIR}.
Submitted by: Bruce Evans <bde@zeta.org.au>
|
32166 |
01-Jan-1998 |
alex |
Added missing caddr_t --> void * conversions for sys/mman.h functions.
Submitted by: bde
|
32032 |
27-Dec-1997 |
steve |
Don't include sys/syslimits.h if _ANSI_SOURCE is defined.
PR: 5119 Discussed with: Bruce Evans <bde@zeta.org.au>
|
31985 |
25-Dec-1997 |
alex |
Changed pthread_detach to conform to POSIX, i.e. the single argument provided is of type pthread_t instead of pthread_t *.
PR: 4320
Return EINVAL instead of ESRCH if attempting to detach an already detached thread.
|
31584 |
06-Dec-1997 |
jdp |
Move nlist related defines from link.h into nlist.h. Clean up nlist.h.
|
31441 |
28-Nov-1997 |
jdp |
Remove the prototypes for dlopen and related functions. They don't belong here. The standard place for them is <dlfcn.h>, and there is already another copy of the prototypes there.
|
31387 |
24-Nov-1997 |
charnier |
Add Ids, from lite2.
|
31342 |
22-Nov-1997 |
brian |
const correctness for dl*()
|
31305 |
20-Nov-1997 |
charnier |
Remove sccsid, not present in Lite2.
|
30870 |
31-Oct-1997 |
charnier |
Add const to rcsid[] definition so that -Wall will not complain.
|
30647 |
22-Oct-1997 |
ache |
Change usleep return type from void to int to match OpenGroup specs.
|
30583 |
19-Oct-1997 |
joerg |
Declare the various 2-byte values in TFTP as being `unsigned short'. RFC 1350 isn't very explicit about this, but the use of signed integers doesn't seem to make sense.
Should be in 2.2.5, but is probably too late to be verified completely.
PR: bin/4502 Submitted by: Dirk Nehrling <nerle@pdv.de> via Lars Koeller
|
30087 |
03-Oct-1997 |
markm |
Reinsert telnet.h into the list of files installed into include/arpa/ I suspect a commit of mine had this (bogusly).
|
29926 |
28-Sep-1997 |
markm |
Changes for KTH KerberosIV. telent.h is installed from libtelnet, not the include dir.
|
29884 |
27-Sep-1997 |
ache |
Oops, fix typo in istype definition
|
29883 |
27-Sep-1997 |
ache |
1) Bring '!!' back since we wan't overflow even a char 2) Revive __maskrune, just return mask now 3) Express __istype via !!__maskrune 4) Use __maskrune in digittoint
|
29855 |
25-Sep-1997 |
ache |
Oops, wrong version of digittoint fix was commited, step back to v1.8 instead just remove '!!' to make digittoint() work and re-arrange things a little
|
29854 |
25-Sep-1997 |
ache |
Fix digittoint broken long ago Redesign to allow digittoint work for runes too __maskrune removed, __istype become a macro, __runeflags added
|
29843 |
25-Sep-1997 |
peter |
Bandaid for the build-breaking reference to _BSD_RUNE_T_. I'm not sure that this is right, but the old reference defaintely was not.
|
29818 |
24-Sep-1997 |
julian |
Submitted by: Sin'ichiro MIYATANI / Phase One, Inc <siu@phaseone.co.jp> Basic support for the Shift JIS encoding of japanese. (and one tiny typo fixed in a comment)
|
29504 |
16-Sep-1997 |
bde |
Removed installhdrs target. It was an unnecessary complication.
|
29370 |
14-Sep-1997 |
peter |
SYSV has both <poll.h> and <sys/poll.h>. (poll.h merely #includes sys/poll.h). Just provide a link, it's close enough. :-) In an ideal world the prototype for poll() would be in <poll.h> but some code seems to expect it in <sys/poll.h>, so we can't win there.
|
28982 |
01-Sep-1997 |
brian |
Add "options no_tld_query" to resolv.conf. Mention the capability in resolver(5). Mention that RES_OPTIONS can be used in resolver(5). Discussed with: -hackers
|
28544 |
21-Aug-1997 |
bde |
Removed ifndef of AUTH_NONE. The conflict with login_cap.h was fixed better by not defining AUTH_NONE in login_cap.h.
|
28543 |
21-Aug-1997 |
bde |
Don't traverse subdirectories twice for normal installs.
|
28542 |
21-Aug-1997 |
bde |
Fix and simplify installhdrs target. It didn't install the headers in ${HFILES} and it's simpler to install the non-headers in ${XFILES}.
|
28524 |
21-Aug-1997 |
jmg |
fix a problem with headers not being installed properly... basicly the installhdrs target was not being propagated to the subdirs...
also fix rpcsvc's Makefile to have a installhdrs target to install the headers..
|
28402 |
19-Aug-1997 |
peter |
Prototypes for getsid() and getpgid(). Also, prefix type names in setpgrp() prototype with _ as per style(9).
|
28356 |
18-Aug-1997 |
peter |
split beforeinstall hook up so that the header install stuff is reachable without risking invoking ${SHARED}.
|
28271 |
16-Aug-1997 |
steve |
Make this compile with the -traditional cc flag.
PR: misc/2189 Submitted by: Lars Koeller <Lars_Koeller@odie.physik2.uni-rostock.de>
|
28057 |
11-Aug-1997 |
fenner |
Fix typo: "send" -> "end"
PR: bin/3474 Submitted by: graphix@iastate.edu (Kent Vander Velden)
|
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].
|
27838 |
02-Aug-1997 |
jdp |
Implement dlsym(RTLD_NEXT, symbol).
|
27803 |
31-Jul-1997 |
asami |
Use relative symlinks so they work even when ${DESTDIR} is not empty.
Reviewed by: jkh, bde
|
27369 |
13-Jul-1997 |
peter |
kill the undead
|
26975 |
27-Jun-1997 |
peter |
merge in bind-4.9.6 changes (only effect is __res_send #define reverted)
|
26932 |
25-Jun-1997 |
msmith |
Update histedit.h to match the new libedit. Obtained from: NetBSD
|
26924 |
25-Jun-1997 |
msmith |
Add stringlist functions from NetBSD. (required for the new ftp(1) Obtained from: NetBSD
|
26636 |
14-Jun-1997 |
ache |
Move machine/types.h to non-standard section Change order of arc4* functions Pointed-by: bde
|
26630 |
14-Jun-1997 |
ache |
Add arc4random family declaration
|
26624 |
14-Jun-1997 |
ache |
Instead of copying fallback code over and over in each program, implement (better) falback code inside srandomdev() itself. Change return type from int to void (binary compatibility surprisely achieved). Userland code will be changed soon.
|
26457 |
05-Jun-1997 |
jkh |
Go to SHARED=copies by default. Agreed-upon by: lots-o-folks.
|
26248 |
28-May-1997 |
wpaul |
Undo small change I accidentally left in while testing (files were installed with wrong ownerships).
Pointed out by: bde
|
26212 |
28-May-1997 |
wpaul |
Add new files in include/rpc.
|
26211 |
28-May-1997 |
wpaul |
Resolve conflicts.
|
26210 |
28-May-1997 |
wpaul |
This commit was generated by cvs2svn to compensate for changes in r26209, which included commits to RCS files with non-trunk default branches.
|
26208 |
28-May-1997 |
wpaul |
Resolve conflicts.
|
26207 |
28-May-1997 |
wpaul |
This commit was generated by cvs2svn to compensate for changes in r26206, which included commits to RCS files with non-trunk default branches.
|
25984 |
21-May-1997 |
jdp |
Fill out the ELF header files to make them more or less complete. Fix a macro name that was misspelled both in brandelf.c and imgact_elf.h.
|
25885 |
18-May-1997 |
peter |
fix missing close comment in login_cap additions
|
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).
|
25770 |
13-May-1997 |
peter |
remove stray forward declaration for struct timespec
Pointed out by: bde
|
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>
|
25735 |
12-May-1997 |
peter |
prototype clock_settime(), clock_gettime(), clock_getres(), nanosleep().
|
25734 |
12-May-1997 |
peter |
Build osreldate.h at build time rather than install time. This fixes a breakage with 'make reinstall' on a read-only source tree.
|
25659 |
10-May-1997 |
davidn |
Removed login_cap.h, now moved to src/lib/libutil.
|
25551 |
07-May-1997 |
eivind |
Back out all of yesterdays include file changes.
|
25541 |
07-May-1997 |
eivind |
Back out part of yesterdays changes. They were obviously not tested well enough :-( (With backout on this file, libc compiles. 'make world' isn't finished yet.)
Pointed out by: Oliver Roberts
|
25520 |
07-May-1997 |
eivind |
Make a lot of include-files self-contained. I excluded the patches changing int's to gid_t and uid_t - should I commit these, too?
Closes PR misc/2625.
Submitted by: Julian Assange <proff@iq.org>
|
25519 |
07-May-1997 |
bde |
Fixed missing __P() to complete the K&R support in this header.
|
25134 |
25-Apr-1997 |
asami |
Don't try to install f2c'h now that it's installed from /usr/src/usr.bin/f2c. :)
|
25125 |
24-Apr-1997 |
jmz |
This file is a duplicate of src/usr.bin/f2c/f2c.h Reviewed by: bde
|
25000 |
18-Apr-1997 |
dfr |
Add protocol definitions for NFSv3. Use -DWANT_NFS3 with rpcgen to get the new protocol.
Obtained from: rfc1813
|
24923 |
14-Apr-1997 |
bde |
Fixed spelling of isnetworktty.
Fixed stray whitespace.
|
24898 |
13-Apr-1997 |
bde |
Fixed some style bugs.
|
24897 |
13-Apr-1997 |
bde |
Removed nonstandard #include of <sys/types.h>.
Use _BSD_OFF_T_ instead of off_t so that we're still self-sufficent.
Copied the ftruncate/lseek()/mmap()/truncate() redeclaration hacks from <sys/types.h> so that things depending on them don't break.
|
24896 |
13-Apr-1997 |
bde |
#ifdef'ed the declaration of lseek() so that -Wredundant-decls doesn't cause noise.
Duplicated the lseek() redeclaration hack for all functions involving off_t's (ftruncate(), mmap() and truncate()) to help broken programs work.
|
24891 |
13-Apr-1997 |
davidn |
Add bitflags TTY_NETWORK/TTY_DIALUP and interface functions which make use of them.
|
24868 |
13-Apr-1997 |
paul |
This file is deprecated not "obsoleted".
|
24846 |
13-Apr-1997 |
jmz |
Upgrade to the 1997/02/19 version.
|
24650 |
05-Apr-1997 |
peter |
Declare issetugid()
Submitted by: Dmitrij Tejblum <dima@tejblum.dnttm.rssi.ru>, PR#3200
|
24444 |
31-Mar-1997 |
peter |
Declare lchown()..
|
24152 |
23-Mar-1997 |
ache |
Add srandomdev() prototype
|
23889 |
14-Mar-1997 |
peter |
Put text after #endif in a comment (it's illegal otherwise)
|
23657 |
11-Mar-1997 |
peter |
Merge Lite2 changes - move getopt etc declarations from stdlib.h to unistd.h
|
23655 |
11-Mar-1997 |
peter |
Merge Lite2 changes (Just version number)
|
23654 |
11-Mar-1997 |
peter |
Merge Lite2 changes onto mainline: - declare opendir2(), which is used to control how readdir() handles whiteouts etc.
|
23651 |
11-Mar-1997 |
peter |
This commit was generated by cvs2svn to compensate for changes in r23650, which included commits to RCS files with non-trunk default branches.
|
23566 |
09-Mar-1997 |
bde |
Don't use a dot in the chown command. In fact, don't use a chown command. Use mtree instead of mkdir+chown+chmod to build the subdirectory hierachy. The corresponding mtree command in src/etc/Makefile can't be relied on because the hierachy gets blown away in the default SHARED=symlinks case.
|
23364 |
04-Mar-1997 |
alex |
Comment out _POSIX_THREAD_PRIORITY_SCHEDULING since it's not supported at this time.
Reviewed by: John Birrell <jb@cimlogic.com.au>
|
23263 |
02-Mar-1997 |
bde |
Install headers for isofs/cd9660 and msdosfs. The mount utilities need them now that <sys/mount.h> no longer declares filesytem-specific mount args structs.
Renamed some macros to be less ufs-centric.
Fixed order of mkdirs. The order has been broken since the backwards `.for' loop bug was fixed in `make' on 1996/09/21.
|
23260 |
02-Mar-1997 |
ache |
increase L_cuserid because UT_NAMESIZE increased
|
23037 |
23-Feb-1997 |
peter |
Revert $FreeBSD$ to $Id$
|
22734 |
15-Feb-1997 |
davidn |
Allow commonly-used "insecure" as a valid keyword in /etc/ttys. This prevents keywords after "insecure" occurs being errnoeously parsed as comments.
|
22315 |
05-Feb-1997 |
julian |
Submitted by: John Birrell uthreads update from the author.
|
22051 |
28-Jan-1997 |
mpp |
Change to comment for fs_passno to reflect that it applies to fsck and not dump.
|
21760 |
16-Jan-1997 |
ache |
Change XOPEN constants to match FreeBSD reality and add some comments to describe them
|
21759 |
16-Jan-1997 |
ache |
Activate _POSIX_* stuff if !_ANSI_SOURCE Add _XOPEN constants set, needed mainly to sense position arguments in printf (vi cares at this moment) Obtained from: NetBSD
|
21673 |
14-Jan-1997 |
jkh |
Make the long-awaited change from $Id$ to $FreeBSD$
This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so long.
Boy, I'm glad we're not using sup anymore. This update would have been insane otherwise.
|
21447 |
09-Jan-1997 |
davidn |
Internationalise "authorize".
|
21396 |
07-Jan-1997 |
davidn |
Typo fix.
|
21346 |
05-Jan-1997 |
davidn |
Move typedef for rlim_t into sys/types.h (as per NetBSD).
|
21306 |
04-Jan-1997 |
sos |
Add the forgotten login_cap.h
|
21286 |
04-Jan-1997 |
davidn |
Header for login class capabilities handling.
|
21229 |
02-Jan-1997 |
ache |
Oops, remove FNM_NOCASE alias: really I can't remember any system with this define, it was ftpd-inspired.
|
21227 |
02-Jan-1997 |
ache |
Add FNM_NOCASE and FNM_IGNORECASE as synonyms to FNM_CASEFOLD for better compatibility with other systems
|
21189 |
02-Jan-1997 |
davidn |
Added group= facility to /etc/ttys for tty grouping for more more manageable and convenient referencing by login.conf (login class database) and (e.g.) login.access.
This is the first of a group of commits which implements the login class capabilities database.
|
21126 |
31-Dec-1996 |
peter |
Missed prototype for svc_getreqset2()
|
21060 |
30-Dec-1996 |
peter |
- Prototypes, including pointers to functions - C++ safe
|
21059 |
30-Dec-1996 |
peter |
First commit of a series of cleanups for the libc rpc code which has been suffering a bad case neglect for the last few years.
- Add full prototypes, including to function pointers. - Make the wire protocols 64-bit type safe, eg: 32 bit quantities are int32_t, not long. The orginal rpc code was implemented when an int could be 16 bits.
Obtained from: a diff of FreeBSD vs. OpenBSD/NetBSD rpc code.
|
21056 |
30-Dec-1996 |
peter |
Update 4.9.4-P1 -> 4.9.5-P1 Included here are definitions for the DNSSEC key management stuff.
|
21055 |
30-Dec-1996 |
peter |
Update the resolver definitions from bind-4.9.4-P1 to 4.9.5-P1 level. (More commits to come)
|
21044 |
30-Dec-1996 |
jkh |
Geeze, I'm really off-target on my Makefile hacking tonite. Guess I'll go to bed. :-) Revert this change which would have broken the ${DESTDIR} relative link when chrooted.
Pointed-Out-To-My-Embarassment-By: bde
|
21038 |
30-Dec-1996 |
jkh |
Add some missing ${DESTDIR}s here.
|
20600 |
17-Dec-1996 |
imp |
string.h defines nonstandard routines when _POSIX_SOURCE is defined. It has been fixed to not do that.
Submitted by: Jake Hamby <jehamby@lightside.com> Closes PR: 1954
|
20154 |
05-Dec-1996 |
ache |
Fix compiler warning: /* inside comment
2.2 candidate
|
20137 |
04-Dec-1996 |
jkh |
Bump maximum username length to 16 characters. This brings us into line with BSD/OS and Linux's username limits, making transitioning from either operating system a lot easier than it is now. I'm currently running with this change on my system, as are several others, and have experienced no ill effects.
This is not for 2.2! This needs to get shaken out longer term in 3.0.
Previously-approved-by: davidg
|
20003 |
28-Nov-1996 |
phk |
Update to more current reality.
Reviewed by: phk Submitted by: Robin Carey <robin@mailgate.dtc.rankxerox.co.uk>
|
19886 |
19-Nov-1996 |
wollman |
Matching routed.h to go along with latest routed.
|
19639 |
11-Nov-1996 |
hsu |
Change prototypes for gmtime_r() and localtime_r() in accordance with IEEE pthreads specification.
|
19638 |
11-Nov-1996 |
hsu |
Prototype pthread_mutexattr_getkind_np() and pthread_mutexattr_setkind_np().
|
19637 |
11-Nov-1996 |
hsu |
Moved pthread_mutexattr_default inside #ifndef PTHREAD_KERNEL now that we use it in the uthreads implementation. Moved enum pthread_mutextype here from libc_r/uthread/pthread_private.h. Change prototype for pthread_getspecific().
|
19289 |
31-Oct-1996 |
ache |
Remove collate_range_cmp
|
19211 |
27-Oct-1996 |
wosch |
improve comments for UT_NAMESIZE
|
19144 |
24-Oct-1996 |
bde |
Fixed tabs and punctuation to match nearby (and KNF) style. Sigh.
|
19133 |
23-Oct-1996 |
ache |
GNU-style changes: 1) Rename FNM_ICASE to FNM_CASEFOLD 2) Add FNM_LEADING_DIR
|
19059 |
20-Oct-1996 |
wosch |
add flag FNM_ICASE for case insensitve search
Reviewed by: ache
|
18999 |
17-Oct-1996 |
jkh |
Add back netns
|
18801 |
08-Oct-1996 |
scrappy |
Fixed the wrong include file for a "prototype mismatch" error between dlfcn.h and link.h
|
18799 |
07-Oct-1996 |
scrappy |
dlfcn.h and link.h have conflicting declarations for dlopen/dlsym, with dlfcn.h declaring them as:
void *dlopen __P((const char *, int)); void *dlsym __P((void *, const char *));
while link.h declared them as
extern void *dlopen __P((char *, int)); extern void *dlsym __P((void *, char *));
Fix link.h to match dlfcn.h
|
18591 |
01-Oct-1996 |
peter |
Add support for storing a -R path in ld in the section dispatch table, support LD_HINTS_VERSION_2 that has the ldconfig pathname stored in the ld.so.hints file (ie: a new library can be installed and used without needing to run ldconfig -m first)
Reviewed by: nate, jdp Obtained from: NetBSD (mostly)
|
18589 |
01-Oct-1996 |
peter |
Add the linker set stab types: N_SETA N_SETT N_SETD N_SETB N_SETV
|
18420 |
20-Sep-1996 |
bde |
Fixed CLEANFILES. osreldate was missing. Cleaned up LDIRS line.
|
18286 |
14-Sep-1996 |
bde |
Don't use __dead or __pure in user code. They were obfuscations for gcc >= 2.5 and no-ops for gcc >= 2.6. Converted to use __dead2 or __pure2 where it wasn't already done, except in math.h where use of __pure was mostly wrong.
|
17992 |
01-Sep-1996 |
adam |
install rpc header files
|
17963 |
30-Aug-1996 |
peter |
'make install' is not supposed to touch anything.
|
17960 |
30-Aug-1996 |
peter |
missed these parts of Bruce's changes last time..
Submitted by: bde (again :-)
|
17954 |
30-Aug-1996 |
peter |
echo -> ${ECHO} do the rm -rf and ln -s in two seperate commands to allow a fork/exec without a "sh -c" in the middle.
Submitted by: bde
|
17953 |
30-Aug-1996 |
peter |
Some bmake magic to clean up the install more. fix another missed -c typo of mine. clean the rpcgen implicit rule more
Submitted by: bde
|
17902 |
29-Aug-1996 |
peter |
Hand merge in the bind-4.9.4-P1 resolver updates.
|
17901 |
29-Aug-1996 |
peter |
replace cmp -s || install with ${INSTALL} -C, and @for with .for
|
17900 |
29-Aug-1996 |
peter |
Clean up include Makefile: - use .for loops instead of shell for loops. This means we can be shown what is happening while it's going, rather than some pacifier "echo" statement. - use "${INSTALL} -C", nuke the "cmp -s" hack - for "copies" mode, the include files are no longer touched each time the world is built. (ie: no rm -rf. symlinks are removed, mtree builds the new dirs or confirms the existing ones) - osreldate.h is build in the local dir and conditionally installed, rather than built in /usr/include and either renamed or deleted.
|
17844 |
27-Aug-1996 |
wollman |
New version of routed.h to match new version of routed.
|
17706 |
20-Aug-1996 |
julian |
Submitted by: John Birrell <cimaxp1!jb@werple.net.au>
Here are the diffs for libc_r to get it one step closer to P1003.1c These make most of the thread/mutex/condvar structures opaque to the user. There are three functions which have been renamed with _np suffixes because they are extensions to P1003.1c (I did them for JAVA, which needs to suspend/resume threads and also start threads suspended).
I've created a new header (pthread_np.h) for the non-POSIX stuff.
The egrep tags stuff in /usr/src/lib/libc_r/Makefile that I uncommented doesn't work. I think its best to delete it. I don't think libc_r needs tags anyway, 'cause most of the source is in libc which does have tags.
also:
Here's the first batch of man pages for the thread functions. The diff to /usr/src/lib/libc_r/Makefile removes some stuff that was inherited from /usr/src/lib/libc/Makefile that should only be done with libc.
also:
I should have sent this diff with the pthread(3) man page. It allows people to type
make -DWANT_LIBC_R world
to get libc_r built with the rest of the world. I put this in the pthread(3) man page. The default is still not to build libc_r.
also: The diff attached adds a pthread(3) man page to /usr/src/share/man/man3. The idea is that without libc_r installed, this man page will give people enough info to know that they have to build libc_r.
|
17577 |
13-Aug-1996 |
ache |
#if !ANSI !POSIX newly added collate_range_cmp function
|
17550 |
12-Aug-1996 |
ache |
There is so many places where range comparation (using collate) needed (much more than I think initially), so I forced to add new user-visible non-standard function to libc.
|
17432 |
04-Aug-1996 |
wosch |
Create FreeBSD copyright (c comment) for OS version
|
17253 |
22-Jul-1996 |
wollman |
New routed.h that goes with the new routed.
|
17192 |
17-Jul-1996 |
bde |
Fixed new and old standards conformance bugs. The non-POSIX confstr() was in the POSIX section for a log time. The non-POSIX getgrouplist() and setgroups() were recently added to the POSIX section although setgroups() was already in the non-POSIX section.
|
17144 |
12-Jul-1996 |
jkh |
General -Wall warning cleanup, part I. Submitted-By: Kent Vander Velden <graphix@iastate.edu>
|
17038 |
09-Jul-1996 |
ache |
Add netatalk symlink, ifconfig not compiled in other case
|
16957 |
04-Jul-1996 |
wpaul |
There are a few small additions to the protocol to make it easier to use in mixed environments:
- Add three new members to the request structure:
- a filename specification - a database type specification - a system byte prder specification
These allow the client to ask the server for a particular type of database (Berkeley DB hash/btree/recno, GNU GDBM, dbm, ndbm, etc...) and get back a meaningful error if the server doesn't support it. The byte order spec is needed if the database type is byte order sensntive. You don't, for example, want to read an ndbm database from a big endian machine on a little endian machine (the ndbm code will explode). The filename spec lets the client handle things like ndbm which uses two seperate files per database (foo.dir and foo.pag). The client can ask for each half, one at a time.
- Add a list of database types and byte order values. Each list has a wildcard 'ANY' entry which lets the client ask for whatever the server supports. (XFR_ENDIAN_ANY is useful with the Berkeley DB hash method for instance, since it isn't byte order sensitive.)
- Add two newserver failure codes: XFR_DB_TYPE_MISMATCH and XFR_DB_ENDIAN_MISMATCH. The server uses these to tell the client that it doesn't support the requested type/byte order.
These changes were made at the suggestion of Thorsten Kukuk, the current maintainer of the Linux ypserv distribution. This allows Linux and FreeBSD NIS servers to use the same ypxfrd protocol and avoid accidentally exchanging incompatible map files.
|
16920 |
02-Jul-1996 |
wosch |
remove zopen, zopen is not part of libc.
|
16810 |
28-Jun-1996 |
smpatel |
Added missing prototype for sigaltstack()
|
16396 |
15-Jun-1996 |
wollman |
Add `netkey' to list of kernel directories to include in /usr/include.
|
16352 |
13-Jun-1996 |
wollman |
Add an independent implementation of addr2ascii(3) and ascii2addr(3) following the API of the INRIA IPv6 implementation.
|
16123 |
05-Jun-1996 |
wpaul |
Now that Peter has been nice enough to bail me out of my last little mishap, it's time to have the Makefile install ypxfrd.x and ypxfrd.h.
|
16120 |
05-Jun-1996 |
wpaul |
This commit was generated by cvs2svn to compensate for changes in r16119, which included commits to RCS files with non-trunk default branches.
|
16113 |
04-Jun-1996 |
phk |
Install pccard includes.
|
16009 |
30-May-1996 |
wollman |
Protocol definitions for RIPv2.
Obtained from: Vernon Schryver <vjs@mica.denver.sgi.com>
|
15931 |
27-May-1996 |
peter |
Add an implementation of the gnu-ish asprintf() and vasprintf(). They are not based on gpl'ed code, just prototype and usage. I'm not 100% certain they behave the same while the system is in trouble (eg: malloc() failing) but in those circumstances all bets would be off anyway.
These routines work like sprintf() and vsprintf(), except that instead of using a fixed buffer, they allocate memory and return it to the user and it's the user's responsibility to free() it. They have allocate as much memory as they need (and can get), so the size of strings it can deal with is limited only by the amount of memory it can malloc() on your behalf.
There are a few gpl'ed programs starting to use this interface, and it's becoming more common with the scares about security risks with sprintf(). I dont like the look of the code that the various programs (including cvs, gdb, libg++, etc) provide if configure can't find it on the system.
It should be possible to modify the stdio core code to provide this interface more efficiently, I was more worried about having something that worked and was secure. :-) (I noticed that there was once intended to be a smprintf() routine when our stdio was written for 4.4BSD, but it looks pretty stillborn, and it's intended interface is not clear). Since Linux and gnu libc have this interface, it seemed silly to bring yet another one onto the scene.
|
15485 |
01-May-1996 |
bde |
Made this work with the documented prerequisite #includes (none).
|
15483 |
01-May-1996 |
bde |
Fixed longstanding namespace convolution involving rune_t vs wchar_t. If _ANSI_SOURCE or _POSIX_SOURCE is defined, then <ctype.h> had to be included before <stddef.h> or <stdlib.h> to get rune_t declared. Now rune_t is declared perfectly bogusly in all cases when <ctype.h> is included.
This change breaks similar (but more convoluted) convolutions in the stddef.h in gcc distributions. Ports of gcc should avoid using the gcc headers.
|
15287 |
18-Apr-1996 |
ache |
Fix sgetrune/sputrune arg type: was unsigned int instead of size_t
|
15267 |
16-Apr-1996 |
wpaul |
NIS cleanups and fixes, the next generation.
getnetgrent.c:
- Catch one bogon that snuck by: in _listmatch(), check for '\0' rather than '\n'; strings returned from yp_match() are terminated with a nul, not a newline.
getpwent.c:
- Rip out all of the +inclusion/-exclusion stuff from before and replace it with something a little less grotty. The main problem with the old mechanism was that it wasted many cycles processing NIS entries even after it already knew they were to be exlcuded (or not included, depending on your pointof view). The highlights of these changes include:
o Uses an in-memory hash database table to keep track of all the -@netgroup, -user, and -@group exclusions.
o Tries harder to duplicate the behavior normally obtained when using NIS inclusions/exclusions on a flat /etc/passwd file (meaning things come out in much the same order).
o Uses seperate methods for handling getpwent() and getpwnam()/getpwuid() operations instead of trying to do everything with one general function, which didn't work as well as I thought it would.
o Uses both getnetgrent() and innetgr() to try to save time where possible.
o Use only one special token in the local password database (_PW_KEYYPBYNUM) instead of seperate tokens to mark + and - entries (and stop using the counter tokens too). If this new token doesn't exist, the code will make due with the standard _PW_KEYBYNUM token in order to support older databases that won't have the new token in them.
All this is an attempt to make this stuff work better in environments with large NIS passwd databases.
|
14813 |
25-Mar-1996 |
ache |
Slightly simplify inlined functions
|
14791 |
24-Mar-1996 |
paul |
Fix incorrect parameter types for ftell and fgets.
|
14352 |
03-Mar-1996 |
jkh |
Don't reference ndbm(3) manpage. Everything is covered by db(3).
|
14288 |
27-Feb-1996 |
pst |
Fix conflicts and merge into mainline (this may get cvs admined out and redone properly by Peter later)
|
14261 |
26-Feb-1996 |
wpaul |
Add structure and procedure definitions for NIS v1. (This information was reverse-engineered using the <rpcsvc/ypv1_prot.h> file supplied with SunOS 4.1.3 as a guide.)
|
14223 |
23-Feb-1996 |
peter |
Add prototype for rfork().
|
14095 |
14-Feb-1996 |
wollman |
Don't install netns, it doesn't exist any more.
|
13941 |
06-Feb-1996 |
wollman |
Don't install netccitt and netiso, they are going away.
|
13778 |
31-Jan-1996 |
hsu |
Remove unnecessary typedef. All inclusions of <rpc/auth.h> in the source tree are preceded by an inclusion of <rpc/types.h>, so the 32-bit fixed sized type u_int32_t is already available to us.
|
13771 |
30-Jan-1996 |
mpp |
Fix a bunch of spelling errors in the comment fields of a bunch of system include files.
|
13589 |
23-Jan-1996 |
mpp |
Add a missing "chmod 755 /usr/include/ufs" when copies of the include files are installed instead of symlinks.
|
13547 |
22-Jan-1996 |
julian |
Submitted by: john birrel
Obtained from: uthread package
thrreads definitions
|
13545 |
22-Jan-1996 |
julian |
Reviewed by: julian and (hsu?) Submitted by: John Birrel(L?)
changes for threadsafe operations
|
13297 |
07-Jan-1996 |
peter |
Update resolver include files to bind-4.9.3-rel level
|
13123 |
30-Dec-1995 |
peter |
This commit was generated by cvs2svn to compensate for changes in r13122, which included commits to RCS files with non-trunk default branches.
|
13122 |
30-Dec-1995 |
peter |
recording cvs-1.6 file death
|
12957 |
22-Dec-1995 |
wpaul |
*groan* Fix yet _ANOTHER_ discrepancy between the NIS protocol definition and real life. YPPUSHPROC_XFRRESP is supposed to return void and take an argument of type yppushresp_xfr, not the other way around as yp.x seems to imply. (I spent two hours today staring intensely at my prototype ypxfr code and scratching my head before I finally figured this out.)
|
12690 |
09-Dec-1995 |
wpaul |
*sigh* Yet another bogosity: the YPPROC_FIRST procedure is listed as taking an argument of type ypresp_key. This is incorrect: it should be ypresp_nokey. (yp_first() is supposed to return the first key in a given map; the server doesn't need any client-specified key to handle such a request.)
|
12677 |
08-Dec-1995 |
wpaul |
"What? He's modifying the NIS protocol definition!?"
No, not really. There are just a couple of long-standing bogosities here that I feel compelled to fix. :)
There are two small changes here:
1) yp.x actually contains _three_ protocol definitions: YPPROG (standard NIS client/server procedures), YPPUSH_XFRRESPPROG (callback handler for the YPPROC_XFR service, aka ypxfr/yppush) and YPBINDPROG (for ypbind, ypset & friends). The problem is that when you run yp.x through rpcgen(1), it generates client and server stubs with hooks for all three services. This makes it impossible to actually use the rpcgen-erated code in a program that only deals with _one_ of these services (ypserv, ypbind, etc...) without manually removing the unneeded stubs (either by hand editing or by committing unspeakable horrors with sed). This defeats the whole purpose of using rpcgen and is generally annoying.
What I've done is to insert a few #ifndefs and #endifs to allow a programmer to selectively blot out those functions that aren't needed for a particular program. For instance, if you do 'rpcgen -DYPSERV_ONLY', you'll get only the necessary client/server stubs to implement the standard yp client and server functions. If you do 'rpcgen -DYPBIND_ONLY', you get only what you need for ypbind. If you don't #define anything, you get the whole mess, just like before, so existing programs won't notice the difference. (Note that the -D flag is not supported by our existing crufty version of rpcgen, but I intend to update it soon.)
2) The definition for the ypresp_key_val structure is actually incorrect with respect to reality: the key and val members are specified in the wrong order. It should be val/key rather than key/val. For whatever the reason, Sun's actual NIS implementation contradicts the protocol definition in this case. Again, accounting for this bogosity here is cleaner and easier than mangling the output from rpcgen.
|
12241 |
12-Nov-1995 |
markm |
Removed reference to missing mp.h in comment. We have GNU MP now.
|
12028 |
03-Nov-1995 |
ache |
Fix isspecial/isphonogram, they was swapped Remove EOF hack, now it is recognized per ANSI/POSIX Add upper bounds check Handle all negative chars inside locale functions
|
11839 |
27-Oct-1995 |
julian |
Submitted by: john hay add a link in /usr/include to /sys/netipx
|
10975 |
23-Sep-1995 |
ache |
Due conflict to some obsoleted applications (dump/restore) rename _PATH_LOCK to _PATH_UUCPLOCK Pointed-by: bde
|
10923 |
20-Sep-1995 |
ache |
Add _PATH_LOCK: /var/spool/lock/ Suggested-by: bde
|
10132 |
20-Aug-1995 |
peter |
Update the resolver include files to bind-4.9.3-beta24 level (from beta9p1) Note: this was done by selective patching from diffs by hand, in order to not conflict with the 4.4BSD base code. Beta9 was done the same way.
Obtained from: Paul Vixie <paul@vix.com>
|
10071 |
15-Aug-1995 |
joerg |
Install the headers and sample files with 444 perms (as opposed to 555).
Submitted by: graichen@sirius.physik.fu-berlin.de (Thomas Graichen)
|
9970 |
06-Aug-1995 |
bde |
Change `install' to `${INSTALL}' so that default install flags can be specified in the top level Makefiles.
Previously I missed dozens of Makefiles that skip the install after using `cmp -s' to decide that the install isn't necessary.
|
9934 |
05-Aug-1995 |
wollman |
Don't install bogus tzfile.h. In fact, don't install any tzfile.h.
|
9512 |
13-Jul-1995 |
rgrimes |
Remove NOOBJ, we now need it.
Remove JUST_TELL_ME hack, let the newvers.sh output fall into the obj dir, and add CLEANFILES= to clean up after it.
|
9511 |
13-Jul-1995 |
rgrimes |
Add a sprinkling of ${.CURDIR} to some paths so that this works in the presence of an obj dir (though NOOBJ is set now, that shall change in the near future.)
|
9375 |
29-Jun-1995 |
wollman |
Fix a bug I didn't manage to trigger until after committing previous fix to header installation.
|
9374 |
29-Jun-1995 |
wollman |
Make this include installation conform to the standard of all the rest:
- Don't do mkdir/chown/chmod - Do `cmp -s' before attempting to install a header
This should fix the obnoxious problem of yp programs wanting to rebuild every time.
|
9343 |
28-Jun-1995 |
bde |
Fix standards conformance bugs in <signal.h>:
include/signal.h: There was massive namespace pollution from including <sys/types.h>. POSIX functions were declared even when _ANSI_SOURCE is defined.
sys.sys/signal.h: NSIG was declared even if _ANSI_SOURCE or _POSIX_SOURCE is defined. sig_atomic_t wasn't declared if _POSIX_SOURCE is defined. Declare a typedef for signal handling functions and use it to unobfuscate declarations and to avoid half-baked function types that cause unwanted compiler warnings at certain warning levels. Fix confusing comment about SA_RESTART.
sys/i386/include/signal.h: This has to be included to get the declaration of sig_atomic_t even when _ANSI_SOURCE is defined, so be more careful about polluting the ANSI namespace.
Uniformize idempotency ifdefs.
|
9336 |
27-Jun-1995 |
dfr |
Changes to support version 3 of the NFS protocol. The version 2 support has been tested (client+server) against FreeBSD-2.0, IRIX 5.3 and FreeBSD-current (using a loopback mount). The version 2 support is stable AFAIK. The version 3 support has been tested with a loopback mount and minimally against an IRIX 5.3 server. It needs more testing and may have problems. I have patched amd to support the new variable length filehandles although it will still only use version 2 of the protocol.
Before booting a kernel with these changes, nfs clients will need to at least build and install /usr/sbin/mount_nfs. Servers will need to build and install /usr/sbin/mountd.
NFS diskless support is untested.
Obtained from: Rick Macklem <rick@snowhite.cis.uoguelph.ca>
|
9335 |
27-Jun-1995 |
dfr |
Change ld.so to correctly load dependant libraries for dlopen and unload them on dlclose. Also correctly call constructors and destructors for libraries linked with /usr/lib/c++rt0.o. Change interpretation of dlopen manpage to call _init() rather than init() for dlopened objects. Change c++rt0.o to avoid using atexit to call destructors, allowing dlclose to call destructors when an object is unloaded. Change interface between crt0 and ld.so to allow crt0 to call a function on exit to call destructors for shared libraries explicitly.
These changes are backwards compatible. Old binaries will work with the new ld.so and new binaries will work with the old ld.so. A version number has been introduced in the crt0-ld.so interface to allow for future changes.
Reviewed by: GAWollman, Craig Struble <cstruble@singularity.bevc.blacksburg.va.us>
|
8858 |
30-May-1995 |
rgrimes |
Remove trailing whitespace.
|
7983 |
21-Apr-1995 |
wpaul |
Add prototype for ypbinderr_string().
|
7865 |
15-Apr-1995 |
bde |
Don't declare rune_t, putenv() or setenv() if _POSIX_SOURCE is declared. Previously they were only guarded by `#ifndef _ANSI_SOURCE'. They are neither ANSI nor POSIX nor std and should never have been declared here.
Declare functions like abs() as having attribute `__pure2'. Declaring them as having type `__pure' has been a no-op for some time.
Delete obsolete comment about stub locale functions.
Use consistent formatting for the rand48 functions. These and about 30 other functions should never have been declared here either.
|
7803 |
13-Apr-1995 |
wollman |
Add err_set_file() and err_set_exit() functions to make it possible for programs which use err(3) to work nicely in a wider range of environments (e.g., dialog).
|
7655 |
07-Apr-1995 |
bde |
Reviewed by: ache and wollman (long ago)
Fix numerous ANSI conformance bugs and other nits.
ctype.h: o There were no prototypes behind the macros (conformance bug). o isascii() didn't have enough parentheses (plain bug). o tolower() and toupper were always static inline (conformance bug? You could undef them and take their address, but this gave different addresses in different modules. You couldn't undef them and declare them (correctly) again). <stdio.h>'s treatment of putc() shows one way to handle this problem, but it only works because the putc() macro is allowed to reevaluate its args. I used a hack controlled by _EXTERNALIZE_CTYPE_INLINES_ to get <ctype.h> to generate the code (the previous hack involving _ANSI_LIBRARY_ goes away). This has the advantage that the core of the functions is only written down once and the disadvantage that another layer of functions is required. The extra layer goes away if inline functions are used, leaving only the problem of understanding why there are functions named toupper(), __toupper and ___toupper() as well as a macro named toupper. o Nothing seems to define _USE_CTYPE_LIBRARY_. Eliminate it o Let the user set _USE_CTYPE_INLINE_ and _DONT_USE_CTYPE_INLINE_ for full control over inlining. o The args for the inline functions didn't have enough underscores (conformance bug). o The formatting and ordering was inconsistent (style bug). o TODO: fix conformance bugs brought by including <runetype.h>.
|
7654 |
07-Apr-1995 |
ache |
Move inline args out of user namespace. Obtained from: 1.x
|
7495 |
30-Mar-1995 |
jkh |
Add a necessary include file for the catgets* routines. Obtained from: NetBSD
|
7387 |
26-Mar-1995 |
jkh |
add strhash.h for libc's new string hashing function.
|
7256 |
23-Mar-1995 |
wpaul |
Add a couple of extra #defines for special keys to be embedded in the password databases:
#define _PW_KEYPLUSBYNUM '5' /* special +@netgroup entries */ #define _PW_KEYMINUSBYNUM '6' /* special -@netgroup entries */ #define _PW_KEYPLUSCNT '7' /* number of +@netgroup entries */ #define _PW_KEYMINUSCNT '8' /* number of -@netgroup entries */
This is to help getpwent.c in libc build the +@netgroup/-@netgroup caches.
|
7242 |
22-Mar-1995 |
phk |
A little fix related to libm/msun migration. Reviewed by: phk Submitted by: rgrimes
|
7189 |
20-Mar-1995 |
rgrimes |
Comment out declaration of kvm_uread until it can be fixed correctly.
|
7188 |
20-Mar-1995 |
rgrimes |
Change u_long to unsigned long to be consistent.
|
7167 |
19-Mar-1995 |
joerg |
libkvm exports kvm_uread(), so do declare it in the header file. Got apparent by Philippe's -Wall patch for /usr/bin.
|
7152 |
19-Mar-1995 |
phk |
Create osreldate.h from sys/conf/newvers.sh if we an find it. This should take a completely ridiculous reboot out of the "make release" process...
|
7132 |
18-Mar-1995 |
rgrimes |
Correct chmod of /usr/include/rpcsvc to match mtree file.
|
7131 |
18-Mar-1995 |
rgrimes |
Temporarily add mkdir/chown of /usr/include/${LUDIR} so that things are consistent with the mtree file. These and all other mkdir/chown/ chmod calls shall be removed in a future version of this file.
|
7027 |
12-Mar-1995 |
bde |
Forward-declare `struct rpc_err' so that it isn't declared inside a prototype when <rpc/clnt.h> isn't included.
|
6895 |
04-Mar-1995 |
phk |
make sys_nerr __const.
Reviewed by: phk Submitted by: ollivier
|
6887 |
04-Mar-1995 |
nate |
Weak symbol support from NetBSD. This should bring us in sync with the NetBSD ld code except for local changes for dlopen() and friends and the hashing on the minor value of the shlibs. We should be binary compatible now with all their libraries.
Obtained from: NetBSD
|
6747 |
26-Feb-1995 |
wpaul |
The bootparam protocol file needs some extra includes in FreeBSD in order to properly resolve some definitions in <nfs/nfs.h>. I suppose nobody noticed this before because no one's tried to build bootparamd in FreeBSD until now.
(Yes, you read that right: I've got bootparamd ready to go. And rarpd is on the way. :)
|
6685 |
24-Feb-1995 |
phk |
Remove a couple of nested comments.
|
6490 |
16-Feb-1995 |
joerg |
Make the argument list for the (non-Posix) fchown() consistent with Posix chown(), and also with the man page.
Submitted by: Doug Rabson <dfr@render.com>
|
6243 |
08-Feb-1995 |
bde |
Define CLK_TCK right.
|
6232 |
07-Feb-1995 |
jkh |
Support for more Sun compatible dlopen() and friends. Also added proper error handling. Reviewed by: gj Submitted by: Mark Diekhans <markd@grizzly.com>
|
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.
|
6083 |
31-Jan-1995 |
wpaul |
Need _PATH_YP for ypserver stuff.
|
5231 |
26-Dec-1994 |
ache |
Declare useful functions (timelocal() and timegm())
|
5207 |
23-Dec-1994 |
nate |
Document some of the fields used by the new shlib code.
Obtained from: NetBSD
|
4749 |
21-Nov-1994 |
ats |
Reviewed by: Bruce Evans Add prototypes for the *rand48 family here in the moment to get them running again.
|
4549 |
17-Nov-1994 |
ache |
By Bruce and Joerg suggestions and by looking into June version of NetBSD simple #include <stdlib.h> into malloc.h Put #warning that this file is obsoleted ( by Joerg suggestion)
|
4499 |
15-Nov-1994 |
ache |
Add malloc.h for better SYSV/Linux compatibility like most providers (like SUN f.e.) does. malloc.h have comment about its SYSVism
|
4044 |
01-Nov-1994 |
pst |
Clean up install rules
|
4019 |
31-Oct-1994 |
ats |
Delete the clean and cleandir target and let the bsd.prog.mk do the work. Error was with the private clean/cleandir pair, the obj under include/rpcsvc doesn't get cleaned out.
|
3999 |
30-Oct-1994 |
wollman |
Delete `vax' (and `i386' and `hp300' etc.) namespace pollution. Our one supported compiler always defines the double-underscore variant, so always use that.
Noticed by Bruce Evans after a report by John Capo.
|
3908 |
26-Oct-1994 |
ljo |
Install f2c.h for FORTRAN support. Obtained from: netlib.att.com
|
3852 |
25-Oct-1994 |
bde |
Improve error detection and handling: Reduce _JBLEN for the i386 to what is actually used. Encapsulate jmp_buf and sigjmp_buf in structs. Enlarge jmp_buf to the same size as sigjmp_buf. Declare *longjmp as non-returning.
Remove stale comments about sig*jmp not being implemented.
|
3456 |
09-Oct-1994 |
ache |
Remove EOF handling after Bruce explanation. This step returns to 4.4 way to not allow EOF in ctype and now all signed chars (including '\377' which becomes EOF) converted to (unsigned char) properly.
|
3433 |
08-Oct-1994 |
ache |
Handle EOF case in all macros by ANSI standard. Cast all ints < 0 to (unsigned char) to fix common problem with sign extention on signed char.
|
3329 |
03-Oct-1994 |
bde |
Don't install symlink frame.h -> machine/frame.h. <frame.h> is nonstandard and unused.
|
3214 |
29-Sep-1994 |
pst |
Only reinstall osreldate.h if necessary
|
3211 |
29-Sep-1994 |
pst |
skey.h has moved elsewhere
|
3189 |
29-Sep-1994 |
pst |
Define _PATH_FTPUSERS
|
3070 |
25-Sep-1994 |
pst |
get* rework and new bind code
|
3060 |
24-Sep-1994 |
dg |
Woops, include machine/exec.h, too.
|
3059 |
24-Sep-1994 |
dg |
Include imgact_aout.h rather than exec.h
|
3041 |
24-Sep-1994 |
wollman |
Get rid of _PATH_UNIX completely; use getbootfile(3) instead.
DANGER WILL ROBINSON! _PATH_UNIX is currently defined as the literal string "don't use this". I am of two minds about this myself, but wanted to get something into the tree as quickly as possible.
|
2915 |
20-Sep-1994 |
wollman |
Add a new field to the passwd structure, indicating which of the fields have something in them, and which ones were left blank. This will be used for YP support in a few minutes, and for user login classes if anyone cares to implement them.
|
2859 |
18-Sep-1994 |
wollman |
Declare [gs]etdomainname().
|
2809 |
15-Sep-1994 |
bde |
Install osreldate.h with the correct owner, group and mode. It is still created at install time and not compared with the current version, so it can't be installed using install and the timestamp of the target gets clobbered.
|
2573 |
08-Sep-1994 |
bde |
Don't install math.h if WANT_MSUN is defined. lib/msun has its own math.h with many extensions.
|
2572 |
08-Sep-1994 |
bde |
Declare functions that don't return as having attribute __dead2.
|
2552 |
07-Sep-1994 |
gpalmer |
Add defines to allow pwd_mkdb to build databases in a specified directory - removing the need to hardcode /etc into pwd_mkdb
|
2367 |
28-Aug-1994 |
bde |
Use ${ECHO} instead of `echo' so that `make -s' is fairly quiet.
|
2163 |
21-Aug-1994 |
paul |
Changed idempotent strings to reflect directory area. Reviewed by: Submitted by:
|
2162 |
21-Aug-1994 |
paul |
Made them idempotent. Reviewed by: Submitted by:
|
2151 |
20-Aug-1994 |
paul |
Added skey.h to Makefile and reformatted the list a bit. Reviewed by: Submitted by:
|
2148 |
20-Aug-1994 |
paul |
Brought it over form 1.1.5 Reviewed by: Submitted by: Paul Richards
|
2004 |
10-Aug-1994 |
wollman |
Make it easier for programs to figure out what revision of FreeBSD they are running under. Here's how to bootstrap (order is important):
1) Re-compile gcc (just the driver is all you need). 2) Re-compile libc. 3) Re-compile your kernel. Reboot. 4) cd /usr/src/include; make install
You can now detect the compilation environment with the following code:
#if !defined(__FreeBSD__) #define __FreeBSD_version 199401 #elif __FreeBSD__ == 1 #define __FreeBSD_version 199405 #else #include <osreldate.h> #endif
You can determine the run-time environment by calling the new C library function getosreldate(), or by examining the MIB variable kern.osreldate.
For the time being, the release date is defined as 199409, which we have already established as our target.
|
1917 |
07-Aug-1994 |
wollman |
Make sure that rpcsvc headers actually get installed.
|
1903 |
07-Aug-1994 |
wollman |
Use the header files that are compatible with the code just moved over from 1.1.5.
|
1841 |
04-Aug-1994 |
wollman |
histedit.h is now installed from here, not from libedit.
|
1839 |
04-Aug-1994 |
wollman |
Install RPC headers from include, like they always should have been.
|
1833 |
04-Aug-1994 |
wollman |
Added glueo build rpcsvc stuff, and install floatingpoint.h.
|
1832 |
04-Aug-1994 |
wollman |
Moved 1.1.5 RPC service files from 1.1.5. Tese are the correct ones; the ones in /usr/src/lib/librpc/rpcsvc are somewhat bogus and will be deleted.
Submitted by: Original work in 1.1 by J.T. Conklin.
|
1615 |
28-May-1994 |
rgrimes |
Add link.h to list of headers to install.
|
1604 |
28-May-1994 |
rgrimes |
Make comments about what is missing the same as in other makefiles. Remove the commented out stuff about X11 as the system sources should not be doing anything with X11.
|
1570 |
26-May-1994 |
rgrimes |
Update the Makefile to work correctly when copying and/or symlinking /usr/include.
Make comment about mp.h missing and remove it from the list of files. Fix installation of ufs include files as this is now a tree ufs/{ffs,lfs, mfs,ufs}.
Make setting of SHARED optional by makeing it SHARED?=.
Comment out installation of X11 includes since it does not work for XFree86 until we get XFree86 to install as /usr/X11.
Update _PATH_UNIX to be /kernel. Remove /usr/{contrib,old}/bin from _PATH_STDPATH.
|
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
|
1156 |
13-Feb-1994 |
jkh |
This is the new link.h from Paul K. Keeping history is even probably a bad idea considering the old version (but I haven't time for attic surgery - this is just a caution). This is part of (and the major reason for) the new ld changes.
|
697 |
03-Nov-1993 |
paul |
Added link.h for shared libs.
|