miniOS
x86_64 hobby kernel with SMP, VFS, and POSIX process model
Loading...
Searching...
No Matches
newlib-stubs.c File Reference
#include <sys/times.h>
#include <sys/time.h>
#include <sys/stat.h>
#include <sys/resource.h>
#include <sys/cpuset.h>
#include <sys/types.h>
#include <signal.h>
#include <sched.h>
#include <stddef.h>
#include <glob.h>
#include <fnmatch.h>
#include <pwd.h>
#include <errno.h>
Include dependency graph for newlib-stubs.c:

Functions

int kill (int pid, int sig)
int isatty (int fd)
int unlink (const char *path)
void signal_trampoline (void)
void _init (void)
void _fini (void)
static __attribute__ ((constructor))
int sched_getaffinity (pid_t pid, size_t cpusetsize, cpu_set_t *mask)
int sched_setaffinity (pid_t pid, size_t cpusetsize, const cpu_set_t *mask)
uid_t getuid (void)
uid_t geteuid (void)
gid_t getgid (void)
gid_t getegid (void)
mode_t umask (mode_t mask)
int gettimeofday (struct timeval *tv, void *tz)
int sigprocmask (int how, const sigset_t *set, sigset_t *oldset)
int sigsuspend (const sigset_t *mask)
int sigfillset (sigset_t *set)
int sigemptyset (sigset_t *set)
int sigaddset (sigset_t *set, int sig)
int sigdelset (sigset_t *set, int sig)
int sigismember (const sigset_t *set, int sig)
long sysconf (int name)
struct passwd * getpwnam (const char *name)
struct passwd * getpwuid (uid_t uid)
int glob (const char *pattern, int flags, int(*errfunc)(const char *, int), glob_t *pglob)
void globfree (glob_t *pglob)
int fnmatch (const char *pattern, const char *string, int flags)
int getrlimit (int resource, struct rlimit *rlim)
int setrlimit (int resource, const struct rlimit *rlim)
int clearenv (void)
const char * hstrerror (int err)
int _kill (int pid, int sig)
int _isatty (int fd)
int _unlink (const char *path)
int _link (const char *old, const char *new_path)
clock_t times (struct tms *buf)
clock_t _times (struct tms *buf)
int lstat (const char *path, struct stat *st)
int chmod (const char *path, mode_t mode)
int access (const char *path, int mode)
int rmdir (const char *path)
int mknod (const char *path, mode_t mode, dev_t dev)
int _gettimeofday (struct timeval *tv, void *tz)

Variables

char ** environ

Function Documentation

◆ __attribute__()

__attribute__ ( (constructor) )
static

__register_sigtrampoline() - Register the userspace signal trampoline.

Called by libc_init_array (via __attribute((constructor))) before main(). Informs the kernel of the trampoline VA so ring3_invoke_handler() can push it as the return address when invoking signal handlers. This enables SYS_sigreturn to make the SA_RESTART decision when the handler returns.

SYS_register_sigtrampoline = 454 (miniOS-specific).

Here is the call graph for this function:

◆ _fini()

void _fini ( void )

◆ _gettimeofday()

int _gettimeofday ( struct timeval * tv,
void * tz )
Here is the call graph for this function:

◆ _init()

void _init ( void )

◆ _isatty()

int _isatty ( int fd)
Here is the call graph for this function:

◆ _kill()

int _kill ( int pid,
int sig )
Here is the call graph for this function:

◆ _link()

int _link ( const char * old,
const char * new_path )

◆ _times()

clock_t _times ( struct tms * buf)

◆ _unlink()

int _unlink ( const char * path)
Here is the call graph for this function:

◆ access()

int access ( const char * path,
int mode )

◆ chmod()

int chmod ( const char * path,
mode_t mode )

◆ clearenv()

int clearenv ( void )

◆ fnmatch()

int fnmatch ( const char * pattern,
const char * string,
int flags )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getegid()

gid_t getegid ( void )

◆ geteuid()

uid_t geteuid ( void )

◆ getgid()

gid_t getgid ( void )

◆ getpwnam()

struct passwd * getpwnam ( const char * name)

◆ getpwuid()

struct passwd * getpwuid ( uid_t uid)

◆ getrlimit()

int getrlimit ( int resource,
struct rlimit * rlim )

◆ gettimeofday()

int gettimeofday ( struct timeval * tv,
void * tz )
Here is the caller graph for this function:

◆ getuid()

uid_t getuid ( void )

◆ glob()

int glob ( const char * pattern,
int flags,
int(* errfunc )(const char *, int),
glob_t * pglob )

◆ globfree()

void globfree ( glob_t * pglob)

◆ hstrerror()

const char * hstrerror ( int err)

◆ isatty()

int isatty ( int fd)
Here is the caller graph for this function:

◆ kill()

int kill ( int pid,
int sig )
Here is the caller graph for this function:

◆ lstat()

int lstat ( const char * path,
struct stat * st )
Here is the call graph for this function:

◆ mknod()

int mknod ( const char * path,
mode_t mode,
dev_t dev )

◆ rmdir()

int rmdir ( const char * path)

◆ sched_getaffinity()

int sched_getaffinity ( pid_t pid,
size_t cpusetsize,
cpu_set_t * mask )

◆ sched_setaffinity()

int sched_setaffinity ( pid_t pid,
size_t cpusetsize,
const cpu_set_t * mask )

◆ setrlimit()

int setrlimit ( int resource,
const struct rlimit * rlim )

◆ sigaddset()

int sigaddset ( sigset_t * set,
int sig )
Here is the caller graph for this function:

◆ sigdelset()

int sigdelset ( sigset_t * set,
int sig )

◆ sigemptyset()

int sigemptyset ( sigset_t * set)
Here is the caller graph for this function:

◆ sigfillset()

int sigfillset ( sigset_t * set)

◆ sigismember()

int sigismember ( const sigset_t * set,
int sig )
Here is the caller graph for this function:

◆ signal_trampoline()

void signal_trampoline ( void )
extern
Here is the caller graph for this function:

◆ sigprocmask()

int sigprocmask ( int how,
const sigset_t * set,
sigset_t * oldset )

◆ sigsuspend()

int sigsuspend ( const sigset_t * mask)

◆ sysconf()

long sysconf ( int name)

◆ times()

clock_t times ( struct tms * buf)

◆ umask()

mode_t umask ( mode_t mask)

◆ unlink()

int unlink ( const char * path)
Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ environ

char** environ
extern