summaryrefslogtreecommitdiff
path: root/builtins/psize-posix.c
blob: dffc9c3492a6ace64efb5373e074e5a469a4f42d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include <stdio.h>
#include <unistd.h>

main(c, v)
int	c;
char	**v;
{
	char	*p;
	long	l;

	p = v[1] ? v[1] : "/";
	l = pathconf (p, _PC_PIPE_BUF);
	printf ("%ld\n", l);
	exit(0);
}