Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

171
Vistas
How to determine system value for _POSIX_PATH_MAX

Can anyone please tell me how to find the system value for _POSIX_PATH_MAX in Linux mint? I know that it is available in the <limits.h> file but I do not know how to find its value.

over 4 years ago · Santiago Trujillo
3 Respuestas
Responde la pregunta

0

The tool to use, according to POSIX, is named getconf(1):

  $ getconf _POSIX_PATH_MAX
  256
over 4 years ago · Santiago Trujillo Denunciar

0

One more way to get it's value.

#include "stdio.h"
#include "unistd.h"
#include "limits.h"

int main()
{
    printf ("Value :: %d \n", _POSIX_PATH_MAX);
    return 0;
}
over 4 years ago · Santiago Trujillo Denunciar

0

#define one of the following

#define _POSIX_SOURCE
#define _POSIX_C_SOURCE 1 /* or any value larger then 1 */
#define _XOPEN_SOURCE

before #includeing <limits.h>and the compiler will see _POSIX_PATH_MAX.

You also can specify this on the command line via the compiler option -D:

gcc -c main.c -D_POSIX_C_SOURCE=1

for example.

over 4 years ago · Santiago Trujillo Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda