Re: 'break' system call man page is missing?

2007-11-01 Thread Yuri
In /usr/include/sys/syscall.h it's listed as SYS_break with the number 17.
Is it the same as brk(2)?

Yuri

Quoting Jonathan Chen [EMAIL PROTECTED]:
 Are you looking for brk(2)?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: 'break' system call man page is missing?

2007-11-01 Thread Jonathan Chen
On Thu, Nov 01, 2007 at 12:15:48AM -0700, Yuri wrote:
 I can't find man page for system call break.
 /usr/src/lib/libc/sys/ seems to have sources for many man pages but not for 
 break.
 
 In the mean time in one case it fails for me with errno=22 (Invalid argument).
 Is it's argument (pointer) related to /proc/##/map? One of the blocks 
 mentioned
 in this map file has upper limit equal to the argument pointer of break.

Are you looking for brk(2)?
-- 
Jonathan Chen [EMAIL PROTECTED]
--
If everything's under control, you're going too slow
  - Mario Andretti
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: 'break' system call man page is missing?

2007-11-01 Thread Yuri
 What is the condition when errno=22 is returned?
I figured this out myself by looking into the kernel source code.

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.

Yuri
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: 'break' system call man page is missing?

2007-11-01 Thread James
On 11/1/07, Yuri [EMAIL PROTECTED] wrote:

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

 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.

 Yuri
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to 
 [EMAIL PROTECTED]




write a man page and submit it to the documentation project :)
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: 'break' system call man page is missing?

2007-11-01 Thread Lars Eighner

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

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]