diff options
author | Andrew Tridgell <tridge@samba.org> | 1998-08-16 04:08:47 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 1998-08-16 04:08:47 +0000 |
commit | 739d0b1ddc58bbb792c3eebe8c545602a4fae438 (patch) | |
tree | 3c8c93608f4ce3d870de18cee6673c2efea799da /source3/include | |
parent | a7acf10566af549eb71e7a421397c8073d55e0f6 (diff) | |
download | samba-739d0b1ddc58bbb792c3eebe8c545602a4fae438.tar.gz samba-739d0b1ddc58bbb792c3eebe8c545602a4fae438.tar.bz2 samba-739d0b1ddc58bbb792c3eebe8c545602a4fae438.zip |
got rid of the Files[] array completely (previously I'd just made it
private to files.c)
It now is a doubly linked list with a bitmap for allocated file
numbers. Similarly for the fd_ptr code. I also changed the default
maximum number of open files to 4096. The static cost is 1 bit per
file.
It all seems to work, and it passes the "does Sue scream" test, but if
you see weird behaviour then please investigate. With the volume of
new code that has gone in there are bound to be one or two bugs
lurking.
note that you must do a "make clean" before building this as many data
structures have changed in size.
(This used to be commit 79755ce97004b787d7e83a8d18fc4c7c003b7231)
Diffstat (limited to 'source3/include')
-rw-r--r-- | source3/include/proto.h | 9 | ||||
-rw-r--r-- | source3/include/smb.h | 1 |
2 files changed, 9 insertions, 1 deletions
diff --git a/source3/include/proto.h b/source3/include/proto.h index 6f2a593f92..e52ffdcd7a 100644 --- a/source3/include/proto.h +++ b/source3/include/proto.h @@ -49,6 +49,15 @@ BOOL allow_access(char *deny_list,char *allow_list, char *cname,char *caddr); BOOL check_access(int sock, char *allow_list, char *deny_list); +/*The following definitions come from lib/bitmap.c */ + +struct bitmap *bitmap_allocate(int n); +void bitmap_free(struct bitmap *bm); +BOOL bitmap_set(struct bitmap *bm, unsigned i); +BOOL bitmap_clear(struct bitmap *bm, unsigned i); +BOOL bitmap_query(struct bitmap *bm, unsigned i); +int bitmap_find(struct bitmap *bm, unsigned ofs); + /*The following definitions come from lib/charcnv.c */ char *unix2dos_format(char *str,BOOL overwrite); diff --git a/source3/include/smb.h b/source3/include/smb.h index 3b562b9d13..e99eb30023 100644 --- a/source3/include/smb.h +++ b/source3/include/smb.h @@ -599,7 +599,6 @@ typedef struct files_struct BOOL granted_oplock; BOOL sent_oplock_break; BOOL is_directory; - BOOL reserved; char *fsp_name; } files_struct; |