tools/include/nolibc/signal.h

Source file repositories/reference/linux-study-clean/tools/include/nolibc/signal.h

File Facts

System
Linux kernel
Corpus path
tools/include/nolibc/signal.h
Extension
.h
Size
600 bytes
Lines
27
Domain
Support Tooling And Documentation
Bucket
tools
Inferred role
Support Tooling And Documentation: implementation source
Status
source implementation candidate

Why This File Exists

Repository support layer: documentation, build tooling, samples, user-space helper tools, generated initramfs support, licenses, and validation utilities.

Dependency Surface

Detected Declarations

Annotated Snippet

#include "nolibc.h"

#ifndef _NOLIBC_SIGNAL_H
#define _NOLIBC_SIGNAL_H

#include "std.h"
#include "arch.h"
#include "types.h"
#include "sys.h"

/* This one is not marked static as it's needed by libgcc for divide by zero */
int raise(int signal);
__attribute__((weak,unused,section(".text.nolibc_raise")))
int raise(int signal)
{
	return _sys_kill(_sys_getpid(), signal);
}

#endif /* _NOLIBC_SIGNAL_H */

Annotation

Implementation Notes