Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

218
Visualizações
Can system calls be invoked in source code, without a library that doesn't come with the OS?

System call functions are offered by an OS directly. Some libraries (e.g. the GNU C library) offer functions that wrap the system calls of the OS, but are not offered by the OS directly.

In Linux, can I invoke system call functions in my C code, without a library (e.g. GNU C Library) that isn't offer by the OS directly? Does the OS offer a library for its system calls?

For example, if I want to directly invoke the system call function read() in my C program, which header file should I include? Do I have to use some library?

over 4 years ago · Santiago Trujillo
1 Respostas
Responde à pergunta

0

Yes, you can.

The headers you want are usually in /usr/include/linux.

The lowest-level way to make a syscall is with the INT 0x80 assembler instruction directly, which is of course available to you without any libraries at all.

over 4 years ago · Santiago Trujillo Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda