| Commit message (Collapse) | Author | Age | Files | Lines | 
| | 
| 
| 
|  | 
Notes:
    svn path=/head/; revision=103060
 | 
| | 
| 
| 
| 
| 
| 
|  | 
restrict qualifiers on their prototypes in <wchar.h>.
Notes:
    svn path=/head/; revision=103059
 | 
| | 
| 
| 
|  | 
Notes:
    svn path=/head/; revision=103057
 | 
| | 
| 
| 
| 
| 
| 
|  | 
by atexit().
Notes:
    svn path=/head/; revision=103036
 | 
| | 
| 
| 
|  | 
Notes:
    svn path=/head/; revision=103012
 | 
| | 
| 
| 
| 
| 
| 
| 
| 
| 
|  | 
instead of on startup.  This fixes binary compatibility of dynamically
linked binaries from before the signal code move.
Suggested by:	wollman (a long time ago)
Notes:
    svn path=/head/; revision=102899
 | 
| | 
| 
| 
| 
| 
| 
| 
| 
| 
|  | 
than 32 bits.  It was trying to figure out things like the day of week
of when time_t is roughly 2^62 etc.  Make a better guess for the starting
point for the binary search that works on both 32 and 64 bit types.  I have
been using this for a while now.
Notes:
    svn path=/head/; revision=102885
 | 
| | 
| 
| 
| 
| 
| 
|  | 
(XSI extension to 1003.1-2001).
Notes:
    svn path=/head/; revision=102879
 | 
| | 
| 
| 
| 
| 
| 
|  | 
Submitted by:	gcc3.2
Notes:
    svn path=/head/; revision=102831
 | 
| | 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
|  | 
bcopy(3) functions are prototyped in <strings.h> and not in
   <string.h> anymore.
 - Add a sentence about that to the respective HISTORY sections.
In the C source files:
 - Include <string.h> or <strings.h> depending on what function
   is to be compiled.
 - Use ANSI-C function definitions.
Notes:
    svn path=/head/; revision=102809
 | 
| | 
| 
| 
|  | 
Notes:
    svn path=/head/; revision=102767
 | 
| | 
| 
| 
| 
| 
| 
|  | 
wcstombs().
Notes:
    svn path=/head/; revision=102762
 | 
| | 
| 
| 
|  | 
Notes:
    svn path=/head/; revision=102750
 | 
| | 
| 
| 
| 
| 
| 
| 
| 
| 
|  | 
NULL, and returns the number of bytes that would be required to store
the result of the conversion without storing anything.
PR:		17694
Notes:
    svn path=/head/; revision=102701
 | 
| | 
| 
| 
|  | 
Notes:
    svn path=/head/; revision=102697
 | 
| | 
| 
| 
|  | 
Notes:
    svn path=/head/; revision=102658
 | 
| | 
| 
| 
| 
| 
| 
| 
|  | 
of the swab(3) function in its manual page to match the
standardization by POSIX.1-2001.
Notes:
    svn path=/head/; revision=102643
 | 
| | 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
|  | 
.In string.h
   with
     .In strings.h
   and adding a sentence to the HISTORY section.
 - Use an ANSI-C function definition.
 - Include <strings.h> instead of <string.h>.
 - Apply style(9): Put a space after return keywords.
Notes:
    svn path=/head/; revision=102642
 | 
| | 
| 
| 
|  | 
Notes:
    svn path=/head/; revision=102641
 | 
| | 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
|  | 
in the ANSI-C format.
 - Change the code a bit to hopefully save some cycles.
   I.e. (simplified) change
     a = b + 1;
     while (--b & 0x7)
	/* ... */
   to
     a = b;
     for (; b & 0x7; b--)
	/* ... */
   and
     while (--a >= 0)
	/* ... */
   to
     for (; a > 0; a--)
	/* ... */
 - Equip two function arguments of swab() with the 'restrict'
   type qualifier in form of the '__restrict' macro.  This is
   specified by POSIX.1-2001.
Notes:
    svn path=/head/; revision=102639
 | 
| | 
| 
| 
| 
| 
| 
|  | 
Optimize chains lookup a bit.
Notes:
    svn path=/head/; revision=102638
 | 
| | 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
|  | 
<strings.h> as the associated header file.
   The prototypes have been moved there from <string.h> because
   POSIX.1-2001 said so.
 - Conditionally include either <strings.h> or <string.h> based
   on whether the [r]index() or str[r]chr() functions are
   compiled, respectively.
 - Style(9) tells us to
    - put a space after the return keyword
    - to check for a NUL character without using the ! operator.
    - use NULL instead of (type *)NULL where the compiler knows
      the type.
   Apply these rules.
 - Rather use ANSI-C function definitions than K&R ones.
 - For index(3), correct second function argument's type; it was
   declared to be a `const char' before and is now an `int'.
Notes:
    svn path=/head/; revision=102637
 | 
| | 
| 
| 
| 
| 
| 
| 
| 
| 
|  | 
is <strings.h> and not <string.h> anymore.
 - Tell the reader about this change in the HISTORY section.
 - Switch to use an ANSI-C function definition.
 - Include <strings.h> instead of <string.h> in the source file.
Notes:
    svn path=/head/; revision=102635
 | 
| | 
| 
| 
| 
| 
| 
| 
| 
| 
| 
|  | 
the prototypes for both functions are now in the <strings.h>
   header, as required by IEEE Std 1003.1-2001.
 - Add one sentence about that in the HISTORY section.
 - Include <strings.h> in the source file to have the prototypes
   in scope when the _ANSI_SOURCE macro is defined.
Notes:
    svn path=/head/; revision=102624
 | 
| | 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
|  | 
#include <stdio.h>
	int main(void)
	{
		printf("%+f\n", -0.0);
		printf("%+f\n", +0.0);
		printf("%+f\n",  0.0);
		return 0;
	}
to output
-0.000000
+0.000000
+0.000000
PR:		bin/41823
Submitted by:	GOTO Kentaro <gotoken@notwork.org>
Liked by:	bde
MFC after:	3 weeks
Notes:
    svn path=/head/; revision=102499
 | 
| | 
| 
| 
|  | 
Notes:
    svn path=/head/; revision=102411
 | 
| | 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
|  | 
to fail needlessly if a reverse DNS lookup of the IP address didn't
come up with a hostname.  As a comment in the code clearly stated,
the "damn hostname" was looked up only for the purpose of netgroup
matching.  But if that lookup failed, the function bailed out
immediately even though in many cases netgroup matching would not
be used.
This change marks the hostname as unknown but continues.  Where
netgroup matching is performed, an unknown hostname is handled
conservatively.  I.e., for "+@netgroup" (accept) entries an unknown
hostname never matches, and for "-@netgroup" (reject) entries an
unknown hostname always matches.
In the lines affected (only), I also fixed a few bogus casts.  There
are others, and in fact this entire file would be a good candidate
for a cleanup sweep.
Reviewed by:	imp (wearing his flourescent yellow Security Team cap)
MFC after:	2 days
Notes:
    svn path=/head/; revision=102369
 | 
| | 
| 
| 
| 
| 
| 
|  | 
<sys/mman.h>.
Notes:
    svn path=/head/; revision=102340
 | 
| | 
| 
| 
| 
| 
| 
| 
| 
|  | 
assumes that the parameters are passed in output registers. Remove
the alloc entirely, but don't depend on the kernel not trashing
our registers.
Notes:
    svn path=/head/; revision=102298
 | 
| | 
| 
| 
| 
| 
| 
| 
| 
| 
|  | 
PR:		bin/27939
Reviewed by:	ru, sheldonh (about a year ago)
Obtained from:	ume (via KAME, I think)
MFC after:	1 month
Notes:
    svn path=/head/; revision=102237
 | 
| | 
| 
| 
| 
| 
| 
|  | 
Persuaded by:	Google
Notes:
    svn path=/head/; revision=102229
 | 
| | 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
|  | 
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
Notes:
    svn path=/head/; revision=102227
 | 
| | 
| 
| 
|  | 
Notes:
    svn path=/head/; revision=102167
 | 
| | 
| 
| 
|  | 
Notes:
    svn path=/head/; revision=102166
 | 
| | 
| 
| 
| 
| 
| 
|  | 
a bit optimized now.
Notes:
    svn path=/head/; revision=102159
 | 
| | 
| 
| 
|  | 
Notes:
    svn path=/head/; revision=102158
 | 
| | 
| 
| 
|  | 
Notes:
    svn path=/head/; revision=102157
 | 
| | 
| 
| 
| 
| 
| 
|  | 
add it here.
Notes:
    svn path=/head/; revision=102147
 | 
| | 
| 
| 
|  | 
Notes:
    svn path=/head/; revision=102139
 | 
| | 
| 
| 
|  | 
Notes:
    svn path=/head/; revision=102137
 | 
| | 
| 
| 
|  | 
Notes:
    svn path=/head/; revision=102134
 | 
| | 
| 
| 
|  | 
Notes:
    svn path=/head/; revision=102124
 | 
| | 
| 
| 
|  | 
Notes:
    svn path=/head/; revision=102117
 | 
| | 
| 
| 
|  | 
Notes:
    svn path=/head/; revision=102096
 | 
| | 
| 
| 
|  | 
Notes:
    svn path=/head/; revision=102085
 | 
| | 
| 
| 
| 
| 
| 
| 
|  | 
manipulation functions mbrlen(), mbrtowc(), mbsinit(), mbsrtowcs(),
wcrtomb(), wcsrtombs().
Notes:
    svn path=/head/; revision=102050
 | 
| | 
| 
| 
|  | 
Notes:
    svn path=/head/; revision=102033
 | 
| | 
| 
| 
|  | 
Notes:
    svn path=/head/; revision=102031
 | 
| | 
| 
| 
|  | 
Notes:
    svn path=/head/; revision=102030
 | 
| | 
| 
| 
|  | 
Notes:
    svn path=/head/; revision=102008
 |