jruoho
2bf45345db
Move the thread stack attribute functions to a separate page. In addition,
...
document pthread_attr_getstack() and pthread_attr_setstack(). Try to also
document these a little better (in particular, note some items in the long
list of caveats and questions related to application-controlled thread stack).
2010-07-07 11:04:52 +00:00
njoly
0eab175c82
Add missing list end.
2010-07-07 10:22:33 +00:00
wiz
c4ed068736
Sort sections.
2010-07-07 09:54:07 +00:00
jruoho
dbb0e63cfb
Split pthread_attr_getdetachstate(3) and pthread_attr_setdetachstate(3) to a
...
separate page. Once ready, the main page, pthread_attr(3), will contain a
summary of the various thread attribute functions.
2010-07-07 08:57:36 +00:00
jruoho
7f32058c79
Remove pthread_attr_getscope() and pthread_attr_setscope().
2010-07-07 08:41:11 +00:00
jruoho
69ff1aa9c5
Move pthread_attr_{g,s}etscope() to a separate page and try to document
...
these better. Should fix PR lib/41831 from Wolfgang Stukenbrock.
XXX: Please proofread.
2010-07-07 08:22:53 +00:00
njoly
aab619738e
Add missing list end.
2010-07-06 23:15:47 +00:00
jruoho
6a595a491d
Same here; fix LIBRARY, add COMPATIBILITY/ERRORS, etc.
2010-07-06 22:24:56 +00:00
pooka
54aeac7f90
unwhine lint
2010-07-06 21:58:18 +00:00
jruoho
ae0626ba0d
Fix LIBRARY. Add ERRORS and COMPATIBILITY. And some small improvements.
2010-07-06 21:54:12 +00:00
jruoho
935deb263f
Document pthread_attr_get_np(). Fixes PR lib/39289 from ahoka@.
2010-07-06 21:36:34 +00:00
pooka
d8a0b8cdce
stat mount target path only if we're actually goint to use it.
...
This avoids errors from the comfd case when the mount target does
not exist in our local namespace.
2010-07-06 18:22:20 +00:00
pooka
a6b3b71bb8
set time_t compat where necessary
2010-07-06 18:01:14 +00:00
christos
2c086933d8
Apply more limits to GLOB_LIMIT, number of stat(2) calls from me and number
...
of readdir(3) calls from Maksymilian Arciemowicz. Also reduce the memory
used by matches strings from Maksymilian Arciemowicz.
2010-07-06 14:59:22 +00:00
pooka
afdc25dbdf
When using the top secret PUFFS_COMFD model, write out size of the
...
puffs kernel args before the contents. This allows parties which
have no clue about the contents to proxy the protocol easily.
2010-07-06 13:27:16 +00:00
mrg
0b9686b0cc
these were only relevant for a.out builds; time to sleep forever...
2010-07-06 06:04:58 +00:00
mrg
4c92852a80
remove almost all the ability to build netbsd with an a.out target.
...
we're ELF now, and there are many missing checks against OBJECT_FMT.
if we ever consider switching, the we can figure out what new ones
we need but for now it's just clutter.
this doesn't remove any of the support for exec_aout or any actually
required-for-boot a.out support, only the ability to build a netbsd
release in a.out format. ie, most of this code has been dead for
over a decade.
i've tested builds on vax, amd64, i386, mac68k, macppc, sparc, atari,
amiga, shark, cats, dreamcast, landisk, mmeye and x68k. this covers
the 5 MACHINE_ARCH's affected, and all the other arch code touched.
it also includes some actual run-time testing of sparc, i386 and
shark, and i performed binary comparison upon amiga and x68k as well.
some minor details relevant:
- move shlib.[ch] from ld.aout_so into ldconfig proper, and cut them
down to only the parts ldconfig needs
- remove various unused source files
- switch amiga bootblocks to using elf2bb.h instead of aout2bb.h
2010-07-06 05:59:50 +00:00
mrg
4f893703d8
delete all the a.out csu code.
2010-07-05 21:27:55 +00:00
christos
6540fba480
consistency with c source
2010-07-05 00:45:19 +00:00
roy
76cbf63f87
area is now used
2010-07-04 07:30:33 +00:00
christos
9b94acc7a6
Avoid DoS attacks for patterns that have braces. Noted by Maksymilian
...
Arciemowicz.
XXX: Pullup to 5.x
2010-07-02 21:13:10 +00:00
jruoho
c8bb322856
Use .Fn instead of .Fa for functions. Also rearrange slightly.
2010-06-30 13:38:10 +00:00
seanb
10f798a007
- remove extra len check as per discussion on tech-net.
2010-06-29 14:44:19 +00:00
joerg
e883e926df
Ensure that initfini.c is referenced by exit.c. The start up code has to
...
reference the latter as a return of main() results in a call to exit(3),
so this ensures that the libc constructors are run for statically linked
programs. Fixes PR 37454.
2010-06-28 21:58:02 +00:00
skrll
c6d6c8c225
More KNF
2010-06-24 20:46:11 +00:00
skrll
d481569999
ANSIfy / KNF.
2010-06-24 20:42:24 +00:00
hannken
1423e65b26
Clean up vnode lock operations pass 2:
...
VOP_UNLOCK(vp, flags) -> VOP_UNLOCK(vp): Remove the unneeded flags argument.
Welcome to 5.99.32.
Discussed on tech-kern.
2010-06-24 12:58:48 +00:00
tnozaki
51c2514072
fix cross build breakage mklocale(1).
...
move inline finction that uses sys/ctype_bits.h to runetype_misc.h.
2010-06-20 02:23:15 +00:00
tnozaki
197b699328
null terminate
2010-06-19 14:48:16 +00:00
tnozaki
3cc4120729
1. refactoring new locale-db(RuneCT10) loading method with mmap(2).
...
2. remove unused field from _RuneLocale.
3. localeio(CITRUS=no) can read new locale-db(RuneCT10) now.
2010-06-19 13:26:51 +00:00
tnozaki
2a7af30c36
1. split runetype_local.h -> runetype_file.h
...
and remove renameing _Rune* -> _NBRune* namespace protection.
FreeBSD traditionaly exposes struct _Rune* in runetype.h
which included by ctype.h. it may cause conflicting type error
in our cross build process, former we use renaming namespace
to avoid this problem, now i reworked more resonable way.
2. merge rune_local.h to runetype_local.h, and remove it.
3. split bsdctype.h -> bsdctype_{file,local}.h
2010-06-13 04:14:56 +00:00
tnozaki
4935b908f2
s/_CTYPE_NUM_CHARS/_CTYPE_CACHE_SIZE/
2010-06-12 18:02:31 +00:00
tnozaki
fd847aaa33
stop to renaming _CTYPE_* -> _RUNETYPE_*.
2010-06-12 05:54:05 +00:00
dholland
4bded2208d
After consultation with jdc@, apply the patch from PR 42412 even though
...
the crash went away -- it's not clear that it went away for any reason
besides by accident.
The change is: use calloc instead of malloc for allocating SCREENs.
2010-06-10 05:24:55 +00:00
pooka
451e6b4882
Version rumpuser ABI with a lightweight mechanism.
2010-06-09 14:08:17 +00:00
pooka
3f4944e6bb
Add the ability to specify a preferred address the "map anon memory"
...
hypercall.
2010-06-09 11:35:36 +00:00
pooka
46ea1019d6
Allow loading the symbols from objects which are not directly mapped
...
into memory, namely the main object (i.e. map->l_addr is NULL).
2010-06-08 15:32:55 +00:00
wiz
e54f45dc8a
Fix xref.
2010-06-07 16:37:07 +00:00
wiz
e02d784273
Grammar and spacing fixes.
2010-06-07 16:33:45 +00:00
tnozaki
9efec5bce3
1. MB_LEN_MAX switch MD to MI.
...
2. unfortunately hppa's MB_LEN_MAX is defined incorrectly 6 instead of 32
so we have to add more setlocale(3) __RENAME func, __setlocale50.
3. move setlocale1.c and setlocale32.c to lib/libc/compat/locale/*
prepareing for next libc major crunk.
4. bump libc minor version.
2010-06-07 13:52:28 +00:00
pooka
388dad1711
no need to typecast in pathconf anymore
2010-06-07 11:23:07 +00:00
pooka
0e05405bd1
Reenable pathconf now that the retval argument is register_t.
2010-06-07 11:22:36 +00:00
pooka
a784ae74af
Make retval argument for pathconf a register_t to match VOP_PATHCONF.
...
This makes the size the same on 64bit archs. Don't bother bumping
any version, since you'd have explicitly had to jump through some
hoops to use pathconf before.
2010-06-07 11:21:31 +00:00
jruoho
35bff1e486
Remove some leftover .\" comments.
...
The sysctl variables will be described in sysctl(7).
2010-06-07 07:39:43 +00:00
jruoho
9921e5b526
Build links also for mq_timedreceive(3) and mq_timedsend(3).
2010-06-07 07:26:20 +00:00
jruoho
00b42ad814
Mostly refer to the main page, mq(3), in SEE ALSO.
2010-06-07 07:21:52 +00:00
jruoho
dfba418d38
Add mq(3), a manual page for the POSIX message queues. This tries to act as
...
a short introduction to the rationale and API, noting also some pros and cons.
rmind@: basically ok. Please feel free to adjust, correct, and extend.
2010-06-07 07:11:27 +00:00
dholland
4035b6ee7d
Improve wording describing the behavior of the attributes argument, and
...
add reference to pthread_attr(3), as requested in PR 42871. The text
added is different from but based on a suggestion by Matthew Mondor.
2010-06-07 04:36:34 +00:00
pooka
a7bb34b4fd
Actually, disable pathconf for a while longer: the retval needs a
...
little finetuning (not that everyone is jumping right to using it,
but fixing will have to wait until tomorrow, and who knows what
i'll forget during the night and how long it will eventually take).
2010-06-06 23:11:05 +00:00
pooka
1cfb9937ae
Pass VOP_PATHCONF to backend file server. inspired by njoly.
2010-06-06 22:46:17 +00:00
pooka
aef13c83d0
signal pathconf in the vector of supported ops
2010-06-06 22:44:54 +00:00
tnozaki
0ab294f640
remove unused magic.
2010-06-05 16:37:13 +00:00
jruoho
bb1d0e97b1
Fix .Xr; dirent(5) -> dirent(3).
2010-06-04 05:42:24 +00:00
veego
51cdef0f36
Use MAP_FILE|MAP_SHARED instead of MAP_FILE for the flags parameter of mmap(2).
...
Patch is from martin.
Solves my own PR kern/43346
2010-06-03 12:40:52 +00:00
pooka
ae456b5717
Check return value of posix_memalign ... always helpful to not return
...
garbage memory in case of failure.
2010-06-02 18:15:35 +00:00
tnozaki
a07e73ee74
uint8_t -> unsigned char, int16_t -> short.
2010-06-02 16:04:52 +00:00
tnozaki
bf280d2720
remove duplicated towctrans internal function.
2010-06-02 15:47:25 +00:00
pooka
e3c273abc1
Don't pass "canfail" down to rumpuser_malloc -- there's quite little
...
we can do with that info way down there. Instead, pass alignment.
Implement rumpuser_malloc() with posix_memalign().
2010-06-01 20:11:33 +00:00
christos
cbd798c94b
tidy up memory allocation and don't unnecessarily print "./" before names.
2010-06-01 18:20:26 +00:00
tnozaki
d8217122b9
refactoring old locale-db(BSDCTYPE) loading method with mmap(2).
2010-06-01 18:00:28 +00:00
tnozaki
9a35d7972b
more split ctype.h -> sys/ctype_inline.h, sys/ctype_bits.h
2010-06-01 13:52:07 +00:00
pooka
9970bb9e64
Support KTHREAD_JOINABLE/kthread_join(). Also fixes earlier bug
...
where all pthreads were created non-detached.
2010-05-31 23:09:29 +00:00
njoly
7d9c448d51
Consistently use `.Brq Dv XXX' across syscalls man pages, for NAME_MAX
...
and PATH_MAX.
2010-05-31 12:16:20 +00:00
drochner
5170f0046a
another POSIX compliance fix: sigwait(3) should not use errno but
...
return the error code directly
2010-05-31 11:02:24 +00:00
drochner
690a7f09c9
-fix internal use of sigwaitinfo(2) by sigwait(3): The former returns
...
the signal number now, as required by POSIX. The latter should just
return 0 on success. Fixes a mysql problem reported by Kurt Schreiner.
-document the new behavior of sigwaitinfo and sigtimedwait
-retain non-POSIX behavior for NetBSD-5 binary compatibility -- the fix
would likely not be polled into the .0-branches, and having 5.0.x and
5.x behave differently would be confusing. Besides that, it was
documented in the manpage all the time.
2010-05-30 19:31:39 +00:00
tnozaki
cdd31057f2
remove redundant guard.
2010-05-30 11:36:12 +00:00
tnozaki
cd71bcf609
1. fix build problem CITRUS=no
...
2. make CITRUS={yes,no} knob friendly with libc/compat.
2010-05-30 08:28:53 +00:00
wiz
82776533ea
New sentence, new line.
2010-05-30 07:57:08 +00:00
dholland
2264536172
Note briefly how to avoid the problem where 0 can be a valid successful
...
return as well as an error. Suggested by Robert Elz in follow up to PR 39392.
2010-05-29 20:32:18 +00:00
pgoyette
2ac5480827
Update libpci for change in pci_find{vendor,product} entrypoint names.
2010-05-25 08:35:47 +00:00
pgoyette
1365824bee
Adapt libpci build to include new pci_verbose.c
2010-05-24 20:31:17 +00:00
tnozaki
04cc7786fc
rework bulid breakage problem on linux.
...
ldef.h: s/1<<8/_CTYPE_CACHE_SIZE/
ctype_local.h: use limits.h instead of machine/limits.h
runetype_local.h: don't use HAVE_NBTOOL_CONFIG as evil way.
2010-05-22 18:15:21 +00:00
tnozaki
99f737b9cb
fix cross build breakage under linux box, reported by Andreas Gustafsson, thanks!
...
runetype_local.h: don't include ctype_local.h when toolchain build.
2010-05-22 17:47:25 +00:00
tnozaki
b18f206e58
move __mb_len_max_runtime from rune_local.h -> setlocale_local.h.
2010-05-22 13:50:02 +00:00
tnozaki
bbed57c2e0
make _locale_impl_t.cache as pointer to maintain easily binary compatibility in future.
...
no ABI change was made.
2010-05-22 13:15:59 +00:00
tnozaki
32cc8c2e5f
rune.h is not public, so merge with rune_local.h.
2010-05-22 08:13:18 +00:00
tnozaki
9763c57c60
rune.h is not public, so merge with rune_local.h
2010-05-22 07:18:43 +00:00
tnozaki
64a7d4fa9a
1. hide _CTYPE_PRIVATE section in ctype.h, move them to private header ctype_local.h.
...
2. do not use _CTYPE_NUM_CHARS macro to read data from LC_CTYPE(old BSDCTYPE style) database.
because 1<<CHAR_BIT is MD, so i added MI macro _CTYPE_CACHE_SIZE(1<<8).
3. remove _NB_CACHED_RUNE macro, use _CTYPE_CACHE_SIZE instead.
2010-05-22 06:38:15 +00:00
pooka
33b074be7e
add option string for no attribute cache
...
(foreseeing the odd event I might actually implement one some day)
2010-05-21 11:29:42 +00:00
pooka
335bcd0d3c
mention extended attribute ops
2010-05-21 11:20:50 +00:00
pooka
0eb828b571
bump major of libs NEEDING libpuffs
2010-05-21 10:53:41 +00:00
pooka
55a238165a
support extended attributes
2010-05-21 10:52:17 +00:00
pooka
c3be8a8cd5
* support extended attributes
...
* bump major due to structure growth
* add some spare space
* remove ABI sillyness
2010-05-21 10:50:52 +00:00
pooka
539062e7e1
adjust for protocol changes
2010-05-21 10:43:07 +00:00
pooka
651aab9fcd
Don't try to print the names of messages we don't know about.
2010-05-21 08:46:14 +00:00
pooka
87467ad4b7
* fix typo
...
* fix "that's not supposed to be there" causing off-by-one in array
* make compile regardless of dev_t size
2010-05-20 13:07:28 +00:00
jruoho
3fe9db0422
Use standard section headers.
...
Xref vfs(9), which could be slightly more elaborate.
2010-05-20 05:43:54 +00:00
jruoho
ebe1a1a443
Use a list with the mutex type. Note, from the standard, that recursive
...
mutexes should be avoided when condition variables are used.
2010-05-20 05:19:29 +00:00
jruoho
f395ce5a84
Use similar markup than in pthread_mutex_init(3) etc. with the initializer
...
macro. Improve wording slightly.
2010-05-20 04:47:38 +00:00
jruoho
128d933f6d
.Fa -> .Fn.
2010-05-20 04:41:11 +00:00
jruoho
6e31029d91
Note the initializer macros.
2010-05-20 04:40:23 +00:00
pooka
9a9b93d40a
Initialize "hasdebug" default deterministically.
2010-05-20 00:13:02 +00:00
jruoho
9bfaa34d66
Build links for rest of the pthread_attr(3) functions.
...
Hopefully I got all of them right in the setlist...
2010-05-19 20:04:42 +00:00
pooka
f6e5cf7c15
remove three years out-of-date comment
2010-05-19 12:16:45 +00:00
jruoho
2096402883
Refer to sigevent(3).
2010-05-19 06:44:51 +00:00
jruoho
2e96a91ae5
Remove the paragraph about the used notification mechanism. Instead,
...
reference sigevent(3). Clarify the file offset discussion.
2010-05-19 06:35:20 +00:00
wiz
d9175b29a9
Split "file system" and fix a typo.
2010-05-18 18:05:52 +00:00
pooka
b1b7862792
Make it possible to use the scheduler lock as the rumpuser condvar
...
interlock. This is applicable in cases where the actual interlock
is the CPU the currently running thread is scheduled on. Borrowing
the scheduler lock as the mutex mandated by pthread_cond_wait()
does away with need to have an additional mutex. This both optimizes
runtime execution and simplifies code, as the extra lock typically
lead to quite some trickeries to avoid the dungeon collapsing due
to zaps from the wand of deadlock.
2010-05-18 14:58:41 +00:00
jruoho
51e86d90ef
Refer to timeval(3) and only describe the legacy struct timezone here.
...
Improve markup.
2010-05-18 07:14:18 +00:00
jruoho
cd2244d3a2
Xref timespec(3).
2010-05-18 06:31:17 +00:00
jruoho
e8cfad37a0
Reference only aio(3) in SEE ALSO as it is the central placeholder. Note
...
timespec(3). Markup: -width Er (not -width Dv), .Dv NULL (not null), etc.
2010-05-17 19:22:31 +00:00
jruoho
6683f39fe8
Fix a typo of a typo, and use .Sq in couple of places.
2010-05-17 19:04:55 +00:00
jruoho
e95625039b
Writing, rereading, writing, reareading, and yet still one typo.
2010-05-17 17:55:49 +00:00
jruoho
4e9ea952b8
Add an introductory manual page for the POSIX asynchronous I/O, aio(3).
...
This is hopefully enough for a reader to get started with the aio.
ok rmind@
2010-05-17 17:15:42 +00:00
jruoho
4a800d153f
Offset indent, .Dv.
2010-05-17 12:38:04 +00:00
jruoho
a6141e98fc
Use -enum in the list for clarity.
2010-05-17 12:23:05 +00:00
jruoho
3ae57981ed
Add subtitle. Break long paragraph.
2010-05-17 12:16:43 +00:00
jruoho
eb64068f04
Note that all stat-functions are standardized nowadays.
2010-05-17 12:12:35 +00:00
jruoho
5717af9360
Reference timeval(3).
2010-05-17 07:22:03 +00:00
jruoho
3dc60799a1
Try to describe the struct stat instead of copy-pasting it from the header.
...
Use xrefs to avoid duplication of effort. Note the S_IS*() macros.
2010-05-17 05:20:05 +00:00
jruoho
cbe8ce8cad
Actually the previous is wrong; all of these can set the errno either via
...
each other or via something like malloc(3) or lseek(2).
2010-05-17 03:09:06 +00:00
jruoho
132817e96e
Fix the note about errno in ERRORS; telldir(3), seekdir(3), and rewinddir(3)
...
do not set the errno.
2010-05-17 03:04:09 +00:00
jruoho
9127e9f198
.Dv.
2010-05-16 12:36:32 +00:00
jruoho
e55b912b81
Add the Butenhof's book to SEE ALSO. (It was decent enough when I read it
...
years ago, but if there are better ones, please feel free to add those.)
2010-05-16 12:23:32 +00:00
jruoho
8292b0e60f
Enumerate the functions in a table instead of a big SEE ALSO.
...
Also some stylistic changes.
2010-05-16 12:20:00 +00:00
wiz
972863c67c
Sort sections. Fix typo. Fix xref. Improve wording in one case.
2010-05-16 11:37:06 +00:00
jruoho
fb6ead4add
At least one markup-typo slipped through the cracks.
2010-05-16 08:01:14 +00:00
jruoho
ce1c570bfe
Rewrite much of the page.
...
Provide much more detailed and structured discussion. Notably, try to gather
some of the conditions around the famous undefined behavior; these functions
(or the implementations) are quite prone to such behavior.
Add compatibility notes. (The big change here is that in SUSv4 it is no
longer mandated that the directory streams are implemented by using file
descriptors.)
XXX: Please proofread this. Consider also adding some additional notes. For
instance, I left the semantics about "." and ".." out. The returned
errno's should be enumerated as well.
2010-05-16 07:52:58 +00:00
jruoho
f99f0278cc
Move the more detailed discussion around the dirent-structure from
...
getdents(2) to dirent(5), and extend it with some compatibility notes.
2010-05-15 15:38:41 +00:00
pgoyette
c795d9ed89
Remove repeated text "After filling..."
...
XXX Someone else can decide whether we should refer to "U.S.A." or to
XXX "the United States" in the parenthetical.
2010-05-15 13:54:52 +00:00
jruoho
0e2d5f4d40
Use standard section headers.
2010-05-14 16:05:49 +00:00
wiz
d4aff2c819
Fix spaco.
2010-05-14 08:30:34 +00:00
joerg
4f27706e70
Provide a sane argument for -width.
2010-05-14 03:25:20 +00:00
joerg
8331b95fa9
Fix trailing whitespace
2010-05-14 03:22:49 +00:00
joerg
9741664022
\\* -> \*
2010-05-14 03:10:24 +00:00
joerg
f0c7b477dc
Fix markup
2010-05-14 03:04:32 +00:00
wiz
6f1249aa8e
Join %U.
2010-05-13 23:30:52 +00:00
joerg
9601c032f2
Mask %U
2010-05-13 23:07:46 +00:00
christos
96f5fe0aab
PR/43300: Takahiro Kambe: LOG_PID and LOG_CONSOLE printed syslogp messages
...
to the console/stderr since the syslogp conversion.
2010-05-13 22:40:14 +00:00
joerg
332c9caca2
Use plain references and don't depend on multiple expansion runs.
2010-05-13 21:52:43 +00:00
joerg
fb270d1e3d
Mask %U, it is a macro nowadays.
2010-05-13 21:50:11 +00:00
jruoho
f05bdd5ecd
Remove the note about the standard recommending fgets(3);
...
should be clear enough from the big warning to "NEVER use gets()".
2010-05-13 18:38:24 +00:00
jruoho
b2368e5383
Move the structure inside the body text. Some additional markup improvements.
2010-05-13 18:04:58 +00:00
tnozaki
50eb6aadde
cast isblank(3)'s argument to unsigned char.
2010-05-13 17:52:11 +00:00
jruoho
08cdc5df90
Build links for syslogp(3), syslogp_r(3), vsyslogp(3), and vsyslogp_r(3).
...
From Takahiro Kambe in PR lib/43301.
2010-05-13 17:48:50 +00:00
plunky
38cd0f0b2e
note const from actual API
2010-05-12 18:37:56 +00:00
plunky
7a1cb70b5e
hid_get_data() will read an extra byte if the data being read ends on
...
a byte boundary. This byte is subsequently discarded, but it could be
a byte from memory after the end of the report being parsed.
Fix this by rounding up and ending the loop one earlier.
2010-05-12 18:28:20 +00:00
mbalmer
c10c30d557
Correctly spell 'acknowledged'.
...
Found by Christian Brueffer.
2010-05-11 16:17:18 +00:00
wiz
968a574a9b
Wording.
2010-05-08 11:35:14 +00:00
wiz
8add53fd8a
Remove double quotes around missing function in BUGS section.
2010-05-08 11:22:58 +00:00
jruoho
c713a498a5
Note POSIX compliance.
2010-05-06 18:55:34 +00:00
jruoho
70a5142faf
Note POSIX compliance. Reword a little around the example.
2010-05-06 11:46:11 +00:00
jruoho
5686044fbd
.Nm -> .Fn.
2010-05-06 11:09:39 +00:00
jruoho
a9d1f49a49
Use standard section headers, as documented in mdoc.samples(7).
2010-05-06 10:49:53 +00:00
jruoho
5df5911ae4
Markup: .Ss -> .Sh, .Fa -> .Fn, offset indent, and use lists in two places
...
for clarity.
2010-05-06 10:40:43 +00:00
jruoho
7f1766c2e5
Small improvements to markup and wording.
2010-05-06 09:46:49 +00:00
jruoho
fc240ff6c6
Small markup improvements.
2010-05-06 09:34:52 +00:00
jruoho
2184425c2a
Note that EBADF is optional for fileno() in POSIX.
2010-05-06 09:18:06 +00:00
jruoho
dccc94a2b3
Put the historical note to its own section. Note that also the other
...
functions (except the _unlocked variants) were in early UNIX versions.
2010-05-06 09:01:34 +00:00
jruoho
aa18298cd3
Note POSIX compliance.
2010-05-06 08:58:57 +00:00
jruoho
4c0553eda5
Correct the discussion about return values: fileno() may fail and return -1.
...
Note that in such cases the NetBSD implementation does not set errno to
EBADF, hence diverging from the standard in this small detail.
2010-05-06 08:14:08 +00:00
wiz
c45196503b
Sort errors.
2010-05-05 22:07:58 +00:00
wiz
0d0949dea8
Mark up NULL with Dv.
2010-05-05 22:05:31 +00:00
jruoho
61d5c5bd31
Note the POSIX compliance (already since SUSv2, '97).
2010-05-05 06:55:57 +00:00
jruoho
59d481ff7f
Upon lukem@'s request, put the list of functions back.
...
XXX: Someone, please keep this up-to-date.
2010-05-05 06:11:14 +00:00
jruoho
12456d3098
Properly enumerate the two special cases. Also some markup improvements.
2010-05-05 06:04:19 +00:00
jruoho
29cfcc518e
Upon lukem@'s request, put the list of functions back.
...
XXX: Someone needs to go through all standard I/O functions in the libc,
update the list, and keep it updated. While at it, please convert the
list to use .Xr so that we can have links in HTML pages.
2010-05-05 04:13:16 +00:00
jruoho
43f2dd8f20
Rework the example a little.
2010-05-04 07:58:28 +00:00
jruoho
dd121e1e5b
Remove the list of functions.
...
This list was updated only two times in nearly two decades.
(If people need to learn the standard I/O functions in C, it would be better
to mention K&R or some other textbook; if people need to know the list of
functions, it would be better to point out the location of the standard.)
In addition, some clean-up and structural editing.
2010-05-04 07:43:12 +00:00
jruoho
c17db6ca32
Remove the list of functions in the libutil library.
...
While such lists are nice, they are doomed to be repeatedly out of date due
maintenance costs related to manual updates. Ideally there should be a
common routine to auto-generate these, but in the meantime, just point to
the directory where libutil is implemented.
2010-05-04 07:07:12 +00:00
jruoho
805fdd4774
Use table instead of a list.
2010-05-04 06:53:35 +00:00
jruoho
45b87028bd
Use .Fn instead of .Nm.
2010-05-04 06:41:27 +00:00
jruoho
0fb5e18e02
Update the -- now quite big -- list of unsupported Linux options.
2010-05-04 06:13:43 +00:00
christos
bbde328be4
Build the modules in two phases:
...
1. build the static modules first, before libpam so that the static
libpam can link against the module .a files.
2. build the modules after the dynamic libpam is build, so that the
dynamic modules can link against the dynamic libpam.
2010-05-03 22:12:32 +00:00
christos
7283382b7f
make the dependency to libpam, explicit. Fixes afpd in pkgsrc. From Mark Davies
...
XXX: Should be pulled up to 4.x and 5.x.
2010-05-03 12:58:09 +00:00
jruoho
26a87898ae
Fix previous commit by also moving the type of _malloc_options. In addition,
...
add a (commented) note that _malloc_message should be documented better.
2010-05-03 08:23:20 +00:00
jruoho
60d71be703
Move the '_malloc_options' variable from malloc(3) to jemalloc(3).
2010-05-03 08:11:57 +00:00
jruoho
49bb3cb02e
Note the problems with SSP.
2010-05-03 06:11:38 +00:00
jruoho
40c884b1c3
Note secure_path(3) in SEE ALSO.
2010-05-03 05:53:56 +00:00
jruoho
e206128379
.Nm -> .Fn, and one .Pp.
2010-05-03 05:40:37 +00:00
jruoho
f08e16091d
Note that rest of the functions come from C99.
2010-05-03 05:35:58 +00:00
jruoho
ef40c024f6
Move the examples to where they belong, in EXAMPLES.
2010-05-03 05:11:34 +00:00
jruoho
26e9ae259a
Split the implementation details of malloc(3) to a separate jemalloc(3)
...
manual page. This way malloc(3) can follow the standard terse format used
elsewhere in the libc, while additional details can be added to jemalloc(3).
Note HISTORY and AUTHORS in jemalloc(3), and add some reading material to
SEE ALSO.
2010-05-03 05:01:53 +00:00
jruoho
a80a543b80
Add more markup.
2010-05-03 03:47:51 +00:00
pooka
d16346a23e
If P2K_DEBUG is given, also dump rump kernel event counters when
...
file system is unmounted.
2010-05-01 14:44:48 +00:00
jruoho
280488d6bc
Note that the return type sould arguably be intmax_t instead of long long.
2010-05-01 08:35:52 +00:00
jruoho
061351141b
Remove the (incorrect) note about inconsistent return values. Name the exit
...
code as EXIT_FAILURE instead of integer 1.
2010-05-01 08:30:00 +00:00
jruoho
413ef23a32
Add more bugs. Namely, besides the return values that are confusing, no
...
function in a modern standard C library, exposed by <stdlib.h>, should be as
easy to (buffer) overflow as strsuftollx(3).
In addition, improvements to wording and markup.
2010-05-01 08:12:30 +00:00
jruoho
4519228649
Improvements to wording and markup.
...
In addition, list more bugs and caveats. Namely, the NetBSD implementation
(like the FreeBSD one where this was ported to) requires that the comparison
keys are allocated dynamically, and that hdestroy() will try to free(3) each
key. This obviously severely limits the portability, given that other
implementations (for example, the Linux one) make no such assumptions. Both
approaches are legitimate, and thus the real bug is in the ambiguity of the
standard.
2010-05-01 06:18:03 +00:00
jruoho
a293ac8fcc
Rewrite the HISTORY section.
2010-04-30 10:24:02 +00:00
jruoho
eecb0b5e2c
Put the period outside the quotation marks.
2010-04-30 10:09:23 +00:00
jruoho
cb375ee477
Add STANDARDS and CAVEATS. The latter notes the ambiguity of tdelete() when
...
deleting the root node.
2010-04-30 10:06:52 +00:00
jruoho
68cb312101
Remove the note about eaccess(); no such thing in NetBSD.
2010-04-30 09:41:59 +00:00
jruoho
42e4725801
Also: in the example EOVERFLOW is probably better than ENOMEM.
2010-04-30 07:16:35 +00:00
jruoho
67e69a6bf8
As err(3) instructs, use EXIT_FAILURE in the example.
2010-04-30 07:14:15 +00:00
jruoho
75d4d306c5
Steal the "malloc() vs. calloc()" -idiom from the OpenBSD's malloc(3).
...
While it may be debated how useful this is, good idiomatic usage examples
are exactly the kind of thing one would hope to see more in manual pages.
2010-04-30 07:00:51 +00:00
wiz
779fbbb100
Wording.
2010-04-30 06:54:16 +00:00
wiz
5a5627574d
Sort errors.
2010-04-30 06:51:52 +00:00
wiz
0264ec21bd
Merge two entries for the same error.
2010-04-30 06:48:20 +00:00
jruoho
54f0f8584b
Use a SECURITY CONSIDERATIONS instead of the BUGS section, and steal this
...
section from FreeBSD (with minor modifications).
2010-04-30 06:34:23 +00:00
jruoho
1ad0e6c25b
Put SECURITY CONSIDERATIONS as the last section.
2010-04-30 06:23:56 +00:00
jruoho
2f941c83c7
Fix the mess in the sections; someone went to sleep in the middle of a
...
sentence...
2010-04-30 06:22:28 +00:00
jruoho
b0e9ddf609
They've finally made gets(3) obsolete (in POSIX, at least).
2010-04-30 06:00:14 +00:00
jruoho
1b80a21f09
Add HISTORY.
2010-04-30 05:56:14 +00:00
jruoho
fba71b9825
Marked as legacy already in SUSv2; removed in POSIX 2001.
2010-04-30 05:50:46 +00:00
jruoho
d307542670
Deprecated in POSIX (rev. 2008).
2010-04-30 05:09:23 +00:00
jruoho
4078f3e9d1
Also tmpnam(3) and tempnam(3) are now obsolete in POSIX.
2010-04-30 04:55:10 +00:00
jruoho
92370ee67d
Interestingly, the committees plan to remove also isascii(3) and toascii(3)
...
in the future.
2010-04-30 04:46:18 +00:00
jruoho
70d2311835
More obsolete things. These are all already deprecated in NetBSD, but it is
...
worth noting that also the standard has marked these as legacy.
2010-04-30 04:39:16 +00:00
jruoho
a2ebffc113
Reference timeradd(3).
2010-04-30 04:17:45 +00:00