view modules/sys_stat @ 6916:db0082829637

* m4/absolute-header.m4: Renamed from full-header-path.m4. This is to keep the terminology clean; POSIX talks about "absolute pathnames", not "full pathnames", but the GNU Coding Standards say to use "path" for something else; so use "absolute" to keep both sides happy. (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH. Set gl_absolute_header, not gl_full_header_path. Set gl_cv_absolute_<header>, not gl_full_path_<header>. Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>. All uses changed.
author Paul Eggert <eggert@cs.ucla.edu>
date Tue, 04 Jul 2006 06:37:09 +0000
parents 4f743199c786
children 8dffb67501b7
line wrap: on
line source

Description:
A <sys/stat.h> for systems with missing declarations.

Files:
lib/stat_.h
m4/absolute-header.m4
m4/sys_stat_h.m4

Depends-on:

configure.ac:
gl_HEADER_SYS_STAT_H

Makefile.am:
BUILT_SOURCES += $(SYS_STAT_H)
EXTRA_DIST += stat_.h

# We need the following in order to create <sys/stat.h> when the system
# has one that is incomplete.
sys/stat.h: stat_.h
	test -d sys || mkdir sys
	sed -e 's|@''ABSOLUTE_SYS_STAT_H''@|$(ABSOLUTE_SYS_STAT_H)|g' \
	    < $(srcdir)/stat_.h > $@-t
	mv $@-t $@
MOSTLYCLEANFILES += sys/stat.h sys/stat.h-t
MOSTLYCLEANDIRS += sys

Include:
#include <sys/stat.h>

License:
LGPL

Maintainer:
Eric Blake