-
Notifications
You must be signed in to change notification settings - Fork 109
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
version numbrer update, with whitespace and copyright update
- Loading branch information
Showing
12 changed files
with
65 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
#! /bin/sh | ||
# Guess values for system-dependent variables and create Makefiles. | ||
# Generated by GNU Autoconf 2.71 for Icecast 2.4.0-kh18.3. | ||
# Generated by GNU Autoconf 2.71 for Icecast 2.4.0-kh19. | ||
# | ||
# Report bugs to <[email protected]>. | ||
# | ||
|
@@ -621,8 +621,8 @@ MAKEFLAGS= | |
# Identity of this package. | ||
PACKAGE_NAME='Icecast' | ||
PACKAGE_TARNAME='icecast' | ||
PACKAGE_VERSION='2.4.0-kh18.3' | ||
PACKAGE_STRING='Icecast 2.4.0-kh18.3' | ||
PACKAGE_VERSION='2.4.0-kh19' | ||
PACKAGE_STRING='Icecast 2.4.0-kh19' | ||
PACKAGE_BUGREPORT='[email protected]' | ||
PACKAGE_URL='' | ||
|
||
|
@@ -1423,7 +1423,7 @@ if test "$ac_init_help" = "long"; then | |
# Omit some internal or obsolete options to make the list less imposing. | ||
# This message is too long to be a string in the A/UX 3.1 sh. | ||
cat <<_ACEOF | ||
\`configure' configures Icecast 2.4.0-kh18.3 to adapt to many kinds of systems. | ||
\`configure' configures Icecast 2.4.0-kh19 to adapt to many kinds of systems. | ||
|
||
Usage: $0 [OPTION]... [VAR=VALUE]... | ||
|
||
|
@@ -1494,7 +1494,7 @@ fi | |
|
||
if test -n "$ac_init_help"; then | ||
case $ac_init_help in | ||
short | recursive ) echo "Configuration of Icecast 2.4.0-kh18.3:";; | ||
short | recursive ) echo "Configuration of Icecast 2.4.0-kh19:";; | ||
esac | ||
cat <<\_ACEOF | ||
|
||
|
@@ -1628,7 +1628,7 @@ fi | |
test -n "$ac_init_help" && exit $ac_status | ||
if $ac_init_version; then | ||
cat <<\_ACEOF | ||
Icecast configure 2.4.0-kh18.3 | ||
Icecast configure 2.4.0-kh19 | ||
generated by GNU Autoconf 2.71 | ||
|
||
Copyright (C) 2021 Free Software Foundation, Inc. | ||
|
@@ -2182,7 +2182,7 @@ cat >config.log <<_ACEOF | |
This file contains any messages produced by compilers while | ||
running configure, to aid debugging if configure makes a mistake. | ||
|
||
It was created by Icecast $as_me 2.4.0-kh18.3, which was | ||
It was created by Icecast $as_me 2.4.0-kh19, which was | ||
generated by GNU Autoconf 2.71. Invocation command line was | ||
|
||
$ $0$ac_configure_args_raw | ||
|
@@ -3669,7 +3669,7 @@ fi | |
|
||
# Define the identity of the package. | ||
PACKAGE='icecast' | ||
VERSION='2.4.0-kh18.3' | ||
VERSION='2.4.0-kh19' | ||
|
||
|
||
printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h | ||
|
@@ -21566,7 +21566,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
# report actual input values of CONFIG_FILES etc. instead of their | ||
# values after options handling. | ||
ac_log=" | ||
This file was extended by Icecast $as_me 2.4.0-kh18.3, which was | ||
This file was extended by Icecast $as_me 2.4.0-kh19, which was | ||
generated by GNU Autoconf 2.71. Invocation command line was | ||
|
||
CONFIG_FILES = $CONFIG_FILES | ||
|
@@ -21634,7 +21634,7 @@ ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\ | |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | ||
ac_cs_config='$ac_cs_config_escaped' | ||
ac_cs_version="\\ | ||
Icecast config.status 2.4.0-kh18.3 | ||
Icecast config.status 2.4.0-kh19 | ||
configured by $0, generated by GNU Autoconf 2.71, | ||
with options \\"\$ac_cs_config\\" | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
dnl Process this file with autoconf to produce a configure script. | ||
AC_INIT([Icecast], [2.4.0-kh18.3], [[email protected]]) | ||
AC_INIT([Icecast], [2.4.0-kh19], [[email protected]]) | ||
AC_CONFIG_AUX_DIR([build-aux]) | ||
AM_INIT_AUTOMAKE([foreign]) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,7 @@ | |
/* sock.c: General Socket Functions | ||
* | ||
* Copyright (c) 1999 the icecast team | ||
* Copyright (c) 2010-2023 Karl Heyes <[email protected]> | ||
* | ||
* This library is free software; you can redistribute it and/or | ||
* modify it under the terms of the GNU Library General Public | ||
|
@@ -132,8 +133,8 @@ char *sock_get_localip(char *buff, int len) | |
} | ||
|
||
/* sock_error | ||
** | ||
** returns the last socket error | ||
* | ||
* returns the last socket error | ||
*/ | ||
int sock_error(void) | ||
{ | ||
|
@@ -272,7 +273,7 @@ int inet_aton(const char *s, struct in_addr *a) | |
} | ||
|
||
a->s_addr = inet_addr(s); | ||
|
||
return (a->s_addr != INADDR_NONE); | ||
} | ||
#endif /* _WIN32 */ | ||
|
@@ -304,7 +305,7 @@ int sock_set_blocking(sock_t sock, int block) | |
int sock_set_nolinger(sock_t sock) | ||
{ | ||
struct linger lin = { 0, 0 }; | ||
return setsockopt(sock, SOL_SOCKET, SO_LINGER, (void *)&lin, | ||
return setsockopt(sock, SOL_SOCKET, SO_LINGER, (void *)&lin, | ||
sizeof(struct linger)); | ||
} | ||
|
||
|
@@ -342,7 +343,7 @@ int sock_set_delay(sock_t sock) | |
int sock_set_keepalive(sock_t sock) | ||
{ | ||
int keepalive = 1; | ||
return setsockopt(sock, SOL_SOCKET, SO_KEEPALIVE, (void *)&keepalive, | ||
return setsockopt(sock, SOL_SOCKET, SO_KEEPALIVE, (void *)&keepalive, | ||
sizeof(int)); | ||
} | ||
|
||
|
@@ -370,7 +371,7 @@ sock_t _sock_open_cloexec (int domain, int type, int protocol) | |
{ | ||
static int sock_cloexec = SOCK_CLOEXEC; | ||
sock_t s = socket (domain, type|sock_cloexec, protocol); | ||
if (s >= 0) | ||
if (s >= 0) | ||
{ | ||
if (sock_cloexec == 0) sock_set_cloexec (s); | ||
return s; | ||
|
@@ -613,7 +614,7 @@ int sock_read_line(sock_t sock, char *buff, const int len) | |
{ | ||
char c = '\0'; | ||
int read_bytes, pos; | ||
|
||
/*if (!sock_valid_socket(sock)) { | ||
return 0; | ||
} else*/ if (!buff) { | ||
|
@@ -634,7 +635,7 @@ int sock_read_line(sock_t sock, char *buff, const int len) | |
buff[pos++] = c; | ||
read_bytes = recv(sock, &c, 1, 0); | ||
} | ||
|
||
if (read_bytes == 1) { | ||
buff[pos] = '\0'; | ||
return 1; | ||
|
@@ -648,7 +649,7 @@ int sock_read_line(sock_t sock, char *buff, const int len) | |
* return SOCK_TIMEOUT for timeout | ||
* return SOCK_ERROR for failure | ||
* return 0 for try again, interrupted | ||
* return 1 for ok | ||
* return 1 for ok | ||
*/ | ||
#ifdef HAVE_POLL | ||
int sock_connected (sock_t sock, int timeout) | ||
|
@@ -761,7 +762,7 @@ sock_t sock_connect_non_blocking (const char *hostname, unsigned port) | |
{ | ||
sock_set_cloexec(sock); | ||
sock_set_blocking (sock, 0); | ||
if (connect(sock, ai->ai_addr, ai->ai_addrlen) < 0 && | ||
if (connect(sock, ai->ai_addr, ai->ai_addrlen) < 0 && | ||
!sock_connect_pending(sock_error())) | ||
{ | ||
sock_close (sock); | ||
|
@@ -773,7 +774,7 @@ sock_t sock_connect_non_blocking (const char *hostname, unsigned port) | |
ai = ai->ai_next; | ||
} | ||
if (head) freeaddrinfo (head); | ||
|
||
return sock; | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,17 +2,18 @@ | |
* - General Socket Function Headers | ||
* | ||
* Copyright (c) 1999 the icecast team | ||
* Copyright (c) 2010-2023 Karl Heyes <[email protected]> | ||
* | ||
* This program is free software; you can redistribute it and/or | ||
* modify it under the terms of the GNU General Public License | ||
* as published by the Free Software Foundation; either version 2 | ||
* of the License, or (at your option) any later version. | ||
* | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with this program; if not, write to the Free Software | ||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | ||
|
@@ -58,8 +59,8 @@ | |
#ifdef HAVE_SYS_UIO_H | ||
#include <sys/uio.h> | ||
#define IOVEC struct iovec | ||
#define sock_readv readv | ||
#define sock_writev writev | ||
#define sock_readv readv | ||
#define sock_writev writev | ||
#elif WIN32 | ||
#include <ws2tcpip.h> | ||
#define IOVEC WSABUF | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
/* threads.c: Thread Abstraction Functions | ||
* | ||
* Copyright (c) 1999, 2000 the icecast team <[email protected]> | ||
* Copyright (c) 2020-2023 Karl Heyes <[email protected]> | ||
* | ||
* This library is free software; you can redistribute it and/or | ||
* modify it under the terms of the GNU Library General Public | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,7 @@ | |
* - Thread Abstraction Function Headers | ||
* | ||
* Copyright (c) 1999, 2000 the icecast team <[email protected]> | ||
* Copyright (c) 2019-2023 Karl Heyes <[email protected]> | ||
* | ||
* This library is free software; you can redistribute it and/or | ||
* modify it under the terms of the GNU Library General Public | ||
|
@@ -32,7 +33,7 @@ typedef struct { | |
|
||
/* the time the thread was created */ | ||
time_t create_time; | ||
|
||
/* the file and line which created this thread */ | ||
const char *file; | ||
int line; | ||
|
@@ -63,7 +64,7 @@ typedef struct { | |
#endif | ||
/* the file and line where the mutex was locked */ | ||
const char *file; | ||
int line; | ||
int line; | ||
|
||
/* the system specific mutex */ | ||
pthread_mutex_t sys_mutex; | ||
|
@@ -181,7 +182,7 @@ void thread_shutdown(void); | |
void thread_use_log_id(int log_id); | ||
|
||
/* creation, destruction, locking, unlocking, signalling and waiting */ | ||
thread_type *thread_create_c(char *name, void *(*start_routine)(void *), | ||
thread_type *thread_create_c(char *name, void *(*start_routine)(void *), | ||
void *arg, int detached, int line, const char *file); | ||
void thread_mutex_create_c(mutex_t *mutex, int line, const char *file); | ||
void thread_mutex_lock_c(mutex_t *mutex, int line, const char *file); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters