Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
113 commits
Select commit Hold shift + click to select a range
a0041ae
kern/kern_thread.c: fix typo in comment
kostikbel Jul 29, 2025
b87013f
libthr: fix typo in comment
kostikbel Jul 29, 2025
7fc218b
find: Put back clearing the NOSTAT bit
bsdimp Jul 29, 2025
1459853
db/hash.c: Allow O_WRONLY in dbm_open
bnovkov Jul 25, 2025
863e8b4
arm64: Rename ID_AA64MMFR0_ECV_CNTHCTL
zxombie Jul 30, 2025
3a4927a
arm64: Add CNTPOFF_EL2 op/CR values
zxombie Jul 30, 2025
8526152
ping: Remove unnecessary compiler flag
dag-erling Jul 30, 2025
0d9aa2a
recoverdisk(1): Change time variables to time_t to compile on i386
bsdphk Jul 30, 2025
74072e9
usbhid: Enable by default
emaste May 20, 2025
7b35b4d
sockstat: add libxo support
daminrido139 Jul 16, 2025
bf426b8
vt: Remove FONT specification from INDEX files
emaste Jul 30, 2025
6f4de20
ufs: change isrmdir type to bool or u_int as appropriate
kostikbel Jul 29, 2025
2e3fa93
swapongeom: destroy consumer/close vnode in case swaponsomething failed
kostikbel Jul 30, 2025
3b3a289
syslogd: Fix function return test
nhuff Jul 29, 2025
6fa24b2
release, bsdinstall: include FreeBSD-kernel-man package
ifreund Jul 25, 2025
a01ce3b
swapon: Improve tests for non-standard kernel page size and small media
ocochard Jul 31, 2025
147b909
Revert "src.opts.mk: Default LLVM_ASSERTIONS off"
kev009 Jul 31, 2025
763a097
loader: add nvidia modules to the loader blacklist
kevans91 Jul 31, 2025
be1f743
kern: start tracking cr_gid outside of cr_groups[]
kevans91 Jul 31, 2025
4befc67
param.h: bump __FreeBSD_version for be1f7435ef218b
kevans91 Jul 31, 2025
a8d90e3
netlink: Fully clear parser state between messages
dag-erling Jul 31, 2025
868b549
style.9: Fix "parantheses" typos in the new C++ section
Ximalas Jul 31, 2025
dc0c742
tcp: improve function names
nibanks Jul 31, 2025
f197a24
tcp: improve variable and constant names
nibanks Jul 31, 2025
2266c60
tcp hpts: cleanup header file
nibanks Jul 31, 2025
ada5bba
organization.dot: update list of current portmgr members
rene0 Jul 31, 2025
3a686b8
dbm_nextkey: Always return an error if we've reached the end of the d…
bnovkov Jul 30, 2025
2dde3be
aio: Fix a race in sys_aio_cancel()
markjdb Jul 29, 2025
21cb44b
LinuxKPI: acpi: fix guid_t argument type
Jul 31, 2025
69ed0f7
LinuxKPI: pci: harmonize #defines
Jul 31, 2025
421bf3a
LinuxKPI: pci: fix argument type to linuxkpi_pci_iomap[_range]
Jul 31, 2025
a964865
LinuxKPI: pci: use unsigned int for vendor/device arguments
Jul 31, 2025
0f8a841
dwmmc: cleanup cmd and locking, consistency between mmc and mmccam
Jul 29, 2025
69ffe3a
bsnmp: wlan: use correct value for rssi
Jun 19, 2025
0a3792d
release: No newaliases when cross-building VMs
cperciva Jul 31, 2025
733da23
libsa: errors with pointer conversion
Jul 31, 2025
09f2aba
kern: add a new ucred flag for groups having been set
kevans91 Aug 1, 2025
f61c48f
kern: rename crsetgroups_fallback, document it in ucred(9)
kevans91 Aug 1, 2025
aa05d1b
db/hash.c: Fix flag check in hash_seq
bnovkov Aug 1, 2025
c1c58c0
stress2: Added two syzkaller reproducers and updated the exclude list
phoatfreebsd Aug 1, 2025
5b977a8
stress2: A workaround for an infrequent "filesystem full" issue
phoatfreebsd Aug 1, 2025
bcb298f
sctp, tcp, udp: improve deferred computation of checksums
msvoelker Aug 1, 2025
1c52229
lib: Move libopencsd to /usr/lib and make private
zxombie Jul 30, 2025
539da08
pfctl: Use sa_family_t for af instead of int
TuxPowered42 Jul 31, 2025
d276142
pf: Use different address family for source and redirection address
TuxPowered42 Jul 31, 2025
118bfc9
arm64: Fix the sign in ID registers
zxombie Jul 30, 2025
69a539a
libsamplerate: Vendor import 0.2.2
christosmarg Aug 1, 2025
89e650e
sdhci: Add driver for the cvitek sdhci controller
bnovkov Jan 18, 2025
19643b4
if_dwc: Ignore clk_set_assigned errors if "assigned_clocks" is not sp…
bnovkov Jan 18, 2025
7a9a15e
if_dwc: Add support for cvitek ethernet controller
bnovkov Jan 18, 2025
25b9b0b
riscv: Add driver for cvitek reset controller
bnovkov Jan 18, 2025
e07254d
riscv: Add driver for the cvitek reboot controller
bnovkov Jan 18, 2025
092b70d
riscv: Add cvitek SoC files to the build
bnovkov Jan 18, 2025
e9dd9f9
riscv: Add the sdhci_fdt driver to the build
bnovkov Jan 18, 2025
1480c0b
Add 'contrib/libsamplerate/' from commit '69a539a327ef8d78260056c5394…
christosmarg Aug 1, 2025
7a6d524
libsamplerate: Build as internal library
christosmarg Aug 1, 2025
250bb67
bsnmp: fix undefined behaviour
Jul 31, 2025
7d4a177
ifconfig: Support variable-argument commands
Jul 31, 2025
3650722
ifconfig: Support VLAN ID in static/deladdr
Jul 31, 2025
62473ce
pam_krb5: fix the GCC build
Aug 1, 2025
406fffd
syscalls: make __sysctl's first argument const
brooksdavis Aug 1, 2025
bfebc6d
sysent: regen for const __sysctl argument
brooksdavis Aug 1, 2025
04c8bba
sysctl.3: Reference kinfo_getvmmap(3), kinfo_getfile(3), and kinfo_ge…
0mp Jul 31, 2025
1acfb87
dtrace.1: Document security.bsd.allow_destructive_dtrace
0mp Aug 1, 2025
8632e4e
ifconfig: Garbage collect unused parameter swabips
gmshake Aug 1, 2025
6243951
tests: gif(4): Add tests to cover all IPv[46] in IPv[46] setups
gmshake Aug 1, 2025
d5ec971
amd64: include opt_kstack_pages.h
khng300 Aug 1, 2025
011efaa
devfs readdir: handle short buffer same as UFS
kostikbel Aug 1, 2025
095f630
vm_pageout: Scan inactive dirty pages less aggressively
markjdb Jan 6, 2025
e6c623e
chroot: Improve error message for unprivileged use
emaste Aug 1, 2025
79059e0
tcp: Fix wrap around comparison bug
nibanks Aug 1, 2025
96a550e
genet: Add a detach routine
bsdjhb Aug 1, 2025
c2230ad
inotify: Avoid calling vrele() with a namecache mutex held
markjdb Aug 1, 2025
bf304a4
bsnmpd: Fix an error message
dag-erling Aug 1, 2025
01e42ce
libarchive: Stop using readdir_r()
dag-erling Aug 1, 2025
65bae45
kyua: Stop using readdir_r()
dag-erling Aug 1, 2025
2bd157b
libc: Deprecate readdir_r()
dag-erling Aug 1, 2025
7f04c09
rc.subr: Fix wait_for_pids
dag-erling Aug 1, 2025
ac641d5
rc.subr: Drop duplicate SPDX tag in test script
dag-erling Aug 1, 2025
d109536
krb5: Rename the ALIGN macro in aestab.h
Aug 2, 2025
0c381b7
libutil: Add symbol versioning
dag-erling Aug 2, 2025
2e0caa7
libutil: Really fix expand_number(3)
dag-erling Aug 2, 2025
301dee7
libutil: Better tests for expand_number(3)
dag-erling Aug 2, 2025
d014456
UPDATING: Correct typo in hw.usb.usbhid.enable tunable
emaste Aug 2, 2025
6fb848f
amd64 pmap: Use INVPCID_CTXGLOB on Ryzen processors
alcriceedu Jul 7, 2025
294a4b7
RELNOTES: Mention deprecation of readdir_r(3)
dag-erling Aug 2, 2025
7cde686
libc: Drop gets() from symbol map
dag-erling Aug 2, 2025
8d8a745
libutil: Drop auth_getval()
dag-erling Aug 2, 2025
ee09ce3
Revert "amd64: include opt_kstack_pages.h"
khng300 Aug 2, 2025
95f8c3e
chroot.2: Update errors and unprivileged use
emaste Aug 2, 2025
a523d88
vfs_syscall.c: do not take process lock around the read of P2_NO_NEW_…
kostikbel Aug 2, 2025
cf0f693
vfs_syscall.c: EXTERROR-ise EPERM from chroot(2)
kostikbel Aug 2, 2025
25fca24
service: Add an option to enable debugging
dag-erling Aug 2, 2025
dbc22fd
eqos: Whitespace cleanup
Aug 3, 2025
ecf65a4
amd64/pmap: include opt_kstack_pages.h
khng300 Aug 3, 2025
702423e
libc: gen: refactor execvPe() for readability
kevans91 Aug 3, 2025
91eb4d2
chroot: slightly cleanup
kevans91 Aug 3, 2025
12e61c3
ipfw: add numeric initializers to enum ipfw_opcodes
bu7cher Jul 22, 2025
91ed876
ipfw: forbid adding keep-state rules that depend on tablearg
bu7cher Jul 22, 2025
3b67473
ipfw: add additional handling for orphaned states
bu7cher Jul 22, 2025
630efff
fix cross build after expand_number type change
brooksdavis Aug 3, 2025
877e70e
ipfw: add protected rule for orphaned dynamic states
bu7cher Jul 22, 2025
4e6a3e7
libutil: Document pidfile_signal()
dag-erling Aug 3, 2025
22afc76
libutil: Add missing MLINKs
dag-erling Aug 3, 2025
3bd8fab
vfs: Move DEBUG_VFS_LOCKS checks to INVARIANTS
markjdb Jul 17, 2025
4798f1e
ufs: Remove uses of DEBUG_VFS_LOCKS
markjdb Jul 24, 2025
4b56c7f
tmpfs: Remove uses of DEBUG_VFS_LOCKS
markjdb Jul 24, 2025
2daaf63
mac: Remove uses of DEBUG_VFS_LOCKS
markjdb Jul 24, 2025
d733bca
vnode_pager: Remove uses of DEBUG_VFS_LOCKS
markjdb Jul 24, 2025
ce06c19
bridge: Add a vlanfilter bridge option
Aug 3, 2025
624b7be
kadm5: add -Wno-alloc-size-larger-than
Aug 3, 2025
3705659
bsdconfig: Move to -bsdconfig package
Aug 3, 2025
04764f2
krb5: only apply -Wno-alloc-size-larger-than to gcc
Aug 4, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions ObsoleteFiles.inc
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,14 @@
# xargs -n1 | sort | uniq -d;
# done

# 20250802: libutil bumped to 10
OLD_LIBS+=lib/libutil.so.9

# 20250801: libopencsd libraries moved to /usr/lib and made private
OLD_FILES+=lib/libopencsd.so.0
OLD_FILES+=usr/lib/libopencsd.a
OLD_FILES+=usr/lib/libopencsd.so

# 20250728: zfsboot (MBR) removed
OLD_FILES+=boot/zfsboot
OLD_FILES+=usr/share/man/man8/zfsboot.8.gz
Expand Down
5 changes: 5 additions & 0 deletions RELNOTES
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ newline. Entries should be separated by a newline.

Changes to this file should not be MFCed.

2bd157bc732a:
The readdir_r(3) function is deprecated and may be removed in future
releases. Using it in a program will result in compile-time and
link-time warnings.

9ba51cce8bbd:
bsnmpd(1) no longer supports legacy UDP transport. Users, that have
not updated their /etc/snmpd.config since 12.0-RELEASE or older will
Expand Down
20 changes: 15 additions & 5 deletions UPDATING
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,26 @@ NOTE TO PEOPLE WHO THINK THAT FreeBSD 15.x IS SLOW:
world, or to merely disable the most expensive debugging functionality
at runtime, run "ln -s 'abort:false,junk:false' /etc/malloc.conf".)

20250804:
bsdconfig (including sysrc(8)) has moved to the new bsdconfig
package. If you use pkgbase and wish to use bsdconfig, you should
install FreeBSD-bsdconfig.

20250730:
The usbhid(4) USB HID driver is now enabled by default, and will be
used in preference to other USB HID drivers like ukbd(4), ums(4), and
uhid(4). Work on a FIDO/U2F driver and moused(8) is in progress.
The default is being switched now so that we can find and fix any
additional issues prior to FreeBSD 15.0.

To revert to the previous USB HID driver behavior, set the loader
tunable hw.usb.usbhid.enable=0.

20250727:
bmake (i.e., /usr/bin/make and /usr/share/mk) has moved to a new
package, FreeBSD-bmake. If you use pkgbase and you need make, you
should install this package.

20250727:
LLVM's debugging assertions are now disabled in main by default.
The WITH_LLVM_ASSERTIONS src.conf(5) knob should be used to
enable it when working on LLVM or requesting help with it.

20250726:
amd64 kernel configurations must contain "options SMP".

Expand Down
25 changes: 24 additions & 1 deletion cddl/contrib/opensolaris/cmd/dtrace/dtrace.1
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
.\"
.\" $FreeBSD$
.\"
.Dd July 16, 2025
.Dd July 30, 2025
.Dt DTRACE 1
.Os
.Sh NAME
Expand Down Expand Up @@ -537,6 +537,17 @@ option is not specified,
.Nm
does not permit the compilation or enabling of a D program that contains
destructive actions.
.Pp
Set the
.Va security.bsd.allow_destructive_dtrace
.Xr loader 8
tunable
to
.Ql 0
to disallow the possibility of enabling destructive actions system-wide at any point at all.
Any attempts to enable destructive actions will cause
.Nm
to exit with a runtime error.
.It Fl x Ar arg Op Ns = Ns value
Enable or modify a DTrace runtime option or D compiler option.
Boolean options are enabled by specifying their name.
Expand Down Expand Up @@ -1265,6 +1276,18 @@ failed or that the specified request could not be satisfied.
.It 2
Invalid command line options or arguments were specified.
.El
.Sh DIAGNOSTICS
.Bl -diag
.It dtrace: could not enable tracing: Permission denied
This can happen when
.Nm
fails to enable destructive actions because
.Va security.bsd.allow_destructive_dtrace
is set to
.Ql 0
in
.Xr loader.conf 5 .
.El
.Sh SEE ALSO
.Xr cpp 1 ,
.Xr dwatch 1 ,
Expand Down
4 changes: 3 additions & 1 deletion contrib/bsnmp/lib/snmpclient.c
Original file line number Diff line number Diff line change
Expand Up @@ -2096,7 +2096,9 @@ get_port(struct snmp_client *sc, const char *port[2])
return (NULL);
}

return (port[1] = ++(port[0]) + strlen(port[0]));
++port[0];
port[1] = port[0] + strlen(port[0]);
return (port[1]);
}

/**
Expand Down
18 changes: 6 additions & 12 deletions contrib/kyua/utils/fs/directory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -127,16 +127,9 @@ struct utils::fs::detail::directory_iterator::impl : utils::noncopyable {
/// not. A null pointer means an invalid iterator.
::DIR* _dirp;

/// Raw representation of the system directory entry.
///
/// We need to keep this at the class level so that we can use the
/// readdir_r(3) function.
::dirent _dirent;

/// Custom representation of the directory entry.
///
/// This is separate from _dirent because this is the type we return to the
/// user. We must keep this as a pointer so that we can support the common
/// We must keep this as a pointer so that we can support the common
/// operators (* and ->) over iterators.
std::unique_ptr< directory_entry > _entry;

Expand Down Expand Up @@ -192,22 +185,23 @@ struct utils::fs::detail::directory_iterator::impl : utils::noncopyable {
/// It is possible to use this function on a new directory_entry object to
/// initialize the first entry.
///
/// \throw system_error If the call to readdir_r fails.
/// \throw system_error If the call to readdir fails.
void
next(void)
{
::dirent* result;

if (::readdir_r(_dirp, &_dirent, &result) == -1) {
errno = 0;
if ((result = ::readdir(_dirp)) == NULL && errno != 0) {
const int original_errno = errno;
throw fs::system_error(F("readdir_r(%s) failed") % _path,
throw fs::system_error(F("readdir(%s) failed") % _path,
original_errno);
}
if (result == NULL) {
_entry.reset();
close();
} else {
_entry.reset(new directory_entry(_dirent.d_name));
_entry.reset(new directory_entry(result->d_name));
}
}
};
Expand Down
25 changes: 25 additions & 0 deletions contrib/libsamplerate/COPYING
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
Copyright (c) 2012-2016, Erik de Castro Lopo <erikd@mega-nerd.com>
All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:

1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.

2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
185 changes: 185 additions & 0 deletions contrib/libsamplerate/common.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,185 @@
/*
** Copyright (c) 2002-2021, Erik de Castro Lopo <erikd@mega-nerd.com>
** All rights reserved.
**
** This code is released under 2-clause BSD license. Please see the
** file at : https://github.com/libsndfile/libsamplerate/blob/master/COPYING
*/

#ifndef COMMON_H_INCLUDED
#define COMMON_H_INCLUDED

#include <stdint.h>
#include <stdbool.h>

#include <math.h>

#ifdef HAVE_VISIBILITY
#define LIBSAMPLERATE_DLL_PRIVATE __attribute__ ((visibility ("hidden")))
#elif defined (__APPLE__)
#define LIBSAMPLERATE_DLL_PRIVATE __private_extern__
#else
#define LIBSAMPLERATE_DLL_PRIVATE
#endif

#define SRC_MAX_RATIO 256
#define SRC_MAX_RATIO_STR "256"

#define SRC_MIN_RATIO_DIFF (1e-20)

#ifndef MAX
#define MAX(a,b) (((a) > (b)) ? (a) : (b))
#endif

#ifndef MIN
#define MIN(a,b) (((a) < (b)) ? (a) : (b))
#endif

#define ARRAY_LEN(x) ((int) (sizeof (x) / sizeof ((x) [0])))
#define OFFSETOF(type,member) ((int) (&((type*) 0)->member))

#define MAKE_MAGIC(a,b,c,d,e,f) ((a) + ((b) << 4) + ((c) << 8) + ((d) << 12) + ((e) << 16) + ((f) << 20))

/*
** Inspiration : http://sourcefrog.net/weblog/software/languages/C/unused.html
*/
#ifdef UNUSED
#elif defined (__GNUC__)
# define UNUSED(x) UNUSED_ ## x __attribute__ ((unused))
#elif defined (__LCLINT__)
# define UNUSED(x) /*@unused@*/ x
#else
# define UNUSED(x) x
#endif

#ifdef __GNUC__
# define WARN_UNUSED __attribute__ ((warn_unused_result))
#else
# define WARN_UNUSED
#endif

#include "samplerate.h"

enum
{ SRC_FALSE = 0,
SRC_TRUE = 1,
} ;

enum SRC_MODE
{
SRC_MODE_PROCESS = 0,
SRC_MODE_CALLBACK = 1
} ;

typedef enum SRC_ERROR
{
SRC_ERR_NO_ERROR = 0,

SRC_ERR_MALLOC_FAILED,
SRC_ERR_BAD_STATE,
SRC_ERR_BAD_DATA,
SRC_ERR_BAD_DATA_PTR,
SRC_ERR_NO_PRIVATE,
SRC_ERR_BAD_SRC_RATIO,
SRC_ERR_BAD_PROC_PTR,
SRC_ERR_SHIFT_BITS,
SRC_ERR_FILTER_LEN,
SRC_ERR_BAD_CONVERTER,
SRC_ERR_BAD_CHANNEL_COUNT,
SRC_ERR_SINC_BAD_BUFFER_LEN,
SRC_ERR_SIZE_INCOMPATIBILITY,
SRC_ERR_BAD_PRIV_PTR,
SRC_ERR_BAD_SINC_STATE,
SRC_ERR_DATA_OVERLAP,
SRC_ERR_BAD_CALLBACK,
SRC_ERR_BAD_MODE,
SRC_ERR_NULL_CALLBACK,
SRC_ERR_NO_VARIABLE_RATIO,
SRC_ERR_SINC_PREPARE_DATA_BAD_LEN,
SRC_ERR_BAD_INTERNAL_STATE,

/* This must be the last error number. */
SRC_ERR_MAX_ERROR
} SRC_ERROR ;

typedef struct SRC_STATE_VT_tag
{
/* Varispeed process function. */
SRC_ERROR (*vari_process) (SRC_STATE *state, SRC_DATA *data) ;

/* Constant speed process function. */
SRC_ERROR (*const_process) (SRC_STATE *state, SRC_DATA *data) ;

/* State reset. */
void (*reset) (SRC_STATE *state) ;

/* State clone. */
SRC_STATE *(*copy) (SRC_STATE *state) ;

/* State close. */
void (*close) (SRC_STATE *state) ;
} SRC_STATE_VT ;

struct SRC_STATE_tag
{
SRC_STATE_VT *vt ;

double last_ratio, last_position ;

SRC_ERROR error ;
int channels ;

/* SRC_MODE_PROCESS or SRC_MODE_CALLBACK */
enum SRC_MODE mode ;

/* Data specific to SRC_MODE_CALLBACK. */
src_callback_t callback_func ;
void *user_callback_data ;
long saved_frames ;
const float *saved_data ;

/* Pointer to data to converter specific data. */
void *private_data ;
} ;

/* In src_sinc.c */
const char* sinc_get_name (int src_enum) ;
const char* sinc_get_description (int src_enum) ;

SRC_STATE *sinc_state_new (int converter_type, int channels, SRC_ERROR *error) ;

/* In src_linear.c */
const char* linear_get_name (int src_enum) ;
const char* linear_get_description (int src_enum) ;

SRC_STATE *linear_state_new (int channels, SRC_ERROR *error) ;

/* In src_zoh.c */
const char* zoh_get_name (int src_enum) ;
const char* zoh_get_description (int src_enum) ;

SRC_STATE *zoh_state_new (int channels, SRC_ERROR *error) ;

/*----------------------------------------------------------
** Common static inline functions.
*/

static inline double
fmod_one (double x)
{ double res ;

res = x - lrint (x) ;
if (res < 0.0)
return res + 1.0 ;

return res ;
} /* fmod_one */

static inline int
is_bad_src_ratio (double ratio)
{ return (ratio < (1.0 / SRC_MAX_RATIO) || ratio > (1.0 * SRC_MAX_RATIO)) ;
} /* is_bad_src_ratio */


#endif /* COMMON_H_INCLUDED */

Loading
Loading