Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 1 Nov 2007 14:42:10 -0500 (CDT)
From:      Lars Eighner <luvbeastie@larseighner.com>
To:        Yuri <yuri@rawbw.com>
Cc:        yuri@tsoft.com, freebsd-questions@freebsd.org
Subject:   Re: 'break' system call man page is missing?
Message-ID:  <20071101144159.F60360@qroenaqrq.6qbyyneqvnyhc.pbz>
In-Reply-To: <1193941841.472a1b51464bf@webmail.rawbw.com>
References:  <1193901348.47297d249cb88@webmail.rawbw.com> <1193941841.472a1b51464bf@webmail.rawbw.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 1 Nov 2007, Yuri wrote:

>> What is the condition when errno=22 is returned?
> I figured this out myself by looking into the kernel source code.

It is much easier to use man errno.

> But there still should be a man page for this since this seems to be only
> (or at least one of the very few) system calls w/out documentation.

I am not sure I know what you mean by "system call break."

There is an internal shell command "break" (as you should learn by entering
man break, which takes you to the builtins man page).  There is no external
"break" command that I know of.  Because it is an internal shell command, it
is documented in the man page for your shell, which in the case of "system"
in the c lib, is sh.

1) man break takes you to the builtin commands man page.
2) a table on that page tells you "break" is not an external command, but
is an internal command in csh and sh.
3) man system tells you system executes a command in an sh shell.
4) sh man tells you that break causes the end of execution of the innermost
loop(s)

or in other words, "break" is meaningless unless it is in a loop, which you
would be told in plain text if you entered "break" at the command line in an
sh shell.

So, do you mean some other kind of "break" command in some other context?

-- 
Lars Eighner
http://www.larseighner.com/index.html
8800 N IH35 APT 1191 AUSTIN TX 78753-5266




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20071101144159.F60360>