Browse Source

switch -L to -r for --no-realtime, drop single char flag for --replace-registry, tweak help message to name net backend correctly

git-svn-id: svn+ssh://jackaudio.org/trunk/jack@3790 0c269be4-1314-0410-8aa9-9f06e86f4224
tags/0.118.0
paul 15 years ago
parent
commit
d7c2dff7c6
3 changed files with 17 additions and 18 deletions
  1. +1
    -1
      configure.ac
  2. +2
    -2
      jackd/jackd.1.in
  3. +14
    -15
      jackd/jackd.c

+ 1
- 1
configure.ac View File

@@ -61,7 +61,7 @@ dnl micro version = incremented when implementation-only
dnl changes are made dnl changes are made
dnl --- dnl ---
JACK_MAJOR_VERSION=0 JACK_MAJOR_VERSION=0
JACK_MINOR_VERSION=117
JACK_MINOR_VERSION=118
JACK_MICRO_VERSION=0 JACK_MICRO_VERSION=0


dnl --- dnl ---


+ 2
- 2
jackd/jackd.1.in View File

@@ -51,7 +51,7 @@ variable. It will be "default" if that is not defined.
Set the maximum number of ports the JACK server can manage. Set the maximum number of ports the JACK server can manage.
The default value is 256. The default value is 256.
.TP .TP
\fB\-r, \-\-replace-registry\fR
\fB\-\-replace-registry\fR
.br .br
Remove the shared memory registry used by all JACK server instances Remove the shared memory registry used by all JACK server instances
before startup. This should rarely be used, and is intended only before startup. This should rarely be used, and is intended only
@@ -65,7 +65,7 @@ performance. On many systems, it requires \fBjackd\fR to run with
special scheduler and memory allocation privileges, which may be special scheduler and memory allocation privileges, which may be
obtained in several ways. obtained in several ways.
.TP .TP
\fB\-L, \-\-no-realtime\fR
\fB\-r, \-\-no-realtime\fR
.br .br
Do not use realtime scheduling. Do not use realtime scheduling.
.TP .TP


+ 14
- 15
jackd/jackd.c View File

@@ -67,6 +67,8 @@ static int do_unlock = 0;
static jack_nframes_t frame_time_offset = 0; static jack_nframes_t frame_time_offset = 0;
static int nozombies = 0; static int nozombies = 0;


extern int sanitycheck (int, int);

static void static void
do_nothing_handler (int sig) do_nothing_handler (int sig)
{ {
@@ -362,7 +364,7 @@ static void usage (FILE *file)
{ {
copyright (file); copyright (file);
fprintf (file, "\n" fprintf (file, "\n"
"usage: jackd [ --no-realtime OR -L ]\n"
"usage: jackd [ --no-realtime OR -r ]\n"
" [ --realtime OR -R [ --realtime-priority OR -P priority ] ]\n" " [ --realtime OR -R [ --realtime-priority OR -P priority ] ]\n"
" (the two previous arguments are mutually exclusive. The default is --realtime)\n" " (the two previous arguments are mutually exclusive. The default is --realtime)\n"
" [ --name OR -n server-name ]\n" " [ --name OR -n server-name ]\n"
@@ -374,15 +376,15 @@ static void usage (FILE *file)
" [ --no-sanity-checks OR -N ]\n" " [ --no-sanity-checks OR -N ]\n"
" [ --verbose OR -v ]\n" " [ --verbose OR -v ]\n"
" [ --clocksource OR -c [ c(ycle) | h(pet) | s(ystem) ]\n" " [ --clocksource OR -c [ c(ycle) | h(pet) | s(ystem) ]\n"
" [ --replace-registry OR -r ]\n"
" [ --replace-registry ]\n"
" [ --silent OR -s ]\n" " [ --silent OR -s ]\n"
" [ --version OR -V ]\n" " [ --version OR -V ]\n"
" [ --nozombies OR -Z ]\n" " [ --nozombies OR -Z ]\n"
" -d backend [ ... backend args ... ]\n" " -d backend [ ... backend args ... ]\n"
#ifdef __APPLE__ #ifdef __APPLE__
" Available backends may include: coreaudio, dummy, netjack, portaudio.\n\n"
" Available backends may include: coreaudio, dummy, net, portaudio.\n\n"
#else #else
" Available backends may include: alsa, dummy, freebob, firewire, netjack, oss, sun, or portaudio.\n\n"
" Available backends may include: alsa, dummy, freebob, firewire, net, oss, sun, or portaudio.\n\n"
#endif #endif
" jackd -d backend --help\n" " jackd -d backend --help\n"
" to display options for each backend\n\n"); " to display options for each backend\n\n");
@@ -515,7 +517,11 @@ main (int argc, char *argv[])


{ {
jack_driver_desc_t * desc; jack_driver_desc_t * desc;
const char *options = "-ad:P:uvshVRLZTFlt:mn:Np:c:";
int replace_registry = 0;
int do_sanity_checks = 1;
int show_version = 0;

const char *options = "-ad:P:uvshVrRZTFlt:mn:Np:c:";
struct option long_options[] = struct option long_options[] =
{ {
/* keep ordered by single-letter option code */ /* keep ordered by single-letter option code */
@@ -524,14 +530,14 @@ main (int argc, char *argv[])
{ "driver", 1, 0, 'd' }, { "driver", 1, 0, 'd' },
{ "help", 0, 0, 'h' }, { "help", 0, 0, 'h' },
{ "tmpdir-location", 0, 0, 'l' }, { "tmpdir-location", 0, 0, 'l' },
{ "no-realtime", 0, 0, 'L' },
{ "no-mlock", 0, 0, 'm' }, { "no-mlock", 0, 0, 'm' },
{ "name", 1, 0, 'n' }, { "name", 1, 0, 'n' },
{ "no-sanity-checks", 0, 0, 'N' }, { "no-sanity-checks", 0, 0, 'N' },
{ "port-max", 1, 0, 'p' }, { "port-max", 1, 0, 'p' },
{ "realtime-priority", 1, 0, 'P' }, { "realtime-priority", 1, 0, 'P' },
{ "no-realtime", 0, 0, 'r' },
{ "realtime", 0, 0, 'R' }, { "realtime", 0, 0, 'R' },
{ "replace-registry", 0, 0, 'r' },
{ "replace-registry", 0, &replace_registry, 0 },
{ "silent", 0, 0, 's' }, { "silent", 0, 0, 's' },
{ "timeout", 1, 0, 't' }, { "timeout", 1, 0, 't' },
{ "temporary", 0, 0, 'T' }, { "temporary", 0, 0, 'T' },
@@ -548,9 +554,6 @@ main (int argc, char *argv[])
char **driver_args = NULL; char **driver_args = NULL;
JSList * driver_params; JSList * driver_params;
int driver_nargs = 1; int driver_nargs = 1;
int show_version = 0;
int replace_registry = 0;
int do_sanity_checks = 1;
int i; int i;
int rc; int rc;


@@ -591,10 +594,6 @@ main (int argc, char *argv[])
printf ("%s\n", jack_tmpdir); printf ("%s\n", jack_tmpdir);
exit (0); exit (0);


case 'L':
realtime = 0;
break;

case 'm': case 'm':
do_mlock = 0; do_mlock = 0;
break; break;
@@ -616,7 +615,7 @@ main (int argc, char *argv[])
break; break;


case 'r': case 'r':
replace_registry = 1;
realtime = 0;
break; break;


case 'R': case 'R':


Loading…
Cancel
Save