Updated configure for OpenBSD

This commit is contained in:
Michiel Broek 2004-12-29 13:06:09 +00:00
parent c756663370
commit fe48a306c3
4 changed files with 160 additions and 156 deletions

2
configure vendored
View File

@ -4904,7 +4904,7 @@ if test "$SYSTEM" = "NetBSD"; then
fi
if test "$SYSTEM" = "FreeBSD"; then
if test "$SYSTEM" = "FreeBSD" || test "$SYSTEM" = "OpenBSD"; then
CFLAGS="-pthread $CFLAGS"
else
echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5

View File

@ -51,7 +51,7 @@ char SigName[32][16] = { "NOSIGNAL",
#elif defined(__PPC__)
char SgName[32][16] = { "NOSIGNAL",
char SigName[32][16] = { "NOSIGNAL",
"SIGHUP", "SIGINT", "SIGQUIT", "SIGILL",
"SIGTRAP", "SIGIOT", "SIGBUS", "SIGFPE",
"SIGKILL", "SIGUSR1", "SIGSEGV", "SIGUSR2",
@ -64,7 +64,7 @@ char SgName[32][16] = { "NOSIGNAL",
#elif defined(__sparc__)
char SgName[32][16] = { "NOSIGNAL",
char SigName[32][16] = { "NOSIGNAL",
"SIGHUP", "SIGINT", "SIGQUIT", "SIGILL",
"SIGTRAP", "SIGIOT", "SIGEMT", "SIGFPE",
"SIGKILL", "SIGBUS", "SIGSEGV", "SIGSYS",
@ -76,7 +76,7 @@ char SgName[32][16] = { "NOSIGNAL",
#elif defined(__alpha__)
char SgName[32][16] = { "NOSIGNAL",
char SigName[32][16] = { "NOSIGNAL",
"SIGHUP", "SIGINT", "SIGQUIT", "SIGILL",
"SIGTRAP", "SIGABRT", "SIGEMT", "SIGFPE",
"SIGKILL", "SIGBUS", "SIGSEGV", "SIGSYS",

View File

@ -267,13 +267,13 @@ char *xstrcat(char *src, char *add)
void CreateSema(char *sem)
{
char temp[PATH_MAX];
int fd;
FILE *fp;
sprintf(temp, "%s/var/sema/%s", getenv("MBSE_ROOT"), sem);
if (access(temp, F_OK) == 0)
return;
if ((fd = open(temp, O_CREAT|O_TRUNC,S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP)) >= 0)
close(fd);
if ((fp = fopen(temp, "w"))) {
fclose(fp);
else
Syslog('?', "Can't create semafore %s", temp);
}
@ -283,11 +283,11 @@ void CreateSema(char *sem)
void TouchSema(char *sem)
{
char temp[PATH_MAX];
int fd;
FILE *fp;
sprintf(temp, "%s/var/sema/%s", getenv("MBSE_ROOT"), sem);
if ((fd = open(temp, O_CREAT|O_TRUNC,S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP)) >= 0) {
close(fd);
if ((fp = fopen(temp, "w"))) {
fclose(fp);
} else
Syslog('?', "Can't touch semafore %s", temp);
}
@ -333,6 +333,7 @@ int file_exist(char *path, int mode)
}
/*
* Make directory tree, the name must end with a /
*/
@ -399,6 +400,7 @@ time_t file_time(char *path)
}
/*
* Return ASCII string for node, the bits in 'fl' set the output format.
*/
@ -443,6 +445,8 @@ char *fido2str(fidoaddr a, int fl)
return buf;
}
char *Dos2Unix(char *dosname)
{
char buf[PATH_MAX];