view modules/fcntl @ 7268:e476bb105193

Fix global typo in last change: use chmod u-w, not chmod u-x. Spotted by Paul Eggert and Bruce Korb. * modules/alloca-opt, modules/argz, modules/arpa_inet: * modules/byteswap, modules/configmake, modules/fcntl: * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes: * modules/localcharset, modules/netinet_in, modules/poll: * modules/stdbool, modules/stdint, modules/sys_select: * modules/sys_socket, modules/sys_stat, modules/sysexits:
author Jim Meyering <jim@meyering.net>
date Thu, 07 Sep 2006 05:53:52 +0000
parents 8dffb67501b7
children 9ff9e0f3d681
line wrap: on
line source

Description:
Like <fcntl.h>, but with non-working flags defined to 0.

Files:
lib/fcntl_.h
m4/absolute-header.m4
m4/fcntl_h.m4

Depends-on:
unistd

configure.ac:
gl_FCNTL_H

Makefile.am:
BUILT_SOURCES += $(FCNTL_H)
EXTRA_DIST += fcntl_.h

# We need the following in order to create <fcntl.h> when the system
# doesn't have one that works with the given compiler.
fcntl.h: fcntl_.h
	rm -f $@-t $@
	sed -e 's|@''ABSOLUTE_FCNTL_H''@|$(ABSOLUTE_FCNTL_H)|g' \
	    < $(srcdir)/fcntl_.h > $@-t
	chmod a-w $@-t
	mv $@-t $@
MOSTLYCLEANFILES += fcntl.h fcntl.h-t

Include:
#include <fcntl.h>

License:
LGPL

Maintainer:
all