diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2005-09-23 14:09:38 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:38:47 -0500 |
commit | b85f7857dc82ca1dbde1a91463cfe83cbcbee5f7 (patch) | |
tree | fde5b6ae04b96da4609ea8ba19b0ba23da86c5d2 /source4 | |
parent | 1e744a5108f47a06f1587aed047ad536bd5af4f4 (diff) | |
download | samba-b85f7857dc82ca1dbde1a91463cfe83cbcbee5f7.tar.gz samba-b85f7857dc82ca1dbde1a91463cfe83cbcbee5f7.tar.bz2 samba-b85f7857dc82ca1dbde1a91463cfe83cbcbee5f7.zip |
r10452: Couple of small scons updates - ignore .sconsign files
(This used to be commit b2d2b4f23393c727ae3feeaf4b4b65bc03a673f7)
Diffstat (limited to 'source4')
-rw-r--r-- | source4/build/scons/pidl.py | 16 | ||||
-rw-r--r-- | source4/build/scons/proto.py | 3 | ||||
-rw-r--r-- | source4/lib/replace/README | 3 | ||||
-rw-r--r-- | source4/lib/replace/config.m4 | 1 | ||||
-rw-r--r-- | source4/lib/socket/config.m4 | 13 | ||||
-rw-r--r-- | source4/librpc/SConscript | 625 | ||||
-rwxr-xr-x | source4/script/find_unused_macros.pl | 4 |
7 files changed, 19 insertions, 646 deletions
diff --git a/source4/build/scons/pidl.py b/source4/build/scons/pidl.py index 2f09c9861a..b29584c756 100644 --- a/source4/build/scons/pidl.py +++ b/source4/build/scons/pidl.py @@ -11,19 +11,21 @@ import SCons.Scanner idl_scanner = SCons.Scanner.ClassicCPP("PIDLScan", '.idl', 'CPPPATH', r'depends\(([^,]+),+\)', SCons.Node.FS.default_fs) def idl_emitter(target, source, env): - base, ext = SCons.Util.splitext(str(source[0]).split('/')[-1]) - result = ['gen_ndr/ndr_%s.c' % base, 'gen_ndr/ndr_%s.h' % base, - 'gen_ndr/%s.h' % base] + result = [] + for s in source: + base, ext = SCons.Util.splitext(str(s).split('/')[-1]) + result.append('gen_ndr/ndr_%s.c' % base) + result.append('gen_ndr/ndr_%s.h' % base) + result.append('gen_ndr/%s.h' % base) return result, source pidl_builder = SCons.Builder.Builder(action='$PIDLCOM', emitter = idl_emitter, - src_suffix = '.idl', - suffix='.c', - scanner = idl_scanner) + src_suffix = '.idl', + scanner = idl_scanner) def generate(env): - env['PIDL'] = env.Detect('pidl') or './pidl/pidl' + env['PIDL'] = env.Detect(['./pidl/pidl', 'pidl']) env['PIDLFLAGS'] = ['--outputdir', 'librpc/gen_ndr', '--ndr-header', '--ndr-parser', '--header'] env['PIDLCOM'] = '$PIDL $PIDLFLAGS -- $SOURCE' env['BUILDERS']['NdrMarshaller'] = pidl_builder diff --git a/source4/build/scons/proto.py b/source4/build/scons/proto.py index 38fc2d6f48..fc5cc1b7c1 100644 --- a/source4/build/scons/proto.py +++ b/source4/build/scons/proto.py @@ -13,7 +13,8 @@ proto_builder = SCons.Builder.Builder(action='$PROTOCOM', def generate(env): env['MKPROTO'] = './script/mkproto.sh' - env['PROTOCOM'] = '$MKPROTO "$PERL" -h _PROTO_H_ ${TARGETS[0]} $SOURCES' + env['PROTO_DEFINE'] = '_PROTO_H_' + env['PROTOCOM'] = '$MKPROTO "$PERL" -h $PROTO_DEFINE ${TARGETS[0]} $SOURCES' env['BUILDERS']['CProtoHeader'] = proto_builder def exists(env): diff --git a/source4/lib/replace/README b/source4/lib/replace/README index 74b5397949..6575112eff 100644 --- a/source4/lib/replace/README +++ b/source4/lib/replace/README @@ -47,6 +47,9 @@ strerror errno mkstemp (a secure one!) +Types: +socklen_t + Prerequisites: memset (for bzero) syslog (for vsyslog) diff --git a/source4/lib/replace/config.m4 b/source4/lib/replace/config.m4 index 88e3be5e94..3dbb5e4cf1 100644 --- a/source4/lib/replace/config.m4 +++ b/source4/lib/replace/config.m4 @@ -16,6 +16,7 @@ if test x"$samba_cv_REPLACE_INET_NTOA" = x"yes"; then fi dnl Provided by replace.c: +AC_HAVE_TYPE([socklen_t], [#include <sys/socket.h>]) AC_CHECK_HEADERS(sys/syslog.h syslog.h) AC_CHECK_FUNCS(strtoull __strtoull strtouq strtoll __strtoll strtoq) AC_CHECK_FUNCS(seteuid setresuid setegid setresgid chroot bzero strerror) diff --git a/source4/lib/socket/config.m4 b/source4/lib/socket/config.m4 index 786d6c72bc..daa85803dc 100644 --- a/source4/lib/socket/config.m4 +++ b/source4/lib/socket/config.m4 @@ -1,18 +1,5 @@ AC_CHECK_HEADERS(sys/socket.h sys/sockio.h sys/un.h) -AC_CACHE_CHECK([for socklen_t type],samba_cv_socklen_t, [ - AC_TRY_COMPILE([ -#include <sys/types.h> -#if STDC_HEADERS -#include <stdlib.h> -#include <stddef.h> -#endif -#include <sys/socket.h>],[socklen_t i = 0], - samba_cv_socklen_t=yes,samba_cv_socklen_t=no)]) -if test x"$samba_cv_socklen_t" = x"yes"; then - AC_DEFINE(HAVE_SOCKLEN_T_TYPE,1,[Whether we have the variable type socklen_t]) -fi - AC_CACHE_CHECK([for sin_len in sock],samba_cv_HAVE_SOCK_SIN_LEN,[ AC_TRY_COMPILE([#include <sys/types.h> #include <sys/socket.h> diff --git a/source4/librpc/SConscript b/source4/librpc/SConscript index 43f951a1cf..97ada3cc13 100644 --- a/source4/librpc/SConscript +++ b/source4/librpc/SConscript @@ -1,3 +1,4 @@ +#!/usr/bin/python Import('hostenv', 'proto_files') ndr_base_files = ['ndr/ndr.c', 'ndr/ndr_basic.c', 'ndr/ndr_string.c', @@ -17,626 +18,4 @@ hostenv.StaticLibrary('rpc_base', rpc_base_files) proto_files += [File(x) for x in rpc_base_files] from glob import glob -for idl in glob('idl/*.idl'): - hostenv.NdrMarshaller(idl) - -''' -[SUBSYSTEM::NDR_AUDIOSRV] -INIT_FUNCTION = dcerpc_audiosrv_init -INIT_OBJ_FILES = librpc/gen_ndr/ndr_audiosrv.o -NOPROTO = YES -REQUIRED_SUBSYSTEMS = NDR_RAW - -[SUBSYSTEM::NDR_DCERPC] -INIT_FUNCTION = dcerpc_dcerpc_init -INIT_OBJ_FILES = librpc/gen_ndr/ndr_dcerpc.o -NOPROTO = YES -REQUIRED_SUBSYSTEMS = NDR_RAW - -[SUBSYSTEM::NDR_ECHO] -INIT_FUNCTION = dcerpc_echo_init -INIT_OBJ_FILES = librpc/gen_ndr/ndr_echo.o -NOPROTO = YES -REQUIRED_SUBSYSTEMS = NDR_RAW - -[SUBSYSTEM::NDR_IRPC] -INIT_FUNCTION = dcerpc_irpc_init -INIT_OBJ_FILES = librpc/gen_ndr/ndr_irpc.o -NOPROTO = YES -REQUIRED_SUBSYSTEMS = NDR_RAW - -[SUBSYSTEM::NDR_EXCHANGE] -INIT_FUNCTION = dcerpc_exchange_init -INIT_OBJ_FILES = librpc/gen_ndr/ndr_exchange.o -NOPROTO = YES -REQUIRED_SUBSYSTEMS = NDR_RAW - -[SUBSYSTEM::NDR_DSBACKUP] -INIT_FUNCTION = dcerpc_dsbackup_init -INIT_OBJ_FILES = librpc/gen_ndr/ndr_dsbackup.o -NOPROTO = YES -REQUIRED_SUBSYSTEMS = NDR_RAW - -[SUBSYSTEM::NDR_EFS] -INIT_FUNCTION = dcerpc_efs_init -INIT_OBJ_FILES = librpc/gen_ndr/ndr_efs.o -NOPROTO = YES -REQUIRED_SUBSYSTEMS = NDR_RAW - -[SUBSYSTEM::NDR_MISC] -INIT_FUNCTION = dcerpc_misc_init -INIT_OBJ_FILES = librpc/gen_ndr/ndr_misc.o -NOPROTO = YES -REQUIRED_SUBSYSTEMS = NDR_RAW - -[SUBSYSTEM::NDR_ROT] -INIT_FUNCTION = dcerpc_rot_init -INIT_OBJ_FILES = librpc/gen_ndr/ndr_rot.o -NOPROTO = YES -REQUIRED_SUBSYSTEMS = NDR_RAW - -[SUBSYSTEM::NDR_LSA] -INIT_FUNCTION = dcerpc_lsa_init -INIT_OBJ_FILES = librpc/gen_ndr/ndr_lsa.o -NOPROTO = YES -REQUIRED_SUBSYSTEMS = NDR_RAW - -[SUBSYSTEM::NDR_DFS] -INIT_FUNCTION = dcerpc_dfs_init -INIT_OBJ_FILES = librpc/gen_ndr/ndr_dfs.o -NOPROTO = YES -REQUIRED_SUBSYSTEMS = NDR_RAW - -[SUBSYSTEM::NDR_DRSUAPI] -INIT_FUNCTION = dcerpc_drsuapi_init -INIT_OBJ_FILES = librpc/gen_ndr/ndr_drsuapi.o -NOPROTO = YES -REQUIRED_SUBSYSTEMS = NDR_RAW NDR_DRSUAPI_PRINT NDR_COMPRESSION - -[SUBSYSTEM::NDR_DRSUAPI_PRINT] -INIT_OBJ_FILES = librpc/ndr/ndr_drsuapi.o - -[SUBSYSTEM::NDR_DRSBLOBS] -INIT_FUNCTION = dcerpc_drsblobs_init -INIT_OBJ_FILES = librpc/gen_ndr/ndr_drsblobs.o -NOPROTO = YES -REQUIRED_SUBSYSTEMS = NDR_RAW - -[SUBSYSTEM::NDR_POLICYAGENT] -INIT_FUNCTION = dcerpc_policyagent_init -INIT_OBJ_FILES = librpc/gen_ndr/ndr_policyagent.o -NOPROTO = YES -REQUIRED_SUBSYSTEMS = NDR_RAW - -[SUBSYSTEM::NDR_UNIXINFO] -INIT_FUNCTION = dcerpc_unixinfo_init -INIT_OBJ_FILES = librpc/gen_ndr/ndr_unixinfo.o -NOPROTO = YES -REQUIRED_SUBSYSTEMS = NDR_RAW - -[SUBSYSTEM::NDR_SAMR] -INIT_FUNCTION = dcerpc_samr_init -INIT_OBJ_FILES = librpc/gen_ndr/ndr_samr.o -NOPROTO = YES -REQUIRED_SUBSYSTEMS = NDR_RAW - -[SUBSYSTEM::NDR_SPOOLSS] -INIT_FUNCTION = dcerpc_spoolss_init -INIT_OBJ_FILES = librpc/gen_ndr/ndr_spoolss.o -NOPROTO = YES -REQUIRED_SUBSYSTEMS = NDR_RAW NDR_SPOOLSS_BUF - -[SUBSYSTEM::NDR_SPOOLSS_BUF] -INIT_OBJ_FILES = librpc/ndr/ndr_spoolss_buf.o - -[SUBSYSTEM::NDR_WKSSVC] -INIT_FUNCTION = dcerpc_wkssvc_init -INIT_OBJ_FILES = librpc/gen_ndr/ndr_wkssvc.o -NOPROTO = YES -REQUIRED_SUBSYSTEMS = NDR_RAW - -[SUBSYSTEM::NDR_SRVSVC] -INIT_FUNCTION = dcerpc_srvsvc_init -INIT_OBJ_FILES = librpc/gen_ndr/ndr_srvsvc.o -NOPROTO = YES -REQUIRED_SUBSYSTEMS = NDR_RAW NDR_SVCCTL - -[SUBSYSTEM::NDR_SVCCTL] -INIT_FUNCTION = dcerpc_svcctl_init -INIT_OBJ_FILES = librpc/gen_ndr/ndr_svcctl.o -NOPROTO = YES -REQUIRED_SUBSYSTEMS = NDR_RAW - -[SUBSYSTEM::NDR_ATSVC] -INIT_FUNCTION = dcerpc_atsvc_init -INIT_OBJ_FILES = librpc/gen_ndr/ndr_atsvc.o -NOPROTO = YES -REQUIRED_SUBSYSTEMS = NDR_RAW - -[SUBSYSTEM::NDR_EVENTLOG] -INIT_FUNCTION = dcerpc_eventlog_init -INIT_OBJ_FILES = librpc/gen_ndr/ndr_eventlog.o -NOPROTO = YES -REQUIRED_SUBSYSTEMS = NDR_RAW - -[SUBSYSTEM::NDR_EPMAPPER] -INIT_FUNCTION = dcerpc_epmapper_init -INIT_OBJ_FILES = librpc/gen_ndr/ndr_epmapper.o -NOPROTO = YES -REQUIRED_SUBSYSTEMS = NDR_RAW - -[SUBSYSTEM::NDR_DBGIDL] -INIT_FUNCTION = dcerpc_dbgidl_init -INIT_OBJ_FILES = librpc/gen_ndr/ndr_dbgidl.o -NOPROTO = YES -REQUIRED_SUBSYSTEMS = NDR_RAW - -[SUBSYSTEM::NDR_DSSETUP] -INIT_FUNCTION = dcerpc_dssetup_init -INIT_OBJ_FILES = librpc/gen_ndr/ndr_dssetup.o -NOPROTO = YES -REQUIRED_SUBSYSTEMS = NDR_RAW - -[SUBSYSTEM::NDR_MSGSVC] -INIT_FUNCTION = dcerpc_msgsvc_init -INIT_OBJ_FILES = librpc/gen_ndr/ndr_msgsvc.o -NOPROTO = YES -REQUIRED_SUBSYSTEMS = NDR_RAW - -[SUBSYSTEM::NDR_WINS] -INIT_FUNCTION = dcerpc_wins_init -INIT_OBJ_FILES = librpc/gen_ndr/ndr_wins.o -NOPROTO = YES -REQUIRED_SUBSYSTEMS = NDR_RAW - -[SUBSYSTEM::NDR_WINREG] -INIT_FUNCTION = dcerpc_winreg_init -INIT_OBJ_FILES = librpc/gen_ndr/ndr_winreg.o -NOPROTO = YES -REQUIRED_SUBSYSTEMS = NDR_RAW NDR_INITSHUTDOWN - -[SUBSYSTEM::NDR_INITSHUTDOWN] -INIT_FUNCTION = dcerpc_initshutdown_init -INIT_OBJ_FILES = librpc/gen_ndr/ndr_initshutdown.o -NOPROTO = YES -REQUIRED_SUBSYSTEMS = NDR_RAW - -[SUBSYSTEM::NDR_MGMT] -INIT_FUNCTION = dcerpc_mgmt_init -INIT_OBJ_FILES = librpc/gen_ndr/ndr_mgmt.o -NOPROTO = YES -REQUIRED_SUBSYSTEMS = NDR_RAW - -[SUBSYSTEM::NDR_PROTECTED_STORAGE] -INIT_FUNCTION = dcerpc_protected_storage_init -INIT_OBJ_FILES = librpc/gen_ndr/ndr_protected_storage.o -NOPROTO = YES -REQUIRED_SUBSYSTEMS = NDR_RAW - -[SUBSYSTEM::NDR_DCOM] -INIT_FUNCTION = dcerpc_dcom_init -INIT_OBJ_FILES = librpc/gen_ndr/ndr_dcom.o -NOPROTO = YES -REQUIRED_SUBSYSTEMS = NDR_RAW NDR_ORPC - -[SUBSYSTEM::NDR_ORPC_MANUAL] -INIT_OBJ_FILES = librpc/ndr/ndr_orpc.o - -[SUBSYSTEM::NDR_ORPC] -INIT_FUNCTION = dcerpc_orpc_init -INIT_OBJ_FILES = librpc/gen_ndr/ndr_orpc.o -NOPROTO = YES -REQUIRED_SUBSYSTEMS = NDR_RAW NDR_ORPC_MANUAL - -[SUBSYSTEM::NDR_OXIDRESOLVER] -INIT_FUNCTION = dcerpc_oxidresolver_init -INIT_OBJ_FILES = librpc/gen_ndr/ndr_oxidresolver.o -NOPROTO = YES -REQUIRED_SUBSYSTEMS = NDR_RAW NDR_ORPC - -[SUBSYSTEM::NDR_REMACT] -INIT_FUNCTION = dcerpc_remact_init -INIT_OBJ_FILES = librpc/gen_ndr/ndr_remact.o -NOPROTO = YES -REQUIRED_SUBSYSTEMS = NDR_RAW NDR_ORPC - -[SUBSYSTEM::NDR_WZCSVC] -INIT_FUNCTION = dcerpc_wzcsvc_init -INIT_OBJ_FILES = librpc/gen_ndr/ndr_wzcsvc.o -NOPROTO = YES -REQUIRED_SUBSYSTEMS = NDR_RAW - -[SUBSYSTEM::NDR_BROWSER] -INIT_FUNCTION = dcerpc_browser_init -INIT_OBJ_FILES = librpc/gen_ndr/ndr_browser.o -NOPROTO = YES -REQUIRED_SUBSYSTEMS = NDR_RAW - -[SUBSYSTEM::NDR_W32TIME] -INIT_FUNCTION = dcerpc_w32time_init -INIT_OBJ_FILES = librpc/gen_ndr/ndr_w32time.o -NOPROTO = YES -REQUIRED_SUBSYSTEMS = NDR_RAW - -[SUBSYSTEM::NDR_SCERPC] -INIT_FUNCTION = dcerpc_scerpc_init -INIT_OBJ_FILES = librpc/gen_ndr/ndr_scerpc.o -NOPROTO = YES -REQUIRED_SUBSYSTEMS = NDR_RAW - -[SUBSYSTEM::NDR_NTSVCS] -INIT_FUNCTION = dcerpc_ntsvcs_init -INIT_OBJ_FILES = librpc/gen_ndr/ndr_ntsvcs.o -NOPROTO = YES -REQUIRED_SUBSYSTEMS = NDR_RAW - -[SUBSYSTEM::NDR_NETLOGON] -INIT_FUNCTION = dcerpc_netlogon_init -INIT_OBJ_FILES = librpc/gen_ndr/ndr_netlogon.o -NOPROTO = YES -REQUIRED_SUBSYSTEMS = NDR_RAW NDR_SAMR - -[SUBSYSTEM::NDR_TRKWKS] -INIT_FUNCTION = dcerpc_trkwks_init -INIT_OBJ_FILES = librpc/gen_ndr/ndr_trkwks.o -NOPROTO = YES -REQUIRED_SUBSYSTEMS = NDR_RAW - -[SUBSYSTEM::NDR_KEYSVC] -INIT_FUNCTION = dcerpc_keysvc_init -INIT_OBJ_FILES = librpc/gen_ndr/ndr_keysvc.o -NOPROTO = YES -REQUIRED_SUBSYSTEMS = NDR_RAW - -[SUBSYSTEM::NDR_KRB5PAC] -INIT_FUNCTION = dcerpc_krb5pac_init -INIT_OBJ_FILES = librpc/gen_ndr/ndr_krb5pac.o -NOPROTO = YES -REQUIRED_SUBSYSTEMS = NDR_RAW NDR_KRB5PAC_UTIL - -[SUBSYSTEM::NDR_KRB5PAC_UTIL] -INIT_OBJ_FILES = librpc/ndr/ndr_krb5pac.o - -[SUBSYSTEM::NDR_XATTR] -INIT_FUNCTION = dcerpc_xattr_init -INIT_OBJ_FILES = librpc/gen_ndr/ndr_xattr.o -NOPROTO = YES -REQUIRED_SUBSYSTEMS = NDR_RAW - -[SUBSYSTEM::NDR_SCHANNEL] -INIT_FUNCTION = dcerpc_schannel_init -INIT_OBJ_FILES = librpc/gen_ndr/ndr_schannel.o -NOPROTO = YES -REQUIRED_SUBSYSTEMS = NDR_RAW - -[SUBSYSTEM::NDR_NBT] -INIT_OBJ_FILES = librpc/gen_ndr/ndr_nbt.o -INIT_FUNCTION = dcerpc_nbt_init -NOPROTO = YES -REQUIRED_SUBSYSTEMS = NDR_RAW NDR_MISC - -[SUBSYSTEM::NDR_WINSREPL] -INIT_OBJ_FILES = librpc/gen_ndr/ndr_winsrepl.o -INIT_FUNCTION = dcerpc_winsrepl_init -NOPROTO = YES -REQUIRED_SUBSYSTEMS = NDR_RAW NDR_NBT - - -[SUBSYSTEM::NDR_ALL] -REQUIRED_SUBSYSTEMS = NDR_AUDIOSRV NDR_ECHO NDR_DCERPC NDR_EXCHANGE \ - NDR_DSBACKUP NDR_EFS NDR_MISC NDR_LSA NDR_DFS NDR_DRSUAPI \ - NDR_POLICYAGENT NDR_UNIXINFO NDR_SAMR NDR_SPOOLSS NDR_WKSSVC NDR_SRVSVC NDR_ATSVC \ - NDR_EVENTLOG NDR_EPMAPPER NDR_DBGIDL NDR_DSSETUP NDR_MSGSVC NDR_WINS \ - NDR_WINREG NDR_MGMT NDR_PROTECTED_STORAGE NDR_OXIDRESOLVER \ - NDR_REMACT NDR_WZCSVC NDR_BROWSER NDR_W32TIME NDR_SCERPC NDR_NTSVCS \ - NDR_NETLOGON NDR_TRKWKS NDR_KEYSVC NDR_KRB5PAC NDR_XATTR NDR_SCHANNEL \ - NDR_ROT NDR_DRSBLOBS NDR_SVCCTL NDR_NBT NDR_WINSREPL LIB_SECURITY_NDR \ - NDR_INITSHUTDOWN - -[SUBSYSTEM::RPC_NDR_ROT] -ADD_OBJ_FILES = librpc/gen_ndr/ndr_rot_c.o -REQUIRED_SUBSYSTEMS = NDR_ROT RPC -NOPROTO = YES - -[SUBSYSTEM::RPC_NDR_AUDIOSRV] -ADD_OBJ_FILES = librpc/gen_ndr/ndr_audiosrv_c.o -REQUIRED_SUBSYSTEMS = NDR_AUDIOSRV RPC -NOPROTO = YES - -[SUBSYSTEM::RPC_NDR_ECHO] -ADD_OBJ_FILES = librpc/gen_ndr/ndr_echo_c.o -REQUIRED_SUBSYSTEMS = RPC NDR_ECHO -NOPROTO = YES - -[SUBSYSTEM::RPC_NDR_EXCHANGE] -ADD_OBJ_FILES = librpc/gen_ndr/ndr_exchange_c.o -REQUIRED_SUBSYSTEMS = RPC NDR_EXCHANGE -NOPROTO = YES - -[SUBSYSTEM::RPC_NDR_DSBACKUP] -ADD_OBJ_FILES = librpc/gen_ndr/ndr_dsbackup_c.o -REQUIRED_SUBSYSTEMS = RPC NDR_DSBACKUP -NOPROTO = YES - -[SUBSYSTEM::RPC_NDR_EFS] -ADD_OBJ_FILES = librpc/gen_ndr/ndr_efs_c.o -REQUIRED_SUBSYSTEMS = RPC NDR_EFS -NOPROTO = YES - -[SUBSYSTEM::RPC_NDR_LSA] -ADD_OBJ_FILES = librpc/gen_ndr/ndr_lsa_c.o -REQUIRED_SUBSYSTEMS = RPC NDR_LSA -NOPROTO = YES - -[SUBSYSTEM::RPC_NDR_DFS] -ADD_OBJ_FILES = librpc/gen_ndr/ndr_dfs_c.o -REQUIRED_SUBSYSTEMS = RPC NDR_DFS -NOPROTO = YES - -[SUBSYSTEM::RPC_NDR_DRSUAPI] -ADD_OBJ_FILES = librpc/gen_ndr/ndr_drsuapi_c.o -REQUIRED_SUBSYSTEMS = RPC NDR_DRSUAPI -NOPROTO = YES - -[SUBSYSTEM::RPC_NDR_DRSBLOBS] -ADD_OBJ_FILES = librpc/gen_ndr/ndr_drsblobs_c.o -REQUIRED_SUBSYSTEMS = RPC NDR_DRSBLOBS -NOPROTO = YES - -[SUBSYSTEM::RPC_NDR_POLICYAGENT] -ADD_OBJ_FILES = librpc/gen_ndr/ndr_policyagent_c.o -REQUIRED_SUBSYSTEMS = RPC NDR_POLICYAGENT -NOPROTO = YES - -[SUBSYSTEM::RPC_NDR_UNIXINFO] -ADD_OBJ_FILES = librpc/gen_ndr/ndr_unixinfo_c.o -REQUIRED_SUBSYSTEMS = RPC NDR_UNIXINFO -NOPROTO = YES - -[SUBSYSTEM::RPC_NDR_SAMR] -ADD_OBJ_FILES = librpc/gen_ndr/ndr_samr_c.o -REQUIRED_SUBSYSTEMS = RPC NDR_SAMR -NOPROTO = YES - -[SUBSYSTEM::RPC_NDR_SPOOLSS] -ADD_OBJ_FILES = librpc/gen_ndr/ndr_spoolss_c.o -REQUIRED_SUBSYSTEMS = RPC NDR_SPOOLSS -NOPROTO = YES - -[SUBSYSTEM::RPC_NDR_WKSSVC] -ADD_OBJ_FILES = librpc/gen_ndr/ndr_wkssvc_c.o -REQUIRED_SUBSYSTEMS = RPC NDR_WKSSVC -NOPROTO = YES - -[SUBSYSTEM::RPC_NDR_SRVSVC] -ADD_OBJ_FILES = librpc/gen_ndr/ndr_srvsvc_c.o -REQUIRED_SUBSYSTEMS = RPC NDR_SRVSVC -NOPROTO = YES - -[SUBSYSTEM::RPC_NDR_SVCCTL] -ADD_OBJ_FILES = librpc/gen_ndr/ndr_svcctl_c.o -REQUIRED_SUBSYSTEMS = RPC NDR_SVCCTL -NOPROTO = YES - -[SUBSYSTEM::RPC_NDR_ATSVC] -ADD_OBJ_FILES = librpc/gen_ndr/ndr_atsvc_c.o -REQUIRED_SUBSYSTEMS = RPC NDR_ATSVC -NOPROTO = YES - -[SUBSYSTEM::RPC_NDR_EVENTLOG] -ADD_OBJ_FILES = librpc/gen_ndr/ndr_eventlog_c.o -REQUIRED_SUBSYSTEMS = RPC NDR_EVENTLOG -NOPROTO = YES - -[SUBSYSTEM::RPC_NDR_EPMAPPER] -ADD_OBJ_FILES = librpc/gen_ndr/ndr_epmapper_c.o -REQUIRED_SUBSYSTEMS = NDR_EPMAPPER -NOPROTO = YES - -[SUBSYSTEM::RPC_NDR_DBGIDL] -ADD_OBJ_FILES = librpc/gen_ndr/ndr_dbgidl_c.o -REQUIRED_SUBSYSTEMS = RPC NDR_DBGIDL -NOPROTO = YES - -[SUBSYSTEM::RPC_NDR_DSSETUP] -ADD_OBJ_FILES = librpc/gen_ndr/ndr_dssetup_c.o -REQUIRED_SUBSYSTEMS = RPC NDR_DSSETUP -NOPROTO = YES - -[SUBSYSTEM::RPC_NDR_MSGSVC] -ADD_OBJ_FILES = librpc/gen_ndr/ndr_msgsvc_c.o -REQUIRED_SUBSYSTEMS = RPC NDR_MSGSVC -NOPROTO = YES - -[SUBSYSTEM::RPC_NDR_WINS] -ADD_OBJ_FILES = librpc/gen_ndr/ndr_wins_c.o -REQUIRED_SUBSYSTEMS = RPC NDR_WINS -NOPROTO = YES - -[SUBSYSTEM::RPC_NDR_WINREG] -ADD_OBJ_FILES = librpc/gen_ndr/ndr_winreg_c.o -REQUIRED_SUBSYSTEMS = RPC NDR_WINREG -NOPROTO = YES - -[SUBSYSTEM::RPC_NDR_INITSHUTDOWN] -ADD_OBJ_FILES = librpc/gen_ndr/ndr_initshutdown_c.o -REQUIRED_SUBSYSTEMS = RPC NDR_INITSHUTDOWN -NOPROTO = YES - -[SUBSYSTEM::RPC_NDR_MGMT] -ADD_OBJ_FILES = librpc/gen_ndr/ndr_mgmt_c.o -REQUIRED_SUBSYSTEMS = RPC NDR_MGMT -NOPROTO = YES - -[SUBSYSTEM::RPC_NDR_PROTECTED_STORAGE] -ADD_OBJ_FILES = librpc/gen_ndr/ndr_protected_storage_c.o -REQUIRED_SUBSYSTEMS = RPC NDR_PROTECTED_STORAGE -NOPROTO = YES - -[SUBSYSTEM::DCOM_PROXY_DCOM] -ADD_OBJ_FILES = librpc/gen_ndr/ndr_dcom_c.o -REQUIRED_SUBSYSTEMS = RPC NDR_DCOM -NOPROTO = YES - -[SUBSYSTEM::RPC_NDR_OXIDRESOLVER] -ADD_OBJ_FILES = librpc/gen_ndr/ndr_oxidresolver_c.o -REQUIRED_SUBSYSTEMS = RPC NDR_OXIDRESOLVER -NOPROTO = YES - -[SUBSYSTEM::RPC_NDR_REMACT] -ADD_OBJ_FILES = librpc/gen_ndr/ndr_remact_c.o -REQUIRED_SUBSYSTEMS = RPC NDR_REMACT -NOPROTO = YES - -[SUBSYSTEM::RPC_NDR_WZCSVC] -ADD_OBJ_FILES = librpc/gen_ndr/ndr_wzcsvc_c.o -REQUIRED_SUBSYSTEMS = RPC NDR_WZCSVC -NOPROTO = YES - -[SUBSYSTEM::RPC_NDR_BROWSER] -ADD_OBJ_FILES = librpc/gen_ndr/ndr_browser_c.o -REQUIRED_SUBSYSTEMS = RPC NDR_BROWSER -NOPROTO = YES - -[SUBSYSTEM::RPC_NDR_W32TIME] -ADD_OBJ_FILES = librpc/gen_ndr/ndr_w32time_c.o -REQUIRED_SUBSYSTEMS = RPC NDR_W32TIME -NOPROTO = YES - -[SUBSYSTEM::RPC_NDR_SCERPC] -ADD_OBJ_FILES = librpc/gen_ndr/ndr_scerpc_c.o -REQUIRED_SUBSYSTEMS = RPC NDR_SCERPC -NOPROTO = YES - -[SUBSYSTEM::RPC_NDR_NTSVCS] -ADD_OBJ_FILES = librpc/gen_ndr/ndr_ntsvcs_c.o -REQUIRED_SUBSYSTEMS = RPC NDR_NTSVCS -NOPROTO = YES - -[SUBSYSTEM::RPC_NDR_NETLOGON] -ADD_OBJ_FILES = librpc/gen_ndr/ndr_netlogon_c.o -REQUIRED_SUBSYSTEMS = NDR_NETLOGON -NOPROTO = YES - -[SUBSYSTEM::RPC_NDR_TRKWKS] -ADD_OBJ_FILES = librpc/gen_ndr/ndr_trkwks_c.o -REQUIRED_SUBSYSTEMS = RPC NDR_TRKWKS -NOPROTO = YES - -[SUBSYSTEM::RPC_NDR_KEYSVC] -ADD_OBJ_FILES = librpc/gen_ndr/ndr_keysvc_c.o -REQUIRED_SUBSYSTEMS = RPC NDR_KEYSVC -NOPROTO = YES - -################################################ -# Start SUBSYSTEM RPC -[SUBSYSTEM::RPC] -REQUIRED_SUBSYSTEMS = NDR_RAW RPC_RAW LIBSMB NDR_MISC NDR_DCERPC NDR_SCHANNEL NDR_LSA NDR_NETLOGON NDR_SAMR NDR_UNIXINFO RPC_NDR_NETLOGON RPC_NDR_EPMAPPER -# End SUBSYSTEM RPC -################################################ - -[SUBSYSTEM::RPC_EJS_ECHO] -INIT_FUNCTION = ejs_init_rpcecho -OBJ_FILES = librpc/gen_ndr/ndr_echo_ejs.o -REQUIRED_SUBSYSTEMS = RPC NDR_ECHO -NOPROTO = YES - -[SUBSYSTEM::RPC_EJS_MISC] -INIT_FUNCTION = ejs_init_misc -OBJ_FILES = librpc/gen_ndr/ndr_misc_ejs.o -REQUIRED_SUBSYSTEMS = RPC NDR_MISC -NOPROTO = YES - -[SUBSYSTEM::RPC_EJS_SAMR] -INIT_FUNCTION = ejs_init_samr -OBJ_FILES = librpc/gen_ndr/ndr_samr_ejs.o -REQUIRED_SUBSYSTEMS = RPC NDR_SAMR -NOPROTO = YES - -[SUBSYSTEM::RPC_EJS_SECURITY] -INIT_FUNCTION = ejs_init_security -OBJ_FILES = librpc/gen_ndr/ndr_security_ejs.o -REQUIRED_SUBSYSTEMS = RPC LIB_SECURITY_NDR -NOPROTO = YES - -[SUBSYSTEM::RPC_EJS_LSA] -INIT_FUNCTION = ejs_init_lsarpc -OBJ_FILES = librpc/gen_ndr/ndr_lsa_ejs.o -REQUIRED_SUBSYSTEMS = RPC NDR_LSA -NOPROTO = YES - -[SUBSYSTEM::RPC_EJS_DFS] -INIT_FUNCTION = ejs_init_dfs -OBJ_FILES = librpc/gen_ndr/ndr_dfs_ejs.o -REQUIRED_SUBSYSTEMS = RPC NDR_DFS -NOPROTO = YES - -[SUBSYSTEM::RPC_EJS_DRSUAPI] -INIT_FUNCTION = ejs_init_drsuapi -OBJ_FILES = librpc/gen_ndr/ndr_drsuapi_ejs.o -REQUIRED_SUBSYSTEMS = RPC NDR_DRSUAPI -NOPROTO = YES - -[SUBSYSTEM::RPC_EJS_SPOOLSS] -INIT_FUNCTION = ejs_init_spoolss -OBJ_FILES = librpc/gen_ndr/ndr_spoolss_ejs.o -REQUIRED_SUBSYSTEMS = RPC NDR_SPOOLSS -NOPROTO = YES - -[SUBSYSTEM::RPC_EJS_WKSSVC] -INIT_FUNCTION = ejs_init_wkssvc -OBJ_FILES = librpc/gen_ndr/ndr_wkssvc_ejs.o -REQUIRED_SUBSYSTEMS = RPC NDR_WKSSVC -NOPROTO = YES - -[SUBSYSTEM::RPC_EJS_SRVSVC] -INIT_FUNCTION = ejs_init_srvsvc -OBJ_FILES = librpc/gen_ndr/ndr_srvsvc_ejs.o -REQUIRED_SUBSYSTEMS = RPC NDR_SRVSVC -NOPROTO = YES - -[SUBSYSTEM::RPC_EJS_EVENTLOG] -INIT_FUNCTION = ejs_init_eventlog -OBJ_FILES = librpc/gen_ndr/ndr_eventlog_ejs.o -REQUIRED_SUBSYSTEMS = RPC NDR_EVENTLOG -NOPROTO = YES - -[SUBSYSTEM::RPC_EJS_WINREG] -INIT_FUNCTION = ejs_init_winreg -OBJ_FILES = librpc/gen_ndr/ndr_winreg_ejs.o -REQUIRED_SUBSYSTEMS = RPC NDR_WINREG -NOPROTO = YES - -[SUBSYSTEM::RPC_EJS_INITSHUTDOWN] -INIT_FUNCTION = ejs_init_initshutdown -OBJ_FILES = librpc/gen_ndr/ndr_initshutdown_ejs.o -REQUIRED_SUBSYSTEMS = RPC NDR_INITSHUTDOWN -NOPROTO = YES - -[SUBSYSTEM::RPC_EJS_NETLOGON] -INIT_FUNCTION = ejs_init_netlogon -OBJ_FILES = librpc/gen_ndr/ndr_netlogon_ejs.o -REQUIRED_SUBSYSTEMS = RPC NDR_NETLOGON -NOPROTO = YES - -[SUBSYSTEM::RPC_EJS_SVCCTL] -INIT_FUNCTION = ejs_init_svcctl -OBJ_FILES = librpc/gen_ndr/ndr_svcctl_ejs.o -REQUIRED_SUBSYSTEMS = RPC NDR_SVCCTL -NOPROTO = YES - -[SUBSYSTEM::RPC_EJS_IRPC] -INIT_FUNCTION = ejs_init_irpc -OBJ_FILES = librpc/gen_ndr/ndr_irpc_ejs.o -REQUIRED_SUBSYSTEMS = RPC NDR_IRPC -NOPROTO = YES - -################################################ -# Start SUBSYSTEM RPC_EJS -[SUBSYSTEM::RPC_EJS] -REQUIRED_SUBSYSTEMS = RPC_EJS_ECHO RPC_EJS_MISC RPC_EJS_SAMR RPC_EJS_SECURITY \ - RPC_EJS_LSA RPC_EJS_SRVSVC RPC_EJS_SVCCTL RPC_EJS_IRPC RPC_EJS_WINREG \ - RPC_EJS_INITSHUTDOWN -# End SUBSYSTEM RPC_EJS -################################################ -''' +hostenv.NdrMarshaller(glob('idl/*.idl')) diff --git a/source4/script/find_unused_macros.pl b/source4/script/find_unused_macros.pl index 697afcd1a9..8886835fa3 100755 --- a/source4/script/find_unused_macros.pl +++ b/source4/script/find_unused_macros.pl @@ -1,6 +1,6 @@ #!/usr/bin/perl -# Script that reads in configure and outputs the names of all the defines -# it defines that are used nowhere in the code +# Script that reads in C files and prints defines that are used nowhere in the +# code # Arguments: C and H files # Copyright Jelmer Vernooij <jelmer@samba.org>, GPL |