<feed xmlns='http://www.w3.org/2005/Atom'>
<title>paraslash/ipc.c, branch master</title>
<subtitle>paraslash - network audio streaming tools</subtitle>
<id>https://git.tue.mpg.de/cgit/paraslash/atom?h=master</id>
<link rel='self' href='https://git.tue.mpg.de/cgit/paraslash/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.tue.mpg.de/cgit/paraslash/'/>
<updated>2026-03-26T15:50:54Z</updated>
<entry>
<title>Merge topic branch t/spdx into master</title>
<updated>2026-03-26T15:50:54Z</updated>
<author>
<name>Andre Noll</name>
<email>maan@tuebingen.mpg.de</email>
</author>
<published>2026-03-26T15:50:08Z</published>
<link rel='alternate' type='text/html' href='https://git.tue.mpg.de/cgit/paraslash/commit/?id=c7d8695602cdde107a85cb63db846d92e48d9437'/>
<id>urn:sha1:c7d8695602cdde107a85cb63db846d92e48d9437</id>
<content type='text'>
Switch to SPDX licence identifiers

A single patch which replaces the first comment line of most .c and .h files
containing the copyright notice by standardized SPDX (Software/System Package
Data Exchange) nomenclature.

* t/spdx:
  Switch to SPDX identifiers.
</content>
</entry>
<entry>
<title>ipc.c: Drop return value of mutex_destroy().</title>
<updated>2026-03-18T21:37:46Z</updated>
<author>
<name>Andre Noll</name>
<email>maan@tuebingen.mpg.de</email>
</author>
<published>2026-03-15T17:35:06Z</published>
<link rel='alternate' type='text/html' href='https://git.tue.mpg.de/cgit/paraslash/commit/?id=c016c702c30c5132122e6ca16bb893c0fc03384d'/>
<id>urn:sha1:c016c702c30c5132122e6ca16bb893c0fc03384d</id>
<content type='text'>
No caller checks the return value. Log a message on errors rather than
fail silently.
</content>
</entry>
<entry>
<title>Switch to SPDX identifiers.</title>
<updated>2026-03-17T22:45:43Z</updated>
<author>
<name>Andre Noll</name>
<email>maan@tuebingen.mpg.de</email>
</author>
<published>2026-03-15T14:57:29Z</published>
<link rel='alternate' type='text/html' href='https://git.tue.mpg.de/cgit/paraslash/commit/?id=ea0cecf96e08c489fdcc94d046019f4ce46f58e2'/>
<id>urn:sha1:ea0cecf96e08c489fdcc94d046019f4ce46f58e2</id>
<content type='text'>
Generated with

	sed -i 's|Copyright.*Andre Noll.*|SPDX-License-Identifier: GPL-2.0 */|g' *.c *.h

followed by manually tweaking the result a bit. No license change intended.
</content>
</entry>
<entry>
<title>ipc: Clamp shmmax to 10M.</title>
<updated>2025-08-26T14:26:17Z</updated>
<author>
<name>Andre Noll</name>
<email>maan@tuebingen.mpg.de</email>
</author>
<published>2025-07-28T17:55:00Z</published>
<link rel='alternate' type='text/html' href='https://git.tue.mpg.de/cgit/paraslash/commit/?id=888fc654617af3a0d2e08161c4065aba9bb3bbee'/>
<id>urn:sha1:888fc654617af3a0d2e08161c4065aba9bb3bbee</id>
<content type='text'>
The old setting may cause OOM on low-memory 32 bit systems.
</content>
</entry>
<entry>
<title>ipc: Remove pointless initialization in shm_get_shmmax().</title>
<updated>2024-05-07T18:28:14Z</updated>
<author>
<name>Andre Noll</name>
<email>maan@tuebingen.mpg.de</email>
</author>
<published>2024-03-20T22:32:24Z</published>
<link rel='alternate' type='text/html' href='https://git.tue.mpg.de/cgit/paraslash/commit/?id=0f8a8423c94cf0edba1e077a3b0e90f2b0b99edc'/>
<id>urn:sha1:0f8a8423c94cf0edba1e077a3b0e90f2b0b99edc</id>
<content type='text'>
The subsequent read() call overwrites the buffer.
</content>
</entry>
<entry>
<title>Avoid warning about sys/sysctl.h on glibc-2.30.</title>
<updated>2019-09-01T11:50:31Z</updated>
<author>
<name>Andre Noll</name>
<email>maan@tuebingen.mpg.de</email>
</author>
<published>2019-08-20T07:10:53Z</published>
<link rel='alternate' type='text/html' href='https://git.tue.mpg.de/cgit/paraslash/commit/?id=ac1f19d550a81c8408c8fce2e237996c950253ab'/>
<id>urn:sha1:ac1f19d550a81c8408c8fce2e237996c950253ab</id>
<content type='text'>
From glibc-2.30 NEWS:

	The Linux-specific &lt;sys/sysctl.h&gt; header and the sysctl function have
	been deprecated and will be removed from a future version of glibc.

Compilation against the glibc-2.30 headers results in the following warning:

	In file included from ipc.c:10:
	/usr/include/sys/sysctl.h:21:2: warning: #warning "The &lt;sys/sysctl.h&gt; header is deprecated and will be removed." [-Wcpp]

On NetBSD and FreeBSD, however, we still need to include the header
to get the declaration of sysctlbyname(3).

This patch changes ipc.c to include sys/sysctl.h only if __FreeBSD__ or
__NetBSD__ is defined.  Also remove the pointless check for __APPLE__.
</content>
</entry>
<entry>
<title>Shorten copyright notice.</title>
<updated>2017-09-22T14:35:22Z</updated>
<author>
<name>Andre Noll</name>
<email>maan@tuebingen.mpg.de</email>
</author>
<published>2017-09-10T12:15:50Z</published>
<link rel='alternate' type='text/html' href='https://git.tue.mpg.de/cgit/paraslash/commit/?id=d31995b3074bb19aa4da66ce5c4774ca9ed101a1'/>
<id>urn:sha1:d31995b3074bb19aa4da66ce5c4774ca9ed101a1</id>
<content type='text'>
The GPLv2 line does not add any additional information, so drop
it. This leaves a single line of legalese text for most files, which
is about the amount of screen real estate it deserves.

This patch was created with the following script (plus some manual
fixups):

	awk '{
		if (NR &lt;= 5) {
			gs = gensub(/.*Copyright.* ([0-9]+).*Andre Noll.*/, "\\1", "g")
			if (gs != $0)
				year = gs
			next
		}
		if (NR == 6 &amp;&amp; year != "")
			printf("/* Copyright (C) %s Andre Noll &lt;maan@tuebingen.mpg.de&gt;, see file COPYING. */\n", year)
		print
	}'
</content>
</entry>
<entry>
<title>doxygen: Add \ref to references.</title>
<updated>2017-06-25T18:11:08Z</updated>
<author>
<name>Andre Noll</name>
<email>maan@tuebingen.mpg.de</email>
</author>
<published>2017-05-18T18:58:42Z</published>
<link rel='alternate' type='text/html' href='https://git.tue.mpg.de/cgit/paraslash/commit/?id=f90e920b43eb4035ded061bb889c8e4d819a2a97'/>
<id>urn:sha1:f90e920b43eb4035ded061bb889c8e4d819a2a97</id>
<content type='text'>
This way doxygen issues a warning if the file/function/structure no
longer exists and a stale reference remains.
</content>
</entry>
<entry>
<title>load_chunk_table(): Don't trust afhi-&gt;chunks_total.</title>
<updated>2017-03-25T10:54:36Z</updated>
<author>
<name>Andre Noll</name>
<email>maan@tuebingen.mpg.de</email>
</author>
<published>2016-12-26T22:50:34Z</published>
<link rel='alternate' type='text/html' href='https://git.tue.mpg.de/cgit/paraslash/commit/?id=5afe721aeb241bd21b832994ec2f2b7d8ff84766'/>
<id>urn:sha1:5afe721aeb241bd21b832994ec2f2b7d8ff84766</id>
<content type='text'>
Both callers pass a buffer to load_chunk_table() to initialize
afhi-&gt;chunk_table. The function does not check the size of the passed
buffer but relies on afhi-&gt;chunks_total to tell how many values to
copy from the buffer.

In other words, the buffer size gives an upper bound for the number of
chunks in the chunk table, but this bould is not checked. This patch
makes the code more robust by adding a suitable check. To this aim,
load_chunk_table() is changed to receive a pointer to an osl object
(which contains the buffer size) rather than only the buffer.

One caller, load_afd(), initializes the chunk table from a shared
memory area buffer. It does not know or care about the buffer size
so far. We introduce the the new IPC helper shm_size() to let it tell
the size of the area and pass it to load_chunk_table().
</content>
</entry>
<entry>
<title>Update year in copyright headers.</title>
<updated>2015-01-12T22:35:45Z</updated>
<author>
<name>Andre Noll</name>
<email>maan@tuebingen.mpg.de</email>
</author>
<published>2015-01-02T02:14:03Z</published>
<link rel='alternate' type='text/html' href='https://git.tue.mpg.de/cgit/paraslash/commit/?id=9b406cbe5d20ba969713ca3d7a8033e697476d75'/>
<id>urn:sha1:9b406cbe5d20ba969713ca3d7a8033e697476d75</id>
<content type='text'>
Done with

	files=$(git grep -l 'Copyright (C) [0-9]\{4\}\(-2014\)* Andre Noll')
	sed --in-place= -e 's/Copyright (C) \([0-9]\{4\}\)-2014 Andre Noll/Copyright (C) \1 Andre Noll/1' $files

In previous years we ran a similar script to set the second year in
the range to the current year. This is kind of silly, so let's get
rid of this useless information.

This commit replaces "Copyright (C) A-B" by "Copyright (C) A" in
all file headers, i.e. only the first year (A) is left in. Accurate
information including time stamps for each change can be obtained
from the git history.
</content>
</entry>
</feed>
