www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/1998/06/04/07:46:59

Message-Id: <m0yhYSJ-000d2oC@sloep61.cs.vu.nl>
Date: Thu, 4 Jun 98 13:45 +0200
From: Boon van der RJ <rjvdboon AT cs DOT vu DOT nl>
To: djgpp-workers AT delorie DOT com
Cc: dj AT delorie DOT com
Subject: Patches of libc-helpfiles.

Hello DJ(-workers),
some patches to the texinfo-helpfiles for the libc-alpha-980101
(Mainly typos and copying the text from other functions without
checking enough, right?)

hth,
 Robert

PS should the knowledge base and libc/libm texinfo-files contain the
   START-INFO-DIR / END-INFO-DIR sections? I think they should, but
   haven't included the patches to do so.
PS2 In the readme there still is a reference that malloc/realloc/free
    are BSD copyrighted, but we're gonna use a new one, right?
PS3 pc_hw/mem/md[blw].txh  and dm[gp][blw].txh? shouldn't the nodes
    begin with `_'
    (so "@node movedatal, memory" would become "@node _movedatal, memory"?)


Files affected:

(checked at home, different diff-syntax and file naming scheme used:)
src\libc\ansi\ctype\isxdigit.txh
src\libc\ansi\string\strncpy.txh
src\libc\ansi\string\strspn.txh

(checked on the unix machine at the university, used:
  diff -bwirc old/ new/
     (old and new are the dirs in which I extracted the lib source))
src/libc/ansi/stdio/setvbuf.txh
src/libc/ansi/stdio/tmpnam.txh
src/libc/bios/b_equip.txh
src/libc/compat/unistd/sync.txh
src/libc/compat/unistd/truncate.txh
src/libc/dos/dos/bdos.txh
src/libc/pc_hw/endian/ntohl.txh
src/libc/pc_hw/endian/ntohs.txh
src/libc/posix/sys/stat/djbits.txh

================ Begin of the diffs ===================
*** src\libc\ansi\ctype\isxdigit.txh.org	Mon Jul 10 01:39:26 1995
--- src\libc\ansi\ctype\isxdigit.txh	Thu Mar 19 11:06:18 1998
***************
*** 10,16 ****
  
  @subheading Description
  
! Tells if @var{c} is a valid hexidecimal digit or not.  This includes
  @code{[0-9a-fA-F]}. 
  
  @subheading Return Value
--- 10,16 ----
  
  @subheading Description
  
! Tells if @var{c} is a valid hexadecimal digit or not.  This includes
  @code{[0-9a-fA-F]}. 
  
  @subheading Return Value
*** src\libc\ansi\string\strncpy.txh.org	Mon Jul 10 01:40:04 1995
--- src\libc\ansi\string\strncpy.txh	Thu Feb 26 14:14:18 1998
***************
*** 19,24 ****
  
  @example
  char buf[100];
! strcpy(buf, arg, 99);
  @end example
  
--- 19,24 ----
  
  @example
  char buf[100];
! strncpy(buf, arg, 99);
  @end example
  
*** src\libc\ansi\string\strspn.txh.org Mon Jul 10 01:40:04 1995
--- src\libc\ansi\string\strspn.txh	Wed Apr  1 12:02:46 1998
***************
*** 21,27 ****
  @subheading Example
  
  @example
! int i = strcspn(entry, " \t\b");
  if (entry[i])
    do_something();
  @end example
--- 21,27 ----
  @subheading Example
  
  @example
! int i = strspn(entry, " \t\b");
  if (entry[i])
    do_something();
  @end example
diff -bwirc old/src/libc/ansi/stdio/setvbuf.txh new/src/libc/ansi/stdio/setvbuf.txh
*** old/src/libc/ansi/stdio/setvbuf.txh	Mon Jul 10 07:39:50 1995
--- new/src/libc/ansi/stdio/setvbuf.txh	Fri May 29 14:42:16 1998
***************
*** 34,39 ****
  @subheading Example
  
  @example
! setbuf(stderr, NULL, _IOLBF, 1000);
  @end example
  
--- 34,39 ----
  @subheading Example
  
  @example
! setvbuf(stderr, NULL, _IOLBF, 1000);
  @end example
  
diff -bwirc old/src/libc/ansi/stdio/tmpnam.txh new/src/libc/ansi/stdio/tmpnam.txh
*** old/src/libc/ansi/stdio/tmpnam.txh	Mon Jul 10 07:39:50 1995
--- new/src/libc/ansi/stdio/tmpnam.txh	Fri May 29 14:42:38 1998
***************
*** 38,43 ****
  
  @example
  char buf[L_tmpnam];
! char *s = tmpname(buf);
  @end example
  
--- 38,43 ----
  
  @example
  char buf[L_tmpnam];
! char *s = tmpnam(buf);
  @end example
  
diff -bwirc old/src/libc/bios/b_equip.txh new/src/libc/bios/b_equip.txh
*** old/src/libc/bios/b_equip.txh	Mon Oct  9 07:00:00 1995
--- new/src/libc/bios/b_equip.txh	Fri May 29 14:14:45 1998
***************
*** 39,44 ****
  @subheading Example
  
  @example
! if ( _bios_equip() & 0xc000 )
    do_printing();
  @end example
--- 39,44 ----
  @subheading Example
  
  @example
! if ( _bios_equiplist() & 0xc000 )
    do_printing();
  @end example
diff -bwirc old/src/libc/compat/unistd/sync.txh new/src/libc/compat/unistd/sync.txh
*** old/src/libc/compat/unistd/sync.txh	Sun Nov  2 21:15:42 1997
--- new/src/libc/compat/unistd/sync.txh	Fri May 29 16:49:52 1998
***************
*** 6,20 ****
  
  int sync(void);
  @end example
- @subheading Syntax
  
- @example
- #include <unistd.h>
  
- int sync(void);
- @end example
- 
- 
  @subheading Description
  
  Intended to assist porting Unix programs.  Under Unix, @code{sync}
--- 6,13 ----
diff -bwirc old/src/libc/compat/unistd/truncate.txh new/src/libc/compat/unistd/truncate.txh
*** old/src/libc/compat/unistd/truncate.txh	Mon Jul 10 07:41:18 1995
--- new/src/libc/compat/unistd/truncate.txh	Fri May 29 16:50:46 1998
***************
*** 18,23 ****
  @subheading Example
  
  @example
! ftruncate("/tmp/data.txt", 400);
  @end example
  
--- 18,23 ----
  @subheading Example
  
  @example
! truncate("/tmp/data.txt", 400);
  @end example
  
diff -bwirc old/src/libc/dos/dos/bdos.txh new/src/libc/dos/dos/bdos.txh
*** old/src/libc/dos/dos/bdos.txh	Sun Nov 19 00:04:04 1995
--- new/src/libc/dos/dos/bdos.txh	Fri May 29 16:59:48 1998
***************
*** 63,69 ****
  
  @example
  /* print a string */
! bdos(9, "Hello, there$", 0);
  @end example
  
  @c -------------------------------------------------------------------------
--- 63,69 ----
  
  @example
  /* print a string */
! bdosptr(9, "Hello, there$", 0);
  @end example
  
  @c -------------------------------------------------------------------------
diff -bwirc old/src/libc/pc_hw/endian/ntohl.txh new/src/libc/pc_hw/endian/ntohl.txh
*** old/src/libc/pc_hw/endian/ntohl.txh	Mon Jul 10 07:41:12 1995
--- new/src/libc/pc_hw/endian/ntohl.txh	Fri May 29 17:13:19 1998
***************
*** 20,25 ****
  @subheading Example
  
  @example
! ip = htonl(packet.ipaddr);
  @end example
  
--- 20,25 ----
  @subheading Example
  
  @example
! ip = ntohl(packet.ipaddr);
  @end example
  
diff -bwirc old/src/libc/pc_hw/endian/ntohs.txh new/src/libc/pc_hw/endian/ntohs.txh
*** old/src/libc/pc_hw/endian/ntohs.txh	Mon Jul 10 07:41:12 1995
--- new/src/libc/pc_hw/endian/ntohs.txh	Fri May 29 17:13:09 1998
***************
*** 20,25 ****
  @subheading Example
  
  @example
! port = htons(tcp.port);
  @end example
  
--- 20,25 ----
  @subheading Example
  
  @example
! port = ntohs(tcp.port);
  @end example
  
diff -bwirc old/src/libc/posix/sys/stat/djbits.txh new/src/libc/posix/sys/stat/djbits.txh
*** old/src/libc/posix/sys/stat/djbits.txh	Thu Sep 12 04:12:48 1996
--- new/src/libc/posix/sys/stat/djbits.txh	Fri May 29 16:38:01 1998
***************
*** 62,67 ****
--- 62,68 ----
  might not be set, because some computations which report failures are only
  done when they are required.
  
+ @c ----------------------------------------------------------------------
  @node _djstat_fail_bits, stdio
  @subheading Syntax
  

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019