dirent.h keeps giving me errors ???

dirent.h keeps giving me errors ???

Post by Dan Checkow » Fri, 09 Sep 1994 04:24:30




Quote:Cooper) writes:

8^) I'am trying to compile a file that uses the header file
8^) dirent.h. The compiler (gcc) does not know what the variable off_t
8^) is ? Is this defined in some library ?
8^)
8^) P.S. I'am a student I can't afford books so please don't list them unless
8^) there in the library.

Answer:
        #include <sys/types.h>

Anything ending in "_t" is most likely a type (i.e. offset type).
In the future, if something is undefined, but it's not your fault
(er...um...), try doing something like this:

        % grep off_t /usr/include/*.h
        % grep off_t /usr/include/sys/*.h

That'll get it most of the time.

TIP:  If it's a declaration, you might even want to "| grep typedef"
        to narrow the output down to the necessities.

As for the books and $, all the resources you need are sitting in
/usr -- man pages, header files, and libs (use nm) are typically
enough to figure out the tricks!

Hope this doesn't help.
______________________________________________________________________________

         Dan Checkoway                        The MathWorks, Inc.

         5086531396367                        Cochituate Place
         6174678642                           Natick, MA 01760
______________________________________________________________________________

 
 
 

dirent.h keeps giving me errors ???

Post by Kenneth Coop » Fri, 09 Sep 1994 03:32:39


I'am trying to compile a file that uses the header file
dirent.h. The compiler (gcc) does not know what the variable off_t
is ? Is this defined in some library ?

Also, so I don't burden you to much with these silly questions, is
there an FAQ for unix ???

P.S. I'am a student I can't afford books so please don't list them unless
there in the library.

Thanx in advance Ken

 
 
 

1. tinyX gives "xinit: Unknown error (errno 0): Client error." error and dies

I am trying to set up tinyX on a system I have at home. The system is
a 386SX/16 with 8 megs of RAM, 12 megs of swap space, and around 160
megs of hard drive space. It has a generic 256K video card and a Dell
13 inch monitor. (Not much of a system, I know, but I got it for
free). When I try to start up tinyX, the X server starts up (I see the
dithered background with the X cursor), and then it dies. Below is the
output it produces on the console as it is starting and dying:

Script started on Sun Oct  1 14:31:24 1995
dogbert:/usr/X386# startx

XFree86 Version 2.0 / X Window System
(protocol Version 11, revision 0, vendor release 5000)
Operating System: Linux
Configured drivers:
  VGA16: server for 4-bit colour VGA (Patchlevel 0):
      et4000, generic
(using VT number 9)

Xconfig: /usr/X386/lib/X11/Xconfig
(**) stands for supplied, (--) stands for probed/default values
(**) Mouse: type: Microsoft, device: /dev/ttyS0, baudrate: 1200
(**) FontPath set to "/usr/X386/lib/X11/fonts/misc/"
(--) VGA16: chipset:  generic
(--) VGA16: videoram: 256k (using 256k)
(--) VGA16: clocks:  25.50  28.32  35.50   0.00
(--) VGA16: Maximum allowed dot-clock: 90MHz
(**) VGA16: Mode "640x480": mode clock =  28.322, clock used =  28.322
(**) VGA16: Virtual resolution set to 800x600

waiting for X server to shut down

xinit:  Unknown error (errno 0):  Client error.
dogbert:/usr/X386#

Does anyone have any idea what is causing it to die like this?
Suggestions are greatly appreciated. Obviously it would be better if I
were running on a faster machine, but I can't afford to upgrade just
yet, so if anyone can suggest how to get this working in the meantime,
I would be most grateful.

TIA,

/Matthew

--
Matthew Cravit,               | "Cum catapultae proscriptae erunt tum
DePaul University, Chicago IL |  soli proscripti catapultas haberunt."

2. FTP Server

3. 'make dep' gives error - what gives?

4. Linux for Pentium 90 ?

5. UUgetty keeps giving me Segmetation fault?

6. showmount time out ?

7. Apache keeps giving me 'Forbidden'

8. should a processor ever use 100%

9. Laptop drive keeps coming alive - ack! What gives?

10. SKIP & PPP giving up, keeping M$ pptp

11. reassemble command line but exactly keep given words

12. X:keep trying or give up?

13. Install Error: Boot Disk Gives crc error