Commit Graph

44 Commits

Author SHA1 Message Date
Simon Wilkinson
36524b2ed7 Rationalise our include paths
Our include paths are a bit of a mess. Fix these so that they're
more rational, and more in line with normal coding style.

In particular:
   *) Don't include all of the subdirectories of our top level
      include directory. If a file wants afs/file.h, it should
      include that, not "file.h"
   *) Try to avoid including '.' in the search path (although
      objdir builds make this harder)
   *) Don't blindly include other directories from the code tree
      in the search path. If a package wants another packages header,
      then it should get it from the include directory
   *) Use the convention that quoted includes ("") pick up local
      headers. Bracketed includes (<>) pick up ones from the top level
      include dir
   *) In directories which pull in files from multiple packages, don't
      blindly put all of the package directories in the search path.
      Specifically include the file's package directory when required

The big change here is that it's no longer possible to hide a system
include by placing a header of the same name in include/afs. The most
common case where this was happening was for 'assert.h'

Change-Id: I0796fabcf83ffcd74e533624c64e138a160dd632
Reviewed-on: http://gerrit.openafs.org/834
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
2009-11-17 13:12:57 -08:00
Andrew Deason
9818e3dce9 Fix a couple of size_t warnings
fsprobe/fsprobe.c and kauth/ka-forwarder.c were trying to print size_t's
without using AFS_SIZET_FMT. Fix that.

Reviewed-on: http://gerrit.openafs.org/678
Reviewed-by: Simon Wilkinson <sxw@inf.ed.ac.uk>
Tested-by: Derrick Brashear <shadow@dementia.org>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
2009-10-19 05:33:27 -07:00
Simon Wilkinson
3064879c8d Update warning management
This change tidies up after the recent slew of warning reduction. It
updates README.WARNINGS to reflect the current state of the tree,
disables warnings for a couple of files that are now warning clean,
and ensures that the libuafs and libafsrpc Makefiles match the state
of the rest of the tree in terms of which warnings are enabled.

Reviewed-on: http://gerrit.openafs.org/672
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
2009-10-18 06:13:58 -07:00
Simon Wilkinson
82aa5b4e09 Add public protoypes for volser
Add a new public header file volser_prototypes.h, which contains
prototypes for those volser functions that are used by the rest of the
tree, and link it into the Unix and Windows build systems.

Rename the current volser_prototypes.h volser_internal.h, and update
references to it.

Make those places that should use the new public header use it, and
re-enable warnings-as-errors as appropriate.

Remove the warning free files from the list in README.WARNINGS

Add butm_prototypes.h to butc/lwps.c, so we can enable warnings for that,
too.

Reviewed-on: http://gerrit.openafs.org/636
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
2009-10-13 05:33:46 -07:00
Simon Wilkinson
6d51ebd6c8 Add support for warning checked builds
This patch adds a '--enable-checking' configuration option. When this
option is supplied, and gcc is in use, the compiler will treat any
warnings as errors. This will hopefully help stop new warnings from
creeping into the tree.

In order to still be able to build, all of the currently existing
warnings are accepted (these are documented in README.WARNINGS). With
this set of warning inhibitions, the tree is known to build on 32bit
Leopard - other systems may vary. Warning inhibition may be disabled
by supplying --enable-checking=all - in this case the tree will
definitely not build!

If --enabled-checking is not specified, the existing compilation
behaviour is maintained, so there is no user-visible change.

Gcc 4.2, or later, is required to use the pragma sets contained within
this patch. Again, they are not visible unless --enable-checking is
given.

Reviewed-on: http://gerrit.openafs.org/526
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
2009-09-28 05:00:04 -07:00
Simon Wilkinson
a53732ef5f Miscellaneous warning cleanup
Assorted warning cleanup, that it didn't seem to make sense having one
patch per file for.

This patch
    - Adds some casting for syscall pointers
    - ANSIfies SRXAFSCB_GetDE in fsprobe
    - Loads sys/ioctl.h on some more platforms in usd
    - Includes some missing header files
    - Removes unused variables
    - Makes it clear that VIsSalvager does handle all enumerated types
    - Adds some more prototypes

Reviewed-on: http://gerrit.openafs.org/508
Tested-by: Derrick Brashear <shadow@dementia.org>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
2009-09-28 01:58:16 -07:00
Simon Wilkinson
967abaf29b Make rxgen emit prototype for ExecuteRequest
Make rxgen provide a prototype in its header file for _ExecuteRequest, and
remove all of the adhoc prototypes from the tree.

Reviewed-on: http://gerrit.openafs.org/247
Tested-by: Jeffrey Altman <jaltman@openafs.org>
Reviewed-by: Jeffrey Altman <jaltman@openafs.org>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
2009-07-29 18:42:47 -07:00
Simon Wilkinson
3bb5fa5f1b Remove the RCSID macro
The move to git means that we can no longer populate the RCSID
macro in the way that it was used with CVS. This patch simply
removes the macro from every file, except where it contains
information from upstream (and it's in a comment).

Reviewed-on: http://gerrit.openafs.org/14
Verified-by: Derrick Brashear <shadow@dementia.org>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
2009-07-09 22:58:37 -06:00
Simon Wilkinson
d5081f264d Remove CVS ignore files
Now we're in git we don't need any cvsignore files any more...

Reviewed-on: http://gerrit.openafs.org/1
Verified-by: Derrick Brashear <shadow@gmail.com>
Reviewed-by: Derrick Brashear <shadow@gmail.com>
2009-07-06 11:03:16 -06:00
Simon Wilkinson
c41a467741 gitignore-20090615
LICENSE IPL10

make gitignore files
2009-06-15 23:29:29 +00:00
Simon Wilkinson
b18ec965dd fsprobe-prototypes-20090315
LICENSE IPL10
FIXES 124254

prototype the fsprobe directory
2009-03-16 02:53:55 +00:00
Simon Wilkinson
ff988ead4e lwp-protoize-20080310
LICENSE IPL10

protoize lwp. make it match pthreads' idea of createprocess
2008-03-11 17:46:58 +00:00
Derrick Brashear
b651ece9bd large-partition-support-20080305
LICENSE IPL10
FIXES 88811

support partitions over 2tb
2008-03-05 21:51:19 +00:00
Simon Wilkinson
7d05bd439e openafs-string-header-cleanup-20071030
include only what we need
2007-10-30 15:10:37 +00:00
Russ Allbery
3a34d8cb4f autoconf-likes-relative-paths-20060802
When using the install-sh that ships with the source tree, Autoconf
substitutes in a relative path just to be annoying.  Define the INSTALL
variables in each individual Makefile so that they find the proper file.
Remove the definitions from Makefile.config so that no one will
accidentally get the wrong ones.
2006-08-03 03:37:12 +00:00
Russ Allbery
8df5dcbc91 death-to-pinstall-20060801
Delete pinstall and convert the entire tree to use the install program
found by configure (falling back on install-sh in the local tree).  This
means that we have to pre-create directories with install -d.  Also redo
the install and dest rules to be lists of install rules rather than
dependencies driving separate make rules so that running make install will
always update the target directory with the current code, even if there are
files in the install area that are newer.

Stop installing libafssetpag; we're about to kill it in favor of a
different library.  Remove some djgpp rules.
2006-08-01 21:03:54 +00:00
Ed Moy
9f94892f8d darwin-x86-and-leopard-20060309
updates for darwin x86, and pre-leopard
2006-03-09 06:35:14 +00:00
Derrick Brashear
3b290d5b79 dedebug-20051007
perhaps this should never be pulled up.

anyway, implement dentry cache status dumping for linux. and provide a tool to dump it

disabled (tool, not rpc) by default

====================
This delta was composed from multiple commits as part of the CVS->Git migration.
The checkin message with each commit was inconsistent.
The following are the additional commit messages.
====================

perhaps this should never be pulled up.

anyway, implement dentry cache status dumping for linux.^? and provide a tool to
 dump it

disabled (tool, not rpc) by default

====================

perhaps this should never be pulled up.

anyway, implement dentry cache status dumping for linux.^? and provide a tool to
 dump it

disabled (tool, not rpc) by default
2005-10-07 21:11:01 +00:00
Derrick Brashear
872bc94f8c reindent-20030715
FIXES 1774

thanks to nneul@umr.edu for providing a script to do this.
gnu indent 2.2.9 options:
-npro -nbad -bap -nbc -bbo -br -ce -cdw -brs -ncdb -cp1 -ncs -di2 -ndj -nfc1
-nfca -i4 -lp -npcs -nprs -psl -sc -nsob -ts8

====================
This delta was composed from multiple commits as part of the CVS->Git migration.
The checkin message with each commit was inconsistent.
The following are the additional commit messages.
====================
FIXES 1774

fix subst mistake
2003-07-16 00:28:24 +00:00
Derrick Brashear
863b113a4d cleanup-licensing-and-transarc-references-20030309
tired? on a plane? need some mindless (maybe that's mind-numbing) stuff
to work on? clean up licensing and references in code comments. it's big fun.
2003-03-10 01:59:12 +00:00
Derrick Brashear
50ee992c31 protoize-callback-interfaces-20030304
more random protoizing
2003-03-04 16:26:29 +00:00
Derrick Brashear
2712c1202a capabilities-20030304
need to remove dummy capability, but otherwise this is the rpc part.
2003-03-04 16:19:46 +00:00
Nathan Neulinger
580af44321 makefiles-cflag-cleanup-20030111
move cflags back to makefile.config, more cleanup, dup removal
2003-01-11 07:33:52 +00:00
Nickolai Zeldovich
629d080654 This is mostly a rewrite of src/afs/afs_cell.c, and associated changes
to other things.  Features of the new cell code:

 * Persistent name-to-cell-number mapping across reboots, to ensure the
   cell numbers in the dcache are meaningful.  Stored in the new cache
   file, /usr/vice/cache/CellInfo.
 * Allow cmdebug to query the cell number to cell name mapping.
 * Allow clients to have an empty CellServDB as long as AFSDB is enabled
   and ThisCell has AFSDB records.
 * The home cell retains the setuid bit even if looked up via AFSDB.
 * Dynroot gets its own cell, rather than piggybacking on cell 1.
 * Cell 1 is no longer special; cell numbers are now semi-opaque.
 * Convert cell traversal code to using GetCellByIndex rather than
   directly poking at CellLRU / afs_xcell.
 * Separate cells from aliases, which shouldn't have been the same
   in the first place.
 * Cleaner code (IMHO).

====================
This delta was composed from multiple commits as part of the CVS->Git migration.
The checkin message with each commit was inconsistent.
The following are the additional commit messages.
====================

make the arguments afs_CellNumValid takes match the prototype (since it
really is a afs_int32 it looks like)

====================

update irix to deal

====================

update irix to deal

====================


Fix some more references to the now-nonexistant cell->index
2002-08-23 04:31:38 +00:00
Derrick Brashear
8e66ec5e01 prototypes-fixes-20020821
screw it. if winnt can have generic pointers, so can we

====================
This delta was composed from multiple commits as part of the CVS->Git migration.
The checkin message with each commit was inconsistent.
The following are the additional commit messages.
====================

and cast all the pointers
2002-08-22 19:45:11 +00:00
Nathan Neulinger
8f2df21ffe pull-prototypes-to-head-20020821
pull up prototypes to head
2002-08-21 19:52:17 +00:00
Love Hörnquist-Åstrand
a5cb7c256b rxgen-prototypes-fixes-20020310
prototype fixes as fallout from rxgen header prototypes

emit server stubs which include header as well
2002-03-10 19:07:56 +00:00
Mattias Amnefelt
f0aea5e186 makefiles-dont-hardcode-optimization-flags-20020307
allow setting optimization in CFLAGS in makefiles

use -g3 on tru64
2002-03-08 05:59:32 +00:00
Nickolai Zeldovich
18fdd2a233 Fix more build problems due to prototypes produced by rxgen. 2002-02-26 22:53:59 +00:00
Nickolai Zeldovich
1e6bc5de52 Fix minor build errors, and rename the dumpId argument of butc's
DeleteDump to avoid collision with budb's #define dumpId.
2002-02-22 09:00:36 +00:00
Nathan Neulinger
838e1eae1a build-system-specific-makefile-configuration-from-configure-20011031
junk all of Makefile.${SYS_NAME} in favor of a common makefile built by
configure, and use it
2001-11-01 04:59:26 +00:00
Hartmut Reuter
971b18bc42 client-64bit-file-size-support-20011031
new RPCs and client-side support for large files
2001-11-01 04:01:22 +00:00
Nathan Neulinger
b9948dd965 initial-objdir-support-20011017
first cut at objdir support
2001-10-18 00:06:58 +00:00
Nathan Neulinger
2a12550e7c add-cvsignores-to-project-20010910
start at cvsignores
2001-09-10 21:14:01 +00:00
Jeffrey Hutzelman
80e2c2f8ce make-install-support-for-transarc-and-prefix-style-universes-20010907
according to jeff:
- Renames the top-level 'install' target to 'build'.  This should be
    transparent, since no one should be using that.

  - Improves on Sam's dirpath patches, by splitting out server binaries
    into separate bin, sbin, and libexec directories in GCS mode (these
    are all /usr/afs/bin in Transarc mode).

  - Updates the top-level 'all' target so that it builds the software
    but does not generate a dest tree.  Top-level 'lib' and 'include'
    directories are generated to hold the intermediate libraries and headers
    used during the build.

  - Adds a new top-level 'install' target, which installs things in the
    appropriate directories under ${DESTDIR}, based on configure's install
    directories plus the extras added by Sam's patch.

  - Adds a new top-level 'dest' target, which creates an old-style dest
    directory under ${DEST}.  The ${DEST} variable defaults to the
    traditional value of ${SRCDIR_PARENT}/${SYS_NAME}/dest.  Note that
    this variable used to be called ${DESTDIR}; it was renamed to avoid
    conflicts with the de facto standard usage of ${DESTDIR}.

====================
This delta was composed from multiple commits as part of the CVS->Git migration.
The checkin message with each commit was inconsistent.
The following are the additional commit messages.
====================

fix missed makefile

====================

update another missed file

====================

eliminate bogus escaping

====================

get rid of another bogus escape

====================

remove unused include directory

====================

get rid of no longer used libdir

====================

remove unused incdir

====================

fix up some problems for make compatibility and missing trailing /

====================

put afs.exp in the right place

====================

remove bogus afssrvdir reference

====================

update dest version of output

====================

update ref to libexecdir

====================

kill refs to afssrvdir

====================


convert missed LIBDIR to TOP_LIBDIR

====================

remove explicit INSTALL and use makefile.@sys value instead

====================

except it's helpful to actually include makefile.@sys

====================

convert LIBDIR to TOP_LIBDIR
2001-09-10 20:15:57 +00:00
Nathan Neulinger
635df30c0f more-makefiles-cleanup-20010829
get rid of cases where we'd end up with two / because of DESTDIR pasting

macroize calls to rm

====================
This delta was composed from multiple commits as part of the CVS->Git migration.
The checkin message with each commit was inconsistent.
The following are the additional commit messages.
====================

get rid of another case of bogus trailing quoting
2001-08-30 00:22:17 +00:00
Nathan Neulinger
b0c5f0cac6 makefile-updates-20010828
clean up all the makefiles to remove bogus targets, eliminate trailing /
requirement from DESTDIR, avoid needing to pass things like DESTDIR around
between makefiles

====================
This delta was composed from multiple commits as part of the CVS->Git migration.
The checkin message with each commit was inconsistent.
The following are the additional commit messages.
====================

remove bogus quoting
2001-08-29 02:19:55 +00:00
Derrick Brashear
c5c521af0e convert-from-bsd-to-posix-string-and-memory-functions-20010807
bcopy, bcmp, bzero, index, rindex, you're all cut.
memcpy, memcmp, memset, strchr, strrchr, show us how it's done

====================
This delta was composed from multiple commits as part of the CVS->Git migration.
The checkin message with each commit was inconsistent.
The following are the additional commit messages.
====================

fix reference to memset the right thing

====================

make change to arguments globally and not just for e.g. linux/darwin/fbsd

====================

fix a minor flub in how this was done

====================

correct another bad memcpy coversion

====================

fix up more inadvertant turds

====================

fix two errors found by chas williams
2001-08-08 03:05:55 +00:00
Nathan Neulinger
0207991adc convert-all-makefiles-to-makefile-ins-20010802
all relevant variables become subst'd and not passed in the environment
2001-08-02 16:45:35 +00:00
Nathan Neulinger
1fd4f11faf include-afsconfig-before-param-h-20010712
so stuff can be defined in afsconfig.h and included first
2001-07-12 20:58:15 +00:00
Nathan Neulinger
e7ec0d4213 afsconfig-and-rcsid-all-around-20010705
convert rest of source to afsconfig; include rcsid macros

====================
This delta was composed from multiple commits as part of the CVS->Git migration.
The checkin message with each commit was inconsistent.
The following are the additional commit messages.
====================

remove bogus if/define/endif triple

====================

revert non-rcsid and afsconfig portion of patch
2001-07-05 16:20:00 +00:00
Chaskiel M Grundman
a41175cfbb initial-darwin-support-20010327
setup for darwin port

====================
This delta was composed from multiple commits as part of the CVS->Git migration.
The checkin message with each commit was inconsistent.
The following are the additional commit messages.
====================
changes for darwin port

====================

added files for the darwin port

====================
changes for darwin port
2001-03-27 08:43:13 +00:00
Derrick Brashear
fb5bcd00fc Standardize License information 2000-11-04 10:01:08 +00:00
IBM
87c10e8d7f Initial IBM OpenAFS 1.0 tree 2000-11-04 02:13:13 +00:00