Commit Graph

1748 Commits

Author SHA1 Message Date
christos
8cda436bf2 fix compile error. 2008-10-31 17:49:48 +00:00
christos
1c6aec2060 Import syslogd SoC project by Martin Schuette:
- new syslog protocol api syslogp(3) that supports structured data
	  and draft-rfc timestamps
	- reliable tcp connections with queueing
	- encrypted connections
2008-10-31 16:12:18 +00:00
dogcow
990e83b99d appease lint: warning: assignment in conditional context [159] 2008-10-22 02:17:29 +00:00
christos
b602f406f7 - vsyslog_r only closes if it opened
- maintain opened properly
- preserve the tag (from OpenBSD)
2008-10-21 21:00:31 +00:00
lukem
2060495782 fix unused variable if !defined(FTS_ALLOC_ALIGNED) 2008-09-27 15:12:00 +00:00
lukem
7fb0a8b2f3 Add fts_free() to complement fts_alloc(), and use instead of free().
Should avoid a memory leak on systems without ALIGNBYTES.
2008-09-20 00:14:12 +00:00
christos
6f1e299202 From Ilya Dogolazky: Fix return value doc. 2008-09-17 22:08:52 +00:00
rmind
0f80b1578d Arguments were swapped for cpuset_set(), cpuset_clr(), cpuset_isset()
functions, but man pages were not updated (hi Christos!).
2008-09-12 13:39:04 +00:00
apb
a1dad6e718 Fix some errors in examples, noticed by Robert Elz:
* use \e in the source to get a backslash in the output.
* test whether the result from shquote[v]() is -1 before, not after,
  adding 1 to it.
2008-09-07 08:55:46 +00:00
lukem
490ac90f8e Add strunvisx(3) as a link to unvis(3) 2008-09-05 04:52:34 +00:00
lukem
6fb06e2c97 In strsvisx(), don't attempt to read the "next" character past the end
of the provided length.
2008-09-04 09:41:44 +00:00
christos
80a5932343 setup _POSIX2_C_BIND per SUSv3, from Andy Shevchenko 2008-08-27 08:56:49 +00:00
lukem
4638a08a72 Use Qq instead of Qc to quote a single word 2008-08-26 05:04:19 +00:00
matt
c331e46238 Add support for missing _SC_* constants for sysconf().
From andy dot shevchenko at gmail dot com
2008-08-06 17:17:03 +00:00
dsl
9edd12efca Change the gross #defines HVIS and SVIS into local functions. 2008-07-25 22:29:23 +00:00
matt
48717a981d Move rb.c from sys/lib/libkern to common so it can be in both libc and libkern. 2008-06-30 19:03:59 +00:00
ad
2a7116daf3 ttyname_r is another of the strange functions that returns its error code
instead of setting errno.
2008-06-25 11:47:29 +00:00
ad
3ae2f84118 Add _SC_TTY_NAME_MAX. 2008-06-25 11:46:11 +00:00
ad
5f64faa3a9 Add getlogin_r. Manual page changes mostly lifted from FreeBSD. 2008-06-25 11:10:24 +00:00
ad
d29b52efe8 Return -1 for the unsupported realtime extensions. 2008-06-25 11:09:20 +00:00
ad
e7bd22925c A few more POSIX defs for threads. 2008-06-24 14:06:55 +00:00
wiz
688c5830e1 Clarify a sentence. 2008-06-22 08:25:26 +00:00
he
842f96408c Correct the use of MLINKS for the cpuset_* manual page links.
The value for MLINKS is a list of pairs, where the original manpage
is listed first in each pair...
2008-06-17 00:10:54 +00:00
rmind
e6acd90e07 - Add affinity(3) manual page, which describes thread affinity,
pthread_setaffinity_np(3) and pthread_getaffinity_np(3) functions,
  provides simple code example.
- Add cpuset(3) manual page, which describes API of CPU-sets.

Thanks <wiz> for many improvements!
2008-06-16 14:25:49 +00:00
christos
22c4053358 PR/38539: Ed Ravin: libc/gen/syslog.c always logs to console if LOG_CONS is set.
While here:
1. Don't loop forever, handle closing and opening the log after each send.
2. Release the lock later, after we've possibly printed to the console.
2008-06-12 20:43:14 +00:00
enami
ed3ed8f740 Refer sigprocmask(2) instead of non existing sigmask(2). Also, xref
sigprocmask(2) and pthread_sigmask(3).
2008-05-31 16:15:07 +00:00
ad
27d03b16a5 Fedora Core 9 doesn't provide ARG_MAX, so use _POSIX_ARG_MAX if it's
not available.
2008-05-26 13:06:38 +00:00
christos
8e11cb8cb8 undo the constification of the argument. Per opengroup. 2008-05-10 22:39:40 +00:00
tonnerre
34f7daa87e Fix a bug in the implementation of seekdir(). If the first entry in
a block has been unlinked, seekdir() may overshoot by one entry.
Thus, _readdir_unlinked() must not skip deleted entries when being
called from seekdir().
Christos agreed.
2008-05-04 18:53:26 +00:00
martin
cd22f25e6f Move TNF licenses to 2 clause form 2008-05-02 18:11:04 +00:00
christos
5614cf4051 Mention errno settings on failure. 2008-04-30 14:51:10 +00:00
martin
11a6dbe728 Convert TNF licenses to new 2 clause variant 2008-04-30 13:10:46 +00:00
martin
3028e483e4 Convert to new 2 clause license 2008-04-29 06:53:00 +00:00
martin
ce099b4099 Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
plunky
043900c0cb constify dirname(3) and basename(3) 2008-04-23 07:53:26 +00:00
apb
01a2b8e8ab Clarify the range of the result from toascii. 2008-04-17 16:41:00 +00:00
apb
576ccca3eb When given negative inputs, isascii returns false. Clarify that
it checks for the range 0 to 127, not "less than or equal to 0177".
2008-04-17 16:40:20 +00:00
apb
a754895afc Refer to the CAVEATS section of ctype(3) for more information. 2008-04-17 16:25:36 +00:00
apb
bafb5bb96d * Expand the CAVEATS section with a lot more detail on how to safely
use the ctype functions.
* Use toupper((int)(unsigned char)*s)) instead of just
  toupper((unsigned char)*s) in an example.
2008-04-17 16:24:40 +00:00
njoly
3c71964512 Fix _SC_MQ_OPEN_MAX/_SC_MQ_PRIO_MAX sysctlgetmibinfo calls.
The corresponding sysctl nodes are available under kern.mqueue tree.
2008-04-09 18:37:04 +00:00
rtr
f2575a3983 whitespace fix 2008-04-05 08:01:54 +00:00
dholland
5b571a159f Add a note clarifying that getprogname() results are not trustable in a
setugid environment. Prompted by PR 38327 discussion.
2008-03-29 16:51:40 +00:00
lukem
da757a063f Style tweaks:
* test defined(HAVE_foo) not just HAVE_foo
* replace u_foo with unsigned foo
* the whitespace change whose name we dare not mention
2008-03-10 01:18:44 +00:00
yamt
b82fd04ee9 sysconf: cache the result of _SC_PAGESIZE. 2008-03-08 13:34:40 +00:00
ad
1046045268 Keep one builtin slot so that pthread initialization doesn't need to use
malloc().
2008-03-07 17:56:39 +00:00
christos
5b9284aa07 GLOB_NO_DOTDIRS patch from mouse@
Fixes re-definition of GLOB_PERIOD.
2008-02-22 18:33:51 +00:00
jmmv
2630bb2c25 Document dehumanize_number(3). 2008-02-09 09:09:04 +00:00
christos
0d149bc5fe Add csetexpandtc() 2008-02-02 20:56:46 +00:00
christos
56709adfc9 Try to fix previous commit of /.. and /. handling for GLOB_PERIOD. I will
write a regression test for this.
2008-02-01 23:29:54 +00:00
apb
9eaab5ee00 Mention use of /var/run/dev.db, and add .Xr dev_mkdb 8 .
Could somebody update the HISTORY?
2008-01-30 19:24:59 +00:00