1
0
mirror of https://github.com/samba-team/samba.git synced 2025-12-09 00:23:50 +03:00
Commit Graph

837 Commits

Author SHA1 Message Date
Tim Potter
04f9937215 r8932: Handle non-anonymous unions and structures better. 2007-10-10 13:30:58 -05:00
Tim Potter
17689ca740 r8920: Make NAME hash entry for struct elements a list.
Return array length entries for elements that have an array specifier.
2007-10-10 13:30:57 -05:00
Tim Potter
c31be38346 r8919: Return references to structs and unions in parse tree. Fill in type
names for structs and unions also.
2007-10-10 13:30:57 -05:00
Tim Potter
6339cc75fa r8918: Handle const elements in structures or unions. This is a bit yucky but
making an optional_const rule puts the parser in an infinite loop (?).
2007-10-10 13:30:57 -05:00
Tim Potter
1be5f55d7f r8910: An initial parser to parse structures in smb_interfaces.h. This will be
used to generate ejs objects for making raw smb calls.

Running 'make smb_interfaces' should run the build_smb_interfaces.pl
script which at the moment only displays a dump of the parsed data.
Const is also not working right now but it's bedtime.
2007-10-10 13:30:57 -05:00
Tim Potter
f850faca97 r8878: Spelling fixes. (-: 2007-10-10 13:30:14 -05:00
Stefan Metzmacher
3d4fdb7093 r8868: add comfigure check for c99 struct initialization,
which is required for samba4

metze
2007-10-10 13:30:13 -05:00
Andrew Tridgell
e2251823fe r8853: fixed path to smb.conf
Jelmer, is this what you intended?
2007-10-10 13:30:11 -05:00
Jelmer Vernooij
4faed45851 r8841: disable dependencies for now. To try dependencies, uncomment the 3rd-to-last line of Makefile 2007-10-10 13:30:10 -05:00
Jelmer Vernooij
403ed4abf5 r8838: Add ugly hack to prevent make from barfing out because it doesn't know
how to create heimdal C files.
2007-10-10 13:30:10 -05:00
Jelmer Vernooij
bb02e1dccb r8832: Automatically rebuilding C files if headers change (in developer mode) 2007-10-10 13:30:10 -05:00
Jelmer Vernooij
bca7624943 r8827: Fix install on some systems. 2007-10-10 13:30:09 -05:00
Jelmer Vernooij
52bb1374bb r8826: Make configure generate config.mk files (with the external libraries
that were found) and a config.pm file (with all substitution variables)
2007-10-10 13:30:09 -05:00
Andrew Tridgell
f7b49ecd08 r8821: continue the trend to move to a more OO style of interface for our js
calls. This changes the generated RPC and IRPC calls to use the 'this'
object pointer instead of requiring the passing of the object on each
call. So typical usage is now:

var echo = echo_init();
var io = irpcObj();

status = echo.connect("ncacn_np:server");
assert(status.is_ok);

io.input.in_data = 7;
status = echo.AddOne(io);
assert(status.is_ok);
2007-10-10 13:30:08 -05:00
Jelmer Vernooij
5c0a22167d r8809: Merge validator with NDR.pm (validator is NDR-specific) 2007-10-10 13:30:07 -05:00
Jelmer Vernooij
26e1fdf630 r8806: Move data representation-independent data into seperate header 2007-10-10 13:30:06 -05:00
Jelmer Vernooij
d292ab7ca6 r8803: Rename --header to --ndr-header and --parser to --ndr-parser 2007-10-10 13:30:06 -05:00
Jelmer Vernooij
5af68a0476 r8801: Change --output to --outputdir and make pidl add a data representation prefix
to pidl itself. Useful for supporting other data representation types.
2007-10-10 13:30:06 -05:00
Andrew Tridgell
e1bf7c4279 r8746: replace opendir/readdir/telldir/seekdir/closedir on systems where they
are broken (apparently all BSD systems). This breakage leads to unlink
on files in an open directory causing a later seekdir to miss
files. The bug happens due to a block boundary bug in the BSD libc
implementation of these calls.

This replacement code also fixes a severe memory usage problem with
telldir that can cause closedir() to take an arbitrary amount of time.

I have reported the bug in readdir to Greg Lehey (a FreeBSD maintainer)
2007-10-10 13:30:01 -05:00
Tim Potter
7b316f119b r8713: Experiment to try and fix warnings on 64-bit machines without breaking
32-bit ones.  Yes, this weird looking macros are part of C99.
2007-10-10 13:29:57 -05:00
Jelmer Vernooij
7384b3c4a1 r8690: Code cleanups, improvements necessary for dependencies (not added yet) 2007-10-10 13:29:54 -05:00
Andrew Tridgell
f9693e313d r8671: use much shorter names for the selftest directory and socket wrapper
code. I'm afraid this is needed by irix 6.4 which silently truncates
names in unix domain sockets in recvfrom() to 16 chars. My apologies
for having to move to such short names :-(
2007-10-10 13:29:52 -05:00
Andrew Tridgell
f5e39455a8 r8649: added smbscript to the list of binaries to install 2007-10-10 13:29:49 -05:00
Andrew Tridgell
6a1ed328e2 r8635: make object inheritance with the builtin objects easy by allowing
callers to optionally supply an existing object to add the properties
to. So you can do:

 var rpc = samr_init();
 lsa_init(rpc);

and you end up with 'rpc' having both the samr and lsa functions and
constants available.
2007-10-10 13:29:47 -05:00
Jelmer Vernooij
78ef2349c7 r8623: Fix warnings in ODL-generated code. 2007-10-10 13:29:45 -05:00
Jelmer Vernooij
cd33b5efc5 r8622: Support parsing new structs/unions/enums/bitmaps without typedef in 2007-10-10 13:29:45 -05:00
Jelmer Vernooij
5610838385 r8621: Simplify code. Add support for nested structures back into the header generator. 2007-10-10 13:29:44 -05:00
Jelmer Vernooij
8637a85e6a r8614: Add COMRESULT/HRESULT scalar type 2007-10-10 13:29:44 -05:00
Jelmer Vernooij
94e338805d r8613: Remove a couple of empty loops. 2007-10-10 13:29:44 -05:00
Jelmer Vernooij
cad40815dc r8612: Parse::Pidl::NDR:
Values that are deferred but don't contain deferred data don't
	need NDR_BUFFERS

Parse::Pidl::Samba::NDR::Parser:
	Only use manually written array access functions when the array
	functions are faster then the autogenerated ones. Makes ndr_basic.c
	a bit shorter.
2007-10-10 13:29:44 -05:00
Andrew Tridgell
a64490d1e5 r8576: install scripts from scripting/bin/ 2007-10-10 13:29:40 -05:00
Jelmer Vernooij
e43ac10e36 r8566: Couple of code cleanups 2007-10-10 13:29:38 -05:00
Jelmer Vernooij
bd706d4964 r8559: Couple of (D)COM updates:
- Fixes annoying array-of-pointers bug in pidl.
 - No longer "inherit" alignment thru subcontexts
 - Use "Image Object" as example DCOM object, rather then the "My Computer" object, which is built-in and can't be accessed remotely as far as I can see
2007-10-10 13:29:38 -05:00
Andrew Tridgell
777ac8496b r8540: fixed network interface detection on several hosts 2007-10-10 13:29:36 -05:00
Andrew Tridgell
3dd6e20566 r8533: improve --help output 2007-10-10 13:29:36 -05:00
Andrew Tridgell
810fa4f762 r8532: this miight fix cross compilation for reactos 2007-10-10 13:29:35 -05:00
Andrew Tridgell
af36bc4011 r8525: added two more test targets:
- 'make quicktest' for running only quick tests. Finishes in 20
   seconds or so.

 - 'make valgrindtest' runs smbd under valgrind in a xterm window and
   runs the quick tests. Also disables tls as that slows down valgrind
   too much to be usable
2007-10-10 13:29:35 -05:00
Andrew Tridgell
57d7a585e8 r8483: switched our generated ejs rpc code over to the new OO interface. This
means we don't pollute the name space, and also makes for faster
startup times as we only create variables for the pipes that we use,
not all pipes
2007-10-10 13:23:08 -05:00
Andrew Tridgell
a9d05af0fd r8471: --ejs taking an optional arguments interferes with the pidl extra args 2007-10-10 13:23:07 -05:00
Andrew Tridgell
3e9e5af4ce r8462: added a test for %lld support to our snprintf() configure test.
our snprintf replacement code is going to be getting a good workout :)
2007-10-10 13:23:05 -05:00
Andrew Tridgell
ccc87eb8aa r8461: fixed integer64 handling on bit endian platforms. The ejs code used
%Ld, which is an invalid format code.

This will probably cause problems on systems that don't have %lld, but
do have a working snprintf otherwise. We will need to expand the
snprintf configure test to make sure we replace snprintf on those
platforms
2007-10-10 13:23:05 -05:00
Andrew Tridgell
ab67c8b2b7 r8453: my solaris10 box doesn't have math.h
maybe sun isn't very good at maths?
2007-10-10 13:23:05 -05:00
Andrew Tridgell
da783f9158 r8440: - several build farm hosts were failing 'make clean' as the list of
objects was overflowing their command line limits. Fix this by using a
  find -exec command. It's slower, but should be more portable.

- remove generated ASN1 files in 'make clean'
2007-10-10 13:23:03 -05:00
Andrew Tridgell
b2f9b8aa32 r8416: added the extra_cflags.txt system from smb-build
this removes the need for recursive make for heimdal, which is a big
win. It should also make it easier/cleaner to build ldb/tdb/appweb etc
in both in-tree and out-of-tree forms by allowing us to specify
different CFLAGS (and thus different include paths) per directory or
file
2007-10-10 13:23:00 -05:00
Andrew Tridgell
52db7a052b r8399: move the ejs and esp code closer to the directory layout used by the
upstream sources. This makes it much easier to keep it up to date.

I will separate out the mpr code into lib/appweb/mpr next
2007-10-10 13:22:39 -05:00
Stefan Metzmacher
9739aa75d2 r8359: fix a shell warning
metze
2007-10-10 13:20:11 -05:00
Love Hörnquist Åstrand
f70e8b4f6e r8356: avoid warning from AC_CHECK_HEADER that file is present but cannot be compiled
for sys/mount.h
2007-10-10 13:20:11 -05:00
Andrew Tridgell
7c2e31fd11 r8314: - added an 'installmisc' target for installing miscellaneous files.
- install our provisioning template files in lib/setup/

We need these to be installed as users may wish to re-provision after
installation, or may not have the source tree (wuch as when installing
from binary packages)
2007-10-10 13:20:05 -05:00
Andrew Tridgell
575413fc86 r8306: some more heimdal configure checks 2007-10-10 13:20:04 -05:00
Andrew Tridgell
2cab29c1e7 r8305: another attempt at getting heimdal building in the farm 2007-10-10 13:20:03 -05:00