getconf.c (814aaaa7da4dab462d90e12e7b48b75f2093ccfd) getconf.c (b4b4b5304bd22eab265c9c049cb7fc6b55c4ef3f)
1/*
2 * Copyright 2000 Massachusetts Institute of Technology
3 *
4 * Permission to use, copy, modify, and distribute this software and
5 * its documentation for any purpose and without fee is hereby
6 * granted, provided that both the above copyright notice and this
7 * permission notice appear in all copies, that both the above
8 * copyright notice and this permission notice appear in all

--- 173 unchanged lines hidden (view full) ---

182 value = pathconf(path, key);
183 if (value == -1 && errno != 0)
184 err(EX_OSERR, "pathconf: %s", name);
185 else if (value == -1)
186 printf("undefined\n");
187 else
188 printf("%ld\n", value);
189}
1/*
2 * Copyright 2000 Massachusetts Institute of Technology
3 *
4 * Permission to use, copy, modify, and distribute this software and
5 * its documentation for any purpose and without fee is hereby
6 * granted, provided that both the above copyright notice and this
7 * permission notice appear in all copies, that both the above
8 * copyright notice and this permission notice appear in all

--- 173 unchanged lines hidden (view full) ---

182 value = pathconf(path, key);
183 if (value == -1 && errno != 0)
184 err(EX_OSERR, "pathconf: %s", name);
185 else if (value == -1)
186 printf("undefined\n");
187 else
188 printf("%ld\n", value);
189}
190