From mkb@altair.mayn.de  Thu Aug 10 14:15:32 2000
Return-Path: <mkb@altair.mayn.de>
Received: from altair.mayn.de (altair.mayn.de [194.145.150.157])
	by hub.freebsd.org (Postfix) with ESMTP id 1ABB637B564
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 10 Aug 2000 14:15:29 -0700 (PDT)
	(envelope-from mkb@altair.mayn.de)
Received: (from mkb@localhost)
	by altair.mayn.de (8.9.3/8.9.3) id XAA01472;
	Thu, 10 Aug 2000 23:07:58 +0200 (CEST)
	(envelope-from mkb)
Message-Id: <200008102107.XAA01472@altair.mayn.de>
Date: Thu, 10 Aug 2000 23:07:58 +0200 (CEST)
From: Matthias Buelow <mkb@altair.mayn.de>
Reply-To: mkb@altair.mayn.de
To: FreeBSD-gnats-submit@freebsd.org
Subject: sysconf(3) manpage doesn't mention posix.1b options
X-Send-Pr-Version: 3.2

>Number:         20528
>Category:       docs
>Synopsis:       sysconf(3) manpage doesn't mention posix.1b options
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    trhodes
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          doc-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Aug 10 14:20:03 PDT 2000
>Closed-Date:    Tue Dec 23 09:33:16 PST 2003
>Last-Modified:  Tue Dec 23 09:33:16 PST 2003
>Originator:     Matthias Buelow
>Release:        FreeBSD 4.0-20000712-STABLE i386
>Organization:
>Environment:

FreeBSD 4.0-20000712-STABLE i386

>Description:

The sysconf(3) manual page doesn't mention many sysconf option constants
as defined under the "POSIX.1B sysconf options" section in
/usr/include/sys/unistd.h, such as _SC_PAGESIZE.
Most of these are usually documented in the sysconf(3) manpage on other
systems such as HP-UX, although some differences between header file
and manpage exist there also.

>How-To-Repeat:

>Fix:


>Release-Note:
>Audit-Trail:

From: Nik Clayton <nik@freebsd.org>
To: Matthias Buelow <mkb@altair.mayn.de>
Cc: FreeBSD-gnats-submit@freebsd.org
Subject: Re: docs/20528: sysconf(3) manpage doesn't mention posix.1b options
Date: Sun, 12 Nov 2000 16:01:18 +0000

 On Thu, Aug 10, 2000 at 11:07:58PM +0200, Matthias Buelow wrote:
 > The sysconf(3) manual page doesn't mention many sysconf option constants
 > as defined under the "POSIX.1B sysconf options" section in
 > /usr/include/sys/unistd.h, such as _SC_PAGESIZE.
 > Most of these are usually documented in the sysconf(3) manpage on other
 > systems such as HP-UX, although some differences between header file
 > and manpage exist there also.
 
 Not being terribly familiar with this chunk of FreeBSD, it would be a great
 help if you could send a patch that includes the descriptions you would
 like to see added to sysconf(3).
 
 Thanks,
 
 N
 -- 
 Internet connection, $19.95 a month.  Computer, $799.95.  Modem, $149.95.
 Telephone line, $24.95 a month.  Software, free.  USENET transmission,
 hundreds if not thousands of dollars.  Thinking before posting, priceless.
 Somethings in life you can't buy.  For everything else, there's MasterCard.
   -- Graham Reed, in the Scary Devil Monastery
 
Responsible-Changed-From-To: freebsd-doc->freebsd-standards 
Responsible-Changed-By: mike 
Responsible-Changed-When: Sun Nov 17 07:55:56 PST 2002 
Responsible-Changed-Why:  

Standards issue. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=20528 

From: Bruce M Simpson <bms@spc.org>
To: freebsd-gnats-submit@FreeBSD.org
Cc: mkb@altair.mayn.de, nik@freebsd.org, tjr@freebsd.org
Subject: Re: docs/20528: sysconf(3) manpage doesn't mention posix.1b options
Date: Sat, 21 Jun 2003 16:16:57 +0100

 --BXr400anF0jyguTS
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: inline
 
 Hi,
 
 Here's a patch that adds the __POSIX_VISIBLE >= 199309 sysconf
 variables to our sysconf(3) manpage.
 
 BMS
 
 --BXr400anF0jyguTS
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: attachment; filename="sysconf.patch"
 
 Generated by diffcoll on Sat 21 Jun 2003 16:13:31 BST
 
 diff -uN src/lib/libc/gen/sysconf.3.orig src/lib/libc/gen/sysconf.3
 --- /usr/src/lib/libc/gen/sysconf.3.orig	Sat Jun 21 15:41:57 2003
 +++ /usr/src/lib/libc/gen/sysconf.3	Sat Jun 21 16:13:21 2003
 @@ -164,6 +164,84 @@
  .It Li _SC_2_UPE
  Return 1 if the system supports the User Portability Utilities Option,
  otherwise \-1.
 +.It Li _SC_ASYNCHRONOUS_IO
 +Return 1 if the system supports Asynchronous I/O facilities as described in
 +.St -p1003.1 ,
 +otherwise \-1.
 +.It Li _SC_MAPPED_FILES
 +Return 1 if the system supports memory mapped files, otherwise \-1.
 +.It Li _SC_MEMLOCK
 +Return 1 if the system supports process memory locking, otherwise \-1.
 +.It Li _SC_MEMLOCK_RANGE
 +Return 1 if the system supports range memory locking, otherwise \-1.
 +.It Li _SC_MEMORY_PROTECTION
 +Return 1 if the system supports memory protection, otherwise \-1.
 +.It Li _SC_MESSAGE_PASSING
 +Return 1 if the system supports POSIX message queues, otherwise \-1.
 +.It Li _SC_PRIORITIZED_IO
 +Return 1 if the system supports POSIX prioritized I/O, otherwise \-1.
 +.It Li _SC_PRIORITY_SCHEDULING
 +Return 1 if the system supports POSIX priority scheduling, otherwise \-1.
 +.It Li _SC_REALTIME_SIGNALS
 +Return 1 if the system supports POSIX realtime signals, otherwise \-1.
 +.It Li _SC_SEMAPHORES
 +Return 1 if the system supports POSIX semaphores, otherwise \-1.
 +.It Li _SC_FSYNC
 +Return 1 if the system supports file synchronization, otherwise \-1.
 +.It Li _SC_RAW_SOCKETS
 +Return 1 if the system supports
 +.Dv SOCK_RAW
 +style raw sockets, otherwise \-1.
 +.It Li _SC_SHARED_MEMORY_OBJECTS
 +Return 1 if the system supports POSIX shared memory objects, otherwise \-1.
 +.It Li _SC_SYNCHRONIZED_IO
 +Return 1 if the system supports POSIX synchronized I/O, otherwise \-1.
 +.It Li _SC_TIMERS
 +Return 1 if the system supports POSIX timers, otherwise \-1.
 +.It Li _SC_IPV6
 +Return 1 if the system supports Internet Protocol version 6, otherwise \-1.
 +.It Li _SC_AIO_LISTIO_MAX
 +The maximum number of POSIX asynchronous I/O operations supported.
 +.It Li _SC_AIO_MAX
 +The maximum number of outstanding asynchronous I/O operations supported.
 +.It Li _SC_AIO_PRIO_DELTA_MAX
 +The maximum amount by which a process can decrease its asynchronous
 +I/O priority level from its own scheduling priority.
 +.It Li _SC_DELAYTIMER_MAX
 +The maximum number of timer expiration overruns permitted for each process.
 +.It Li _SC_MQ_OPEN_MAX
 +The maximum number of open POSIX message queues which a process may hold.
 +.It Li _SC_PAGESIZE
 +The system memory page size.
 +.It Li _SC_PAGE_SIZE
 +This is a synonym for
 +.Dv _SC_PAGESIZE .
 +.It Li _SC_RTSIG_MAX
 +The number of the highest POSIX realtime signal supported.
 +.It Li _SC_SEM_NSEMS_MAX
 +The maximum number of POSIX semaphores that a process may have.
 +.It Li _SC_SEM_VALUE_MAX
 +The maximum value that a POSIX semaphore may have.
 +.It Li _SC_SIGQUEUE_MAX
 +The maximum number of POSIX queued signals that a process may send and
 +have pending at receiver(s) at any given time.
 +.It Li _SC_TIMER_MAX
 +The maximum number of POSIX timers that a process may request.
 +.It Li _SC_NPROCESSORS_ONLN
 +The number of processors that are online and running in the system.
 +.It Li _SC_NPROCESSORS_CONF
 +The number of processors that are configured, but not
 +necessarily running, in the system.
 +.It Li _SC_IOV_MAX
 +The maximum number of iovec structures that one process may use with the
 +.Fn readv
 +and
 +.Fn writev
 +functions.
 +.It Li _SC_ATEXIT_MAX
 +The maximum number of functions that a process may register with the
 +.Fn atexit
 +function.
  .El
  .Sh RETURN VALUES
  If the call to
 
 
 --BXr400anF0jyguTS--
Responsible-Changed-From-To: freebsd-standards->bms 
Responsible-Changed-By: bms 
Responsible-Changed-When: Fri 8 Aug 2003 22:08:12 PDT 
Responsible-Changed-Why:  
I'll handle this. Waiting on feedback from various standards characters 
before committing. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=20528 
Responsible-Changed-From-To: bms->trhodes 
Responsible-Changed-By: trhodes 
Responsible-Changed-When: Mon Sep 29 08:11:27 PDT 2003 
Responsible-Changed-Why:  
Take this from bms as discussed in private email, I'll sort these entries and commit 
soon.  Thanks Bruce! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=20528 
State-Changed-From-To: open->closed 
State-Changed-By: trhodes 
State-Changed-When: Tue Dec 23 09:32:25 PST 2003 
State-Changed-Why:  
The options in your patch were sorted and committed.  Thanks bms! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=20528 
>Unformatted:
