bug-textutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

tail and Win32


From: Lionel Fourquaux
Subject: tail and Win32
Date: Wed, 1 Nov 2000 13:51:03 +0100

        Hello !


        In the hope that it might be useful to someone, I've attached a patch
with the changes I made to make the 'tail' command work on Windows (2000).
With it, --follow and --pid are working on my PC.

        This is for a native Win32 version of 'tail' (NOT cygwin), build
directly from the Unix source (textutils 2.0), using MS Visual C/C++ 6.

        I've not attached my config.h, because it contains some rather unclean
things you wouldn't want to see...  This patch is for the file tail.c and
contains all the relevant changes.

        Here are the details of what I did :
 * I added Win32 code to wait for a process (between #ifdef _WIN32 ...
#endif).
 * I changed the comparison of inodes to a call to fdmatch (from the
libiberty
   library -- I wrote a working Win32 version).
 * I took out a string that was too long for the compiler, and put it in a
   ressource file (if _WIN32 is defined, of course).

        It is not enough to make it easy to build tail for Windows, but possibly
it might help a lot someone who would try it.

        If you like what you see in my patch (or don't dislike it too much),
please tell me so.

        I hope you'll find this useful.


                Lionel Fourquaux




Attachment: tail.c.diff
Description: Binary data

Attachment: tail.rc
Description: Binary data

Attachment: fdmatch_win32.c
Description: Binary data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]