home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Source Code 1993 July / THE_SOURCE_CODE_CD_ROM.iso / gnu / glibc-1.06 / INSTALL < prev    next >
Encoding:
Text File  |  1993-05-22  |  31.5 KB  |  713 lines

  1. Library Maintenance
  2. *******************
  3.  
  4. How to Install the GNU C Library
  5. ================================
  6.  
  7.    Installation of the GNU C library is relatively simple.
  8.  
  9.    You need the latest version of GNU `make'.  Modifying the GNU C
  10. Library to work with other `make' programs would be so hard that we
  11. recommend you port GNU `make' instead.  *Really.*
  12.  
  13.    To configure the GNU C library for your system, run the shell script
  14. `configure' with `sh'.  Use an argument which is the conventional GNU
  15. name for your system configuration--for example, `sparc-sun-sunos4.1',
  16. for a Sun 4 running Sunos 4.1.  *Note Installation:
  17. (gcc.info)Installation, for a full description of standard GNU
  18. configuration names.  If you omit the configuration name, `configure'
  19. will try to guess one for you by inspecting the system it is running
  20. on.  It may or may not be able to come up with a guess, and the its
  21. guess might be wrong.  `configure' will tell you the canonical name of
  22. the chosen configuration before proceeding.
  23.  
  24.    The GNU C Library currently supports configurations that match the
  25. following patterns:
  26.  
  27.      sparc-sun-sunos4.N
  28.      sparc-sun-solaris2.N
  29.      m68k-hp-bsd4.3
  30.      m68k-sun-sunos4.N
  31.      m68k-sony-newsos
  32.      mips-dec-ultrix4.N
  33.      i386-ANYTHING-bsd4.3
  34.      i386-ANYTHING-sysv
  35.      i386-ANYTHING-sysv4
  36.      i386-ANYTHING-sco3.2v2
  37.      i386-ANYTHING-sco3.2v4
  38.      i386-sequent-bsd
  39.  
  40.    While no other configurations are supported, there are handy aliases
  41. for these few.  (These aliases work in other GNU software as well.)
  42.  
  43.      sun4-sunos4.N sun4
  44.      sun4-solaris2.N sun4-sunos5.N
  45.      hp320-bsd4.3 hp300bsd
  46.      sun3-sunos4.N sun3
  47.      news
  48.      decstation
  49.      i386-svr4
  50.      i386-sco
  51.      i386-sco3.2v4
  52.      i386-sequent-dynix
  53.  
  54.    Here are some options that you should specify (if appropriate) when
  55. you run `configure':
  56.  
  57. `--with-gnu-ld'
  58.      Use this option if you plan to use GNU `ld' to link programs with
  59.      the GNU C Library.  (We strongly recommend that you do.)
  60.  
  61. `--with-gnu-as'
  62.      Use this option if you plan to use the GNU assembler, `gas', when
  63.      building the GNU C Library.  On some systems, the library may not
  64.      build properly if you do *not* use `gas'.
  65.  
  66. `--nfp'
  67.      Use this option if your computer lacks hardware floating point
  68.      support.
  69.  
  70. `--prefix=DIRECTORY'
  71.      Install machine-independent data files in subdirectories of
  72.      `DIRECTORY'.  (You can also set this in `configparms'; see below.)
  73.  
  74. `--exec-prefix=DIRECTORY'
  75.      Install the library and other machine-dependent files in
  76.      subdirectories of `DIRECTORY'.  (You can also set this in
  77.      `configparms'; see below.)
  78.  
  79.    The simplest way to run `configure' is to do it in the directory
  80. that contains the library sources.  This prepares to build the library
  81. in that very directory.
  82.  
  83.    You can prepare to build the library in some other directory by going
  84. to that other directory to run `configure'.  In order to run configure,
  85. you will have to specify a directory for it, like this:
  86.  
  87.      mkdir ../hp320
  88.      cd ../hp320
  89.      ../src/configure hp320-bsd4.3
  90.  
  91. `configure' looks for the sources in whatever directory you specified
  92. for finding `configure' itself.  It does not matter where in the file
  93. system the source and build directories are--as long as you specify the
  94. source directory when you run `configure', you will get the proper
  95. results.
  96.  
  97.    This feature lets you keep sources and binaries in different
  98. directories, and that makes it easy to build the library for several
  99. different machines from the same set of sources.  Simply create a build
  100. directory for each target machine, and run `configure' in that
  101. directory specifying the target machine's configuration name.
  102.  
  103.    The library has a number of special-purpose configuration parameters.
  104. These are defined in the file `Makeconfig'; see the comments in that
  105. file for the details.
  106.  
  107.    But don't edit the file `Makeconfig' yourself--instead, create a
  108. file `configparms' in the directory where you are building the library,
  109. and define in that file the parameters you want to specify.
  110. `configparms' should *not* be an edited copy of `Makeconfig'; specify
  111. only the parameters that you want to override.
  112.  
  113.    Some of the machine-dependent code for some machines uses extensions
  114. in the GNU C compiler, so you may need to compile the library with GCC.
  115. (In fact, all of the existing complete ports require GCC.)
  116.  
  117.    The current release of the C library contains some header files that
  118. the compiler normally provides: `stddef.h', `stdarg.h', and several
  119. files with names of the form `va-MACHINE.h'.  The versions of these
  120. files that came with older releases of GCC do not work properly with
  121. the GNU C library.  The `stddef.h' file in release 2.2 and later of GCC
  122. is correct.  If you have release 2.2 or later of GCC, use its version
  123. of `stddef.h' instead of the C library's.  To do this, put the line
  124. `override stddef.h =' in `configparms'.  The other files are corrected
  125. in release 2.3 and later of GCC.  `configure' will automatically detect
  126. whether the installed `stdarg.h' and `va-MACHINE.h' files are
  127. compatible with the C library, and use its own if not.
  128.  
  129.    There is a potential problem with the `size_t' type and versions of
  130. GCC prior to release 2.4.  ANSI C requires that `size_t' always be an
  131. unsigned type.  For compatibility with existing systems' header files,
  132. GCC defines `size_t' in `stddef.h' to be whatever type the system's
  133. `sys/types.h' defines it to be.  Most Unix systems that define `size_t'
  134. in `sys/types.h', define it to be a signed type.  Some code in the
  135. library depends on `size_t' being an unsigned type, and will not work
  136. correctly if it is signed.
  137.  
  138.    The GNU C library code which expects `size_t' to be unsigned is
  139. correct.  The definition of `size_t' as a signed type is incorrect.  We
  140. plan that in version 2.4, GCC will always define `size_t' as an
  141. unsigned type, and the `fixincludes' script will massage the system's
  142. `sys/types.h' so as not to conflict with this.
  143.  
  144.    In the meantime, we work around this problem by telling GCC
  145. explicitly to use an unsigned type for `size_t' when compiling the GNU C
  146. library.  `configure' will automatically detect what type GCC uses for
  147. `size_t' arrange to override it if necessary.
  148.  
  149.    To build the library, type `make lib'.  This will produce a lot of
  150. output, some of which looks like errors from `make' (but isn't).  Look
  151. for error messages from `make' containing `***'.  Those indicate that
  152. something is really wrong.  Using the `-w' option to `make' may make
  153. the output easier to understand (this option tells `make' to print
  154. messages telling you what subdirectories it is working on).
  155.  
  156.    To build and run some test programs which exercise some of the
  157. library facilities, type `make tests'.  This will produce several files
  158. with names like `PROGRAM.out'.
  159.  
  160.    To format the `GNU C Library Reference Manual' for printing, type
  161. `make dvi'.  To format the Info version of the manual for on line
  162. reading with `C-h i' in Emacs or with the `info' program, type
  163. `make info'.
  164.  
  165.    To install the library and header files, and the Info files of the
  166. manual, type `make install', after setting the installation directories
  167. in `configparms'.  This will build things if necessary, before
  168. installing them.
  169.  
  170. Reporting Bugs
  171. ==============
  172.  
  173.    There are probably bugs in the GNU C library.  If you report them,
  174. they will get fixed.  If you don't, no one will ever know about them
  175. and they will remain unfixed for all eternity, if not longer.
  176.  
  177.    To report a bug, first you must find it.  Hopefully, this will be the
  178. hard part.  Once you've found a bug, make sure it's really a bug.  A
  179. good way to do this is to see if the GNU C library behaves the same way
  180. some other C library does.  If so, probably you are wrong and the
  181. libraries are right (but not necessarily).  If not, one of the libraries
  182. is probably wrong.
  183.  
  184.    Once you're sure you've found a bug, try to narrow it down to the
  185. smallest test case that reproduces the problem.  In the case of a C
  186. library, you really only need to narrow it down to one library function
  187. call, if possible.  This should not be too difficult.
  188.  
  189.    The final step when you have a simple test case is to report the
  190. bug.  When reporting a bug, send your test case, the results you got,
  191. the results you expected, what you think the problem might be (if
  192. you've thought of anything), your system type, and the version of the
  193. GNU C library which you are using.
  194.  
  195.    If you think you have found some way in which the GNU C library does
  196. not conform to the ANSI and POSIX standards (*note Standards and
  197. Portability::.), that is definitely a bug.  Report it!
  198.  
  199.    Send bug reports to the Internet address `bug-glibc@prep.ai.mit.edu'
  200. or the UUCP path `mit-eddie!prep.ai.mit.edu!bug-glibc'.  If you have
  201. other problems with installation, use, or the documentation, please
  202. report those as well.
  203.  
  204. Adding New Functions
  205. ====================
  206.  
  207.    The process of building the library is driven by the makefiles, which
  208. make heavy use of special features of GNU `make'.  The makefiles are
  209. very complex, and you probably don't want to try to understand them.
  210. But what they do is fairly straightforward, and only requires that you
  211. define a few variables in the right places.
  212.  
  213.    The library sources are divided into subdirectories, grouped by
  214. topic.  The `string' subdirectory has all the string-manipulation
  215. functions, `stdio' has all the standard I/O functions, etc.
  216.  
  217.    Each subdirectory contains a simple makefile, called `Makefile',
  218. which defines a few `make' variables and then includes the global
  219. makefile `Rules' with a line like:
  220.  
  221.      include ../Rules
  222.  
  223. The basic variables that a subdirectory makefile defines are:
  224.  
  225. `subdir'
  226.      The name of the subdirectory, for example `stdio'.  This variable
  227.      *must* be defined.
  228.  
  229. `headers'
  230.      The names of the header files in this section of the library, such
  231.      as `stdio.h'.
  232.  
  233. `routines'
  234. `aux'
  235.      The names of the modules (source files) in this section of the
  236.      library.  These should be simple names, such as `strlen' (rather
  237.      than complete file names, such as `strlen.c').  Use `routines' for
  238.      modules that define functions in the library, and `aux' for
  239.      auxiliary modules containing things like data definitions.  But the
  240.      values of `routines' and `aux' are just concatenated, so there
  241.      really is no practical difference.
  242.  
  243. `tests'
  244.      The names of test programs for this section of the library.  These
  245.      should be simple names, such as `tester' (rather than complete file
  246.      names, such as `tester.c').  `make tests' will build and run all
  247.      the test programs.  If a test program needs input, put the test
  248.      data in a file called `TEST-PROGRAM.input'; it will be given to
  249.      the test program on its standard input.  If a test program wants
  250.      to be run with arguments, put the arguments (all on a single line)
  251.      in a file called `TEST-PROGRAM.args'.
  252.  
  253. `others'
  254.      The names of "other" programs associated with this section of the
  255.      library.  These are programs which are not tests per se, but are
  256.      other small programs included with the library.  They are built by
  257.      `make others'.
  258.  
  259. `install-lib'
  260. `install-data'
  261. `install'
  262.      Files to be installed by `make install'.  Things listed in
  263.      `install-lib' are installed in the directory specified by `libdir'
  264.      in `Makeconfig' (*note Installation::.).  Files listed in
  265.      `install-data' are installed in the directory specified by
  266.      `datadir' in `configparms' or `Makeconfig'.  Files listed in
  267.      `install' are installed in the directory specified by `bindir' in
  268.      `Makeconfig'.
  269.  
  270. `distribute'
  271.      Other files from this subdirectory which should be put into a
  272.      distribution tar file.  You need not list here the makefile itself
  273.      or the source and header files listed in the other standard
  274.      variables.  Only define `distribute' if there are files used in an
  275.      unusual way that should go into the distribution.
  276.  
  277. `generated'
  278.      Files which are generated by `Makefile' in this subdirectory.
  279.      These files will be removed by `make clean', and they will never
  280.      go into a distribution.
  281.  
  282. `extra-objs'
  283.      Extra object files which are built by `Makefile' in this
  284.      subdirectory.  This should be a list of file names like `foo.o';
  285.      the files will actually be found in whatever directory object
  286.      files are being built in.  These files will be removed by
  287.      `make clean'.  This variable is used for secondary object files
  288.      needed to build `others' or `tests'.
  289.  
  290. Porting the GNU C Library
  291. =========================
  292.  
  293.    The GNU C library is written to be easily portable to a variety of
  294. machines and operating systems.  Machine- and operating system-dependent
  295. functions are well separated to make it easy to add implementations for
  296. new machines or operating systems.  This section describes the layout of
  297. the library source tree and explains the mechanisms used to select
  298. machine-dependent code to use.
  299.  
  300.    All the machine-dependent and operating system-dependent files in the
  301. library are in the subdirectory `sysdeps' under the top-level library
  302. source directory.  This directory contains a hierarchy of
  303. subdirectories (*note Hierarchy Conventions::.).
  304.  
  305.    Each subdirectory of `sysdeps' contains source files for a
  306. particular machine or operating system, or for a class of machine or
  307. operating system (for example, systems by a particular vendor, or all
  308. machines that use IEEE 754 floating-point format).  A configuration
  309. specifies an ordered list of these subdirectories.  Each subdirectory
  310. implicitly appends its parent directory to the list.  For example,
  311. specifying the list `unix/bsd/vax' is equivalent to specifying the list
  312. `unix/bsd/vax unix/bsd unix'.  A subdirectory can also specify that it
  313. implies other subdirectories which are not directly above it in the
  314. directory hierarchy.  If the file `Implies' exists in a subdirectory,
  315. it lists other subdirectories of `sysdeps' which are appended to the
  316. list, appearing after the subdirectory containing the `Implies' file.
  317. Lines in an `Implies' file that begin with a `#' character are ignored
  318. as comments.  For example, `unix/bsd/Implies' contains:
  319.      # BSD has Internet-related things.
  320.      unix/inet
  321.  
  322. and `unix/Implies' contains:
  323.      posix
  324.  
  325. So the final list is `unix/bsd/vax unix/bsd unix/inet unix posix'.
  326.  
  327.    `sysdeps' has two "special" subdirectories, called `generic' and
  328. `stub'.  These two are always implicitly appended to the list of
  329. subdirectories (in that order), so you needn't put them in an `Implies'
  330. file, and you should not create any subdirectories under them.
  331. `generic' is for things that can be implemented in machine-independent
  332. C, using only other machine-independent functions in the C library.
  333. `stub' is for "stub" versions of functions which cannot be implemented
  334. on a particular machine or operating system.  The stub functions always
  335. return an error, and set `errno' to `ENOSYS' (Function not
  336. implemented).  *Note Error Reporting::.
  337.  
  338.    A source file is known to be system-dependent by its having a
  339. version in `generic' or `stub'; every system-dependent function should
  340. have either a generic or stub implementation (there is no point in
  341. having both).
  342.  
  343.    If you come across a file that is in one of the main source
  344. directories (`string', `stdio', etc.), and you want to write a machine-
  345. or operating system-dependent version of it, move the file into
  346. `sysdeps/generic' and write your new implementation in the appropriate
  347. system-specific subdirectory.  Note that if a file is to be
  348. system-dependent, it *must not* appear in one of the main source
  349. directories.
  350.  
  351.    There are a few special files that may exist in each subdirectory of
  352. `sysdeps':
  353.  
  354. `Makefile'
  355.      A makefile for this machine or operating system, or class of
  356.      machine or operating system.  This file is included by the library
  357.      makefile `Makerules', which is used by the top-level makefile and
  358.      the subdirectory makefiles.  It can change the variables set in the
  359.      including makefile or add new rules.  It can use GNU `make'
  360.      conditional directives based on the variable `subdir' (see above)
  361.      to select different sets of variables and rules for different
  362.      sections of the library.  It can also set the `make' variable
  363.      `sysdep-routines', to specify extra modules to be included in the
  364.      library.  You should use `sysdep-routines' rather than adding
  365.      modules to `routines' because the latter is used in determining
  366.      what to distribute for each subdirectory of the main source tree.
  367.  
  368.      Each makefile in a subdirectory in the ordered list of
  369.      subdirectories to be searched is included in order.  Since several
  370.      system-dependent makefiles may be included, each should append to
  371.      `sysdep-routines' rather than simply setting it:
  372.  
  373.           sysdep-routines := $(sysdep-routines) foo bar
  374.  
  375. `Subdirs'
  376.      This file contains the names of new whole subdirectories under the
  377.      top-level library source tree that should be included for this
  378.      system.  These subdirectories are treated just like the
  379.      system-independent subdirectories in the library source tree, such
  380.      as `stdio' and `math'.
  381.  
  382.      Use this when there are whole new sets of routines and header
  383.      files that should go into the library for the system this
  384.      subdirectory of `sysdeps' implements.  For example,
  385.      `sysdeps/unix/inet/Subdirs' contains `inet'; the `inet' directory
  386.      contains various network-oriented operations which only make sense
  387.      to put in the library on systems that support the Internet.
  388.  
  389. `Dist'
  390.      This file contains the names of files (relative the the
  391.      subdirectory of `sysdeps' in which it appears) which should be
  392.      included in the distribution.  List any new files used by rules in
  393.      the `Makefile' in the same directory, or header files used by the
  394.      source files in that directory.  You don't need to list files that
  395.      are implementations (either C or assembly source) of routines
  396.      whose names are given in the machine-independent makefiles in the
  397.      main source tree.
  398.  
  399. `configure'
  400.      This file is a shell script fragment to be run at configuration
  401.      time.  The top-level `configure' script uses the shell `.' command
  402.      to read the `configure' file in each system-dependent directory
  403.      chosen.  The `configure' files are usually generated from
  404.      `configure.in' files using Autoconf.  A system-dependent
  405.      `configure' script will usually add things to the shell variables
  406.      `DEFS' and `config_vars'; see the top-level `configure' script for
  407.      details.
  408.  
  409. `configure.in'
  410.      This file is an Autoconf input fragment to be processed into
  411.      `configure'.  You should write either `configure' or
  412.      `configure.in', but not both.  The first line of `configure'
  413.      should invoke the `m4' macro `GLIBC_PROVIDES'.  This macro does
  414.      several `AC_PROVIDE' calls for Autoconf macros which are used by
  415.      the top-level `configure' script; without this, those macros might
  416.      be invoked again unnecessarily by Autoconf.
  417.  
  418.    That is the general system for how system-dependencies are isolated.
  419.  
  420. The Layout of the `sysdeps' Directory Hierarchy
  421. -----------------------------------------------
  422.  
  423.    A GNU configuration name has three parts: the CPU type, the
  424. manufacturer's name, and the operating system.  `configure' uses these
  425. to pick the list of system-dependent directories to look for.  If the
  426. `--nfp' option is *not* passed to `configure', the directory
  427. `MACHINE/fpu' is also used.  The operating system often has a "base
  428. operating system"; for example, if the operating system is `sunos4.1',
  429. the base operating system is `unix/bsd'.  The algorithm used to pick
  430. the list of directories is simple: `configure' makes a list of the base
  431. operating system, manufacturer, CPU type, and operating system, in that
  432. order.  It then concatenates all these together with slashes in
  433. between, to produce a directory name; for example, the configuration
  434. `sparc-sun-sunos4.1' results in `unix/bsd/sun/sparc/sunos4.1'.
  435. `configure' then tries removing each element of the list in turn, so
  436. `unix/bsd/sparc' and `sun/sparc' are also tried, among others.  Since
  437. the precise version number of the operating system is often not
  438. important, and it would be very inconvenient, for example, to have
  439. identical `sunos4.1.1' and `sunos4.1.2' directories, `configure' tries
  440. successively less specific operating system names by removing trailing
  441. suffixes starting with a period.
  442.  
  443.    Here is the complete list of directories that would be tried for the
  444. configuration `sparc-sun-sunos4.1':
  445.  
  446.      sparc/fpu
  447.      unix/bsd/sun/sunos4.1/sparc
  448.      unix/bsd/sun/sunos4.1
  449.      unix/bsd/sun/sunos4/sparc
  450.      unix/bsd/sun/sunos4
  451.      unix/bsd/sun/sparc
  452.      unix/bsd/sun
  453.      unix/bsd/sunos4.1/sparc
  454.      unix/bsd/sunos4.1
  455.      unix/bsd/sunos4/sparc
  456.      unix/bsd/sunos4
  457.      unix/bsd/sparc
  458.      unix/bsd
  459.      sun/sunos4.1/sparc
  460.      sun/sunos4.1
  461.      sun/sunos4/sparc
  462.      sun/sunos4
  463.      sun/sparc
  464.      sun
  465.      sunos4.1/sparc
  466.      sunos4.1
  467.      sunos4/sparc
  468.      sunos4
  469.      sparc
  470.  
  471.    Different machine architectures are generally at the top level of the
  472. `sysdeps' directory tree.  For example, `sysdeps/sparc' and
  473. `sysdeps/m68k'.  These contain files specific to those machine
  474. architectures, but not specific to any particular operating system.
  475. There might be subdirectories for specializations of those
  476. architectures, such as `sysdeps/m68k/68020'. Code which is specific to
  477. the floating-point coprocessor used with a particular machine should go
  478. in `sysdeps/MACHINE/fpu'.
  479.  
  480.    There are a few directories at the top level of the `sysdeps'
  481. hierarchy that are not for particular machine architectures.
  482.  
  483. `generic'
  484. `stub'
  485.      As described above (*note Porting::.), these are the two
  486.      subdirectories that every configuration implicitly uses after all
  487.      others.
  488.  
  489. `ieee754'
  490.      This directory is for code using the IEEE 754 floating-point
  491.      format, where the C type `float' is IEEE 754 single-precision
  492.      format, and `double' is IEEE 754 double-precision format.  Usually
  493.      this directory is referred to in the `Implies' file in a machine
  494.      architecture-specific directory, such as `m68k/Implies'.
  495.  
  496. `posix'
  497.      This directory contains implementations of things in the library in
  498.      terms of POSIX.1 functions.  This includes some of the POSIX.1
  499.      functions themselves.  Of course, POSIX.1 cannot be completely
  500.      implemented in terms of itself, so a configuration using just
  501.      `posix' cannot be complete.
  502.  
  503. `unix'
  504.      This is the directory for Unix-like things.  See *Note Porting to
  505.      Unix::.  `unix' implies `posix'.  There are some special-purpose
  506.      subdirectories of `unix':
  507.  
  508.     `unix/common'
  509.           This directory is for things common to both BSD and System V
  510.           release 4.  Both `unix/bsd' and `unix/sysv/sysv4' imply
  511.           `unix/common'.
  512.  
  513.     `unix/inet'
  514.           This directory is for `socket' and related functions on Unix
  515.           systems.  The `inet' top-level subdirectory is enabled by
  516.           `unix/inet/Subdirs'.  `unix/common' implies `unix/inet'.
  517.  
  518. `mach'
  519.      This is the directory for things based on the Mach microkernel
  520.      from CMU (including the GNU operating system).  Other basic
  521.      operating systems (VMS, for example) would have their own
  522.      directories at the top level of the `sysdeps' hierarchy, parallel
  523.      to `unix' and `mach'.
  524.  
  525. Porting the GNU C Library to Unix Systems
  526. -----------------------------------------
  527.  
  528.    Most Unix systems are fundamentally very similar.  There are
  529. variations between different machines, and variations in what
  530. facilities are provided by the kernel.  But the interface to the
  531. operating system facilities is, for the most part, pretty uniform and
  532. simple.
  533.  
  534.    The code for Unix systems is in the directory `unix', at the top
  535. level of the `sysdeps' hierarchy.  This directory contains
  536. subdirectories (and subdirectory trees) for various Unix variants.
  537.  
  538.    The functions which are system calls in most Unix systems are
  539. implemented in assembly code in files in `sysdeps/unix'.  These files
  540. are named with a suffix of `.S'; for example, `__open.S'.  Files ending
  541. in `.S' are run through the C preprocessor before being fed to the
  542. assembler.
  543.  
  544.    These files all use a set of macros that should be defined in
  545. `sysdep.h'.  The `sysdep.h' file in `sysdeps/unix' partially defines
  546. them; a `sysdep.h' file in another directory must finish defining them
  547. for the particular machine and operating system variant.  See
  548. `sysdeps/unix/sysdep.h' and the machine-specific `sysdep.h'
  549. implementations to see what these macros are and what they should do.
  550.  
  551.    The system-specific makefile for the `unix' directory,
  552. `sysdeps/unix/Makefile', gives rules to generate several files from the
  553. Unix system you are building the library on (which is assumed to be the
  554. target system you are building the library *for*).  All the generated
  555. files are put in the directory where the object files are kept; they
  556. should not affect the source tree itself.  The files generated are
  557. `ioctls.h', `errnos.h', `sys/param.h', and `errlist.c' (for the `stdio'
  558. section of the library).
  559.  
  560. Contributors to the GNU C Library
  561. =================================
  562.  
  563.    The GNU C library was written almost entirely by Roland McGrath.
  564. Some parts of the library were contributed by other people.
  565.  
  566.    * The `getopt' function and related code were written by
  567.      Richard Stallman, David J. MacKenzie, and Roland McGrath.
  568.  
  569.    * Most of the math functions are taken from 4.4 BSD; they have been
  570.      modified only slightly to work with the GNU C library.  The
  571.      Internet-related code (most of the `inet' subdirectory) and several
  572.      other miscellaneous functions and header files have been included
  573.      with little or no modification.
  574.  
  575.      All code incorporated from 4.4 BSD is under the following
  576.      copyright:
  577.  
  578.                Copyright (C) 1991 Regents of the University of California.
  579.                All rights reserved.
  580.  
  581.           Redistribution and use in source and binary forms, with or
  582.           without modification, are permitted provided that the
  583.           following conditions are met:
  584.  
  585.             1. Redistributions of source code must retain the above
  586.                copyright notice, this list of conditions and the
  587.                following disclaimer.
  588.  
  589.             2. Redistributions in binary form must reproduce the above
  590.                copyright notice, this list of conditions and the
  591.                following disclaimer in the documentation and/or other
  592.                materials provided with the distribution.
  593.  
  594.             3. All advertising materials mentioning features or use of
  595.                this software must display the following acknowledgement:
  596.                         This product includes software developed by the
  597.                     University of     California, Berkeley and its
  598.                     contributors.
  599.  
  600.             4. Neither the name of the University nor the names of its
  601.                contributors may be used to endorse or promote products
  602.                derived from this software without specific prior
  603.                written permission.
  604.  
  605.           THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS "AS
  606.           IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  607.           LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
  608.           FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.  IN NO EVENT
  609.           SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
  610.           INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  611.           DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
  612.           SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
  613.           OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
  614.           LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  615.           (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
  616.           THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
  617.           OF SUCH DAMAGE.
  618.  
  619.    * The random number generation functions `random', `srandom',
  620.      `setstate' and `initstate', which are also the basis for the
  621.      `rand' and `srand' functions, were written by Earl T. Cohen for
  622.      the University of California at Berkeley and are copyrighted by the
  623.      Regents of the University of California.  They have undergone minor
  624.      changes to fit into the GNU C library and to fit the ANSI C
  625.      standard, but the functional code is Berkeley's.
  626.  
  627.    * The merge sort function `qsort' was written by Michael J. Haertel.
  628.  
  629.    * The quick sort function used as a fallback by `qsort' was written
  630.      by Douglas C. Schmidt.
  631.  
  632.    * The memory allocation functions `malloc', `realloc' and `free' and
  633.      related code were written by Michael J. Haertel.
  634.  
  635.    * Fast implementations of many of the string functions (`memcpy',
  636.      `strlen', etc.) were written by Torbjorn Granlund.
  637.  
  638.    * Some of the support code for Mach is taken from Mach 3.0 by CMU,
  639.      and is under the following copyright terms:
  640.  
  641.                Mach Operating System
  642.                Copyright (C) 1991,1990,1989 Carnegie Mellon University
  643.                All Rights Reserved.
  644.  
  645.           Permission to use, copy, modify and distribute this software
  646.           and its documentation is hereby granted, provided that both
  647.           the copyright notice and this permission notice appear in all
  648.           copies of the software, derivative works or modified
  649.           versions, and any portions thereof, and that both notices
  650.           appear in supporting documentation.
  651.  
  652.           CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS
  653.           IS" CONDITION.  CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF
  654.           ANY KIND FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF
  655.           THIS SOFTWARE.
  656.  
  657.           Carnegie Mellon requests users of this software to return to
  658.  
  659.                 Software Distribution Coordinator
  660.                 School of Computer Science
  661.                 Carnegie Mellon University
  662.                 Pittsburgh PA 15213-3890
  663.  
  664.           or `Software.Distribution@CS.CMU.EDU' any improvements or
  665.           extensions that they make and grant Carnegie Mellon the
  666.           rights to redistribute these changes.
  667.  
  668.    * The `tar.h' header file was written by David J. MacKenzie.
  669.  
  670.    * The port to the MIPS DECStation running Ultrix 4
  671.      (`mips-dec-ultrix4') was contributed by Brendan Kehoe and Ian
  672.      Lance Taylor.
  673.  
  674.    * The DES encryption function `crypt' and related functions were
  675.      contributed by Michael Glad.
  676.  
  677.    * The `ftw' function was contributed by Ian Lance Taylor.
  678.  
  679.    * The code to support SunOS shared libraries was contributed by Tom
  680.      Quinn.
  681.  
  682.    * The `mktime' function was contributed by Noel Cragg.
  683.  
  684.    * The port to the Sequent Symmetry running Dynix version 3
  685.      (`i386-sequent-bsd') was contributed by Jason Merrill.
  686.  
  687.    * The timezone support code is derived from the public-domain
  688.      timezone package by Arthur David Olsen.
  689.  
  690.    * The Internet resolver code is taken directly from BIND 4.9.1,
  691.      which is under both the Berkeley copyright above and also:
  692.  
  693.                Portions Copyright (C) 1993 by Digital Equipment Corporation.
  694.  
  695.           Permission to use, copy, modify, and distribute this software
  696.           for any purpose with or without fee is hereby granted,
  697.           provided that the above copyright notice and this permission
  698.           notice appear in all copies, and that the name of Digital
  699.           Equipment Corporation not be used in advertising or publicity
  700.           pertaining to distribution of the document or software
  701.           without specific, written prior permission.
  702.  
  703.           THE SOFTWARE IS PROVIDED "AS IS" AND DIGITAL EQUIPMENT CORP.
  704.           DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
  705.           INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
  706.           FITNESS.  IN NO EVENT SHALL DIGITAL EQUIPMENT CORPORATION BE
  707.           LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
  708.           DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
  709.           DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
  710.           OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
  711.           WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  712.  
  713.