/[oroborus]/oroborus/src/system.h
ViewVC logotype

Diff of /oroborus/src/system.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.2 by dreamind, Sun Jul 7 03:17:41 2002 UTC revision 1.3 by dreamind, Mon Jul 15 08:23:08 2002 UTC
# Line 135  off_t lseek (); Line 135  off_t lseek ();
135  #include <sys/sysmacros.h>  #include <sys/sysmacros.h>
136  #define HAVE_MAJOR  #define HAVE_MAJOR
137  #endif  #endif
138  #ifdef major                    /* Might be defined in sys/types.h.  */  #ifdef major                                                                            /* Might be defined in sys/types.h.  */
139  #define HAVE_MAJOR  #define HAVE_MAJOR
140  #endif  #endif
141    
# Line 155  off_t lseek (); Line 155  off_t lseek ();
155  #ifndef HAVE_STRUCT_UTIMBUF  #ifndef HAVE_STRUCT_UTIMBUF
156  struct utimbuf  struct utimbuf
157  {  {
158    long actime;          long actime;
159    long modtime;          long modtime;
160  };  };
161  #endif  #endif
162    
# Line 182  extern int errno; Line 182  extern int errno;
182  #define getopt system_getopt  #define getopt system_getopt
183  #include <stdlib.h>  #include <stdlib.h>
184  #undef getopt  #undef getopt
185  #else /* not STDC_HEADERS */  #else   /* not STDC_HEADERS */
186  char *getenv ();  char *getenv ();
187  #endif /* STDC_HEADERS */  #endif /* STDC_HEADERS */
188    
# Line 219  char *getenv (); Line 219  char *getenv ();
219  #ifdef HAVE_DIRENT_H  #ifdef HAVE_DIRENT_H
220  # include <dirent.h>  # include <dirent.h>
221  # define NLENGTH(direct) (strlen((direct)->d_name))  # define NLENGTH(direct) (strlen((direct)->d_name))
222  #else /* not HAVE_DIRENT_H */  #else   /* not HAVE_DIRENT_H */
223  # define dirent direct  # define dirent direct
224  # define NLENGTH(direct) ((direct)->d_namlen)  # define NLENGTH(direct) ((direct)->d_namlen)
225  # ifdef HAVE_SYS_NDIR_H  # ifdef HAVE_SYS_NDIR_H
# Line 245  char *getenv (); Line 245  char *getenv ();
245  #ifndef DEV_BSIZE  #ifndef DEV_BSIZE
246  #ifdef BSIZE  #ifdef BSIZE
247  #define DEV_BSIZE BSIZE  #define DEV_BSIZE BSIZE
248  #else /* !BSIZE */  #else   /* !BSIZE */
249  #define DEV_BSIZE 4096  #define DEV_BSIZE 4096
250  #endif /* !BSIZE */  #endif /* !BSIZE */
251  #endif /* !DEV_BSIZE */  #endif /* !DEV_BSIZE */
# Line 261  char *getenv (); Line 261  char *getenv ();
261  # else /* !_POSIX_SOURCE && BSIZE */  # else /* !_POSIX_SOURCE && BSIZE */
262  #  define ST_NBLOCKS(statbuf) (st_blocks ((statbuf).st_size))  #  define ST_NBLOCKS(statbuf) (st_blocks ((statbuf).st_size))
263  # endif /* !_POSIX_SOURCE && BSIZE */  # endif /* !_POSIX_SOURCE && BSIZE */
264  #else /* HAVE_ST_BLOCKS */  #else   /* HAVE_ST_BLOCKS */
265  /* Some systems, like Sequents, return st_blksize of 0 on pipes. */  /* Some systems, like Sequents, return st_blksize of 0 on pipes. */
266  # define ST_BLKSIZE(statbuf) ((statbuf).st_blksize > 0 \  # define ST_BLKSIZE(statbuf) ((statbuf).st_blksize > 0 \
267                                 ? (statbuf).st_blksize : DEV_BSIZE)                                 ? (statbuf).st_blksize : DEV_BSIZE)
# Line 278  char *getenv (); Line 278  char *getenv ();
278  #    define ST_NBLOCKS(statbuf) ((statbuf).st_blocks * ST_BLKSIZE(statbuf)/512)  #    define ST_NBLOCKS(statbuf) ((statbuf).st_blocks * ST_BLKSIZE(statbuf)/512)
279  #   else /* not AIX PS/2 nor CRAY */  #   else /* not AIX PS/2 nor CRAY */
280  #    define ST_NBLOCKS(statbuf) ((statbuf).st_blocks)  #    define ST_NBLOCKS(statbuf) ((statbuf).st_blocks)
281  #   endif /* not _CRAY */  #   endif       /* not _CRAY */
282  #  endif /* not AIX PS/2 */  #  endif /* not AIX PS/2 */
283  # endif /* !hpux */  # endif /* !hpux */
284  #endif /* HAVE_ST_BLOCKS */  #endif /* HAVE_ST_BLOCKS */
# Line 381  char *alloca (); Line 381  char *alloca ();
381  # undef bindtextdomain  # undef bindtextdomain
382  # define bindtextdomain(Domain, Directory)      /* empty */  # define bindtextdomain(Domain, Directory)      /* empty */
383  # undef textdomain  # undef textdomain
384  # define textdomain(Domain)     /* empty */  # define textdomain(Domain)                                                                     /* empty */
385  # define _(Text) Text  # define _(Text) Text
386  #endif  #endif
387    
388  #define STREQ(a,b) (strcmp((a), (b)) == 0)  #define STREQ(a,b) (strcmp((a), (b)) == 0)
389    
390  /**This must remain at the end of the file.**********  /**This must remain at the end of the file.**********
391   * vim600:set sw=2 ts=8:                            *   * vim600:set sw=2 ts=2:                            *
392   * vim600:set cindent cinoptions={1s,>2s,^-1s,n-1s: *   * vim600:set cindent cinoptions={1s,>2s,^-1s,n-1s: *
393   * vim600:set foldmethod=marker:                    *   * vim600:set foldmethod=marker:                    *
394   ****************************************************/   ****************************************************/

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26