Commit Graph

1934 Commits

Author SHA1 Message Date
Derrick Brashear
35192ba9e3 ptserver-prototype-ubik-20031208
since ubik got prototypes, we have to make our shadow functions the same
2003-12-08 05:50:39 +00:00
Jeffrey Altman
2ea2e4deba import-fs-formatting-to-windows-20031207
TICKET 2651

Import string formating from venus/fs.c
2003-12-08 04:32:27 +00:00
Jeffrey Altman
705241efee set-service-error-condition-afsd-20031207
TICKET 2619

If the service crashes unexpectedly (eg, when the network adapter list
changes) we should return an error code so that system policy can be
used to determine if the service should be automatically restarted.
When there is an error GlobalStatus gets set to a non-zero value.
If GlobalStatus is set, we will return ERROR_EXCEPTION_IN_SERVICE
to the Service Manager.
2003-12-08 04:01:20 +00:00
Jeffrey Altman
8bdaee9e18 remove-int64-conversion-warnings-20031207
Use casting to avoid repeated conversion warnings resulting in data loss.
2003-12-08 03:14:08 +00:00
Jeffrey Altman
85f6cefe70 jbuehler-add-missing-extern-c-patch-20031207
Add extern C modifiers to non-C++ functions in Windows files
2003-12-08 02:54:14 +00:00
Jeffrey Altman
d5070bd9a0 more-must-returns-20031207
More must returns value warnings cleaned up
2003-12-08 02:41:17 +00:00
Jeffrey Altman
0c23b6fd77 ntmakefile-fix-20031207
remove extraneous include of src/config/NTMakefile.version
2003-12-08 02:37:55 +00:00
Jeffrey Altman
3dc648d761 add-missing-return-values-20031207
Add missing return values producing warnings on Windows
2003-12-08 01:45:23 +00:00
Jeffrey Altman
08248560ea ticket-2618-corrections-20031207
Remove extraneous declarations in dir.c
2003-12-07 23:18:33 +00:00
Jeffrey Altman
21caaae64f ticket-2618-patches-20031207
TICKET 2618

flexelint patches for prototype handling from Joe Beuhler

>>>>>>>>>>>>>>>>>>>>>>>>>>>>

This patch adds a bunch of missing prototypes, makes various
corrections to global prototypes, and removes global declarations that
are not needed.

One set of added prototypes is commented out because it applies to
some printf-like functions that are implemented the way it used to be
done before varargs existed, and they need to be unprototyped or the
code will fail to compile.  (There are a number of functions in the
OpenAFS code that need to be converted to use varargs...)

There is one place of note in src/WINNT/afsd/fs.c where typedefs for
afs_int32 and afs_uint32 conflict with afs/stds.h.  I just added a
note to that effect.

Prototypes in src/WINNT/afsd/fs.c are incorrect for Windows NT.  I
don't know whether the return type involved changes from platform to
platform -- they come from .xg files.

Some prototypes are now commented out or #ifdef'd to match the code
that uses them.

Some global variables conflict between modules and have been made static.
The bufferBlock variable was of two completely different types...

In src/config/stds.h, I changed the declaration of afs_intmax_t to
reflect the fact that the Windows platform supports 64 bit integers.
This may be incorrect semantically, but I believe it is needed for the
%llx format to match afs_intmax_t arguments (for printing of inodes
mainly, I believe).

There were two different declarations for the rxkad_stats structure --
I synced them up.

- Joe

Removed the conflicting typedefs from src/WINNT/afsd/fs.c

Removed the changes to src/config/stds.h.  Added declaration of
AFS_64BIT_CLIENT to src/config/NTMakefile.i386_nt40 instead.

Do not remove unused variables which are defintions of data type
values.  Instead comment them out to avoid space utilization and
warnings.
2003-12-07 22:49:00 +00:00
Jeffrey Altman
4ceaebdbda afssvrcfg-updates-20031206
Replace the mechanism used to register drives with WNetAddConnection2.
This will hopefully be more reliable than then older code which was
unable to register drive mappings.

Corrected error string formatting.
2003-12-07 03:39:50 +00:00
Jeffrey Altman
8d0d3f16c3 add-multiple-interface-support-20031206
The ubik support on Windows only verified against the first
address on the system even if that address was assigned to
a disabled interface.
2003-12-06 21:17:39 +00:00
Jeffrey Altman
b2d84ee047 reorg-ntbuild-20031206
Reorganize ntbuild.bat to place all of the user edits at the front
2003-12-06 20:11:12 +00:00
Jeffrey Altman
334f5f00f1 fix-memory-alloc-srv-cfg-wizard-20031206
The Windows AFS Server Config Wizard would produce an invalid memory
deallocation error from the memory management routines due to the
failure to allocate PROGRESSDISPLAY objects with the same tools used
to deallocate them.
2003-12-06 19:29:31 +00:00
Jeffrey Altman
999ec32f9d more-NSIS-fixes-20031206
from Rob Murawski
2003-12-06 19:01:41 +00:00
Jeffrey Altman
46b23d72d2 add-pdb-files-to-server-nsis-20031206
Add PDB files for debugging to NSIS Server install
2003-12-06 17:41:53 +00:00
Jeffrey Altman
6e667ed9d1 more-vc-net-installer-fixes-20031206
Make sure we get the included libraries correct for install
2003-12-06 17:01:30 +00:00
Jeffrey Altman
53e72a1ec1 another-correction-ntbuild-bat-20031206
I wish .BAT files had IF-THEN-ELSE instead of just IF
2003-12-06 16:01:03 +00:00
Jeffrey Altman
6826cde0a6 no-debug-for-free-builds-20031206
Reorganize makefile to not generate debug files for free builds.
2003-12-06 15:41:38 +00:00
Jeffrey Altman
7bcb1e53bf correct-include-for-cl1300-20031206
CL 1300 uses the mfcatl paths just like CL 1310
2003-12-06 15:40:17 +00:00
Jeffrey Altman
235cd101fd nsis-installer-updates-20031205
Remove need for MakeCommon.bat

Produce nsi-includes.nsi from NTMakefile

Update OpenAFS.nsi to use MFC70.DLL and MFC71.DLL as needed.
(Need to confirm with Rob Murawski)
2003-12-06 06:19:03 +00:00
Jeffrey Altman
ad9367a9ad product-version-number-update-20031205
Modify the variables used to construct the product version numbers
to allow these same values to be used with the NSIS installer
2003-12-06 06:15:46 +00:00
Jeffrey Altman
090f882fd9 typo-correction-ntmakefile-20031205
Fix a typo in msvcrtd.dll reference
2003-12-05 23:17:20 +00:00
Jeffrey Altman
492387b8d2 updates-to-NSIS-to-support-debug-crt-20031205
Updates to NSIS installer scripts to conditionally build with
debug or non-debug CRT libraries; also, now supports conditional
library usage based upon the MS Compiler version used
2003-12-05 23:10:04 +00:00
Jeffrey Altman
c6c8034322 i386_nt40-lex-macro-fix-20031205
Not that anyone has used it in forever and therefore would not notice
but the LEX macro was a version number "1.2.2 a" instead of a program
name.  Changed to "flex -l" but it really depends on which lex type
program is being used
2003-12-05 22:19:50 +00:00
Jeffrey Altman
7a60256d58 NSIS-installer-debug-mode-20031205
NSIS installer debug mode activiation based upon AFSDEV_BUILDTYPE
2003-12-05 21:59:31 +00:00
Jeffrey Altman
5d0958127a pdb-files-for-checked-builds-20031205
Produce PDB files in the DEST/CHECKED tree for use by NSIS installer
2003-12-05 21:56:33 +00:00
Jeffrey Altman
fb7ed4bf35 fix-ntbuild-bat-20031205
Fix conditional contruction of AFSDEV_LIB variable
2003-12-05 20:07:26 +00:00
R. Lindsay Todd
333b371389 largefile-support-continued-20031205
FIXES 1493

configure switch and minor largefile cleanup. not done.
2003-12-05 08:35:57 +00:00
Derrick Brashear
afb1b03e75 vos-full-listvol-on-by-default-20031204
at the suggestion of miles@cs.stanford.edu
2003-12-04 19:53:37 +00:00
Derrick Brashear
ebe5567b3b salvager-remove-orphaned-header-20031204
FIXES 2522

this should be fixed for the global case, but that's harder to test
2003-12-04 17:02:38 +00:00
Nathan Neulinger
0935f3838f libafsrpc-fix-objdir-breakage-20031204
FIXES 2615

the not gmake workaround broke objdir builds. sigh.
2003-12-04 16:47:05 +00:00
Kris Van Hees
f0c992107a solaris-kdump-build-rationalization-20031204
make kdump64 and kdump32 get built with sanity on solaris
2003-12-04 16:33:54 +00:00
Kris Van Hees
8be29dc516 salvager-fix-misparented-vnode-1-20031204
if vnode 1 gets a parent (which is incorrect) arrange for it to be cleaned
up properly
2003-12-04 16:23:28 +00:00
Douglas Engert
90f461c912 hpux-1123-update-20031204
update the hpux 11.23 on ia64 support
don't build libuafs. make kernel modules build. fix afsd.
2003-12-04 16:10:43 +00:00
Jeffrey Altman
2fba10f163 fix-checked-build-libraries-20031203
checked builds were linking against non-debug versions of the MFC libraries
which produced warnings at link time.  Replaced with the debug versions.
2003-12-03 23:28:50 +00:00
Jeffrey Altman
708b147ba5 typo-20031203 2003-12-03 20:07:55 +00:00
Jeffrey Altman
877a7bd741 more-missing-crtdbg-includes-20031203
For when you are debugging ...
2003-12-03 20:06:37 +00:00
Jeffrey Altman
c46ebfb07e add-missing-include-file-afsd-windows-20031203
ctrdbg.h but only when _DEBUG is defined
2003-12-03 19:44:59 +00:00
Jeffrey Altman
2542d907f1 i-hate-bat-files-20031203
Add missing % at end of variable names to be compatible with cmd.exe
2003-12-03 19:24:38 +00:00
Jeffrey Altman
79b9432758 do-not-make-commits-after-24hrs-awake-20031203
.BAT files do not use the same syntax as makefiles.
don't make commits after being up more than 24 hours straight.
2003-12-03 15:58:55 +00:00
Jeffrey Altman
dfed0829dd ntbuild-support-for-visual-studio-net-2003-20031202
Add LIB and INCLUDE files for Visual Studio .NET 2003
(Thanks to Rob Murawski for details)
2003-12-03 04:53:12 +00:00
Derrick Brashear
1c5a7b4ea1 rpc-rename-avoid-loop-20031201
enumerated solution (n vnodes cannot yield n+1 loop passes) suggested by
jhutz@cmu.edu. avoid looping forever on a corrupt parent.
2003-12-01 20:16:02 +00:00
Derrick Brashear
6b81e7a4bb tvolser-update-20031121
add transaction mutex to handle global list of transactions
2003-12-01 05:35:04 +00:00
Jeffrey Altman
6b375af14f remove-duplicate-include-from-shell-ext-cpp-20031130
Remove atlconv.h include the second time it is listed
2003-11-30 15:39:33 +00:00
Jeffrey Altman
a42c100005 update-version-number-for-windows-20031129
Updated the version number to 1.3.51 for both nt40 and win95
However, it is unlike that win95 will build at this point in time.
Its version of the makefile had not been touched since 1.2.2b
2003-11-30 03:52:59 +00:00
Jeffrey Altman
1b618cd71f jaltman-missing-variable-20031129
jbuehler left out a variable declaration
2003-11-29 22:50:14 +00:00
Jeffrey Altman
61cf9fa731 jbeuhler-flexelint-bugs-found-20031128
This patch covers bugs found by running flexelint on
the CVS code on Windows NT.

- incorrect enum used in al_creds.cpp and various other files
- use of local after it goes out of scope in al_wizard.cpp
- uninitialized class members in afsclass/*
- cm_config.c looks like it has code commented out accidentally
- useless statement in alert.cpp
- no default case handling in problems.cpp
- strange use of & on booleans in set_clone.cpp
- fgets() and fclose() on closed stream in cellconfig.c
- memory leak in cellconfig.c
- *scanf into variables of unknown length in cellconfig.c
- incorrect pointer passed to getAFSServer() in cellconfig.c
- possible buffer overflows in userok.c
- address of array in bos.c
- too many arguments for printf() in commands.c
- return code not saved in bucoord/main.c
- bad types for argv arrays in bucoord/main.c
- probably incorrect initializer list in ol_verify.c
- extra argument to TLog() in lwps.c
- memory leak in cmd/cmd.c
- lack of typecast on malloc() in a couple files
- lower-case L for long constant in touch.c (is it a 1 or an l...)
- parentheses nesting error in util_cr.c
- apparently invalid case fall-through in util_cr.c
- various memory leaks in util_cr.c
- macro missing parens in crypt.c
- macro missing parens in quad_cksum.c
- null pointer deref in kpasswd.c (CVS work in progress?)
- Print_bos_ProcessState_p() code does not look correct
- extra argument to printf() in kas.c
- typo in vsprocs.c
- macro missing parens in iomgr.c
- address of array in threadname.c
- storing result of getch() in char type in waitkey.c (may not match EOF constant)
- storing pointer to local car in global in ptserver.c (benign -- it is in main())
- address of array in rx_lwp.c
- macro missing parens in rx_packet.h
- impossible == (signed vs. unsigned?) in rxdebug.c
- bogus constants in xdr.c and xdr_array.c (possible security implications?)
- incorrect test of fd for open file in update/server.c
- dangerous unparenthesized macro in get_krbrlm.c
- buffer overrun in regex.c
- missing comma causes string concat and bad array init in vlclient.c
- comparison of string < 0 in ntops.c
- default case has no code in vos.c
--
Joe Buehler

>>>>

Comments: Several comments for FIXME left in the code - unaddressed
2003-11-29 22:07:57 +00:00
Jeffrey Altman
a95c759cd7 missing-assert-h-20031129
Missing assert.h for added assert()
2003-11-29 21:46:30 +00:00
Jeffrey Altman
21ca232974 jbeuhler-flexelint-fun-with-printf-20031128
This patch addresses a number of problems with printf-like functions.

Most of them are %x formats applied to pointers (which could be a
problem depending on the architecture I would assume).  There is a
%p format for pointers on many machines but I don't know if it
applies to all supported OpenAFS platforms so I didn't go that route.

There is a buffer overflow fix to ktime.c

There are a couple places where incorrect format characters were used.

One call had two arguments swapped.

Other fixes include the use of PrintInode() and %s formats for
printing inode numbers.  The code was inconsistent in this regard -- sometimes
PrintInode() was used, sometimes it was side-stepped.

There is one place where a local shadowed another variable, so I renamed
the local.

The last segment points out that an fdset need not be anything printable
with an integer format.
--
Joe Buehler

Comments - The fdset comment relates to a WinSock only file on which
the size is a pointer to int.  Modified the source to use a %p instead
of %x as it is supported on Windows.

Added an assert(p != NULL) to src/rx/rx_packet.c
2003-11-29 21:37:50 +00:00