Commit Graph

14166 Commits

Author SHA1 Message Date
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
jruoho eccc1c42e1 Add STANDARDS section. Note that both functions were marked as obsolescent
in POSIX (2008); "timer_gettime(2) and timer_settime(2) should be used".
2010-04-30 04:15:49 +00:00
jruoho 71a03dd7f6 Small improvements to wording and markup. 2010-04-30 04:06:20 +00:00
jruoho c6d218be32 .Nm -> .Fn. 2010-04-30 03:52:13 +00:00
pooka 30df4c9f8c If vfstype is MOUNT_RUMPFS, assume we don't actually want to mount
a file system, but attach to the root in the fs namespace of a rump
kernel.
2010-04-29 22:34:21 +00:00
jruoho ec4fdaa41e It was nice to expect fts(3) to appear in the '88 revision. But perhaps
people had too high hopes.
2010-04-29 17:39:03 +00:00
jruoho 934551e44a No more usleep(3) in POSIX; "use nanosleep(2) instead". 2010-04-29 17:29:56 +00:00
jruoho 6adec4717c Fix markup. 2010-04-29 17:17:18 +00:00
jruoho 3d0a5d8f1c Note that also POSIX has deprecated utime(3). 2010-04-29 17:07:00 +00:00
jruoho 648a1295d8 Fix the standards: utimes(2) is still in SUSv4, although marked as legacy. 2010-04-29 17:02:38 +00:00
jruoho 61564b38a1 Note the ambiguity of the return value in the BUGS section.
From Christian Biere <christianbiere@gmx.de> in PR #39392.
2010-04-29 10:03:12 +00:00
joerg 79b996cbc6 Don't mix opening and closing macros of different types. 2010-04-29 08:35:03 +00:00
jruoho c25207d763 Note POSIX compliance. 2010-04-29 08:06:21 +00:00
wiz 0c57838d7b Sort errors. 2010-04-29 07:31:02 +00:00
wiz 3292536e4b Add punctuation. 2010-04-29 07:27:30 +00:00
wiz a917229f2a Improve a sentence. 2010-04-29 07:26:39 +00:00
jruoho c792ab3e8e Note that utimes(2) no longer enjoys the blessing of POSIX. 2010-04-29 07:14:35 +00:00
jruoho 157d0c3eea Add some STANDARDS lingo, mainly to note the functions that have been
removed from POSIX (2008).
2010-04-29 06:54:26 +00:00
jruoho c329b28a22 Properly mark the standard that "deprecated" all of these. 2010-04-29 06:07:35 +00:00
jruoho 8cd9bb9479 Note the recent changes. 2010-04-29 05:42:04 +00:00
jruoho 092ff05778 Note that the ucontext(2) et. al. were first moved from X/OPEN extensions to
the base POSIX-2001 and later marked as obsolete in POSIX-2008.
2010-04-28 14:07:03 +00:00
jruoho 2da6d4a4d9 Only put the actual header for the .In line. 2010-04-28 07:47:09 +00:00
jruoho 494f19760f Reference ffs32(3). Also note POSIX compliance and the movement of the
header from <string.h> to <strings.h>.
2010-04-28 07:44:04 +00:00
pooka db171f695e Add rumpuser interface to fetch number of host cpus. 2010-04-28 00:33:45 +00:00
jruoho fca63cde02 Note POSIX compliance. 2010-04-27 15:26:59 +00:00
jruoho 4efab6a05e Use .In for includes and .Va when listing the structure members. 2010-04-27 15:16:28 +00:00
jruoho 5430c65883 .Pp after .Ed. 2010-04-27 14:26:52 +00:00
wiz eba2c99734 Various fixes, mostly for typos. 2010-04-25 10:32:44 +00:00
joerg b9cf7d31ab Add the constant database reader (cdbr(3)) and writer ((cdbw(3)).
They implement a space efficent write-once database with fast access
path. Switch the services(5) database to use cdb. The size of the
database file decreases from 2.1MB disk space to 307KB. Access
performance is about the same if setservent(0) is used and about an
order of magnitude faster otherwise. services_mkdb defaults to the new
format, but can optionally create the old db(3) format as well for
statically linked legacy applications.
2010-04-25 00:54:44 +00:00
dholland df62afc03b Edit previous HISTORY patch for style; note our 64-bit time_t change.
Bump date.
2010-04-24 01:35:50 +00:00
drochner d4def06880 -build ldexp/frexp/modf locally again rather than relying on libc
reaching over, to get things into a sane state,
-do the usual namespace protection game with scalbn(f) because it
 is used internally
(more symbol renamings are necessary)

The weak_alias change for mc68881 is untested.
2010-04-23 19:17:07 +00:00
drochner 87941501db use the local versions of ldexp/frexp/modf again rather than pulling
in libm source code. The libm functions depend on other libm functions,
this requires symbol renaming, and with the reachover method this
is going to be a mess. Also, bundling the dependencies into one .o
file has the potential to cause symbol conflicts on static linking.
2010-04-23 19:04:54 +00:00
jruoho 829390ffbf gcc -> GCC, offset indent. 2010-04-22 13:41:40 +00:00
jruoho 69cf4af7f3 Use .In for includes. 2010-04-22 08:00:34 +00:00
pooka a08942d291 Actually, support rumpuser_kill() only on NetBSD, since signal
numbers may not match on non-NetBSD hosts.
2010-04-21 11:16:41 +00:00
pooka 3cc6a65772 Add rumpuser_kill, which sends a signal to a host process. 2010-04-21 11:13:29 +00:00
christos ca8b6091c1 Use the same hack for Solaris and MacOS/X. This is not right, we only really
support UTF-8, but it will get us going until this is fixed properly.
From Jess Thrysoee
2010-04-20 02:01:13 +00:00
christos 72c00e4a7a \033 is more portable than \e still. 2010-04-18 21:17:47 +00:00
christos df810c5405 ffs needs strings.h 2010-04-18 21:17:22 +00:00
christos d29e250074 shame on solaris that is the last OS not supporting $() 2010-04-18 21:17:05 +00:00
apb 67ca6b24d2 The number of byte pairs to swap is len/2, not len/2+1. 2010-04-18 11:39:39 +00:00
apb fa3abaaeb7 Bitwise operations on signed types are well-defined if the values
happen to be positive, and indeed the values here were guaranteed
to be positive, but some compilers complained anyway, so convert
the bitwise operations to arithmetic operations.
2010-04-18 10:51:33 +00:00
christos d403570167 simplify 2010-04-18 04:54:33 +00:00
christos 665a4f86a1 fix lint 2010-04-17 21:42:43 +00:00
wiz 96a3ffaf7c Remove trailing whitespace. 2010-04-17 20:29:20 +00:00
wiz 8cd16a22d0 Join URL. 2010-04-17 20:28:47 +00:00
christos 885d0edc52 Change and document for POSIX compliance. 2010-04-17 17:57:39 +00:00
christos b2cf198a4c add restrict 2010-04-17 17:50:13 +00:00
jruoho 6d890644fe Use the common template for the USENIX paper. Add URL. 2010-04-17 10:08:21 +00:00
christos 839bac947e From Jess Thrysoee
- Fix wint_t to Int confusion
2010-04-15 00:57:33 +00:00
christos 5443e9b772 From Jess Thrysoee
- use nl_langinfo to test for UTF-8, because some locales are UTF-8 without
     reflecting it in their names.
2010-04-15 00:56:40 +00:00
christos a5b37ffc65 From Jess Thrysoee
expose ct_enc_width()
2010-04-15 00:55:57 +00:00
christos 939651fa2b From Jess Thrysoee
- NARROW_HISTORY and IGNORE_EXTCHARS should not take effect if locale is UTF-8
- account for multi byte char length in
2010-04-15 00:52:48 +00:00
christos b77d4fa5c5 From Jess Thrysoee: call setlocale so we can test UTF-8 2010-04-15 00:50:46 +00:00
christos a9dd944f6b From Jess Thrysoee: add ifndef around def of _GNU_SOURCE 2010-04-15 00:50:03 +00:00
pooka 2734e549f0 Some _t purification. no functional change. 2010-04-14 14:15:48 +00:00
wiz 24e353786d Join URL. 2010-04-14 13:07:19 +00:00
jruoho 16a83e93ba Add the USENIX paper of Miller and de Raadt to SEE ALSO. 2010-04-14 11:07:20 +00:00
wiz 3877f39979 Sort ERRORS. 2010-04-14 09:10:30 +00:00
jruoho 99e0ab963b Use a list and sort it by the entries in the structure. 2010-04-14 09:06:00 +00:00
jruoho 354bfa433d Add offsets to the indentation in couple of places. 2010-04-14 08:57:21 +00:00
jruoho 8e36ebc45f Bump date for previous. (How hard can it be to remember this.) 2010-04-14 08:49:49 +00:00
jruoho 85eede30d6 Use subtitles instead of a list. 2010-04-14 08:47:19 +00:00
njoly 378ab16605 Add missing double quote. 2010-04-14 07:20:27 +00:00
wiz 957fbddadb Uncomment pdf link for paper. 2010-04-13 10:45:46 +00:00
jruoho 175f8fdaa8 Add the USENIX paper of Jonathan Lemon to SEE ALSO. 2010-04-13 09:24:09 +00:00
wiz e80bcec341 New sentence, new line. Sort errors. Remove trailing whitespace. 2010-04-06 14:26:59 +00:00
christos ca843a73b0 PR/43128: Paul Koning: Threads support in ptrace() is insufficient for gdb to
debug threaded live apps: Add an optional lwpid in PT_STEP and PT_CONTINUE to
indicate which lwp to operate on, and implement the glue required to make it
work.
2010-04-06 13:50:22 +00:00
joerg 20fc76af98 Fix escape sequences 2010-04-05 21:35:36 +00:00
joerg 727da1104c \\ -> \e 2010-04-05 21:33:54 +00:00
joerg ffec7f50c0 Fix escape sequences 2010-04-05 21:33:25 +00:00
joerg eff7f134e1 \\ -> \e 2010-04-05 21:29:47 +00:00
joerg 1ff41cb93a Fix escape sequences 2010-04-05 21:29:09 +00:00
joerg a3d484cd9e \\ -> \e 2010-04-05 21:25:01 +00:00
wiz 1bc7bb47a0 Sort ERRORS section. 2010-04-05 07:53:47 +00:00
wiz a59af7eb39 Fix date. 2010-04-05 07:44:28 +00:00
jruoho a6664c93e0 Mention the history of stat(2) and fix the history of open(2). 2010-04-03 15:48:52 +00:00
jruoho 22451322a2 The functions read(), wait(), and write() appeared already in v2 UNIX. 2010-04-03 15:43:46 +00:00
jruoho 7e0f77d0f3 Add a history section. From OpenBSD. 2010-04-03 15:42:22 +00:00
jruoho e029f37fb0 An unlink() appeared already in v2 UNIX. 2010-04-03 15:35:06 +00:00
jruoho 22c60c14ce Add some history. 2010-04-03 15:13:43 +00:00
jruoho c1b7f739cf Some interesting additions to the history section. From OpenBSD. 2010-04-03 14:49:31 +00:00
jruoho 086a18e995 Trivia: one .Pp after .El, speak about NULL instead of nil pointers, etc. 2010-04-03 14:40:34 +00:00
pooka 69381b7a05 fix a few pastos 2010-04-01 09:57:00 +00:00
mrg d5a3d97bc4 build s_frexp.c, s_ldexp.c and s_modf.c here for new platforms, since they
don't exist as compat functions in libc.

current list of new platforms: powerpc64.

from dennis.c.ferguson@gmail.com in PR#43042.  idea to not put compat
functions into new platforms from drochner@netbsd.
2010-03-29 06:59:42 +00:00
tnozaki 542176520a woops, fogot to include limits.h. 2010-03-28 18:19:52 +00:00
tnozaki 19f5aa7162 MB_LEN_MAX should moved from MD to MI. 2010-03-28 14:08:22 +00:00
tnozaki 186e12cc6b avoid mbrtowc/wcrtomb buffer overrun when CPUARCH=hppa and MB_CUR_MAX > 6.
it is not usual case(merely used such mutibyte locale, eg. ja_JP.ISO-2022-JP).

[background]
before merging minoura-xpg4dl branch(2001), we argued and decided to increase
MB_LEN_MAX 1 -> 32 all CPUARCH(*but* we forgot to change it MD to MI).

without knowing that NetBSD/hp700(mergeing -current 2002) incorrectly set
MB_LEN_MAX=6 (maybe this value taken from FreeBSD). but our setlocale(3)
assumes __mb_len_max_runtime as 32, so that mbrtowc/wcrtomb may overrun.

we have to increase hppa's MB_LEN_MAX upto 32, and change it MD to MI
next libc major bump(scheduled next release 6.0).
2010-03-28 14:05:09 +00:00
tnozaki 377cb4e4f9 1. {wctype,wctrans,mbstate}_t: switch MD to MI like other
libc implementation (such as *BSD and glibc2).

2. don't typedef void * wc{type,trans}_t, suggested by soda@-san.
   it may pass through compiler type check, it's harmful.
   so i introduce dummy struct __tag_wc{type,trans}_t(iconv_t already does).

no ABI change was made.
2010-03-27 22:14:09 +00:00
christos 533e2fe94f fix tpo. 2010-03-27 16:47:05 +00:00
tnozaki 5ad520e6d1 _locale_cache_t: change ldata and items to pointer for future binary compatibility. 2010-03-27 15:25:21 +00:00
explorer fc70b598c4 fix the pthread pt_lid in the fork callback function that runs in the child instead of a function that may be going away. KNFify 2010-03-25 01:15:00 +00:00
explorer 3f82e012db Correctly set pt_lid in the child, after a fork 2010-03-24 07:27:22 +00:00
drochner 1982972a07 catch up with the __RENAME of nanosleep(2) a while ago, otherwise we
get the compatibility function which assumes a different struct timespec
2010-03-23 20:35:44 +00:00
drochner ebfe3c0a28 remove some stray __weak_aliases, where the target functions were
__RENAMEd due to the time_t/dev_t type changes, which caused bogus
references to compat functions
now a libc built with BUILDCOLD is usable
2010-03-23 20:28:58 +00:00
christos f576147073 https://bugzilla.redhat.com/show_bug.cgi?id=575383
Handle EINTR properly.
2010-03-22 22:59:06 +00:00
joerg e382e1d38b Use .In instead of .Aq Pa and variantes for header files. 2010-03-22 22:00:37 +00:00
joerg f63b030c15 Use .In instead of .Ar Pa for header files. 2010-03-22 21:58:31 +00:00
joerg f70c7c0422 Use .In instead of .Ar Pa 2010-03-22 21:56:05 +00:00
joerg 3c70878e9a Use .In instead of .Ar Pa for headers. 2010-03-22 21:55:06 +00:00
joerg 1c3412fa2f Use .In for header files instead of .Ar Pa and variations. 2010-03-22 19:30:53 +00:00
jruoho 66475d5b9d Break the (too) big lead paragraph into three smaller ones. 2010-03-22 13:15:54 +00:00
pooka 1019474331 Wrap DOCALL and DOCALL_KLOCK in a new block (for easy adding of
debug prints before them.

XXX: can't use the standard do-while0 because lint doesn't like it.
2010-03-22 09:39:02 +00:00
mrg 3bdcb2e4b5 add a nop to provide enough space for the linker and long calls.
fixes link errors with 'cerror' and libposix.

from dennis.c.ferguson@gmail.com in PR#43010.
2010-03-22 02:17:23 +00:00
mrg 093c642fac replace kernel-only 'stmd' and 'lmd' operations in userland with equivalent
sequences of code, as done in eg, powerpc64/gen/_setjmp.S rev 1.2.

from dennis.c.ferguson@gmail.com in PR#43009.
2010-03-22 01:39:11 +00:00
mrg 4e60bef737 convert -idirafter to -isystem, as recommended by cgd in PR 11843.
most of the list in that PR were already done.
2010-03-22 01:29:29 +00:00
jruoho 67dcd1d1f0 Bump date for previous. 2010-03-21 20:38:20 +00:00
jruoho 341372abaa Note inttypes(3) also here. 2010-03-21 20:34:52 +00:00
jruoho 61f4a4ebdc Mention the recommended usage of inttypes(3) when applicable. 2010-03-21 19:55:19 +00:00
jruoho ab524958e3 Emphasize imaxint_t. 2010-03-21 13:39:51 +00:00
tnozaki 56bf19aaea fix byte order mark related bug introduced by previous commit,
reported by Sverre Froyen via current-user, thanks!
2010-03-20 18:15:32 +00:00
joerg ec66a10c91 Namespace protection for mi_vector_hash. 2010-03-19 18:11:30 +00:00
tnozaki 36a8b8869c 1. fix wrong byte order mark of utf-16, reported by NARUSE Yui -san.
patch provided by tshiozak@ -san.

2. don't eat 0xfeff/0xfffe if they don't appear at the first of bytestream.
noticed y tshiozak@ -san, patch provied by me.

thanks a lot.
2010-03-15 15:00:58 +00:00
mrg 19499f3f8d update all of these makefiles for the .so -> .pico change.
most of them are most harmless, but the libgcc parts are quite essential.
before this change, all the special rules for .pico files were not applied,
and exception handling wasn't enabled.  this caused c++ exceptions not to
work on sparc64.


this fixes the build of boost-headers (it was correctly calling exception
support broken!), which in turn makes all the things that depend upon it
to actually work again on sparc64.
2010-03-14 00:26:09 +00:00
uwe 6fc217346b Add memset to libkern on vax, moving existing memset.S to src/common.
While kernel source code is supposed to use <machine/macros.h> via
<sys/param.h> and pick an inline asm version from there, gcc itself
can generate direct calls to memset() for structure initialization, so
the symbol must be provided.

Fixes INSTALL kernel, for which -Os caused gcc to use memset() call to
initialize a struct in uvm_fault_internal().
2010-03-12 09:12:34 +00:00
pooka b405c8d23e mfs is a bit off in the sense that mount(2) doesn't return since
mfs uses the mounting process for the backing store memory.  I
guess mfs could be fixed to just reference the process vmspace and
let it return, but that would probably cause wait() to return for
other worms.  So it's easier to dance according to mfs's tune: if
mounting mfs, create a thread for extra execution context.
2010-03-08 12:38:14 +00:00
snj d4a6f9b098 These functions are going to first appear in 5.1, not 6.0. 2010-03-08 02:35:50 +00:00
snj b513aa9a56 Fix broken RCSID. 2010-03-08 01:05:20 +00:00
dholland d5343f0177 indentation/whitespace 2010-03-07 23:49:14 +00:00
dholland 97e205be98 remove stray semicolon 2010-03-07 23:45:22 +00:00
pooka 05e0f1dba9 Update to use newstyle rump_module interfaces. 2010-03-05 18:49:30 +00:00
pooka c2efc59235 During bootstrap, process all modinfos in a DSO in one go. Get
rid of dependency tricks, since they are no longer necessary.
2010-03-05 18:47:49 +00:00
enami 3df6d33667 Fix race condition on reallocation of huge category.
We need to remove the old region before mremap() since if it relesae the
old region, other thread may map it for the same huge category allocation
and insert it to the tree before we acquire a lock after mremap().

Fixes PR/42876.
2010-03-04 22:48:31 +00:00
roy 1f27d9b179 Convert padding for unknown capabilities as well. 2010-03-04 15:35:26 +00:00
roy 6855db0f30 Convert padding and give terminfo some default assumptions about termcap. 2010-03-04 15:16:39 +00:00
roy ca77b139e2 Abort an error. 2010-03-03 12:09:49 +00:00
roy 4b2d6106cf Use _ti_get_token instead of strsep when parsing termcap entries.
This allows us to handle \E\ as a valid sequence.
2010-03-02 14:11:11 +00:00
christos 4fc887422c - KNF
- fix hertz()
- fix error and warning messages
2010-03-01 19:52:38 +00:00
pooka 15a168ac89 Join today's manpage mania by updating this to reflect the current
situation a "little" better.
2010-03-01 17:20:44 +00:00
pooka 510a73e003 Introduce RUMP_COMPONENT. It behaves mostly like a simplified
module which is linked into the kernel and cannot be unloaded.
The main purpose is to get the proper constructors run and create
any /dev nodes necessary for said component.  Once more of the
kernel (e.g. networking stack and device drivers) are converted to
MODULE and devfs pops up from somewhere, rump components can be
retired.
2010-03-01 13:12:19 +00:00
roy c6aefd4d60 Escape , when converting to terminfo. 2010-03-01 11:02:31 +00:00
dholland 5c7d0d1fb6 compile.c needs sys/endian.h; PR 42875 from Henning Petersen. 2010-03-01 01:59:48 +00:00
pooka 6e4a9f9133 librumpuser is not _KERNEL code and does not belong in sys. Move
the source files from src/sys/rump/librump/rumpuser to src/lib/librumpuser
(from where it is already built).  Even so, keep rumpuser.h in
sys/rump/include for kernel source tree self-containment.
2010-02-26 18:54:20 +00:00
wiz 6d85ff35e1 '>' replacement for HTML output, be explicit about slash. 2010-02-26 07:03:49 +00:00
roy 007ba6f7e2 Implement captoinfo so that we can convert $TERMCAP into $TERMINFO.
We don't currently map %> %B %D.
That means no conversion for regent100, hz1500, act4, act5, mime terms.
2010-02-26 00:09:00 +00:00
roy 478e5b9ae4 If we only have a name then we flatten to an alias. 2010-02-25 23:44:02 +00:00
matt 7b012669b8 Adapt to <powerpc/spr.h> breakup. 2010-02-25 23:34:54 +00:00
wiz d2a81ca5b2 Uncomment crash(8) reference. 2010-02-25 17:15:55 +00:00
drochner 90f3894847 fix wrong widechar assignment for "up arrow" 2010-02-25 10:56:24 +00:00
drochner d32fd438b1 document wsyncup/wsyncdown/wcursyncup 2010-02-24 13:02:13 +00:00
drochner 452834f264 misc fixes and improvements:
-call setlocale(LC_CTYPE, "") before nl_langinfo(CODESET) if the
 locale settings is (still) at "C" - otherwise the CODESET doesn't work
-fix the type of the WACS_* symbols -- this needs to be cchar_t*
-add safeguards where the return value of wcwidth() is used for
 loop counters or indexing -- it can be -1
-use more common code in the widechar support case -- in particular
 let the wchar functions do the work even if chtype ones were called
-implement wcursyncup/wsyncup/wsyncdown
-somewhat experimental: allow ACS_* variables to refer to WACS_*
 table entries -- this way, programs using the old chtype using API
 can use UTF8 line drawing on terminals which support UTF8 but not
 ACS switching
-fix some logics bugs in UTF8 recognition and ALTCHARSET handling
2010-02-23 19:48:26 +00:00
roy fde317d2b1 libterminfo can now compile a single terminfo description which allows
$TERMINFO to be a terminfo description as well as a file reference.

This enables the user to modify the terminfo description on read-only
media.
2010-02-22 23:05:39 +00:00
wiz 66c83b53c8 Bump date for previous. 2010-02-20 10:23:04 +00:00
drochner f138ed81f2 explain a non-portable behavior 2010-02-19 19:09:15 +00:00
joerg 7921be2c51 Link libroken against libcrypt for crypt(3). 2010-02-19 17:57:06 +00:00
joerg e8e2c01488 libss uses strupr from libroken, so depend on that. 2010-02-19 17:48:59 +00:00
njoly 62fab5d4b7 Do clean generated terminfo.5 file. 2010-02-19 13:53:17 +00:00
christos 48bf0eec29 Fix a bug reported by Gene, and debugged by Robert Elz. fsck_ffs can coredump
if the timezone file fails to load, due to late initialization of sp->goahead
to false in tzload, causing localsub to return NULL in the "cannot happen"
case. The fix is belt and suspenders:
	- initialize sp->goback and sp->goahead very early in tzload
	- replace all malloc calls with callocs, and remove the bogus
	  casts (it is not the 70's anymore!)
2010-02-17 17:25:55 +00:00
dyoung 20ecd150d5 Link atomic_cas.3 to atomic_cas_{32,64,ptr,uint,ulong}_ni.3. 2010-02-12 22:34:38 +00:00
dyoung ba71f034aa With help from rmind@, describe the non-interlocked (*_ni) variants of
the standard atomic compare-and-swap operations.  Tell some caveats.

Manual page links, *_ni.3 -> atomic_cas.3 are coming up after a
successful 'build.sh distribution'.
2010-02-12 22:23:17 +00:00
wiz 3127fa5dcf Fix typo. 2010-02-12 12:29:10 +00:00
roy 420f923a19 Store the generated compiled terminfo descriptions so that we can build
a consistent library just from source.
2010-02-12 12:18:33 +00:00
martin 33f9f146f2 Fix an array bounds check - fixes PR lib/42793.
Restore a comment (from libterm/tputs.c), requested by jdc.
2010-02-12 10:36:07 +00:00
roy c1a1881ef9 Don't try to map obsolete termcap bc and nl to terminfo. 2010-02-12 10:18:56 +00:00
roy 1bc5794aa0 Change from scroll_forward to cursor_down.
cursor_down is more similar to our old termcap use of nl.
Fixes PR lib/42770.
2010-02-12 10:06:15 +00:00
wiz 6e41b81e29 Oxford serial comma. 2010-02-11 16:28:06 +00:00
roy 45b8382fe3 Include xterm. 2010-02-11 14:49:56 +00:00
roy 2680cfc1a1 Use $TOOL_TIC 2010-02-11 14:44:44 +00:00
roy b32b792e3b Respect TERMINFO_DIRS and document using an embedded database. 2010-02-11 14:36:09 +00:00
roy a2e27dcd47 Use structures so we know how long each description is. 2010-02-11 13:11:47 +00:00
roy 582936ff0d Don't assume the terminal has a description. 2010-02-11 11:45:47 +00:00
roy 0c02e7a2e0 Allow a NULL description. 2010-02-11 09:42:03 +00:00
roy 1aacca65aa Remove silly debug. 2010-02-11 09:34:12 +00:00
roy 90cead5eeb Embed ansi, dumb, vt100, vt220 and wsvt25 compiled terminal descriptions
into libterminfo.
Constify some foo.
2010-02-11 00:27:09 +00:00
roy bf4a786d84 Correct date 2010-02-11 00:22:41 +00:00
roy 64c4b99ad2 We should always generate terminfo.5 to save human error syncing. 2010-02-09 22:16:12 +00:00
roy a017e721b1 Fix an off-by-one error.
Thanks to Matthias Drochner.
2010-02-08 20:45:22 +00:00
wiz 3d24ede313 Sync with terminfo(5): Remove /etc/terminfo.db. 2010-02-06 07:12:25 +00:00
roy 298c3fd52c Don't look in /etc for a terminfo database.
Don't report the rescue database if we did not find the terminal in
there AND we were able to access prior databases.
2010-02-05 19:21:02 +00:00
he 1c8b1eb3f5 More adaptation for ports with unsigned char as char. 2010-02-05 14:39:07 +00:00
roy ae351fab5b Store the aliases against the entry, so that infocmp can reproduce them.
Handy for creating smaller terminfo databases.
2010-02-05 12:31:56 +00:00
roy e0d0a8eecc Allow loading of a terminfo database in /rescue. 2010-02-05 09:42:21 +00:00
roy d8609d0687 Allow hash to be build on other hosts. 2010-02-04 12:25:08 +00:00
roy 7ffeaa6526 Include nbtool_config.h as we need to be part of the terminfo toolchain. 2010-02-04 10:27:08 +00:00
roy eedd9ade82 Fix build issues on other hosts. 2010-02-04 09:46:26 +00:00
roy c4a14cdcf2 Sync terminfo.5 changes into terminfo.5.in 2010-02-04 09:45:30 +00:00
wiz 69221deade More markup. 2010-02-04 09:12:55 +00:00
snj 51684bf8b3 Regenerate to pick up the changes from terminfo.5.in revision 1.3. 2010-02-03 21:02:39 +00:00
roy 3dc9dc4362 Store our generated files in CVS and remove nbperf from the toolchain.
This allows us to build consistent libs without an ever changing hash.
2010-02-03 20:56:54 +00:00
snj 3ca90ff886 Fix some typos and spelling errors. 2010-02-03 18:49:23 +00:00
roy 5632c35d67 Use $HOST_SH instead of calling directly. 2010-02-03 16:13:14 +00:00
wiz f77393ac8a Use Nx. 2010-02-03 15:49:42 +00:00
wiz bbd22f74c1 Sort SEE ALSO. 2010-02-03 15:47:17 +00:00
wiz 1b9ef36433 Punctuation and whitespace fixes. 2010-02-03 15:47:13 +00:00
roy 37c1003344 Remove termcap as we now use terminfo.
OK: core@, jdc@
2010-02-03 15:37:59 +00:00
roy 98eb889579 Userland now builds and uses terminfo instead of termcap.
OK: core@, jdc@
2010-02-03 15:34:37 +00:00
roy 4ca00e00d8 Import my terminfo implementation.
This uses the ncurses terminal definitions.

OK: core@, jdc@
2010-02-03 15:16:32 +00:00
wiz 368f216930 Remove trailing whitespace. Use Fn when referencing functions. Sort sections.
New sentence, new line.
2010-02-03 08:47:40 +00:00
christos e89ba73a47 According to TOG:
- asctime{,_r}, ctime{,_r} may return NULL; document that, and avoid coredumps.
- gmtime{,_r}, localtime{,_r} may return NULL and set EOVERFLOW, document and
  set errno.
- when mktime returns (time_t)-1, make it set EOVERFLOW and document it.

XXX: Should be pulled up to 5.x
2010-02-02 19:04:37 +00:00
is 45845cf0d7 Print AppleTalk phase 2 range, too, if available. 2010-01-29 22:26:48 +00:00
drochner b1a1fc216d fix return values for atan2(+-0,+-0) in the POSIX case 2010-01-27 20:23:53 +00:00
drochner 7033707525 retire pw_policy(3) -- it is not found useful, there are other
(more common) ways to enforce a password strength policy
approved by elad
2010-01-27 19:10:30 +00:00
drochner 6cbc5cbff1 fix behavior in case of +-Inf or NaN input: return the proper
values and set *iptr
(This code is only used under non-default build options, and on m68k.)
2010-01-27 14:10:41 +00:00
drochner f12889bbfb fix return value in case of NaN input
(the code also shortcuts the +-inf case, but this was OK before -- it
only avoids an extra check of the mantissa)
2010-01-27 14:07:41 +00:00
is 000fbf6b41 Add AF_APPLETALK support to getnameinfo(); make "route show" use it.
Doesn't print "ranges" yet (should it be done here?); only numeric
output.
2010-01-26 21:27:54 +00:00
drochner e712404ece let the previous fix apply to acos rather than atan2,
and get rid of #ifdef vax
2010-01-20 16:49:42 +00:00
tnozaki 1166d8dc53 PR/42630 asin(2.0) and acos(2.0) doesn't return NaN.
reported by NARUSE, Yui -san, Thanks!
2010-01-20 16:31:35 +00:00
christos 6fbbcd94ce PR/42646: Joachim Kuebart: Shell crashes in libedit when window size changes
(SIGWINCH). Return NULL if el_gets() gets interrupted.
2010-01-20 01:15:52 +00:00
christos 654f9c04e7 Fix wrapper for EL_EDITOR, from Michael L. Hitch 2010-01-19 22:38:08 +00:00
christos 081c24c702 PR/42637: Joachim Kuebart: Shell tab completion crashes due to libedit stack
smashing
2010-01-18 19:17:42 +00:00
wiz 64e964907b Close file handle after using it. Found by cppcheck. 2010-01-17 23:17:08 +00:00