some tiny, and nit-picky, patches

Mumit Khan khan@xraylith.wisc.edu
Thu Mar 27 20:59:00 GMT 1997


Some small patches, all of which I believe are appropriate, for gnu-win32
b17.1.

======================================================================

newlib/libc/stdlib/bsearch.c:
    This fixes the past the end access bug in bsearch().

newlib/libc/include/sys/signal.h:
    Add sigaction() prototype.

sim/common/Makefile.in:
    ARFLAGS --> AR_FLAGS. This is important when building on some
    hosts other than linux (hppa1.1-hp-hpux9.07 for example). AR_FLAGS
    is passed from top-level Makefiles, but ARFLAGS isn't.

texinfo/libtxi/Makefile.in:
    Replace hard-code AR option "cq" with AR_FLAGS

winsup/cygwin.din:
    Zap the export of tgetent()

winsup/misc.cc:
    Zap the definition of tgetent(). This conflicts with -ltermcap.
    Doesn't belong here anyway.

======================================================================

*** newlib/libc/stdlib/bsearch.c.~1	Wed Mar 26 12:48:26 1997
--- newlib/libc/stdlib/bsearch.c	Wed Mar 26 12:48:38 1997
*************** _DEFUN (bsearch, (key, base, nmemb, size
*** 94,100 ****
      }
  
-   if (compar (key, base) == 0)
-     return (_PTR) base;
- 
    return NULL;
  }
--- 94,97 ----

*** newlib/libc/include/sys/signal.h.~1 Tue Mar 25 22:32:25 1997
--- newlib/libc/include/sys/signal.h    Tue Mar 25 23:46:39 1997
***************
*** 24,29 ****
--- 24,33 ----
  #define sigaddset(what,sig) (*(what) |= (1<<(sig)))
  #define sigemptyset(what)   (*(what) = 0)
  
+ /* From winsup/winsup.h */
+ int _EXFUN(sigaction, (int signum,
+              const struct sigaction *newaction,
+              struct sigaction *oldaction));
  int sigprocmask (int how, const sigset_t *a, sigset_t *b);
  #endif /* _STRICT_ANSI */


*** sim/common/Makefile.in.~1	Wed Mar 26 12:51:39 1997
--- sim/common/Makefile.in	Wed Mar 26 12:52:19 1997
*************** LIB_OBJS = callback.o targ-map.o
*** 82,86 ****
  libcommon.a: $(LIB_OBJS)
  	rm -f libcommon.a
! 	$(AR) $(ARFLAGS) libcommon.a $(LIB_OBJS)
  	$(RANLIB) libcommon.a
  
--- 82,86 ----
  libcommon.a: $(LIB_OBJS)
  	rm -f libcommon.a
! 	$(AR) $(AR_FLAGS) libcommon.a $(LIB_OBJS)
  	$(RANLIB) libcommon.a
  
*** texinfo/libtxi/Makefile.in.~1	Wed Mar 26 12:44:57 1997
--- texinfo/libtxi/Makefile.in	Wed Mar 26 12:45:17 1997
*************** sub-all: all
*** 53,57 ****
  libtxi.a: $(OBJS)
  	rm -f $@
! 	$(AR) cq $@ $(OBJS)
  	$(RANLIB) $@
  
--- 53,57 ----
  libtxi.a: $(OBJS)
  	rm -f $@
! 	$(AR) $(AR_FLAGS) $@ $(OBJS)
  	$(RANLIB) $@
  
*** winsup/cygwin.din.~1	Wed Mar 26 14:39:35 1997
--- winsup/cygwin.din	Wed Mar 26 14:39:39 1997
*************** _closelog = closelog
*** 918,923 ****
  openlog
  _openlog = openlog
- tgetent
- _tgetent = tgetent
  vhangup
  _vhangup = vhangup
--- 918,921 ----


*** winsup/misc.cc.~1	Wed Mar 26 14:39:46 1997
--- winsup/misc.cc	Wed Mar 26 14:39:53 1997
*************** wprintf (const char *fmt, ...)
*** 104,114 ****
  extern "C"
  int
- tgetent ()
- {
-   return -1;
- }
- 
- extern "C"
- int
  vhangup ()
  {
--- 104,107 ----

Regards,
Mumit -- khan@xraylith.wisc.edu
http://www.xraylith.wisc.edu/~khan/
-
For help on using this list, send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".



More information about the Cygwin mailing list