lib/timer.c needs sys/time.h included under FreeBSD ...

The Hermit Hacker scrappy at hub.org
Wed Feb 7 15:12:15 UTC 2001


On Wed, 7 Feb 2001, Katsuhiro Kondou wrote:

>
> In article <Pine.BSF.4.31.0102071016510.6466-100000 at thelab.hub.org>,
> 	The Hermit Hacker <scrappy at hub.org> wrote;
>
> } so something is converting _path -> 9?
>
> That's defined in innd.h.
>
> #define _path                   9
>
> I'm not sure how renamed.  _PATH is safe?

I would think so, but how many places is _path used right now?  just in
the innd directory itself:

news# grep _path *
art.c:  hp[i].p = HDR(_path);
art.c:  hp[i++].index = _path;
art.c:      case _path:
art.c:    iov[iovcnt++].iov_len = HDR(_path) - p;
art.c:    arth.len += HDR(_path) - p;
art.c:    p = HDR(_path);
art.c:            if (HDR_FOUND(_path)) {
art.c:              hopcount = ARTparsepath(HDR(_path), HDR_LEN(_path),
art.c:  hopcount = ARTparsepath(HDR(_path), HDR_LEN(_path), &data->Path);
art.c:  filterPath = HDR(_path);
cc.c:    strcpy(client.sun_path, argv[0]);
cc.c:    strcpy(server.sun_path, CCpath);
innd.c:/* #define _path                         9 */
innd.h:#define _path                    9
lc.c:    (void)strcpy(server.sun_path, LCpath);
site.c:     BUFFappend(bp, HDR(_path), HDR_LEN(_path));
news# pwd
/news/src/cvs/inn/innd

doing a quick scan in /usr/include, I find no definitions of _PATH, so it
should be safe ... I always thought that convention for C was that if you
define something, you do it in all upper case?



More information about the inn-workers mailing list