From: Jeremiah Mahler <jmmahler@gmail.com>
To: Oliver Hartkopp <socketcan@hartkopp.net>
Cc: linux-can@vger.kernel.org
Subject: Re: [PATCH 4/5] use line discipline number from linux/tty.h
Date: Tue, 23 Dec 2014 22:20:16 -0800 [thread overview]
Message-ID: <20141224062016.GA32193@hudson.localdomain> (raw)
In-Reply-To: <5499A9DD.5050109@hartkopp.net>
Oliver,
On Tue, Dec 23, 2014 at 06:43:57PM +0100, Oliver Hartkopp wrote:
> Hello Jeremiah,
>
> thanks for your improvements!
>
> On 19.12.2014 16:22, Jeremiah Mahler wrote:
> >The line discipline number is provided in include/linux/tty.h.
> >Use that instead of a #define in each program.
>
> I have a toolchain which is based on 2.6.18 kernel includes.
> So I probably have to patch the can-utils when building the latest version
> of can-utils with my 'old' toolchain now.
>
Hmm, backward compatibility is good too.
As long as LDISC_N_SLCAN doesn't change the old way will work on every
system. Maybe we should just leave it that way.
> Btw. you are right to use the common includes and remove this kind of hack.
>
> So I applied your patches 1-4.
>
> The UDEV rules are interesting too. But I wonder if a new 'doc' directory is
> the right place for it. Currently the can_if script to set the CAN interface
> bitrates and other configurations is placed in the can-misc repository in
> the 'etc' directory.
>
I wasn't sure about this either.
Debian packages often place example configuration files in doc/examples.
This is what I had in mind, except I left out examples/ because two
directory levels for two files seemed excessive.
Using etc/ does make logical sense for system wide configuration files.
Some projects also use conf/ or config/.
I imagined these scripts being useful as examples. But they certainly
could be installed system wide since the commands are not specific to
any user. The can-utils .deb package could install these for example.
> This is probably a wrong place too.
>
> I have no real idea where to put these kind of useful scripts ...
>
I am starting to like the etc/ directory for system wide config files.
If these were user specific configuration files, like '.slcanrc', they
would make sense in a doc/examples directory.
> Regards,
> Oliver
>
--
- Jeremiah Mahler
next prev parent reply other threads:[~2014-12-24 6:20 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-12-19 15:22 [PATCH 0/5] can-utils: slcand: minor fixes and udev scripts Jeremiah Mahler
2014-12-19 15:22 ` [PATCH 1/5] slcand: improve usage examples Jeremiah Mahler
2014-12-19 15:22 ` [PATCH 2/5] slcand: remove #define EXIT_FAILURE, EXIT_SUCCESS Jeremiah Mahler
2014-12-19 15:22 ` [PATCH 3/5] slcand: consistent use of exit(EXIT_FAILURE) Jeremiah Mahler
2014-12-19 15:22 ` [PATCH 4/5] use line discipline number from linux/tty.h Jeremiah Mahler
2014-12-23 17:43 ` Oliver Hartkopp
2014-12-24 6:20 ` Jeremiah Mahler [this message]
2014-12-19 15:22 ` [PATCH 5/5] slcand: add example scripts for udev/systemd Jeremiah Mahler
2014-12-27 21:10 ` [PATCH 5/5 v2] " Jeremiah Mahler
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20141224062016.GA32193@hudson.localdomain \
--to=jmmahler@gmail.com \
--cc=linux-can@vger.kernel.org \
--cc=socketcan@hartkopp.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox