X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/d52fe63fc81f7e44faaae711812a211a78434976..9bccf70c0258c7cac2dcb80011b2a964d884c552:/bsd/miscfs/devfs/reproto.sh diff --git a/bsd/miscfs/devfs/reproto.sh b/bsd/miscfs/devfs/reproto.sh index e994e0c2b..4012a1b36 100644 --- a/bsd/miscfs/devfs/reproto.sh +++ b/bsd/miscfs/devfs/reproto.sh @@ -7,8 +7,36 @@ exec /usr/bin/perl << *EOF* open(PROTO, ">devfs_proto.h") || die "Cannot open devfs_proto.h\n"; +print PROTO "" . +"/*\n" . +" * Copyright (c) 2000-2002 Apple Computer, Inc. All rights reserved.\n" . +" *\n" . +" * \@APPLE_LICENSE_HEADER_START\@\n" . +" *\n" . +" * The contents of this file constitute Original Code as defined in and\n" . +" * are subject to the Apple Public Source License Version 1.1 (the\n" . +" * \"License\"). You may not use this file except in compliance with the\n" . +" * License. Please obtain a copy of the License at\n" . +" * http://www.apple.com/publicsource and read it before using this file.\n" . +" *\n" . +" * This Original Code and all software distributed under the License are\n" . +" * distributed on an \"AS IS\" basis, WITHOUT WARRANTY OF ANY KIND, EITHER\n" . +" * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,\n" . +" * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,\n" . +" * FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT. Please see the\n" . +" * License for the specific language governing rights and limitations\n" . +" * under the License.\n" . +" *\n" . +" * \@APPLE_LICENSE_HEADER_END\@\n" . +" */\n"; + print PROTO "/* THIS FILE HAS BEEN PRODUCED AUTOMATICALLY */\n"; +print PROTO "#ifndef __DEVFS_DEVFS_PROTO_H__\n"; +print PROTO "#define __DEVFS_DEVFS_PROTO_H__\n"; +print PROTO "\n#include \n"; +print PROTO "\n#ifdef __APPLE_API_PRIVATE\n"; + while (\$file = <*.c>) { if(open(F, \$file) == 0) { warn "Cannot open \$file.\n"; @@ -36,6 +64,9 @@ while (\$file = <*.c>) { close F; } +print PROTO "\n#endif /* __APPLE_API_PRIVATE */\n"; +print PROTO "#endif /* __DEVFS_DEVFS_PROTO_H__ */\n"; + print PROTO "/* THIS FILE PRODUCED AUTOMATICALLY */\n" . "/* DO NOT EDIT (see reproto.sh) */\n";