Changeset 7668 for branches


Ignore:
Timestamp:
Nov 16, 2007, 5:34:20 PM (17 years ago)
Author:
Gary Byers
Message:

openSUSE 10.3 (at least) shipped with a buggy version of bcopy();
see <http://lists.opensuse.oorg/opensuse-bugs/2007-09/msg14146.html>
Use memmove() instead. (I don't think any of the uses of any of this
stuff care about overlap, but we might as well use something that
checks for it.)

Location:
branches/working-0711/ccl/lisp-kernel
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • branches/working-0711/ccl/lisp-kernel/image.c

    r7624 r7668  
    353353      count = total;
    354354    }
    355     bcopy(a->low+done,buffer,count);
     355    memmove(buffer,a->low+done,count);
    356356    n = write(fd, buffer, count);
    357357    if (n < 0) {
  • branches/working-0711/ccl/lisp-kernel/pmcl-kernel.c

    r7137 r7668  
    932932  if (_NSGetExecutablePath(exepath, (void *)&len) == 0) {
    933933    p = malloc(len+1);
    934     bcopy(exepath, p, len);
     934    memmove(p, exepath, len);
    935935    p[len]=0;
    936936    return p;
     
    944944  if ((n = readlink("/proc/self/exe", exepath, PATH_MAX)) > 0) {
    945945    p = malloc(n+1);
    946     bcopy(exepath,p,n);
     946    memmove(p,exepath,n);
    947947    p[n]=0;
    948948    return p;
     
    961961  if ((n = readlink(proc_path, exepath, PATH_MAX)) > 0) {
    962962    p = malloc(n+1);
    963     bcopy(exepath,p,n);
     963    memmove(p,exepath,n);
    964964    p[n]=0;
    965965    return p;
     
    12821282    _exit(1);
    12831283  }
    1284   bcopy(old, new, 0x1000);
     1284  memmove(new, old, 0x1000);
    12851285}
    12861286#endif
  • branches/working-0711/ccl/lisp-kernel/ppc-exceptions.c

    r7657 r7668  
    24552455  stackp = TRUNC_DOWN(stackp, sizeof(*mc), C_STK_ALIGN);
    24562456  mc = (MCONTEXT_T) ptr_from_lispobj(stackp);
    2457   bcopy(&ts,&(mc->__ss),sizeof(ts));
     2457  memmove(&(mc->__ss),&ts,sizeof(ts));
    24582458
    24592459  thread_state_count = PPC_FLOAT_STATE_COUNT;
  • branches/working-0711/ccl/lisp-kernel/ppc-gc.c

    r7630 r7668  
    23812381      }
    23822382      a->active += n;
    2383       bcopy(ro_base, oldfree, n);
     2383      memmove(oldfree, ro_base, n);
    23842384      munmap(ro_base, n);
    23852385      a->ndnodes = area_dnode(a, a->active);
  • branches/working-0711/ccl/lisp-kernel/x86-exceptions.c

    r7657 r7668  
    22102210#endif
    22112211 
    2212   bcopy(ts,&(mc->__ss),sizeof(*ts));
     2212  memmove(&(mc->__ss),ts,sizeof(*ts));
    22132213
    22142214  thread_state_count = x86_FLOAT_STATE64_COUNT;
  • branches/working-0711/ccl/lisp-kernel/x86-gc.c

    r7638 r7668  
    23582358      }
    23592359      a->active += n;
    2360       bcopy(ro_base, oldfree, n);
     2360      memmove(oldfree, ro_base, n);
    23612361      munmap((void *)ro_base, n);
    23622362      a->ndnodes = area_dnode(a, a->active);
Note: See TracChangeset for help on using the changeset viewer.