httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sam Rasins <>
Subject Re: os-aix/1267: memmove() must be defined as bcopy() on AIX 1.X (fwd)
Date Wed, 22 Oct 1997 04:23:18 GMT
Here is the bcopy man page from AIX:

  bcopy, bcmp, bzero or ffs Subroutine
  Performs bit and byte string operations.
  Standard C Library (libc.a)
  void bcopy (Source, Destination, Length)
  char *Source, *Destination;
  int Length;
  int bcmp (String1, String2, Length)
  char *String1, *String2;
  int Length; 
  void bzero (String, Length)
  char *String;
  int Length;
  int  ffs (Index)
  int Index;
  Note:	The bcopy subroutine takes parameters backwards from the
  strcpy subroutine.
  The bcopy, bcmp, and bzero subroutines operate on variable length
  strings  of  bytes.    They do not check for null bytes as do the
  string routines.
  The bcopy subroutine copies the value of the Length parameter in
  bytes from the string in the Source parameter to the string in
  the Destination parameter.
  The bcmp subroutine compares the byte string in the String1
  parameter against the byte string of the String2 parameter, re-
  turning  a  zero  value  if the two strings are identical  and  a
  nonzero value otherwise.  Both strings are assumed to be Length
  bytes long.
  The bzero subroutine zeroes out the string in the String parame-
  ter for the value of the Length parameter in bytes.
  The ffs subroutine finds the first bit set in the Index parameter
  passed to it and returns the index of  that  bit.   Bits are num-
  bered starting at 1. A return value of 0 indicates that the value
  passed is 0.
  Implementation Specifics
  These subroutines are part of Base Operating System (BOS) Run-
  Suggested Reading
  Prerequisite Information
   List of String Manipulation Services in AIX Version 3.2 General
  Programming Concepts.
   Subroutines Overview in AIX Version 3.2 General Programming Con-
  Related Information
  The  memcmp, memccpy, memchr, memcpy, memmove, memset subrou-
  tines,  strcat, strncat, strxfrm, strcpy, strncpy, or strdup sub-
  routine,  strcmp, strncmp, strcasecmp, strncasecmp, or strcoll
  subroutine,  strlen, strchr, strrchr, strpbrk, strspn, strcspn,
  strstr, or strtok subroutine,  swab subroutine.

Sambo	P-)

Hark, the Herald Tribune sings,
Advertising wondrous things.
		-- Tom Lehrer

{NOTE: The [random] quote above was provided via the 'fortune' program.}

View raw message