1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00
Commit Graph

51 Commits

Author SHA1 Message Date
Andrew Bartlett
634c54310c Merge from HEAD - make Samba compile with -Wwrite-strings without additional
warnings.  (Adds a lot of const).

Andrew Bartlett
(This used to be commit 3a7458f947)
2003-01-03 08:28:12 +00:00
Christopher R. Hertel
ce17aace99 Again, just syncronizing. The a function name was changed in the sll
module but none of Samba uses it directly.  The macros are used instead
so the change is hidden.  Good.
(This used to be commit c5d7ee506d)
2000-06-08 17:42:20 +00:00
Christopher R. Hertel
1be87441fe Bringing these up to date with what I've got on my site. The fixes include
the change that prevents 'insure' from becomming confused and issuing leak
reports.  Some minor speed fixes.  That sort of thing.

Chris -)-----
(This used to be commit 164cc91d81)
2000-06-08 17:29:05 +00:00
Jeremy Allison
ace4006c9f Added hash-based stat cache code from Ying Chen.
Jeremy.
(This used to be commit b62a1bd632)
2000-01-26 21:25:35 +00:00
Andrew Tridgell
2db96e3047 fixes for OSF1 compilation
(This used to be commit 5be3c37f50)
1998-11-13 03:37:01 +00:00
Christopher R. Hertel
f97ceef7ec I've moved the debugparse module files into the ubiqx directory because I
know that 'make proto' will ignore them there.  The debugparse.h header
file is included in includes.h, and includes.h is included in debugparse.c,
so all of the pieces "see" each other.  I've compiled and tested this,
and it does seem to work.  It's the same compromise model I used when
adding the ubiqx modules into the system, which is why I put it all into
the same directory.

Chris -)-----
(This used to be commit b6888faacd)
1998-10-28 20:33:35 +00:00
Christopher R. Hertel
8c307cee7a I received a bug report from Massimo Campostrini in Pisa. There are a pair
of "front-end" functions with the same bug each.

Fixed.
(This used to be commit 487a2e13b7)
1998-10-21 19:00:44 +00:00
Andrew Tridgell
217804ba43 ignore *.po32 files
(This used to be commit 01de9a50e0)
1998-10-05 12:36:44 +00:00
Andrew Tridgell
7677845506 ignore .po files
(This used to be commit 269a7938fc)
1998-10-04 15:02:32 +00:00
Andrew Tridgell
8a9fc22a6f ignore *.p files
(This used to be commit e246a20230)
1998-10-03 08:34:53 +00:00
Alexandre Oliva
a2d7f765e8 get away with dummy and .dummy files
(This used to be commit 90a8a02484)
1998-09-29 04:52:17 +00:00
Alexandre Oliva
cf971f88ac automated generation of .dummy files for each subdirectory;
dummy.in files are no longer needed, and new directories will be taken
care of automatically, at configure (or config.status --recheck) time
(This used to be commit 237a8e5fe6)
1998-09-28 00:14:36 +00:00
Luke Leighton
66d5d73a5d added rpcclient program
(This used to be commit aa38f39d67)
1998-09-25 21:01:52 +00:00
Alexandre Oliva
e649750cb4 major autoconf clean-up
fix problems in builds with srcdir!=builddir
(This used to be commit 1ffc3b807a)
1998-09-21 09:07:08 +00:00
Andrew Tridgell
8d42ee0f2c some merge cleanups
(This used to be commit 1d655b7c64)
1998-07-29 03:15:02 +00:00
Andrew Tridgell
64578c0589 merge from the autoconf2 branch to the main branch
(This used to be commit 3bda7ac417)
1998-07-29 03:08:05 +00:00
Christopher R. Hertel
5a9f14bca9 To each list type, I added a macro that makes it easier to define and
initialize a list header.
(This used to be commit 3c133778f1)
1998-07-24 07:39:14 +00:00
Christopher R. Hertel
a6c94aa84e Minor cosmetic change. I up-cased internal #defines.
(This used to be commit 1ce7d38d9f)
1998-06-25 00:22:48 +00:00
Christopher R. Hertel
b5e1fe339a Removed the "../" from the #include statement.
David Mathod from Cal Tech is working on a new port to VMS and requested
that such relative references be removed.
Chris -)-----
(This used to be commit 978c307916)
1998-06-11 03:24:08 +00:00
Christopher R. Hertel
6d53920d8a proto.h
*Not* the usual.  I did make proto to add the #ifndef..#endif block.
  Just to be safe, I did a cvs diff and found no prototype changes.

ubiqx/sys_includes.h
  More fudging.  I want to use binary tree typdefs in nameserv.h, but
  nameserv.h is included in includes.h which is included by all of the
  ubiqx modules.  The result is that the types are referenced before
  they are declared.  My solution is to prevent nameserv.h and proto.h
  from being included in the ubiqx modules (where they are not needed
  anyway).

Chris -)-----
(This used to be commit f128fda8e6)
1998-06-08 19:38:57 +00:00
Christopher R. Hertel
52c69766ea It occurred to me that the samba includes.h file should be included in the
header files used by the ubiqx modules, instead of being hidden in the .c
files.  This would ensure that anything in includes.h would be "seen" by
the ubiqx headers.  I also had to put an #ifdef around the includes for
ubi_SplayTree.h and ubi_Cache.h in includes.h to prevent the header of the
descendant type from being included before its parent type.

Chris -)-----
(This used to be commit e30a7e023b)
1998-06-03 21:38:51 +00:00
Christopher R. Hertel
1714adc798 Changed the mechanism for including the Samba includes.h in the ubiqx code
to something less hurried, simpler, and (I believe) more acceptable to
all.  The ubi_*.c files all now #include sys_include.h which, for Samba,
contains only comments and the line

#include "../includes.h"

That will make sure that the Samba header is there, allows me to
distribute a different default header with the main ubiqx set, and allows
others to write their own sys_includes.h for their own purposes.

Thanks to Andrew and Jeremy for hammering this out with me.

Chris -)-----
(This used to be commit def161eeea)
1998-06-02 03:27:16 +00:00
Christopher R. Hertel
cf714c364a These two are not being used, and they would cause conflict under Andrew's
include scheme.  Removing them works around the problem.  If someone
does need them sometime (can't imagine why, since the splay tree is
typically faster), let me know and we can work something else out.

Chris -)-----
(This used to be commit b3c8b14a47)
1998-05-22 06:32:07 +00:00
Christopher R. Hertel
b26d9b8869 Added a disclaimer regarding the changes Andrew wants.
(This used to be commit f8d6aab70a)
1998-05-22 04:43:04 +00:00
Andrew Tridgell
a72bb5cb6e added:
#ifdef HAVE_INCLUDES_H
#include "../includes.h"
#endif

we want _all_ code in Samba to include this file to ensure that we can
override definitions, typedefs and includes in one place.
(This used to be commit 556745037a)
1998-05-22 00:32:27 +00:00
Christopher R. Hertel
cbb1ef38b5 Along the lines that Andrew suggested, I added a header called ubi_null.h.
This header tries four different locations for a definition of NULL.  If
NULL still hasn't been found, it defaults to ((void *)0).  All of the
includes can be, essentially, overridden by defining NULL on the command
line, as in -DNULL=((void *)0).  I have faith that this will avoid the
problem of NULL being in different places on different systems.  If there
is a system out there that doesn't define NULL in any of the headers I've
included, then let me know *where* it's defined and I'll add another
header.  Chris -)-----
(This used to be commit 05fcc67872)
1998-05-21 17:14:20 +00:00
Andrew Tridgell
c78cf0b9d2 include includes.h in all the ubiqx files. I know Chris won't like
this but it really is necessary (sorry Chris!)

ubiqx code didn't compile on SunOS4 otherwise as stdlib didn't define
NULL.
(This used to be commit 4989db8b0b)
1998-05-11 08:32:37 +00:00
Christopher R. Hertel
a406ad5039 Just changed the date.
(This used to be commit f430e4b0fa)
1998-04-17 15:22:33 +00:00
Christopher R. Hertel
e459b7d4d9 Minor change to the wording. It used to say "files with the prefix 'ubi_'"
or some such.  Some future files won't have the ubi_ prefix.  -)----- Chris
(This used to be commit 955a9f9199)
1998-04-16 15:48:07 +00:00
Christopher R. Hertel
6de5509a45 Fixed some typecast and function pointer problems pointed out by a
programmer in Finland.

Chris -)-----
(This used to be commit 7ba2195cc1)
1998-04-14 14:43:38 +00:00
Christopher R. Hertel
9907a58ca6 I removed a static string that was in there because I planned to do
something with it some day.  It was causing gcc to cough up warnings
(not serious ones, mind you).  Don't worry... It will be back!
Chris -)-----
(This used to be commit 46445421c5)
1998-04-09 20:36:14 +00:00
Christopher R. Hertel
ab79f2a5f2 Just fiddled with the README.UBI file.
(This used to be commit abcc9705af)
1998-03-25 15:10:28 +00:00
Christopher R. Hertel
f7b48aada5 This functionality was added to ubi_sLinkList, so is no longer needed as a
separate module.

Chris -)-----
(This used to be commit 687e9be59b)
1998-03-10 15:41:59 +00:00
Christopher R. Hertel
87d4fc1d22 Updates to all of these base level modules.
Trees: Previously, the AVL node type was different than the node type used
       in the BinTree and SplayTree modules.  It requires an additional
       field to maintain AVL balance information.  I merged that field into
       the base type (in ubi_BinTree.h) so that all three use the same
       node type.  On most systems this will have zero effect on the node
       size, due to word alignment.  The change allowed me to remove a
       bigbunch of redundant code, which makes the AVL module smaller and
       cleaner.
Linked Lists:  I combined ubi_StackQueue into ubi_sLinkList.  The interface
       has changed a tiny bit.  I added macros to ubi_dLinkList to round
       it out a bit.

I have verified that the few Samba modules that use these tools (so far)
do not have any problems with the changes.

Chris -)-----
(This used to be commit 599a29401d)
1998-03-10 15:39:41 +00:00
Christopher R. Hertel
6f429912e7 Backed out changes that attempted to address a pointer array using -1,0,1.
Jeremy pointed out that there might be problems with this.  Darn shame.
(This used to be commit ce9acc96a6)
1997-12-24 02:50:19 +00:00
Christopher R. Hertel
b88f43dfdb Adding the cache module.
I'll be using the cache module to replace the name cache in mangle.c.  The
new one should be much faster and should require less memory.
Another feature is that the cache size can be limited by the amount of
memory used in addition to the number of entries allowed.  With the
current cache, the default is to allocate 12800 bytes representing 50
entries (256 bytes each).  With the same amount of memory, I should be able
to load over around two hundred entries.
Changes to the AVL trees were minor (missing comments).
Chris -)-----
(This used to be commit 45962779a6)
1997-12-19 09:32:58 +00:00
Christopher R. Hertel
7735e4d586 While working on a general-purpose caching module (out soon), I thought of
a better way to handle the node pointer array used in ubi_BinTree.  The
change simplified the code a bigbunch.  It also forced updates to all of
the binary tree modules.  CRH
(This used to be commit db9898559f)
1997-12-11 11:44:18 +00:00
Andrew Tridgell
ad5c8bad8a no Makefile needed here either
(This used to be commit 4d9cd22c9e)
1997-10-31 02:50:37 +00:00
Christopher R. Hertel
3e0fb1883c Modified Files:
ubiqx/Makefile ubiqx/README.UBI

Added new modules to the Makefile.  Changed the text of the README to
reflect the directory change.

Added Files:
        ubiqx/ubi_AVLtree.c ubiqx/ubi_AVLtree.h
        ubiqx/ubi_BinTree.c ubiqx/ubi_BinTree.h
        ubiqx/ubi_SplayTree.c ubiqx/ubi_SplayTree.h
        ubiqx/ubi_StackQueue.c ubiqx/ubi_StackQueue.h
        ubiqx/ubi_sLinkList.c ubiqx/ubi_sLinkList.h

This is the remainder of the toolkit.  A quick rundown:
  sLinkList  = A simple singly-linked list.
  StackQueue = Implements both a stack and a queue.
  dLinkList  = (Not added 'cause it's already there.)  A doubly-linked list.

  BinTree    = Base level binary tree module.  (No height balancing, just
               the basics.)
  AVLtree    = Descendant type of BinTree.  Implements a height-balanced
               (AVL) binary tree.
  SplayTree  = Descendant type of BinTree.  Implements a splay-balanced
               binary tree.

Renamed Files:
        ubiqx/COPYING.LGPL ==> ubiqx/COPYING.LIB

This matches the naming that GNU suggests.
(This used to be commit c6205dd45e)
1997-10-30 18:05:56 +00:00
Luke Leighton
f1093ad693 Makefiles for libraries. the dependencies aren't quite right, and i
don't know how to sort them.

make proto in each library directory.  over-ride the make proto for ubiqx,
so that it doesn't happen, but throws up a warning instead.
(This used to be commit 93df2c62cc)
1997-10-30 15:42:40 +00:00
Andrew Tridgell
628d7993d5 moved ubi_ modules back into the ubiqx directory.
I've added a very simple (and portable) method for having separate
source directories.

This should also help when we add directories for the various ports. A
unix directory would make sense.
(This used to be commit dc8998b1d3)
1997-10-30 08:44:29 +00:00
Christopher R. Hertel
c3ceabce3a Moved the LGPL from the ubiqx directory into the samba root directory
and renamed it COPYING.LGPL.  This is because the ubi_* files are under
LGPL, not regular GPL.
Removed the last few things from the ubiqx directory and deleted it.
(This used to be commit 31d50db98b)
1997-10-16 01:13:09 +00:00
Christopher R. Hertel
98f6293297 Don't need it any more.
(This used to be commit 905b2b9562)
1997-10-16 01:06:12 +00:00
Christopher R. Hertel
4aedb4ac5d I got fed up trying to put the tree and list stuff into a subdirectory,
so I've started to move them into the main directory.
(This used to be commit 4691a94d3c)
1997-10-16 00:46:21 +00:00
Christopher R. Hertel
5619b53921 Added ubi_sLinkList module which manages simple singly-linked lists.
(This used to be commit e55a3dc94a)
1997-10-15 17:59:58 +00:00
Christopher R. Hertel
4a9e9a40dc These are the ubiqx modules, as included with the Samba distribution.
Updated the linked list module, which has new and changed macros.
(This used to be commit 2181d929d1)
1997-10-15 03:11:46 +00:00
Christopher R. Hertel
e3d56eb181 First draft of a README file to explain the origins of the "ubiqx" code.
(This used to be commit df3bafd0c4)
1997-10-15 01:16:37 +00:00
Christopher R. Hertel
f9151159b8 Added a very small piece of documentation to describe the binary tree
modules.
(This used to be commit 781be1daac)
1997-10-14 19:32:30 +00:00
Christopher R. Hertel
d4605d5b95 Added a copy of the LGPL to the samba/ubiqx/ directory.
(This used to be commit 28de393878)
1997-10-14 19:30:07 +00:00
Christopher R. Hertel
23cac105fd I have to admit that I'm not very good at writing Makefiles.
This one will simply create an object file from each of the .c files
in the directory.  These could be linked into a static library, but
I'm not sure that this is worthwhile.  If anyone wants to improved on
what I've got here, please do!  crh -)-----
(This used to be commit 5e52143829)
1997-10-10 16:12:27 +00:00