BCOPY(9)

πŸ“¦ version 11.0, in nixpkgs unstable

πŸ’– BCOPY(9) β€” copy byte string πŸ’–

okay so this icon is from the Kernel Developer's Manual, and bestie... it’s giving β€œlegacy API that’s about to leave the group chat.” πŸ’… No cap.

🌸 NAME 🌸

  • bcopy β€” copy byte string

✨ SYNOPSIS ✨

#include <sys/systm.h>

void
bcopy(const void *src, void *dst, size_t len);

πŸ¦‹ DESCRIPTION πŸ¦‹

The bcopy() interface is obsolete. Do not add new code using it. It will soon be purged. Use memcpy(9) instead. (And yes, the bcopy() function is now a macro for memcpy(9).) πŸ’€

The bcopy() function copies len bytes from string src to string dst. Simple, right? 🫢

⚠️ unlike bcopy(3), the two strings must not overlap! In the traditional BSD kernel, overlapping copies were handled by the now-purged ovbcopy() function. If you need to copy overlapping data, see memmove(9). fr fr, don’t ignore this one.

If len is zero, no bytes are copied. periodt. ✨

🌈 SEE ALSO 🌈


mwah πŸ’‹ β€” this page is from Debian, dated July 7, 2001, and it’s literally BCOPY(9). πŸŽ€

πŸ“¦ where this page comes from
  • nixpkgs unstable: netbsd-source 11.0
  • πŸ’– girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms