Lennart Poettering
87d63b19a3
Small fix for MacOSX compat
...
Issue originally pointed out by Igor Zubkov.
2009-03-27 14:37:58 +01:00
Finn Thain
0329edd179
revive solaris module
...
Hi All,
This patch fixes the solaris audio device source and sink, and fixes some
portability issues that break the build on solaris. Questions and comments
welcomed.
I've tested this patch only with OpenSolaris Express snv 103. Eventually I
hope to be able to test a few older releases and older hardware (though it
is hard to say whether there is much interest in those).
This is my first brush with pulseaudio and so I read the wiki docs and
some of the source code but I'm still unsure of a few things. In
particular I'm wondering about rewind processing, corking and what (if
anything) the module needs for those. I'm also unclear on the implications
of thread_info.buffer_size, .fragment_size and .max_request, and whether
my code is correct or not.
This patch disables link map/library versioning unless ld is GNU ld.
Another approach for solaris would be to use that linker's -M option, but
I couldn't make that work (due to undefined mainloop, browse and simple
symbols when linking pacat. I can post the errors if anyone is intested.)
Thanks,
Finn Thain
2009-03-03 22:27:00 +01:00
Marc-André Lureau
800489eea9
pulsecore: don't leak p when make_random_dir_and_link()
2009-02-19 05:00:17 +01:00
Marc-André Lureau
f1dcbe0f5d
pulsecore: don't leak d in case of error
2009-02-19 04:59:26 +01:00
Marc-André Lureau
4f1380b713
pulsecore: use r returned from fgets()
2009-02-19 04:56:44 +01:00
Lennart Poettering
7b8bed3e28
introduce pa_realpath()
2009-02-18 21:57:57 +01:00
Lennart Poettering
d85ef71675
export pa_match()
2009-02-18 21:57:16 +01:00
Lennart Poettering
04c3c6716b
A few MacOS X portability fixes
...
Based on patches contributed by "Tron".
See bug #478 .
2009-02-06 00:25:47 +01:00
Lennart Poettering
83ddc0936e
add new calls pa_replace() and pa_unescape()
2009-02-04 17:19:15 +01:00
Lennart Poettering
4dc1916467
add API pa_ncpus()
2009-01-22 02:17:19 +01:00
Jared D. McNeill
c0e4e5a868
NetBSD doesn't know getgrnam_r()/getpwnam_r()
...
Signed-off-by: Lennart Poettering <lennart@poettering.net>
2009-01-22 02:17:10 +01:00
Lennart Poettering
c850aa0c5b
Add new pa_reduce() and pa_gcd() functions
2009-01-10 02:53:57 +01:00
Lennart Poettering
8222f1200f
add new API function pa_in_valgrind() to check for
2008-10-04 00:10:43 +02:00
Lennart Poettering
644f39d261
a few FreeBSD fixes, from alexis
...
Signed-off-by: Lennart Poettering <lennart@poettering.net>
2008-10-01 01:31:56 +02:00
Stelian Ionescu
564ef2b71f
have make_random_dir respect $TMPDIR
...
with the attached patch, make_random_dir first tries to use $TMPDIR,
then $TMP finally defaulting to "/tmp"
Signed-off-by: Lennart Poettering <lennart@poettering.net>
2008-09-29 21:59:57 +02:00
Lennart Poettering
6188737021
make sure ~/.pulse exists before we create the runtime dir link beneath it
2008-09-12 17:39:08 +03:00
Lennart Poettering
33d349dcbb
include build and runtime host information in debug output
2008-09-05 15:42:39 +03:00
Lennart Poettering
99d5ec6c93
Rework pa_machine_id() a bit
...
Guarantee this function never fails, use POSIX gethostid as last resort. Add
comments.
2008-09-03 18:30:27 +02:00
Lennart Poettering
0a1f654c20
call close() in a loop to catch EINTR
2008-08-26 15:44:55 +02:00
Lennart Poettering
dc9b8dce30
add a few missing casts
2008-08-20 03:33:06 +03:00
Lennart Poettering
b7026bf248
add a few more gcc warning flags and fix quite a few problems found by doing so
2008-08-19 22:39:54 +02:00
Lennart Poettering
9996213c41
free regex_t after use
2008-08-09 16:12:50 +02:00
Lennart Poettering
d8119afeef
set errno properly in all functions from core-util.c
2008-08-09 03:46:46 +02:00
Lennart Poettering
9cf1a4e5c4
add locale support to pa_parse_boolean()
2008-08-09 03:46:23 +02:00
Lennart Poettering
75b28e97fa
remove some leftover debug string
2008-08-07 02:29:44 +02:00
Lennart Poettering
ecb2bc4f04
Modify pa_state_path() to take an additional argument for prepending the machine id to the file name.
2008-08-07 02:28:47 +02:00
Lennart Poettering
bd05b36a1e
Rework state/runtime directory logic
...
The runtime directory is now guaranteed to be in /tmp which will hopefully
provide support for POSIX file locking and UNIX sockets.
The state directory stays in $HOME.
2008-08-07 02:25:48 +02:00
Lennart Poettering
73e2577ca6
add new function pa_machine_id()
2008-08-07 02:22:57 +02:00
Lennart Poettering
9fde00e449
fix a few potential bad memory accesses
2008-08-06 03:04:22 +02:00
Lennart Poettering
3c6da6e741
don't pass rediculously high values to umask()
2008-07-30 14:21:11 +02:00
Lennart Poettering
68ae1d4d00
fix two thinkos in signal reset/close_all code
2008-07-29 15:36:00 +02:00
Lennart Poettering
2199b8e1ad
Properly check for home directory
2008-06-21 13:55:52 +02:00
Lennart Poettering
8ae83d618e
get rid of svn $ keywords
2008-06-18 23:23:21 +03:00
Lennart Poettering
67fde59fed
replace pa_atof() by pa_atod() because floats are lame
...
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@2506 fefdeb5f-60dc-0310-8127-8f9354f1896f
2008-06-11 00:37:41 +00:00
Lennart Poettering
a9c80b4383
add new functions pa_state_path()/pa_get_state_dir(), change return value of pa_startswith()/pa_endswith() pa_bool, add pa_in_system_mode() and pa_streq(); alow pa_unlock_lockfile() without file name spec
...
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@2470 fefdeb5f-60dc-0310-8127-8f9354f1896f
2008-05-21 22:39:40 +00:00
Lennart Poettering
3c7a7952b2
fix pa_close_all() to make it actually work as advertised
...
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@2464 fefdeb5f-60dc-0310-8127-8f9354f1896f
2008-05-18 19:09:14 +00:00
Lennart Poettering
045c1d602d
merge glitch-free branch back into trunk
...
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@2445 fefdeb5f-60dc-0310-8127-8f9354f1896f
2008-05-15 23:34:41 +00:00
Lennart Poettering
ca0c5af323
make sure to create ~/.pulse before using any configuration file from it
...
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@2078 fefdeb5f-60dc-0310-8127-8f9354f1896f
2007-11-24 16:22:23 +00:00
Lennart Poettering
9ac93287a8
Properly terminate pa_readlink() strings. Patch from Sjoerd Simons. Closes #149
...
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@2019 fefdeb5f-60dc-0310-8127-8f9354f1896f
2007-11-04 14:11:53 +00:00
Lennart Poettering
7bfd1b2f01
make rtprio and nice level actually configurable
...
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@2014 fefdeb5f-60dc-0310-8127-8f9354f1896f
2007-11-01 02:58:26 +00:00
Lennart Poettering
cecd8d4d7b
fix comment
...
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@2006 fefdeb5f-60dc-0310-8127-8f9354f1896f
2007-11-01 00:06:51 +00:00
Lennart Poettering
625a87276a
make gcc shut up a bit more
...
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1987 fefdeb5f-60dc-0310-8127-8f9354f1896f
2007-10-29 21:19:05 +00:00
Lennart Poettering
ca98c544ab
add new pa_readlink() API
...
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1974 fefdeb5f-60dc-0310-8127-8f9354f1896f
2007-10-29 15:31:24 +00:00
Lennart Poettering
a67c21f093
merge 'lennart' branch back into trunk.
...
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1971 fefdeb5f-60dc-0310-8127-8f9354f1896f
2007-10-28 19:13:50 +00:00
Lennart Poettering
1e12e0ee8d
Kill spaces on EOL
...
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1465 fefdeb5f-60dc-0310-8127-8f9354f1896f
2007-05-29 17:24:48 +00:00
Lennart Poettering
67cb77575f
build fix for systems lacking capability suppoort. (Problem identified and original patch supplied by Diego Petteno
...
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1462 fefdeb5f-60dc-0310-8127-8f9354f1896f
2007-05-28 15:52:13 +00:00
Lennart Poettering
4d88fcd59d
when called with the setid bit change euid to uid sooner to make sure that we can access our own files even when we dropped most capabilities. ( Closes #21 )
...
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1455 fefdeb5f-60dc-0310-8127-8f9354f1896f
2007-05-25 20:35:30 +00:00
Pierre Ossman
df47c7b828
Add a wrapper around close() to work around Windows' ass backwards way of
...
handling sockets.
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1429 fefdeb5f-60dc-0310-8127-8f9354f1896f
2007-02-14 12:13:49 +00:00
Pierre Ossman
06211b7c8f
Add copyright notices to all relevant files. (based on svn log)
...
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1426 fefdeb5f-60dc-0310-8127-8f9354f1896f
2007-02-13 15:35:19 +00:00
Pierre Ossman
f65ab1b3eb
Don't abort config loading when the user specific cannot be loaded.
...
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1423 fefdeb5f-60dc-0310-8127-8f9354f1896f
2007-02-05 10:26:14 +00:00