From be16c266b9526539a29e0d0ab6d39d92f71c7079 Mon Sep 17 00:00:00 2001 From: Kirk McKusick Date: Thu, 9 May 1985 23:37:21 -0800 Subject: [PATCH] manual page distributed with 4.1BSD SCCS-vsn: lib/libc/sys/chdir.2 4.1 --- usr/src/lib/libc/sys/chdir.2 | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 usr/src/lib/libc/sys/chdir.2 diff --git a/usr/src/lib/libc/sys/chdir.2 b/usr/src/lib/libc/sys/chdir.2 new file mode 100644 index 0000000000..c0dd4b808a --- /dev/null +++ b/usr/src/lib/libc/sys/chdir.2 @@ -0,0 +1,33 @@ +.\" Copyright (c) 1980 Regents of the University of California. +.\" All rights reserved. The Berkeley software License Agreement +.\" specifies the terms and conditions for redistribution. +.\" +.\" @(#)chdir.2 4.1 (Berkeley) %G% +.\" +.TH CHDIR 2 +.UC 4 +.SH NAME +chdir \- change current working directory +.SH SYNOPSIS +.nf +.B chdir(dirname) +.B char *dirname; +.fi +.SH DESCRIPTION +.I Dirname +is the address of the pathname of a directory, terminated by a null byte. +.I Chdir +causes this directory +to become the current working directory, +the starting point for path names not beginning with `/'. +.SH "SEE ALSO" +cd(1) +.SH DIAGNOSTICS +Zero is returned if the directory is changed; \-1 +is returned +if the given name is not that of a directory +or is not searchable. +.SH ASSEMBLER +(chdir = 12.) +.br +.B sys chdir; dirname -- 2.20.1