"SfR Fresh" - the SfR Freeware/Shareware Archive

Member "lha-114i/src/lhdir.h" of archive lha-114i.tar.gz:


As a special service "SfR Fresh" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. That can be also achieved for any archive member file by clicking within an archive contents listing on the first character of the file(path) respectively on the according byte size field.
    1 /* ------------------------------------------------------------------------ */
    2 /* LHa for UNIX    Directory access routine									*/
    3 /*																			*/
    4 /*		Modified          		Nobutaka Watazaki							*/
    5 /* Emulate opendir(), readdir(), closedir() function for LHa				*/
    6 /*																			*/
    7 /*	Ver. 1.14 	Soruce All chagned				1995.01.14	N.Watazaki		*/
    8 /* ------------------------------------------------------------------------ */
    9 
   10 #ifndef DIRBLKSIZ
   11 #define DIRBLKSIZ	512
   12 #endif
   13 
   14 /* ------------------------------------------------------------------------ */
   15 /*	Type Definition															*/
   16 /* ------------------------------------------------------------------------ */
   17 struct direct {
   18 	int             d_ino;
   19 	int             d_namlen;
   20 	char            d_name[256];
   21 };
   22 
   23 typedef struct {
   24 	int             dd_fd;
   25 	int             dd_loc;
   26 	int             dd_size;
   27 	char            dd_buf[DIRBLKSIZ];
   28 }               DIR;
   29 
   30 /* ------------------------------------------------------------------------ */
   31 /*	Functions																*/
   32 /* ------------------------------------------------------------------------ */
   33 extern DIR     		 *opendir();
   34 extern struct direct *readdir();
   35 extern int			 closedir();