Ignore:
Timestamp:
May 12, 2003, 12:48:43 PM (22 years ago)
Author:
zap
Message:

Started the work for re-designing the EMX C runtime library to not require
EMX.DLL. The new design is projected to be as follows:

  • all emx syscalls are replaced with the routines from the old sys.lib library which is now compilable in both a.out and OMF formats.
  • the sys.a library should be made replaceable and selectable by some gcc switch (e.g. -msyslib=emx would link with emx.a instead of sys.a which would give almost full backward compatibility with emx).
  • All C functions names were renamed to not contain the starting underscore (e.g. fopen and not _fopen). The underscored aliases will be added later with the c_alias library (which will be generated automatically from all public symbols of libc; any exported symbol that do not start with an underscore will be given an underscored alias unless such a symbol is already defined).

Also a lot of updates to the building system. It is now much faster (thanks
to Knut's suggestion of using ash's builtin echo).
Also re-wrote thunk1.asm and thunk2.asm to GAS format; this removes the need
for MASM and makes it possible to use 16-bit functions in a.out programs
without the need for EMX.DLL.
Also made a lot of small changes I don't remember now.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/emx/include/getopt.h

    • Property cvs2svn:cvs-rev changed from 1.2 to 1.3
    r122 r123  
    11/* Declarations for getopt.
    2    Copyright (C) 1989,90,91,92,93,94,96,97 Free Software Foundation, Inc.
     2   Copyright 1989, 1990, 1991, 1992, 1993, 1994, 1996, 1997, 1998, 2000
     3   Free Software Foundation, Inc.
    34
    45   NOTE: The canonical source of this file is maintained with the GNU C Library.
     
    100101
    101102#if defined (__STDC__) && __STDC__
    102 #ifdef __GNU_LIBRARY__
     103/* HAVE_DECL_* is a three-state macro: undefined, 0 or 1.  If it is
     104   undefined, we haven't run the autoconf check so provide the
     105   declaration without arguments.  If it is 0, we checked and failed
     106   to find the declaration so provide a fully prototyped one.  If it
     107   is 1, we found it so don't provide any declaration at all.  */
     108#if defined (__GNU_LIBRARY__) || (defined (HAVE_DECL_GETOPT) && !HAVE_DECL_GETOPT)
    103109/* Many other libraries have conflicting prototypes for getopt, with
    104110   differences in the consts, in stdlib.h.  To avoid compilation
     
    106112extern int getopt (int argc, char *const *argv, const char *shortopts);
    107113#else /* not __GNU_LIBRARY__ */
     114# if !defined (HAVE_DECL_GETOPT) && !defined (__cplusplus)
    108115extern int getopt ();
     116# endif
    109117#endif /* __GNU_LIBRARY__ */
    110118extern int getopt_long (int argc, char *const *argv, const char *shortopts,
Note: See TracChangeset for help on using the changeset viewer.