5 headername="_PROTO_H_";
8 print "#ifndef",headername
9 print "#define",headername
11 print "/* This file is automatically generated with \"make proto\". DO NOT EDIT */"
17 print "#endif /* ",headername," */"
21 if (FILENAME!=current_file) {
23 print "/* The following definitions come from",FILENAME," */"
28 if (match($0,"[)][ \t]*$")) {
38 /^static|^extern/ || !/^[a-zA-Z]/ || /[;]/ {
43 # We have to split up the start
44 # matching as we now have so many start
45 # types that it can cause some versions
46 # of nawk/awk to choke and fail on
47 # the full match. JRA.
52 if( $0 ~ /^const|^connection_struct|^pipes_struct|^smb_np_struct|^file_fd_struct|^files_struct|^connection_struct|^uid_t|^gid_t|^unsigned|^mode_t|^DIR|^user|^int|^pid_t|^ino_t|^off_t|^double/ ) {
56 if( $0 ~ /^vuser_key|^UNISTR2|^LOCAL_GRP|^DOMAIN_GRP|^SMB_STRUCT_DIRENT|^SEC_ACL|^SEC_DESC|^SEC_DESC_BUF|^DOM_SID|^RPC_HND_NODE|^BYTE/ ) {
60 if( $0 ~ /^ADS_STRUCT|^ADS_STATUS|^DATA_BLOB|^ASN1_DATA|^TDB_CONTEXT|^TDB_DATA|^smb_ucs2_t|^TALLOC_CTX|^hash_element|^NT_DEVICEMODE|^enum.*\(|^NT_USER_TOKEN|^SAM_ACCOUNT/ ) {
64 if( $0 ~ /^smb_iconv_t|^long|^char|^uint|^NTSTATUS|^WERROR|^CLI_POLICY_HND|^struct|^BOOL|^void|^time|^smb_shm_offset_t|^shm_offset_t|^FILE|^XFILE|^SMB_OFF_T|^size_t|^ssize_t|^SMB_BIG_UINT/ ) {
68 if( $0 ~ /^SAM_ACCT_INFO_NODE|^SMB_ACL_T|^ADS_MODLIST|^PyObject/ ) {