akaros/kern/include/string.h
<<
>>
Prefs
   1#pragma once
   2
   3#include <ros/common.h>
   4
   5int     strlen(const char *s);
   6int     strnlen(const char *s, size_t size);
   7char *strstr(const char *s1, const char *s2);
   8
   9/* zra : These aren't being used, and they are dangerous, so I'm rm'ing them
  10STRING  strcpy(STRING dst, const STRING src);
  11STRING  strcat(STRING dst, const STRING src);
  12*/
  13char *strncpy(char *dst, const char *src, size_t size);
  14size_t  strlcpy(char *dst, const char *src, size_t size);
  15size_t  strlcat(char *dst, const char *src, size_t size);
  16int     strcmp(const char *s1, const char *s2);
  17int     strncmp(const char *s1, const char *s2, size_t size);
  18int cistrcmp(char *s1, char *s2);
  19char *strchr(const char *s, char c);
  20char *strrchr(const char *s, char c);
  21char *strfind(const char *s, char c);
  22
  23void *memset(void* p, int what, size_t sz);
  24int   memcmp(const void* s1, const void* s2, size_t sz);
  25void *memcpy(void* dst, const void* src, size_t sz);
  26void *memmove(void *dst, const void* src, size_t sz);
  27void *memchr(const void *mem, int chr, int len);
  28
  29void *memfind(const void *s, int c, size_t len);
  30
  31long    strtol(const char *s, char **endptr, int base);
  32unsigned long strtoul(const char *s, char **endptr, int base);
  33int     atoi(const char*s);
  34int sigchecksum(void *address, int length);
  35void *sigscan(uint8_t *address, int length, char *signature);
  36
  37
  38/* In arch/support64.S */
  39void bcopy(const void *src, void *dst, size_t len);
  40
  41#ifdef CONFIG_RISCV
  42#warning Implement bcopy
  43#endif
  44