Changeset 2560


Ignore:
Timestamp:
Mar 6, 2006, 7:02:54 PM (19 years ago)
Author:
bird
Message:

Initial porting.

Location:
trunk/coreutils
Files:
1 added
10 edited

Legend:

Unmodified
Added
Removed
  • trunk/coreutils/Makefile.am

    r2554 r2560  
    11## Process this file with automake to produce Makefile.in -*-Makefile-*-
    22
    3 SUBDIRS = lib src doc man po tests
     3#SUBDIRS = lib src doc man po tests - man is busted on os/2 - automake problem
     4SUBDIRS = lib src doc po tests
    45EXTRA_DIST = Makefile.cfg Makefile.maint GNUmakefile \
    56  .kludge-stamp .prev-version THANKS-to-translators THANKStt.in \
  • trunk/coreutils/configure.ac

    r2554 r2560  
    2626
    2727AB_INIT()
    28 AM_INIT_AUTOMAKE([1.8.3 gnits dist-bzip2])
     28dnl AM_INIT_AUTOMAKE([1.8.3 gnits dist-bzip2])
     29AM_INIT_AUTOMAKE([1.7.7 gnits dist-bzip2])
    2930
    3031gl_DEFAULT_POSIX2_VERSION
  • trunk/coreutils/lib/backupfile.c

    r2554 r2560  
    6464#endif
    6565
    66 #if D_INO_IN_DIRENT
     66#if D_INO_IN_DIRENT && !defined(__INNOTEK_LIBC__) /* this will be fix in 0.7 and will then be removed! */
    6767# define REAL_DIR_ENTRY(dp) ((dp)->d_ino != 0)
    6868#else
  • trunk/coreutils/lib/fts.c

    r2554 r2560  
    797797        cderrno = 0;
    798798        if (nlinks || type == BREAD) {
     799#ifdef __EMX__ /* will be fixed in libc 0.7 */
     800                if (fts_safe_changedir(sp, cur, dirfd(dirp), cur->fts_accpath)) {
     801#else
    799802                if (fts_safe_changedir(sp, cur, dirfd(dirp), NULL)) {
     803#endif
    800804                        if (nlinks && type == BREAD)
    801805                                cur->fts_errno = errno;
  • trunk/coreutils/lib/getcwd.c

    r2554 r2560  
    9696#endif
    9797
    98 #if D_INO_IN_DIRENT
     98#if D_INO_IN_DIRENT && !defined(__INNOTEK_LIBC__) /* this will be fix in 0.7 and will then be removed! */
    9999# define MATCHING_INO(dp, ino) ((dp)->d_ino == (ino))
    100100#else
  • trunk/coreutils/lib/regex_internal.h

    r2554 r2560  
    419419#ifndef _LIBC
    420420# ifdef __i386__
    421 #  define internal_function   __attribute ((regparm (3), stdcall))
     421#  ifdef __OS2__
     422#   define internal_function   __attribute ((optlink))
     423#  else
     424#   define internal_function   __attribute ((regparm (3), stdcall))
     425#  endif
    422426# else
    423427#  define internal_function
  • trunk/coreutils/lib/utimens.c

    r2554 r2560  
    6060# define ATTRIBUTE_UNUSED __attribute__ ((__unused__))
    6161#endif
     62
     63#ifdef __INNOTEK_LIBC__ /* fs doesn't to better than seconds, but we must use futimes! */
     64# define HAVE_WORKING_UTIMES 1
     65#endif
     66
    6267
    6368/* Set the access and modification time stamps of FD (a.k.a. FILE) to be
  • trunk/coreutils/src/cut.c

    r2554 r2560  
    747747  char *spec_list_string IF_LINT(= NULL);
    748748
     749#ifdef __EMX__
     750  /* a undocumented hack */
     751  if (getenv("CUT_BINARY_MODE"))
     752    {
     753      extern int _fmode_bin;
     754      _fmode_bin = 1;
     755      if (!isatty(fileno(stdout)))
     756        freopen(NULL, "wb", stdout);
     757      if (!isatty(fileno(stdin)))
     758        freopen(NULL, "rb", stdin);
     759    }
     760#endif
     761
    749762  initialize_main (&argc, &argv);
    750763  program_name = argv[0];
  • trunk/coreutils/src/join.c

    r2554 r2560  
    791791  int i;
    792792
     793#ifdef __EMX__
     794  /* a undocumented hack */
     795  if (getenv("JOIN_BINARY_MODE"))
     796    {
     797      extern int _fmode_bin;
     798      _fmode_bin = 1;
     799      if (!isatty(fileno(stdout)))
     800        freopen(NULL, "wb", stdout);
     801      if (!isatty(fileno(stdin)))
     802        freopen(NULL, "rb", stdin);
     803    }
     804#endif
     805
    793806  initialize_main (&argc, &argv);
    794807  program_name = argv[0];
  • trunk/coreutils/src/pwd.c

    r2554 r2560  
    4646};
    4747
    48 #ifdef D_INO_IN_DIRENT
     48#if defined(D_INO_IN_DIRENT) && !defined(__INNOTEK_LIBC__) /* this will be fix in 0.7 and will then be removed! */
    4949# define D_INO(dp) ((dp)->d_ino)
    5050#else
Note: See TracChangeset for help on using the changeset viewer.