view modules/getcwd @ 8214:822e9380142e

Minor fixups to port to Solaris 10 with Sun C 5.8. * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd. * modules/getcwd (Depends-on): Add dirfd. * lib/putenv.c (putenv): #undef it. (rpl_putenv): New decl. (malloc, free): Include <stdlib.h> rather than prototyping separately.
author Paul Eggert <eggert@cs.ucla.edu>
date Wed, 21 Feb 2007 07:54:16 +0000
parents 51d32a83a7df
children b78be3682141
line wrap: on
line source

Description:
Return the current working directory.

Files:
lib/getcwd.c
m4/getcwd-abort-bug.m4
m4/getcwd-path-max.m4
m4/getcwd.m4

Depends-on:
mempcpy
d-ino
dirfd
extensions
stdbool
unistd

configure.ac:
gl_FUNC_GETCWD
gl_UNISTD_MODULE_INDICATOR([getcwd])

Makefile.am:

Include:
<unistd.h>

License:
GPL

Maintainer:
all, glibc