14887Schin######################################################################## 24887Schin# # 34887Schin# This software is part of the ast package # 4*12068SRoger.Faulkner@Oracle.COM# Copyright (c) 1985-2010 AT&T Intellectual Property # 54887Schin# and is licensed under the # 64887Schin# Common Public License, Version 1.0 # 78462SApril.Chin@Sun.COM# by AT&T Intellectual Property # 84887Schin# # 94887Schin# A copy of the License is available at # 104887Schin# http://www.opensource.org/licenses/cpl1.0.txt # 114887Schin# (with md5 checksum 059e8cd6165cb4c31e351f2b69388fd9) # 124887Schin# # 134887Schin# Information and Software Systems Research # 144887Schin# AT&T Research # 154887Schin# Florham Park NJ # 164887Schin# # 174887Schin# Glenn Fowler <gsf@research.att.com> # 184887Schin# David Korn <dgk@research.att.com> # 194887Schin# Phong Vo <kpv@research.att.com> # 204887Schin# # 214887Schin######################################################################## 224887Schin: generate "<sys/param.h> + <sys/types.h> + <sys/stat.h>" include sequence 234887Schincase $# in 244887Schin0) ;; 254887Schin*) eval $1 264887Schin shift 274887Schin ;; 284887Schinesac 294887Schinfor i in "#include <sys/param.h>" "#include <sys/param.h> 304887Schin#ifndef S_IFDIR 314887Schin#include <sys/stat.h> 324887Schin#endif" "#include <sys/param.h> 334887Schin#ifndef S_IFDIR 344887Schin#include <sys/types.h> 354887Schin#include <sys/stat.h> 364887Schin#endif" "#ifndef S_IFDIR 374887Schin#include <sys/types.h> 384887Schin#include <sys/stat.h> 394887Schin#endif" 404887Schindo echo "$i 414887Schinstruct stat V_stat_V; 424887SchinF_stat_F() { V_stat_V.st_mode = 0; }" > $tmp.c 434887Schin if $cc -c $tmp.c >/dev/null 444887Schin then echo "$i" 454887Schin break 464887Schin fi 474887Schindone 48