Update to FreeBSD head 2016-08-23

Git mirror commit 9fe7c416e6abb28b1398fd3e5687099846800cfd.
This commit is contained in:
Sebastian Huber
2016-10-07 15:10:20 +02:00
parent 8c0eebac7d
commit c40e45b75e
1040 changed files with 156866 additions and 67039 deletions

View File

@@ -98,10 +98,7 @@ _err(int eval, const char *fmt, ...)
}
void
verr(eval, fmt, ap)
int eval;
const char *fmt;
va_list ap;
verr(int eval, const char *fmt, va_list ap)
{
verrc(eval, errno, fmt, ap);
}
@@ -118,7 +115,7 @@ errc(int eval, int code, const char *fmt, ...)
void
verrc(int eval, int code, const char *fmt, va_list ap)
{
if (err_file == 0)
if (err_file == NULL)
err_set_file((FILE *)0);
fprintf(err_file, "%s: ", _getprogname());
if (fmt != NULL) {
@@ -145,7 +142,7 @@ errx(int eval, const char *fmt, ...)
void
verrx(int eval, const char *fmt, va_list ap)
{
if (err_file == 0)
if (err_file == NULL)
err_set_file((FILE *)0);
fprintf(err_file, "%s: ", _getprogname());
if (fmt != NULL)
@@ -187,7 +184,7 @@ warnc(int code, const char *fmt, ...)
void
vwarnc(int code, const char *fmt, va_list ap)
{
if (err_file == 0)
if (err_file == NULL)
err_set_file((FILE *)0);
fprintf(err_file, "%s: ", _getprogname());
if (fmt != NULL) {
@@ -209,7 +206,7 @@ warnx(const char *fmt, ...)
void
vwarnx(const char *fmt, va_list ap)
{
if (err_file == 0)
if (err_file == NULL)
err_set_file((FILE *)0);
fprintf(err_file, "%s: ", _getprogname());
if (fmt != NULL)

View File

@@ -37,6 +37,7 @@ __FBSDID("$FreeBSD$");
#include <sys/sysctl.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
/*
* Returns true if the named feature is present in the currently

View File

@@ -41,12 +41,10 @@ __FBSDID("$FreeBSD$");
#include <unistd.h>
int
getdomainname(name, namelen)
char *name;
#ifndef __rtems__
int namelen;
getdomainname(char *name, int namelen)
#else /* __rtems__ */
size_t namelen;
getdomainname(char *name, size_t namelen)
#endif /* __rtems__ */
{
int mib[2];

View File

@@ -42,9 +42,7 @@ __FBSDID("$FreeBSD$");
#include <unistd.h>
int
gethostname(name, namelen)
char *name;
size_t namelen;
gethostname(char *name, size_t namelen)
{
int mib[2];