-\f
-/** Locking
-
- Locking is loosely controlled by the preprocessor variable
- BFD_LOCKS. I say loosely because Unix barely understands locking
- -- at least in BSD it doesn't affect programs which don't
- explicitly use it! That is to say it's practically useless, though
- if everyone uses this library you'll be OK.
-
- From among the many and varied lock facilities available, (none of
- which, of course, knows about any other) we use the fcntl locks,
- because they're Posix.
-
- The reason that bfd_openr and bfd_fdopenr exist, yet only bfd_openw
- exists is because of locking. When we do output, we lock the
- filename file for output, then open a temporary file which does not
- actually get its correct filename until closing time. This is
- safest, but requires the asymmetry in read and write entry points.
-
- Perhaps, since unix has so many different kinds of locking anyway,
- we should use the emacs lock scheme?... */
-
-#define obstack_chunk_alloc xmalloc
-#define obstack_chunk_free free