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 |
|
|
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 |
|
|
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 |
|
|
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 |
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 */ |
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) |
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 */ |
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 |
****************************************************/ |
****************************************************/ |