mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-10-15 05:43:33 +08:00
Update to FreeBSD head 2016-08-23
Git mirror commit 9fe7c416e6abb28b1398fd3e5687099846800cfd.
This commit is contained in:
@@ -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)
|
||||
|
@@ -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
|
||||
|
@@ -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];
|
||||
|
@@ -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];
|
||||
|
||||
|
Reference in New Issue
Block a user