getcwd.3 (712dc76e87bd7bbeb3f781e690886b69a1f9c5ca) getcwd.3 (22301c4b46492d388c25c430f339e877dce06d5d)
1.\" Copyright (c) 1991, 1993
2.\" The Regents of the University of California. All rights reserved.
3.\"
4.\" Redistribution and use in source and binary forms, with or without
5.\" modification, are permitted provided that the following conditions
6.\" are met:
7.\" 1. Redistributions of source code must retain the above copyright
8.\" notice, this list of conditions and the following disclaimer.

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

25.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
26.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30.\" SUCH DAMAGE.
31.\"
32.\" @(#)getcwd.3 8.2 (Berkeley) 12/11/93
1.\" Copyright (c) 1991, 1993
2.\" The Regents of the University of California. All rights reserved.
3.\"
4.\" Redistribution and use in source and binary forms, with or without
5.\" modification, are permitted provided that the following conditions
6.\" are met:
7.\" 1. Redistributions of source code must retain the above copyright
8.\" notice, this list of conditions and the following disclaimer.

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

25.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
26.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30.\" SUCH DAMAGE.
31.\"
32.\" @(#)getcwd.3 8.2 (Berkeley) 12/11/93
33.\" $Id$
33.\"
34.\"
34.Dd December 11, 1993
35.Dd November 24, 1997
35.Dt GETCWD 3
36.Os BSD 4.2
37.Sh NAME
38.Nm getcwd ,
39.Nm getwd
40.Nd get working directory pathname
41.Sh SYNOPSIS
42.Fd #include <unistd.h>

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

103.Va errno
104into the memory referenced by
105.Fa buf .
106.Sh ERRORS
107The
108.Fn getcwd
109function
110will fail if:
36.Dt GETCWD 3
37.Os BSD 4.2
38.Sh NAME
39.Nm getcwd ,
40.Nm getwd
41.Nd get working directory pathname
42.Sh SYNOPSIS
43.Fd #include <unistd.h>

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

104.Va errno
105into the memory referenced by
106.Fa buf .
107.Sh ERRORS
108The
109.Fn getcwd
110function
111will fail if:
111.Bl -tag -width [EACCESS]
112.It Bq Er EACCESS
112.Bl -tag -width [EACCES]
113.It Bq Er EACCES
113Read or search permission was denied for a component of the pathname.
114.It Bq Er EINVAL
115The
116.Fa size
117argument is zero.
118.It Bq Er ENOENT
119A component of the pathname no longer exists.
120.It Bq Er ENOMEM

--- 35 unchanged lines hidden ---
114Read or search permission was denied for a component of the pathname.
115.It Bq Er EINVAL
116The
117.Fa size
118argument is zero.
119.It Bq Er ENOENT
120A component of the pathname no longer exists.
121.It Bq Er ENOMEM

--- 35 unchanged lines hidden ---