Changeset 859 for trunk/src


Ignore:
Timestamp:
Nov 22, 2003, 10:37:55 PM (22 years ago)
Author:
bird
Message:

Initial port.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/emx/src/lib/bsd/gen/glob.c

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r858 r859  
    6666 */
    6767
     68#include "libc-alias.h"
     69
    6870#include <sys/param.h>
    6971#include <sys/stat.h>
     
    7981#include <unistd.h>
    8082
     83#ifndef __EMX__
    8184#include "collate.h"
     85#endif
    8286
    8387#define DOLLAR          '$'
     
    360364                return pattern;
    361365
    362         /* 
    363          * Copy up to the end of the string or / 
     366        /*
     367         * Copy up to the end of the string or /
    364368         */
    365369        eb = &patbuf[patbuf_len - 1];
     
    377381                 */
    378382                if (
    379 #ifndef __NETBSD_SYSCALLS
     383#if !defined(__NETBSD_SYSCALLS) && !defined(__EMX__)
    380384                    issetugid() != 0 ||
    381385#endif
     
    765769                        while (((c = *pat++) & M_MASK) != M_END)
    766770                                if ((*pat & M_MASK) == M_RNG) {
     771#ifdef __EMX__ /** @todo __collate_range_cmp */
     772                                        if (CHAR(c) <= CHAR(k) && CHAR(k) <= CHAR(pat[1]))
     773
     774#else
    767775                                        if (__collate_load_error ?
    768776                                            CHAR(c) <= CHAR(k) && CHAR(k) <= CHAR(pat[1]) :
     
    770778                                            && __collate_range_cmp(CHAR(k), CHAR(pat[1])) <= 0
    771779                                           )
     780#endif
    772781                                                ok = 1;
    773782                                        pat += 2;
Note: See TracChangeset for help on using the changeset viewer.