public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* file
@ 1998-10-29 11:20 Todd Goodman
  1998-10-31 18:06 ` file Corinna Vinschen
  0 siblings, 1 reply; 8+ messages in thread
From: Todd Goodman @ 1998-10-29 11:20 UTC (permalink / raw)
  To: gnu-win32

I'm sure I'm overlooking something obvious, but is the 'file' command or
equivalent available anywhere?

I've been looking in the GNU textutils, fileutils, findutils, etc. and
haven't found it.

Thanks very much,

Todd Goodman

-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: file
  1998-10-29 11:20 file Todd Goodman
@ 1998-10-31 18:06 ` Corinna Vinschen
  1998-10-31 22:53   ` file Todd Goodman
  1998-11-01 12:21   ` file Leif Jackson
  0 siblings, 2 replies; 8+ messages in thread
From: Corinna Vinschen @ 1998-10-31 18:06 UTC (permalink / raw)
  To: Todd Goodman, gnu-win32

Hi Todd,

> I'm sure I'm overlooking something obvious, but is the 'file' command
> or equivalent available anywhere?

Look at the GNU Homepage. There you will find the original
sources. Only one patch is needed, because
#include <sys/sysmacros.h> isn't available in cygwin.

Regards,
Corinna

------- snip -------
--- fsmagic.c.orig      Sun Nov 01 00:50:08 1998
+++ fsmagic.c   Sun Nov 01 00:53:20 1998
@@ -38,7 +38,13 @@
 # endif
 #endif
 #ifndef        major         /* if `major' not defined in types.h, */
+#ifdef __CYGWIN32__
+#define major(dev) (((unsigned) (dev))>>8)
+#define minor(dev) ((dev)&0xff)
+#define makedev(major,minor) (((major)<<8)|(minor))
+#else
 #include <sys/sysmacros.h>     /* try this one. */
+#endif
 #endif
 #ifndef        major   /* still not defined? give up, manual
intervention needed */
                /* If cc tries to compile this, read and act on it. */
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".

^ permalink raw reply	[flat|nested] 8+ messages in thread

* RE: file
  1998-10-31 18:06 ` file Corinna Vinschen
@ 1998-10-31 22:53   ` Todd Goodman
  1998-11-02  0:02     ` file Corinna Vinschen
  1998-11-01 12:21   ` file Leif Jackson
  1 sibling, 1 reply; 8+ messages in thread
From: Todd Goodman @ 1998-10-31 22:53 UTC (permalink / raw)
  To: Corinna Vinschen, gnu-win32

Thanks very much for the information.  However, I'm still unable to find the
proper package either at
http://www.gnu.org or ftp://prep.ai.mit.edu .

Do you have the proper package name?

I appreciate the patch and will use it as soon as I find the package with
fsmagic.c in it.  :-)

Thanks again,

Todd

> -----Original Message-----
> From: Corinna Vinschen [ mailto:corinna.vinschen@cityweb.de ]
> Sent: Saturday, October 31, 1998 8:03 PM
> To: Todd Goodman; gnu-win32@cygnus.com
> Subject: Re: file
>
>
> Hi Todd,
>
> > I'm sure I'm overlooking something obvious, but is the 'file' command
> > or equivalent available anywhere?
>
> Look at the GNU Homepage. There you will find the original
> sources. Only one patch is needed, because
> #include <sys/sysmacros.h> isn't available in cygwin.
>
> Regards,
> Corinna
>
> ------- snip -------
> --- fsmagic.c.orig      Sun Nov 01 00:50:08 1998
> +++ fsmagic.c   Sun Nov 01 00:53:20 1998
> @@ -38,7 +38,13 @@
>  # endif
>  #endif
>  #ifndef        major         /* if `major' not defined in types.h, */
> +#ifdef __CYGWIN32__
> +#define major(dev) (((unsigned) (dev))>>8)
> +#define minor(dev) ((dev)&0xff)
> +#define makedev(major,minor) (((major)<<8)|(minor))
> +#else
>  #include <sys/sysmacros.h>     /* try this one. */
> +#endif
>  #endif
>  #ifndef        major   /* still not defined? give up, manual
> intervention needed */
>                 /* If cc tries to compile this, read and act on it. */
>

-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: file
  1998-10-31 18:06 ` file Corinna Vinschen
  1998-10-31 22:53   ` file Todd Goodman
@ 1998-11-01 12:21   ` Leif Jackson
  1 sibling, 0 replies; 8+ messages in thread
From: Leif Jackson @ 1998-11-01 12:21 UTC (permalink / raw)
  To: Corinna Vinschen; +Cc: Todd Goodman, gnu-win32

Accualy the command file doesn't seem to be a gnu product.

I found the lastest version for the orginal site found on sunsite's lsm
file.

ftp://ftp.astron.com/pub/file/file-3.26.tar.gz

Laters,
Leif

p.s. Rember that B20 doesn't use __CYGWIN32__ anymore it has __CYGWIN__
for your patch below :)


On Sun, 1 Nov 1998, Corinna Vinschen wrote:

>Date: Sun, 01 Nov 1998 02:02:39 +0100
>From: Corinna Vinschen <corinna.vinschen@cityweb.de>
>To: Todd Goodman <tsg1@earthlink.net>,
    gnu-win32@cygnus.com
>Subject: Re: file
>
>Hi Todd,
>
>> I'm sure I'm overlooking something obvious, but is the 'file' command
>> or equivalent available anywhere?
>
>Look at the GNU Homepage. There you will find the original
>sources. Only one patch is needed, because
>#include <sys/sysmacros.h> isn't available in cygwin.
>
>Regards,
>Corinna
>
>------- snip -------
>--- fsmagic.c.orig      Sun Nov 01 00:50:08 1998
>+++ fsmagic.c   Sun Nov 01 00:53:20 1998
>@@ -38,7 +38,13 @@
> # endif
> #endif
> #ifndef        major         /* if `major' not defined in types.h, */
>+#ifdef __CYGWIN32__
>+#define major(dev) (((unsigned) (dev))>>8)
>+#define minor(dev) ((dev)&0xff)
>+#define makedev(major,minor) (((major)<<8)|(minor))
>+#else
> #include <sys/sysmacros.h>     /* try this one. */
>+#endif
> #endif
> #ifndef        major   /* still not defined? give up, manual
>intervention needed */
>                /* If cc tries to compile this, read and act on it. */
>-
>For help on using this list (especially unsubscribing), send a message to
>"gnu-win32-request@cygnus.com" with one line of text: "help".
>

  +-------------------------------------------------------+
  | Network Engineer               (770) 333-8779 x617    |
  | Programmer && Linux Enthusiast http://www.islenet.org |
  | ComStar Communications, Inc.   http://www.comstar.net |
  +-------------------------------------------------------+
PGP Key fingerprint = 6A B4 B3 F2 4B 78 64 EA  2B A7 23 98 AF EA EE 29
http://isle.comstar.net/~leif/pgpkeys.html for the full key.

-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".

^ permalink raw reply	[flat|nested] 8+ messages in thread

* RE: file
  1998-11-02  0:02     ` file Corinna Vinschen
@ 1998-11-02  0:02       ` Todd Goodman
  1998-11-02 21:23         ` file Marty Leisner
  0 siblings, 1 reply; 8+ messages in thread
From: Todd Goodman @ 1998-11-02  0:02 UTC (permalink / raw)
  To: Corinna Vinschen, Leif Jackson, gnu-win32

This is great.

My thanks to you both,

Todd

> -----Original Message-----
> From: Corinna Vinschen [ mailto:corinna.vinschen@cityweb.de ]
> Sent: Sunday, November 01, 1998 6:56 PM
> To: Todd Goodman; Leif Jackson; gnu-win32@cygnus.com
> Subject: Re: file
> 
> 
> Todd Goodman wrote:
> > 
> > Thanks very much for the information.  However, I'm still 
> unable to find the
> > proper package either at
> > http://www.gnu.org or ftp://prep.ai.mit.edu .
> > 
> > Do you have the proper package name?
> 
> > Leif Jackson wrote:
> > Accualy the command file doesn't seem to be a gnu product.
> > 
> > I found the lastest version for the orginal site found on sunsite's lsm
> > file.
> > 
> > ftp://ftp.astron.com/pub/file/file-3.26.tar.gz
> > 
> > Laters,
> > Leif
> > 
> 
> OOOPS!
> 
> Do you see my red head? Your answers gave me the decisive tip:
> The sources, I've used, were not from the gnu page, but
> from Linux sources, version file-3.22. Sorry, sorry, sorry!
> 
> The file-3.26, mentioned by Leif, is the newest version of it.
> I have download and compiled it. The patchfile is attached.
> My mail to you, Todd, were too fast written. Compiling the
> 3.26 shows another problem, the missing "#include <errno.h>"
> in three files.
> 
> > p.s. Rember that B20 doesn't use __CYGWIN32__ anymore it has __CYGWIN__
> > for your patch below :)
> 
> Correct! The patchfile contains the patch for both versions (b19 and
> b20).
> 
> Regards,
> Corinna
> 
> -------- snip ---------
> --- compress.c.orig     Mon Nov 02 00:46:43 1998
> +++ compress.c  Mon Nov 02 00:47:01 1998
> @@ -9,6 +9,7 @@
>  #include <stdlib.h>
>  #include <unistd.h>
>  #include <string.h>
> +#include <errno.h>
>  #ifdef HAVE_CONFIG_H
>  #include "config.h"
>  #endif
> --- file.c.orig Mon Nov 02 00:45:15 1998
> +++ file.c      Mon Nov 02 00:46:27 1998
> @@ -31,6 +31,7 @@
>  #include <sys/param.h> /* for MAXPATHLEN */
>  #include <sys/stat.h>
>  #include <fcntl.h>     /* for open() */
> +#include <errno.h>
>  #ifdef RESTORE_TIME
>  # if (__COHERENT__ >= 0x420)
>  #  include <sys/utime.h>
> --- fsmagic.c.orig      Mon Nov 02 00:45:07 1998
> +++ fsmagic.c   Mon Nov 02 00:50:40 1998
> @@ -31,6 +31,7 @@
>  #include <sys/stat.h>
>  #include <unistd.h>
>  #include <stdlib.h>
> +#include <errno.h>
>  #ifdef HAVE_CONFIG_H
>  #include "config.h"
>  #endif
> @@ -40,7 +41,13 @@
>  # endif
>  #endif
>  #ifndef        major                   /* if `major' not defined in
> types.h, */
> +#if defined(__CYGWIN32__) || defined(__CYGWIN__)
> +#define major(dev) (((unsigned) (dev))>>8)
> +#define minor(dev) ((dev)&0xff)
> +#define makedev(major,minor) (((major)<<8)|(minor))
> +#else
>  #include <sys/sysmacros.h>     /* try this one. */
> +#endif
>  #endif
>  #ifndef        major   /* still not defined? give up, manual
> intervention needed */
>                 /* If cc tries to compile this, read and act on it. */
> 
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: file
  1998-10-31 22:53   ` file Todd Goodman
@ 1998-11-02  0:02     ` Corinna Vinschen
  1998-11-02  0:02       ` file Todd Goodman
  0 siblings, 1 reply; 8+ messages in thread
From: Corinna Vinschen @ 1998-11-02  0:02 UTC (permalink / raw)
  To: Todd Goodman, Leif Jackson, gnu-win32

Todd Goodman wrote:
> 
> Thanks very much for the information.  However, I'm still unable to find the
> proper package either at
> http://www.gnu.org or ftp://prep.ai.mit.edu .
> 
> Do you have the proper package name?

> Leif Jackson wrote:
> Accualy the command file doesn't seem to be a gnu product.
> 
> I found the lastest version for the orginal site found on sunsite's lsm
> file.
> 
> ftp://ftp.astron.com/pub/file/file-3.26.tar.gz
> 
> Laters,
> Leif
> 

OOOPS!

Do you see my red head? Your answers gave me the decisive tip:
The sources, I've used, were not from the gnu page, but
from Linux sources, version file-3.22. Sorry, sorry, sorry!

The file-3.26, mentioned by Leif, is the newest version of it.
I have download and compiled it. The patchfile is attached.
My mail to you, Todd, were too fast written. Compiling the
3.26 shows another problem, the missing "#include <errno.h>"
in three files.

> p.s. Rember that B20 doesn't use __CYGWIN32__ anymore it has __CYGWIN__
> for your patch below :)

Correct! The patchfile contains the patch for both versions (b19 and
b20).

Regards,
Corinna

-------- snip ---------
--- compress.c.orig     Mon Nov 02 00:46:43 1998
+++ compress.c  Mon Nov 02 00:47:01 1998
@@ -9,6 +9,7 @@
 #include <stdlib.h>
 #include <unistd.h>
 #include <string.h>
+#include <errno.h>
 #ifdef HAVE_CONFIG_H
 #include "config.h"
 #endif
--- file.c.orig Mon Nov 02 00:45:15 1998
+++ file.c      Mon Nov 02 00:46:27 1998
@@ -31,6 +31,7 @@
 #include <sys/param.h> /* for MAXPATHLEN */
 #include <sys/stat.h>
 #include <fcntl.h>     /* for open() */
+#include <errno.h>
 #ifdef RESTORE_TIME
 # if (__COHERENT__ >= 0x420)
 #  include <sys/utime.h>
--- fsmagic.c.orig      Mon Nov 02 00:45:07 1998
+++ fsmagic.c   Mon Nov 02 00:50:40 1998
@@ -31,6 +31,7 @@
 #include <sys/stat.h>
 #include <unistd.h>
 #include <stdlib.h>
+#include <errno.h>
 #ifdef HAVE_CONFIG_H
 #include "config.h"
 #endif
@@ -40,7 +41,13 @@
 # endif
 #endif
 #ifndef        major                   /* if `major' not defined in
types.h, */
+#if defined(__CYGWIN32__) || defined(__CYGWIN__)
+#define major(dev) (((unsigned) (dev))>>8)
+#define minor(dev) ((dev)&0xff)
+#define makedev(major,minor) (((major)<<8)|(minor))
+#else
 #include <sys/sysmacros.h>     /* try this one. */
+#endif
 #endif
 #ifndef        major   /* still not defined? give up, manual
intervention needed */
                /* If cc tries to compile this, read and act on it. */
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: file
  1998-11-02  0:02       ` file Todd Goodman
@ 1998-11-02 21:23         ` Marty Leisner
  1998-11-04 22:40           ` file Corinna Vinschen
  0 siblings, 1 reply; 8+ messages in thread
From: Marty Leisner @ 1998-11-02 21:23 UTC (permalink / raw)
  To: Todd Goodman; +Cc: Corinna Vinschen, Leif Jackson, gnu-win32

Wouldn't it be better to have a file
sys/sysmacros.h and have it in:

#ifndef _SYS_SYSMACROS_H
#define _SYS_SYSMACROS_H

#define major(dev) (((unsigned) (dev))>>8)
#define minor(dev) ((dev)&0xff)
#define makedev(major,minor) (((major)<<8)|(minor))

#endif

(I got this from linux)

Marty Leisner


-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: file
  1998-11-02 21:23         ` file Marty Leisner
@ 1998-11-04 22:40           ` Corinna Vinschen
  0 siblings, 0 replies; 8+ messages in thread
From: Corinna Vinschen @ 1998-11-04 22:40 UTC (permalink / raw)
  To: leisner, gnu-win32

Marty
Leisner
wrote:
> 
> Wouldn't it be better to have a file
> sys/sysmacros.h and have it in:
> 
> #ifndef _SYS_SYSMACROS_H
> #define _SYS_SYSMACROS_H
> 
> #define major(dev) (((unsigned) (dev))>>8)
> #define minor(dev) ((dev)&0xff)
> #define makedev(major,minor) (((major)<<8)|(minor))
> 
> #endif
> 
> (I got this from linux)
> 
> Marty Leisner

Yes,
agree!

I will
suggest
this file
(which I
already
have
copied
from
Linux at
my local
system :)
to be part
of
official
Cygnus
environment.

Corinna
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~1998-11-04 22:40 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1998-10-29 11:20 file Todd Goodman
1998-10-31 18:06 ` file Corinna Vinschen
1998-10-31 22:53   ` file Todd Goodman
1998-11-02  0:02     ` file Corinna Vinschen
1998-11-02  0:02       ` file Todd Goodman
1998-11-02 21:23         ` file Marty Leisner
1998-11-04 22:40           ` file Corinna Vinschen
1998-11-01 12:21   ` file Leif Jackson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).