Voxia OS v0.0.1
Hobby Project Operating System Targeting x86-64
Loading...
Searching...
No Matches
str.c File Reference
#include <str.h>
#include <vector.h>
#include "type.h"
#include "libk/simd.h"

Go to the source code of this file.

Functions

void __fast__memcpy__ (void *dst, void *val, size_t len)
 
void __fast__memcpy_aligned__ (void *dst, void *val, size_t len)
 
void __fast_memset__ (void *dst, int val, size_t len)
 
void __fast_memset_aligned__ (void *dst, int val, size_t len)
 
int __fast__strncmp__ (const char *s1, const char *s2, size_t n)
 
void * __fast__memchr__ (const void *buf, int c, size_t len)
 
 __attribute__ ((used, visibility("default"), section(".export")))
 This function handles memory allocation for a new dentry using the slab allocator.
 
void to_lowercase (char *str)
 
char * rtrim (char *str)
 
size_t strlen (const char *s)
 
char * strchr (const char *s, int c)
 
size_t strspn (const char *s, const char *accept)
 
size_t strcspn (const char *s, const char *reject)
 
char * strtok_r (char *str, const char *delim, char **saveptr)
 
char * strpbrk (const char *s, const char *accept)
 
char * strsep2 (char **stringp, const char *delim)
 
const char * strsep (char **str, const char delim)
 
void * memmove (void *dest, const void *src, size_t n)
 
char * itoa (int64_t value, int base)
 

Function Documentation

◆ __attribute__()

__attribute__ ( (used, visibility("default"), section(".export")) )

This function handles memory allocation for a new dentry using the slab allocator.

It also links the dentry to its corresponding VNode (if provided).

Note
This function performs lazy initialization of the dentry slab cache if it does not exist yet.
Parameters
nameThe name of the file or directory.
vnodePointer to the associated VNode (inode data). Pass NULL if the VNode is not yet available.
Returns
dentry_ptr A pointer to the newly allocated and initialized dentry.

Definition at line 13 of file str.c.

References KERNEL_API.

◆ __fast__memchr__()

void * __fast__memchr__ ( const void * buf,
int c,
size_t len )
extern

References len.

◆ __fast__memcpy__()

void __fast__memcpy__ ( void * dst,
void * val,
size_t len )
extern

References dst, and len.

◆ __fast__memcpy_aligned__()

void __fast__memcpy_aligned__ ( void * dst,
void * val,
size_t len )
extern

References dst, and len.

◆ __fast__strncmp__()

int __fast__strncmp__ ( const char * s1,
const char * s2,
size_t n )
extern

◆ __fast_memset__()

void __fast_memset__ ( void * dst,
int val,
size_t len )
extern

References dst, and len.

◆ __fast_memset_aligned__()

void __fast_memset_aligned__ ( void * dst,
int val,
size_t len )
extern

References dst, and len.

◆ itoa()

char * itoa ( int64_t value,
int base )

Definition at line 302 of file str.c.

References base, str(), and value.

Referenced by configure_tty(), and create_process().

◆ memmove()

void * memmove ( void * dest,
const void * src,
size_t n )

Definition at line 287 of file str.c.

◆ rtrim()

char * rtrim ( char * str)

Definition at line 74 of file str.c.

References str(), and strlen().

◆ strchr()

char * strchr ( const char * s,
int c )

Definition at line 113 of file str.c.

Referenced by strcspn().

◆ strcspn()

size_t strcspn ( const char * s,
const char * reject )

Definition at line 137 of file str.c.

References count, and strchr().

Referenced by strtok_r().

◆ strlen()

◆ strpbrk()

char * strpbrk ( const char * s,
const char * accept )

Definition at line 208 of file str.c.

References NULL.

Referenced by strsep2().

◆ strsep()

const char * strsep ( char ** str,
const char delim )

Definition at line 249 of file str.c.

References str().

◆ strsep2()

char * strsep2 ( char ** stringp,
const char * delim )

Definition at line 228 of file str.c.

References NULL, and strpbrk().

◆ strspn()

size_t strspn ( const char * s,
const char * accept )

Definition at line 121 of file str.c.

References count.

Referenced by strtok_r().

◆ strtok_r()

char * strtok_r ( char * str,
const char * delim,
char ** saveptr )

Definition at line 147 of file str.c.

References NULL, str(), strcspn(), and strspn().

◆ to_lowercase()

void to_lowercase ( char * str)

Definition at line 64 of file str.c.

References str().

Referenced by iso9660_lookup().