Commit Graph

10128 Commits

Author SHA1 Message Date
atatat 817b002242 Fix a whitespace nit and make this compile again. So there. 2004-12-16 04:37:25 +00:00
atatat d91a4a5990 Put caching back on the pts major number. It's worth the code
overhead not to go look it up a zillion times when running fstat or ps
on a machine with a billion people logged in.  fstat mostly.
2004-12-16 04:33:03 +00:00
atatat 4e04a6f62d Get rid of the private getptsname() function and use getdevmajor()
instead.  It's really much better that way, you'll see.
2004-12-16 04:15:19 +00:00
christos 29fb313de0 document properly the return value and the errno settings. 2004-12-16 04:07:22 +00:00
christos d15ecb98a9 knf fixes. 2004-12-16 04:07:01 +00:00
atatat fe13117c07 Bump to minor 124 since getdevmajor(3) was added 2004-12-16 04:05:51 +00:00
atatat 2803cf768c Add a function called getdevmajor().
It tells you the major device number for whatever character or block
device you ask it.  This is sort of the inverse of devname(3) but not
quite, since it's backed by the kernel (sysctl's kern.drivers
information) and not a database cobbled together from the contents of
the filesystem.
2004-12-16 03:54:56 +00:00
wiz c53d75fdd8 Grammar improvements. 2004-12-15 16:37:58 +00:00
wiz dd4b29f9a3 Fix typo in comment. 2004-12-15 16:29:53 +00:00
simonb 43cfce7a27 Remove trailing blank lines. 2004-12-14 11:14:45 +00:00
atatat 1cb09b336b Properly return the constructed name for ptyfs nodes. Otherwise we
accidentally return NULL on the first call and find it in the cache on
all subsequent calls.
2004-12-14 03:08:01 +00:00
yamt e19f3f9976 document sched_yield. 2004-12-14 01:47:13 +00:00
nathanw 5229c9f993 Nuke threadlib.h. Library defensive threading is now provided through the
normal pthread.h interface.
Move stubs for libc back into a libc-internal header.
2004-12-14 00:23:19 +00:00
nathanw 9ae878eb94 Fix the __libc_thr_yield_stub() signature. 2004-12-14 00:21:40 +00:00
yamt 98a0fd8d54 fix mvgetch prototype. 2004-12-13 23:51:11 +00:00
nathanw 50df45f4e5 The __libc_thr_yield_stub() for scched_yield() should return int (and
a 0), not void.
2004-12-13 16:07:13 +00:00
nathanw 480a2816f2 Add #defines to make use of libc stubs for pthread_cond_wait() and
pthread_cond_timedwait().

XXX as noted in the comments, in the situations where these are
useful, they should never be called in a single-threaded
process. Perhaps they should die rather than return 0.

Addresses xsrc/28630.
2004-12-13 03:10:52 +00:00
christos 980de1e92d s/__function__/__func__/ 2004-12-12 08:29:56 +00:00
christos e7d22a2e64 - NetBSD build glue
- Warning fixes
- RCSID's
2004-12-12 08:18:42 +00:00
christos bb62ec41f1 - NetBSD specific fixes.
- Changes from Jason to use our YP stuff.
2004-12-12 08:17:56 +00:00
christos 6f11bdf15c - Import freebsd's version of libpam as of today (20041212).
- Did not import opie, passwdqc, tacplus. We need to decide what to do
  with them.
- Imported radius and ssh, although they will not work until we
  import libradius and re-structure our tree to install libssh.
2004-12-12 06:45:21 +00:00
snj 316a956c56 Bump date for last. 2004-12-12 05:56:45 +00:00
yamt ebf187e60c document correct return value. PR/28571 from ITOH Yasufumi. 2004-12-12 01:09:44 +00:00
wiz ff7ab08a15 Mmm, API changes without date bumps... bump date for constification. 2004-12-11 16:50:56 +00:00
christos 7462bd3e7c fix cast-qual issue. 2004-12-11 06:41:40 +00:00
christos a5c1a01ed9 WARNS=3; fix cast-qual issues. 2004-12-11 06:41:15 +00:00
christos 70756f97e8 Constify; the api was completely broken before. 2004-12-11 06:40:42 +00:00
nathanw cb9ebec1e2 Correctly return ETIMEDOUT when the absolute time is in the past, in
the nonthreaded case. Fixes, and fix from, PR lib/25961.
2004-12-10 17:11:53 +00:00
nathanw 0eaa8971b7 Use CPP macros to cause many libpthread functions used by applications
to be transformed into the do-nothing-when-libpthread-isn't-linked libc
stub names. This will permit library code that uses <pthread.h> and pthread
functions "defensively" to not need to link against libpthread and not need
to be patched to the threadlib.h API.
2004-12-10 16:40:40 +00:00
simonb 23a85fb5b0 libgcc has __fixunsdfsi and __fixunssfsi, so don't build
the softfloat versions of these.

Fixes PR toolchain/24509 from Masao Uebayashi.
2004-12-09 00:39:41 +00:00
martin 528e949b20 Replace the stack unwinding by a much simpler solution taken from
../../arch/sparc/gen/_setjmp.S rev. 1.6. This ended up to be ~identical
to the OpenBSD change triggered by the same sparc change.
Thanks to Stoned Elipot for pointing out the problem.
2004-12-07 08:20:07 +00:00
nathanw 08c663a3c0 Implement __libc_thr_sigsetmask_stub() in terms of sigprocmask(),
instead of having a dummy function.
2004-12-06 18:58:12 +00:00
wiz d768695880 Add RCS Id. 2004-12-06 13:16:36 +00:00
christos 8d79e1b130 Use /dev/bpf. 2004-12-02 00:05:02 +00:00
dsl 4eaada98f4 Change a returned value of -1 (NO_PGID) to (uint)(pid_t)~0u >> 1 (0x7fffffff)
to satisfy the SuSv3/POSIX-2004/etc requirement that "If there is no
foreground process group, tcgetpgrp() shall return a value greater than 1
that does not match the process group ID of any existing process group."
Should fix PR standards/28493 and zsh.
2004-12-01 21:37:15 +00:00
skrll 32069ca6a3 pt_sleepuc was removed a long time ago. 2004-12-01 14:27:01 +00:00
ws 4aa5370862 Use correct stack offsets after pushing values onto it. 2004-12-01 01:08:18 +00:00
peter 192aae95b5 Add missing LIBRARY section.
ok wiz@
2004-12-01 00:06:46 +00:00
nathanw 45204d9ceb Punt to setcontext() system call if the PSL_T bit (single-step trap)
is set, so that the single-step trap happens in the thread's context
and not in the middle of _setcontext_u.

XXX might be able to do something here with iret, too, but it needs
more testing.
2004-11-30 21:05:01 +00:00
ginsbach e9042901ff rresvport_af() should return -1 when the address family is unsupported
and set errno accordingly.
2004-11-29 17:00:06 +00:00
jmc 9da9dc64b7 Add heapsort to libnbcompat 2004-11-28 06:57:14 +00:00
christos 3bca82ec33 PR/26785: Jess Thrysoee: libedit - H_NEXT and H_PREV shifts cursor on failure 2004-11-27 18:31:45 +00:00
christos 5a55e0c902 Don't give write privileges at all if the tty group is missing. 2004-11-25 02:49:46 +00:00
christos db5d4e2d6a I really want to kill the hard-coding of _TTY_GID. Set the group to the
primary group of the user if the group tty does not exist.
2004-11-24 22:17:19 +00:00
wiz b86a72cb8b Improve RETURN VALUES section. 2004-11-24 12:47:20 +00:00
wiz 20a78941e4 Mark up TRUE and FALSE. 2004-11-24 12:42:51 +00:00
wiz f039f78c3f \-1, not -1. 2004-11-24 12:40:54 +00:00
wiz f91573afd7 Mark up NULL. 2004-11-24 12:26:23 +00:00
wiz 7b09170529 Use Aq instead of \*[Lt]\*[Gt]. 2004-11-24 12:12:19 +00:00
wiz a7804596c1 Bump date for previous; mark up defined values with Dv;
use Aq instead of \*[Lt]\*[Gt].
2004-11-24 12:09:13 +00:00
blymn 19f07fb20a * Rewrote internal handling of multiline field line data to fix a bug
where a newly opened line would immediately get wrapped out of existence.
  The old method of handling lines in a multiline field did not cope with
  this elegantly.

* Added new field flag O_REFORMAT which, when set, returns the field
  buffer with newlines inserted where the line wrapped.  Previously, there
  was no way of preserving the on screen format of a multiline field.

* Added new file gdbinit which contains a macro to verify and print
  the multiline field line data structure.

* Bumped libform major number due to changes in the _form_field structure.
2004-11-24 11:57:09 +00:00
kleink 504ab89f25 Remove references to the header SIG_* are located in altogether;
<sys/signal.h> exposed too much implementation detail, and <signal.h>
remains the sole header referenced by this page.
2004-11-23 09:38:45 +00:00
lukem 53d1c6b12e document which #include file to use 2004-11-23 04:38:19 +00:00
lukem 98a47ed075 Fix gethostent(3) (which was reenabled in rev 1.63) so that it actually
works by allowing _gethtent() to treat host.h_addrtype==0 && host.h_length==0
as "any address family" when parsing.
2004-11-23 03:42:13 +00:00
jmmv 86ebfff7b8 Minor grammar fixes. 2004-11-21 10:45:08 +00:00
christos 6845cdfbb8 fix the header. 2004-11-21 03:04:14 +00:00
wiz 7a3b0ef281 Formatting fixes, and a typo fix. 2004-11-20 23:29:33 +00:00
christos 1fe49f768f Add a manual page. 2004-11-20 03:06:09 +00:00
christos 09ad64e21f check for getnameinfo error correctly; thanks to Peter Postma. 2004-11-19 22:05:23 +00:00
christos eb6484700a Add sockaddr_snprintf; XXX: Needs a man page. 2004-11-19 21:37:19 +00:00
kent b285c03873 getdevinfo():
If a mixer item does not match with AudioNsomething, check whether
it ends with '.' + AudioNsomething.  PR#15441
2004-11-18 14:02:42 +00:00
itojun da88342476 NI_WITHSCOPEID was not picked up by IETF standardization process 2004-11-16 06:04:12 +00:00
christos 13c63648cb PR/28324: Takayoshi Kochi: localtime_r(3) returns GMT
Add missing tzset_unlocked(); as suggested.
2004-11-16 04:15:28 +00:00
jmmv 8740cbe236 Add a conditional for proper m68k softfloat operation. It looks like I
forgot to commit this file back when this functionality was added.
Noted by Bruce O'Neel (the original author) in port-mac68k@.
2004-11-13 20:29:47 +00:00
christos d8edf257eb Don't create the lastlogx file with 0 mode. 2004-11-11 22:14:20 +00:00
dsl ece723d1ec Add if_media.c, functions for converting media to/from strings.
(from ifconfig.c)
2004-11-11 20:36:28 +00:00
christos 5120bd8da8 More error checking. 2004-11-11 04:03:23 +00:00
christos a2a8a7d6ce Recognize ptyfs ptys. 2004-11-11 03:22:30 +00:00
wiz 74e1eaa411 Fix some nits, and bump date for previous. 2004-11-11 00:57:57 +00:00
christos 3c3eb5801d It is silly to have to enumerate all the ptys in /etc/ttys in order to
get a valid ttyslot for them. Instead if and entry is not found and we
are a pty, allocate the n + 1 + minor(pty) slot.
2004-11-11 00:01:38 +00:00
christos a8f3eacf76 Use ioctl to find the pty name directly instead of looking it up in
the database; it is much faster, and the common case these days.
2004-11-11 00:00:15 +00:00
christos ba98473568 PR/28183: Brian Marcotte: Getty eats the last character of the last field.
As Brian reports the bug is in skip(). The logic on end of line is broken.

- fix the bug which can cause buf[-1] to be written.
- don't leave the line buffer allocated on end of file.
- KNF
- use __func__ instead of hard-coding the function name.
- don't use needlessly global variables
2004-11-10 23:59:06 +00:00
christos d07f9e79e8 - don't complain if the pty is of the form pts/n
- fix off by one error in iovlen bounds checking
- print the function name in the error message and make the
  error messages consistent
- knf
2004-11-10 17:00:41 +00:00
wiz 894084c6c3 Correct ngettext arguments; bump date.
From Christian Biere in PR 28144.
2004-11-10 13:46:14 +00:00
lukem c873ad0d2e Use the common __nsdefaultFOO rather than private defaultFOO duplicates. 2004-11-10 12:57:32 +00:00
lukem 5994f053ec * Improve the comments in <nsswitch.h>
* Provide some more useful default ns_src arrays.
2004-11-10 07:23:32 +00:00
lukem 2ffe6b72ba Use _GETGR_R_SIZE_MAX from <limits.h> rather than defining a private version. 2004-11-10 06:10:03 +00:00
lukem cdfecd6b76 whitespace cleanup 2004-11-10 04:57:17 +00:00
lukem 9c82800a69 Add: getgrgid_r(3) getgrnam_r(3) getpwnam_r(3) getpwuid_r(3) 2004-11-10 04:52:30 +00:00
lukem 364ede827b need <limits.h> for _SC_GET{GR,PW}_SIZE_MAX 2004-11-10 04:46:01 +00:00
lukem 97dddd4f3a Document _SC_GETGR_R_SIZE_MAX and _SC_GETPW_R_SIZE_MAX 2004-11-10 04:21:25 +00:00
lukem 663b3e58e0 Use _GETPW_R_SIZE_MAX from <limits.h> rather than defining a private version. 2004-11-10 04:11:34 +00:00
lukem 246f6fd919 Implement sysconf(3) _SC_GETGR_R_SIZE_MAX and _SC_GETPW_R_SIZE_MAX for
the 1003.1-2001 Thread Safe Functions (TSF) getgrnam_r(3) and getpwnam_r(3).

These are not implemented in sysctl(3) "user.*", since that adds a lot
of complexity in the implementation for no real benefit.
2004-11-10 04:02:52 +00:00
kent 63a8cde231 save&restore %fs and %gs registers for USER_LDT applications.
PR#26900
2004-11-10 01:12:57 +00:00
wiz 3f1cd2faeb Bump date for FIONWRITE and FIONSPACE. 2004-11-08 16:15:42 +00:00
christos 0766545fc7 resolve conflicts. 2004-11-07 02:25:01 +00:00
christos cd4012e9b2 Merge conflicts 2004-11-07 02:19:49 +00:00
wrstuden 16029d56b5 Add support for FIONWRITE and FIONSPACE ioctls. FIONWRITE reports
the number of bytes in the send queue, and FIONSPACE reports the
number of free bytes in the send queue. These ioctls permit applications
to monitor file descriptor transmission dynamics.

In examining prior art, FIONWRITE exists with the semantics given
here. FIONSPACE is provided so that programs may easily determine how
much space is left in the send queue; they do not need to know the
send queue size.

The fact that a write may block even if there is enough space in the
send queue for it is noted in the documentation.

FIONWRITE functionality may be used to implement TIOCOUTQ for Linux
emulation - Linux extended this ioctl to sockets, even though they are
not ttys.
2004-11-06 02:03:20 +00:00
christos defca69e1a Make EM_DELETE_PREV_CHAR behave like ED_DELETE_PREV_CHAR in incremental
search. From Gerry Swislow.
2004-11-04 01:16:03 +00:00
jmmv fda2840eea Add missing colon symbol after sentence. 2004-11-03 13:11:41 +00:00
lukem 103626c6a0 default to "compat" not "files" 2004-11-01 08:21:34 +00:00
lukem c49e808721 #include "reentrant.h" instead of <threadlib.h> 2004-10-29 06:32:08 +00:00
dsl 1793b7dd69 Use (unsigned char) cast to sanitise arguments to ctype functions. 2004-10-28 21:14:52 +00:00
dsl d349cd6749 Fix a load of international alphabet problems with isxxx() and toupper()
Change isspace(*char_ptr) to isspace(*char_ptr & 0xff) so that the correct
piece of memory is looked at for the bit mask.
gcc optimises out the '& 0xff' (on i386 at least).
Fixes problems found by gcc when the splurious (int) cast is removed
from the #defines in ctype.h
2004-10-27 19:59:24 +00:00
dsl d6329c55cd Implement strtok() in terms of strtok_r() 2004-10-27 19:12:31 +00:00
lukem feb92219d9 Protect access to all public functions via a mutex as some of the backends are
not reentrant (such as compat getgr*_r, because it uses the non reentrant
_{dns,nis}_getgrent() backends to implement `+group').
2004-10-24 14:52:46 +00:00
lukem a48f586379 Protect access to all public functions via a mutex as some of the backends are
not reentrant (such as compat, because it uses the non reentrant getnetgrent(3)
to implement `+@netgrp' & `-@netgrp').
2004-10-24 14:46:23 +00:00
jmc 693535a5d9 Spelling errors 'dependant' vs 'dependent' from PR#27345 2004-10-22 18:35:41 +00:00
fvdl 5febc5eef5 Fix thread context switching to take the stack ABI into account.
From Wolfgang Solfrank.
2004-10-21 16:49:47 +00:00
lukem 893983131b minor KNF, making it easier to find where fork() is implemented 2004-10-21 06:46:36 +00:00
christos 366176888a PR/27283: Onno van der Linden: incorrect check for mmap return value
While I am here, clean up the error path, KNF and use the proper stat
macro.
2004-10-17 22:21:43 +00:00
enami 461001f32f Fix some typos. 2004-10-15 15:19:02 +00:00
enami b07577d748 Don't break line at the space since it is not a word separator but
an example of space character.
2004-10-15 15:07:54 +00:00
daniel 84a34aedec Add vm.bufcache, vm.bufmem, vm.bufmem_lowater, m.bufmem_hiwater (PR misc/27247, misc/27233). 2004-10-15 08:47:16 +00:00
abs ea19f3b80d I'm not sure what the comment is trying to say, but it can say it with
'making' at least as well as 'makeing'.
2004-10-13 23:46:46 +00:00
drochner b774d2ae7d add licenses 2004-10-13 15:18:31 +00:00
mycroft 2b4ccae3e9 Remove pt_blockuc. If the debugger attempts to muck with the state of a
blocked thread, return an error; this should be done through ptrace(2).
2004-10-12 22:17:56 +00:00
dsl 04e7fe1971 Remove sentence about the inability to simultaenously tokenise multiple
strings - should have been removes then strtok_r() was added.
2004-10-11 14:22:04 +00:00
lukem b7fcf76aa6 Fix MKYP=no MKHESIOD=no build.
Rename an internal function to a more appropriate name.
2004-10-11 09:42:06 +00:00
lukem dd9512e81e Ensure that _nis_start(&state) has been called before using PASSWD_BYNAME()
or PASSWD_BYUID(), otherwise state.maptype won't be correct and the wrong
map may be selected (e.g., "passwd.by*" instead of "master.passwd.by*").

Set _PASSWORD_NOWARN in flags to __pw_scan(), so libc won't display parse
errors to stderr.  (This was the behaviour before my recent rototill.)

Fixes PR 27168 from Markus W Kilbinger.
2004-10-07 06:11:24 +00:00
snj 7f9afb684d Bring over the changes from revision 1.7 of
lib/libarch/x86_64/x86_64_get_mtrr.2 (grammar fixes).  Requested by
Nicolas Joly in PR lib/27172.
2004-10-07 01:47:11 +00:00
wiz f74a3e4c4e Add missing function types for getpwnam_r and getpwuid_r. 2004-10-05 13:52:09 +00:00
lukem 0a87664e7c Use PASSWD_BYxxx(state) macros instead of "passwd.byxxx" to refer to
the NIS "passwd.by*" maps.
Fixes problem with "passwd_compat: nis" noted by Matthias Scheler.
2004-10-05 12:09:23 +00:00
lukem 45a7a69275 Overhaul the use of nsdispatch(3) by public APIs so that the back-end
methods use va_list in a manner that is directly related to the public API.
This makes it much easier to write dynamic nsswitch backends for getpwent(3).
Per my proposal on tech-userlevel.

Implement getpwgid_r() and getpwnam_r() APIs per the POSIX 1003.1, 2004 Ed.
These aren't fully reentrant or threadsafe yet, because the compat stuff
currently uses non-reentrant data sources (getnetgrent(3), getpwent(3)),
and there is probably some locking to be improved in the backends.
This will be fixed in the near future.
We also need to add _SC_GETPW_R_SIZE_MAX to sysconf(3).

Fix the compat `+' prototype override so getpwnam(3) and getpwuid(3) DTRT.

Improve the description of pw_class and pw_gecos.
2004-10-05 04:45:54 +00:00
lukem a18b46b6e9 Correct order of description of getgr{nam,gid}{,_r}() functions. 2004-10-05 03:03:24 +00:00
perry 653de456c5 Note that MAP_ANON memory is zero filled. 2004-10-04 18:14:48 +00:00
lukem 71532e5cb8 crank copyright 2004-10-04 04:16:26 +00:00
lukem c54f283e46 Overhaul the use of nsdispatch(3) by public APIs so that the back-end
methods use va_list in a manner that is directly related to the public API.
This makes it much easier to write dynamic nsswitch backends for getgrent(3).
Per my proposal on tech-userlevel.

Implement getgrgid_r() and getgrnam_r() APIs per the POSIX 1003.1, 2004 Ed.
These aren't fully reentrant or threadsafe yet, because the compat stuff
currently uses non-reentrant data sources (getnetgrent(3), getgrent(3)),
and there is probably some locking to be improved in the backends.
This will be fixed in the near future.
We also need to add _SC_GETGR_R_SIZE_MAX to sysconf(3).
2004-10-04 04:11:33 +00:00
lukem 25d91a60fb * Re-number NS_FORCEALL from 1<<7 to 1<<8, moving it out of the "public"
bitrange for nsdispatch(3) return values.
* Tweak documentation comments in nsswitch.h
* Ensure the result from the back-end method is masked with
  NS_STATUSMASK before nsdispatch(3) returns it.
2004-10-04 04:02:27 +00:00
he 1aba91b7c0 Move the conditional definition of offsetof() till after all the
headers have been included.  Fixes compile problem for vax.
2004-10-01 20:46:15 +00:00
wiz 29ac95abc3 Fix a typo, fix an xref, an drop a space at EOL. 2004-09-29 09:20:19 +00:00
lukem e775b9e35a Implement NS_FORCEALL, which may be set in defaults[0].flags by a caller of
nsdispatch(3) to indicate that all available database methods for a source
will be invoked.  This is useful for functions such as endgrent(3).
2004-09-29 02:47:32 +00:00
lukem 22e72f089d slight formatting tweaks 2004-09-28 14:44:05 +00:00
wiz b772ed97cf Drop space at EOL and dot at end of SEE ALSO. 2004-09-28 13:59:48 +00:00
lukem 3d2c2adc4d also ensure defaults != NULL 2004-09-28 11:51:42 +00:00
lukem adea87aed9 s/foe/for/ 2004-09-28 11:37:26 +00:00
lukem 159aa790f6 Expand description of return value.
Remove bug about incorrect sizing calculation; it seems to DTRT for me.
Also reference group(5).
2004-09-28 10:49:22 +00:00
lukem 3608f5c3e9 'gid_t *groups' may be NULL if we're just sizing the list by calling
getgrouplist(3) with *grpcnt==0, so don't _DIAGASSERT(groups != NULL).

Tweak API used between getgrouplist(3) and the back-end nsswitch methods;
move the public return value to the start of the va_list and reserve the
'void *retval' for "internal use" (e.g, errno passing or some other need).
2004-09-28 10:46:19 +00:00
wiz ab8bec093c Another formatting fix. 2004-09-28 09:36:14 +00:00
wiz 4f07b22d09 Some formatting fixes, and s/OpenBSD/.Ox/ s/FreeBSD/.Fx/. 2004-09-28 09:33:53 +00:00
wiz 867837f34d Remove trailing whitespace. 2004-09-28 09:31:13 +00:00
dyoung 4776f99384 Make newchunk() prototype match definition. 2004-09-28 06:35:38 +00:00
dyoung 9a9445f102 Commit stragglers. 2004-09-27 23:03:15 +00:00
dyoung c14b894413 Resolve conflicts in libpcap-0.8.3 import.
Remove some extraneous files.
2004-09-27 23:02:53 +00:00
he 9ac3a85e48 Only compile the floatx80-using functions if the arch in question
defines the FLOATX80 macro.  Fixes build problem for arm ports.
2004-09-27 10:16:24 +00:00
yamt f659b39d81 correct a function prototype. 2004-09-27 07:07:04 +00:00
lukem 115b984fd6 correct the va_list arg for nss_method 2004-09-27 07:00:52 +00:00
jmmv 8a1eb34d66 Add support to build the mac68k port with soft-float enabled (i.e., setting
MKSOFTFLOAT=yes).  The main purpose of this feature is to let NetBSD work
in machines with the 68040LC chip (those that have the FPU bug).

All the work has been done by Bruce O'Neel <edoneel AT sdf.lonestar.org>,
with some very minor changes by me; the patches were being posted to the
port-mac68k mailing list.  It has been tested for a long time by several
users, including me.

I have just verified that regular releases, as well as soft-float ones,
continue to build.

There have been no objections to this patch since I asked for them in July
in the port-mac68k list.
2004-09-26 21:13:27 +00:00
yamt d94faebdc7 wctomb isn't supposed to set errno. 2004-09-26 00:51:39 +00:00
soda 89d5b6ffb2 forgot to replace #else with #endif, thanks yamt again. 2004-09-26 00:35:51 +00:00
yamt 8eaa138d56 _FUNCNAME(ctype_wcrtomb):
set *nresult on error rather than using stack garbage.
2004-09-26 00:17:15 +00:00
soda 63504487d1 oops, forgot to add "else" 2004-09-25 23:56:44 +00:00
soda 879ba02666 corrent an error in previous commit:
don't corrupt return value on error case, pointed out by yamt
2004-09-25 23:51:31 +00:00
soda bb8f03e106 correct the return values of wcrtomb(3) and wctomb(3).
These return values should include the length of shift sequence
to restore the initial shift state.
2004-09-25 22:53:46 +00:00
lukem 7184648d82 Try nsdispatch "getgrouplist" before iterating the getgrent() list.
Implement a dns (hesiod) backend which tries a grplist hesiod lookup.
Convert back to using getgrent() similar to rev 1.15, instead of
using the private _getgrent_user() from getgrent.c.
2004-09-25 12:27:35 +00:00
christos f42653853a Put back issetugid() check for hostaliases.
XXX: this is suboptimal, It would be better if we propelry checked
for access.
2004-09-25 05:33:01 +00:00
lukem 0b757c12fd ANSI KNF 2004-09-25 02:55:25 +00:00
tshiozak 922c0d0065 add system dependent strings support.
this hopefully allows to use .mo files generated by gettext-0.12 or later.
2004-09-23 21:35:27 +00:00
tshiozak 29be49b448 - add hash table support.
- make use of __UNCONST() instead of LINTED.
2004-09-23 16:44:26 +00:00
dyoung 6c7d5c9634 Process the new files in libpcap 0.8.3.
Match the end-of-line after file extensions, so that *.[ch] files
with version numbers in their pathnames (e.g., libpcap-0.8.3/gencode.c)
do not match the manual-page regular expression.
2004-09-22 19:35:47 +00:00
dyoung 5c852952b0 Import libpcap 0.8.3 from tcpdump.org---getting it right this time, I hope. 2004-09-19 21:57:48 +00:00
dyoung 7e3909436f Import libpcap 0.8.3 from tcpdump.org 2004-09-19 21:31:39 +00:00
christos 2611d5a68f KNF; Simplify some logic, so that lines don't wrap. Explain why we
break, continue, or return from the tty scanning loops.
2004-09-18 20:14:22 +00:00
yamt 2936303c19 openpty: just check errors of syscalls,
instead of checking permission beforehand in userland.
2004-09-18 16:44:38 +00:00
jdolecek 62b15febd3 make othercase() return int rather than char, to avoid sign extension
bug with character codes >= 128

fixes PR lib/26986 by Alexander Becher
2004-09-18 11:47:37 +00:00
hubertf 2fa09966de Change copyright to 2-clause BSD-copyright.
Changed with explicit permission of Thorsten Lockert (tholo sigmasoft com)
2004-09-15 19:45:17 +00:00
thorpej 60fd0955b1 Un-comment-out Xr to uuidgen(1). 2004-09-13 23:36:25 +00:00
thorpej 523777c603 Add HISTORY section. 2004-09-13 23:24:15 +00:00
wiz a1c60f9187 New sentence, new line. -1 needs a backslash. Fix a typo.
Fix an article. Comment out Xr to uuidgen(1), since we do not have that.
2004-09-13 22:52:39 +00:00
thorpej de1dfb1250 DCE 1.1 RPC compatible UUID routines for libc, adapted from FreeBSD.
Encode/decode to big/little endian binary blob routines adapted from
kernel.

PR 23470.
2004-09-13 21:44:54 +00:00
christos 0d0ad08914 cut out the middle-man and use el_insertstr() directly. 2004-09-08 18:15:57 +00:00
christos 742c0a6b61 make rl_inhibit_completion visible. 2004-09-08 18:15:37 +00:00
simonb 965b11f656 Fix non-ELF case in _nsloadmod(). 2004-09-08 10:52:56 +00:00
jrf 190b2e4c51 Replaced strncpy with strlcpy. Thanks to Peter Postma who
pointed them our in PR #25762. Approved by christos@NetBSD.org.
2004-09-07 13:20:39 +00:00
jmmv eb6866861c s/password databases/group databases/ 2004-09-02 11:43:18 +00:00
uwe e8d7ac57c1 Add missing .Ed reported by new mdoc. 2004-08-31 17:11:33 +00:00
thorpej 70638a64cb Error out if we try to build with GCC 3.3 or later; we should be using
the GCC-supplied crtbegin / crtend in the GCC 3.3 or later case.
2004-08-28 00:19:22 +00:00
thorpej 8d13a4aafe Switch to using GCC's supplied crtbegin / crtend files. 2004-08-28 00:18:38 +00:00
wiz 484705032c Bump date for removal of net.key.random_int. 2004-08-27 14:35:11 +00:00
itojun 8ba8c58e74 remove net.key.random_int 2004-08-27 04:58:10 +00:00
thorpej cf21167821 pdtpaddr -> pdppaddr 2004-08-27 01:13:31 +00:00
thorpej 08456b0802 Use ANSI function decls. 2004-08-26 21:23:06 +00:00
thorpej 5c50ce218e Remove the "allows linking without crtbegin / crtend" hack. 2004-08-26 21:21:33 +00:00
thorpej b979dc154e Use ANSI function decls. 2004-08-26 21:21:05 +00:00
thorpej 54fe33a634 Use ANSI function decls. 2004-08-26 21:09:52 +00:00
thorpej a41fd2dbc8 - Use ANSI function decls.
- Use __used__, not __unused__ attribute for ___start().
2004-08-26 21:07:14 +00:00
thorpej 68e26dcdb6 _strrchr()'s second argument is actually an int. 2004-08-26 21:01:12 +00:00
thorpej 352bb3a6aa Use ANSI function decls. 2004-08-26 20:57:47 +00:00
thorpej 11b5ec27b8 Remove sysident.h-related comment; that stuff is handled by crti.c these
days.
2004-08-26 20:51:27 +00:00
pooka f213e15f84 The values for the parameter "how" are defined in sys/signal.h, not signal.h 2004-08-25 11:56:50 +00:00
christos 9b6268f92e make sure that we round up to 1K. 2004-08-24 12:41:06 +00:00
nathanw 7c7a36f21d In nanosleep(), loop until the timer fires or a signal is taken; other
spurious wakeups (such as those caused by gdb) should not cause
nanosleep to return prematurely.
2004-08-24 02:08:08 +00:00
nathanw f83d3766b4 Mark when a thread has taken a signal. 2004-08-24 01:46:30 +00:00
nathanw 3f53b40ca7 Local whitespace police. 2004-08-24 01:45:54 +00:00
nathanw 15c2d9148c Add a flag that indicates that a thread took a signal. 2004-08-24 01:44:08 +00:00
ginsbach 3cb63a0abe Add MLINK for gethostent as suggested by Matthias Drochner. 2004-08-24 01:41:51 +00:00
rearnsha 54f20047f5 Add missing new line. 2004-08-21 13:08:29 +00:00
rearnsha 29efdff284 Temporary hack to work around ld problems when linking Thumb
applications where the linker does not correctly insert an
interworking veneer.
2004-08-21 12:12:28 +00:00
rearnsha cd8021f51e Use RET macro for returning. 2004-08-21 11:31:44 +00:00
rearnsha ed6e0e9e42 Use RET and RETc for returning. 2004-08-21 11:30:17 +00:00
rearnsha 145b31af81 Use RETc for returning. When v4T or later use BX for calling the target. 2004-08-21 11:29:51 +00:00
rearnsha 017d1fb251 Use RET and RETc for returning. 2004-08-21 11:25:17 +00:00
rearnsha 84104f4511 Use RET to return.
If ARMv5 or later then use CLZ rather than long-winded tale-lookup.
2004-08-21 11:24:28 +00:00
rearnsha d4072e3a7c Always use bx for returning (this code is always ARMv5TE. 2004-08-21 11:22:33 +00:00
rearnsha d6621260dc Use RET and RETc macros for returning. 2004-08-21 11:20:10 +00:00
rearnsha 85647ccc31 Use RET macro for returning from PSEUDO & PSEUDO_NOERROR 2004-08-21 11:18:40 +00:00
christos 848a98512e PR/26725: Sergey S. Kostyliov: Typo in libedit, possible buffer overflow in src/lib/libedit/history.c:history_save() 2004-08-20 12:54:05 +00:00
dogcow 96178d4078 insert a missing quotation mark. 2004-08-20 04:44:11 +00:00
christos ea369b9669 Deal with RESCUEDIR 2004-08-19 22:25:49 +00:00
chs c6736a59b3 redo the fix for PR 26392 differently: instead of changing the stack bounds
for the initial stack, just change the initial thread's pt_uc to point to
the opposite end of the stack (away from the argv, environment, etc).
2004-08-17 14:16:00 +00:00
ginsbach f56858739a namespace protection for gethostent() 2004-08-17 14:10:06 +00:00
wiz 11a3ae1c04 Add commas in enumerations; drop trailing whitespace; bump date for previous. 2004-08-17 13:45:14 +00:00
ginsbach ab52fcd2c6 endhostent() and sethostent() should actaully do something now that
gethostent() has been restored to libc.  Reviewed by <christos>.
2004-08-17 02:40:05 +00:00
ginsbach 30ef75e3f4 Restore gethostent() as a supported interface. Yes, it maybe obsolete
but it is specified by IEEE Std 1003.1, 2004 Edition (POSIX) and
the X/Open standards (Issue 6 and XNS 5.2).

* revert change removing gethostent() from gethostbyname(3) man page
* delete kruft from gethnamaddr.c leaving only gethostent() as a
  wrapper around _gethtent().
* revert recent changes to <netdb.h>
  + restore gethostent() prototype
  + restore freehostent() prototype; handle similar to non-shipped
    getipnodby*() prototypes
  + use correct XOPEN_SOURCE version (520 not 500) for freeaddrinfo()
    prototype; interface specified by XNS5.2 not XNS5

Reviewd by <christos> and <drochner>.
2004-08-17 02:29:56 +00:00
wiz 8a066267fb Bump date for const change. 2004-08-16 10:18:27 +00:00
ginsbach ebcc92c100 * add const qualifier making getrpcbyname() and getrpcbyname_r()
prototypes match those used in latest Sun RPC code (TI-RPC 2.3)
* modify function getrpcbyname() definition as appropriate
2004-08-16 02:47:54 +00:00
wiz 5bf3687024 Add an article. 2004-08-14 11:04:29 +00:00
jdolecek 64fbdbbf78 document timeradd() and timersub() too, as e.g. select(2) points
to getitimer(2) for timersub() description

use .Fn rather than .Fa for the macro names

bump date
2004-08-14 10:03:30 +00:00
mycroft 6360c4b0f8 Delete-previous-char and delete-next-char without an argument are not supposed
to modify the yank buffer in Emacs.  Make it so.
2004-08-13 12:10:38 +00:00
yamt 6b2b9c625f - fix pthread_detach with an already exit'ed thread.
namely, put the thread to deadqueue rather than just leaking it.
- fix a race between pthread_detach/join and pthread_exit,
  which also causes dead thread leaks.
2004-08-12 10:54:13 +00:00
wiz 55fbd8d415 Remove some unnecessary double quotes, and fix some macro usage. 2004-08-08 14:48:47 +00:00
chs ddc1ca7bcb map the data segment with PROT_EXEC since the PLT lives there. 2004-08-07 21:33:04 +00:00
provos e128f30ca9 support for bufferevents; fix signal race; faster timeout insertion;
update man page and regression tests - this is a sync to libevent 0.9
2004-08-07 21:09:47 +00:00
ginsbach ca4f974ad7 Use ANSI function decls. 2004-08-05 03:06:37 +00:00
lukem 0632d7cdd0 Need to prefix relative directories with `${.CURDIR}/' so that
objdir builds in the src tree (i.e, without MAKEOBJDIR{,PREFIX}) work.
Fixes problem noted by Hisashi T Fujinaka.
2004-08-05 01:24:02 +00:00
yamt 91ee88d04d actually add _Exit. 2004-08-05 00:17:02 +00:00
wiz 245c7e5202 New sentence, new line. 2004-08-04 15:07:37 +00:00
lukem cd54219242 Convert from the src/lib -specific DEPLIBS to using LIBDPLIBS from <bsd.lib.mk> 2004-08-04 08:04:25 +00:00
thorpej 7c161da819 - Rename pw_copy() to pw_copyx(), make it return a success/failure code,
and add "errbuf" and "errbufsz" parameters so that errors can be handled
  gracefully, rather than simply exiting the process.
- Add a pw_copy() wrapper around pw_copyx() to preserve old behavior for
  apps that use it.
- Bump shlib version to 7.4.
2004-08-03 23:29:04 +00:00
yamt 129567b88f pthread_rwlock_timedrdlock/pthread_rwlock_timedwrlock:
fix lock/unlock inversions in ERRORCHECK.
2004-08-03 11:50:45 +00:00
yamt 5fc4e57d71 pthread_rwlock_timedwrlock: return ETIMEDOUT appropriately. 2004-08-03 11:40:24 +00:00
mycroft 42a0ee466b Modify prototype for pci_findvendor() and add pci_findproduct(). 2004-08-03 03:32:43 +00:00
ginsbach 9af61ddeaf Fix getrpcbyname() alias lookups. Closes PR lib/23294; reviewed by <christos>. 2004-08-02 18:59:09 +00:00
dsl 75c6c76be7 Fix (I hope) the bounding checks against the source window. 2004-08-02 18:47:52 +00:00
tshiozak f7d656a488 revert the last all changes related to iconv(3). 2004-08-02 13:38:21 +00:00
yamt dc8be105a2 follow the recent iconv(3) prototype change. 2004-08-02 03:15:33 +00:00
thorpej a2bbd45143 Prevent a deadlock that could occur if we try to update the configuration
data structures during a recursive call to nsdispatch() by keeping a record
of which threads are inside nsdispatch() at any given time.
2004-08-02 00:19:34 +00:00
dsl 9214d0d9c1 overwrite() wasn't copying enough lines or columns.
copywin() couldn't seem to decide whether it should work in window or
screen coordinates - and managed to do neither.
Change copywin() to use window relative coords (as ncurses and solaris do),
and change overwrite() and overlay() to use the modified interface.
It is now possible to use overwrite() to save part of curscr while a
temporary window is drawn.
Fixes PR/26506
2004-08-01 21:48:24 +00:00
wiz 50779db1e3 Bump date for previous. 2004-08-01 19:24:47 +00:00
tshiozak 2edebf3ee0 sync with the current iconv() prototype. 2004-08-01 17:07:15 +00:00
tshiozak ab8d4be7c6 make sure that the iconv(3) follows the POSIX specification;
change the 2nd argument from "const char ** restrict" to "char ** restrict".
2004-08-01 16:40:58 +00:00
lukem 934fa4ac14 support MAKEVERBOSE in tags: 2004-07-31 14:13:05 +00:00
lukem 124613b27e Implement DEPLIBS (in Makefile.inc for now), which adds all the listed
libraries to LDADD & DPADD for the current library, using -L OBJDIR-of-DEPLIB
so that the current library can link with the DEPLIB library built but
not installed.

Set DEPLIBS appropriately, rather than explictly adding LDADD/DPADD
for various libraries.

Reorder library build order so that libraries that depend upon any
other library are built at the end.


Whilst this change could be done in a more generic manner (and I
intend to work on that), it does remove the need to implement
top-level build targets such as "do-lib-des" (etc).
2004-07-30 07:02:53 +00:00
lukem e1d3cfe331 LDADD libcrypto libasn1 libcom_err libroken 2004-07-30 06:13:00 +00:00
lukem ebad1d2bfc LDADD libcurses 2004-07-30 04:44:54 +00:00
lukem 005a51cac0 LDADD libcrypto 2004-07-30 04:22:33 +00:00
nathanw 8bf7374bcf In cond_wait() and cond_timedwait(), do the ERRORCHECK testing of the
waiters list in all cases, not just on cancellation; there are other
sources of spurious wakeups, such as single-stepping in the debugger.

regress/lib/libpthread/conddestroy1 now passes.
2004-07-27 21:44:48 +00:00
wiz e9abe80526 Use \*[Lt]\*[Gt] or Aq instead of <>; sort SEE ALSO. 2004-07-27 14:35:56 +00:00
enami 0520e17087 - Honor the HN_NOSPACE flag (i.e., don't put a space if specified,
and put space if not specified).
- There was a test which didn't count the suffixlen.  Fix it.
- Make the code a bit easier to read.
2004-07-27 01:56:24 +00:00
drochner 0ca4ad479d fix alignment check for source
should fix PR port-amd64/26416 by Nicolas Joly
2004-07-26 18:51:21 +00:00
chs 503ca60040 in pthread__initmain(), don't reuse the part of the initial stack that
is occupied by the argv and environment (and MD stuff like the page-table
mapping on x86).  fixes PR 26392.
2004-07-25 23:22:43 +00:00
chs 95a63d48f2 add missing FP functions, from openbsd. 2004-07-24 19:09:29 +00:00
thorpej 43d6d8d887 Add support for dynamically loading nsswitch modules on ELF platforms.
Adapted from FreeBSD.  Maintains full backward API / ABI compatbility
with built-in-only nsdispatch().

While here, also make nsdispatch() itself thread-safe.
2004-07-24 18:42:51 +00:00
blymn 6b3a44ef27 Remove _cursesi_genbuf, it was not being set and caused a SIGSEGV
in getcap().  Fixed getcap() to use screen->cursesi_genbuf.
Thanks to Peter Bex for spotting this.  This closes pr lib/26404.
2004-07-24 13:10:47 +00:00
wiz a24a61f205 getcurx, getcury, getparx, and getpary also seem to be extensions. 2004-07-23 13:42:16 +00:00
wiz f849435424 Note that getbegx, getbegy, getmaxx, and getmaxy are extensions
to X/Open Curses. From Peter Bex in PR 26352.
2004-07-23 13:38:48 +00:00
drochner 458288a626 pull in an accuracy fix for corner cases from FDLIBM 5.3
(affects large arguments which are close to N*Pi+Pi/2):
    2. k_tan.c error was > 1 ulp target for FDLIBM
        5.2: Worst error at least 1.45 ulp at
        tan(1.7765241907548024E+269) = 1.7733884462610958E+16
        5.3: Worst error 0.96 ulp
2004-07-22 18:24:09 +00:00
tshiozak 09e09c2c2c make sure CITRUS=no to work. 2004-07-21 20:27:46 +00:00
tshiozak f1849eeaba - add support for "/force" symbol on locale.alias.
- a bit clean-up.
2004-07-21 18:51:30 +00:00
tshiozak 7b7f96b642 add prototype for load_locale_sub(). 2004-07-21 17:49:49 +00:00
tshiozak 335bc6323f add support for locale.alias file. 2004-07-21 14:18:16 +00:00
tshiozak 8ad8061809 use _citrus_lookup_alias() instead of __unalias(). 2004-07-21 14:17:22 +00:00
tshiozak 23affd3c41 make sure that _citrus_lookup family functions can be specified their case
sensitivity.
2004-07-21 14:16:34 +00:00
itojun 588f60ad8b now that e.f.f.3.ip6.arpa is ready, we no longer need to query ip6.int 2004-07-21 03:16:29 +00:00
he b17ac49bb1 Cast result of pthread__uc_pc() via intptr_t before using as a pointer.
Fixes compile problem for evbsh5.
2004-07-20 12:40:53 +00:00
chs 6c4049f2ff fix some stack-pointer math in the previous revision. 2004-07-20 01:51:49 +00:00
drochner 07d87c5c6e replace the str*() functions by speed optimized versions, submitted by
J.T. Conklin per PR port-amd64/25411
2004-07-19 20:04:41 +00:00
chs e348d7e175 add hppa MD libpthread bits. translated from MIPS. 2004-07-19 03:39:02 +00:00
chs c27bdd3547 added new files for context, LWP and siginfo support. 2004-07-18 22:41:23 +00:00
chs 1e1499c776 split __longjmp14() into a separate file and make it use setcontext()
instead of __sigreturn14().  translated from MIPS.
2004-07-18 22:38:33 +00:00
chs 61b506f0a2 add a siginfo signal trampoline and always use it. 2004-07-18 22:38:07 +00:00
chs 56371a56c7 add *context and LWP support for hppa. translated from MIPS. 2004-07-18 22:37:32 +00:00
chs 94a458cedd enhance MI pthreads code to support hppa:
- statically initialize all global spin locks.  on hppa, 0 means
   the lock is held, so leaving them with the default value doesn't work.
 - compare functions pointers using a function-pointer type rather than
   an integral type.  on hppa, function pointers may be indirect,
   so we need to trigger gcc to emit calls to the function-pointer
   canonicalization routines in the millicode.
 - on hppa the stack grows up, so handle that using the STACK_* macros.
2004-07-18 21:24:52 +00:00
chs 32c9e25b89 call abort() if longjmperror() returns. 2004-07-18 20:51:24 +00:00
chs 2f80fec241 replace these placeholders with real implementations.
translated from the mips version.
2004-07-18 20:48:04 +00:00
chs c2f33bd76d save and restore %t1 around calling __errno, it's a caller-saved register. 2004-07-18 20:44:05 +00:00
chs 7d976824e9 add a missing return instruction. 2004-07-18 20:30:04 +00:00
thorpej 2a63e04007 - Change the strong dlfcn names in libc to ___name, and make the __name
versions used by others in libc weak, so that we have:
	name: weak
	__name: weak
	___name: strong
- Add __name strong aliases of the dlfcn names in ld.elf_so, so that we have:
	name: strong
	__name: strong

This allows ld.elf_so to self-resolve both the name and __name variants
of the dlfcn functions, the former being required for dlfcn support in
applications, the latter being required for dlfcn support in libc.

Fixes the problem described in:

    http://mail-index.netbsd.org/tech-toolchain/2004/07/17/0000.html

Reviewed by Nick.
2004-07-18 17:26:19 +00:00
drochner c351eda960 amd64: stack sanity, leave the return PC alone 2004-07-16 18:40:24 +00:00
thorpej b8b64b05f9 Use ANSI function decls. 2004-07-16 16:11:43 +00:00
skrll 7bdf35d6e3 Add a copyright message. 2004-07-15 19:58:00 +00:00
junyoung ffb3101064 round(3) and roundf(3) appeared in 2.0.
Bump date.
2004-07-15 12:12:39 +00:00
wiz 5102b97303 Bump date for previous. 2004-07-14 20:10:14 +00:00
kleink ea50e13fa9 Add a STANDARDS section; noted by Peter Bex in PR standards/25957. 2004-07-14 19:12:26 +00:00
jonathan 98b92eb4a5 Commit manpage for krb5_set_password(3), based on Heimdal-20040606,
with small revisions by myself, reviewed/approved by Love.
2004-07-14 07:02:07 +00:00
seb ebe2c02564 Bump libc minor for wordexp(3) addition. 2004-07-13 15:45:18 +00:00
seb 2f8bbc118e Add wordexp(3). The wordexp function performs shell-style word expansions.
This implementation is wrapper around the undocumented wordexp sh(1)
built-in command.

From FreeBSD.
Provided in PR lib/26123.
Approved by kleink@.
2004-07-13 15:42:03 +00:00
jonathan e5f57f3a70 Commit changes from Heimdal-current, as per discussion with Love
(lha@NetBSD.ORG), to incorporate contemporary (last-year-ish)
set-password and change-password extensions derived RFC-3244
(Microsoft set-password/change-password extensions), and the
subsequent MIT-KRB5 APIs for changing and setting passwords.

Required for compatibility with recent (2002/2003-ish) open-source
code which uses the MIT KRB5 APIs for setting passwords, or for
joining Microsoft domains as a  "computer account".

Modified files (for pullup tracking purposes):
	lib/libasn1/Makefile
	crypto/dist/heimdal/lib/asn1/k5.asn1
 	crypto/dist/heimdal/lib/krb5/changepw.c
 	crypto/dist/heimdal/lib/krb5/krb5-protos.h
 	crypto/dist/heimdal/lib/krb5/krb5.h
2004-07-12 20:44:56 +00:00
enami c991543af7 Print 10450000 as 10M instead of 10.0M (more greater value such as
10500000 is printed as 10M).
2004-07-12 09:21:20 +00:00
enami 1b94ae7df7 No need to set divisor twice. 2004-07-12 09:14:07 +00:00
nathanw cb111b5e34 When _SOFT_FLOAT is defined, don't save or restore user FP context.
(note: still needs some mk rules tweaking for MKSOFTFLOAT=yes to pass
-msoft-float to asm builds).
2004-07-10 20:57:00 +00:00
wiz f46be40b71 Move RCS Id to top of file; comment out reference to trunc(3),
which we do not have.
2004-07-10 14:11:18 +00:00
junyoung bc836a3102 lib/24252: Add C99 functions round(3) and roundf(3).
libm minor unchanged; ride a recent bump.

From FreeBSD.
2004-07-10 13:49:09 +00:00
christos 18c8edba4d PR/23486: Andreas Gustafsson: gdb no longer works with emacs
- make sure that we keep previous contents of the buffer in unbuffered mode.
- when turning editing on and off keep tty consistent.
2004-07-08 00:51:36 +00:00
nathanw 821dde500e Fix a comment to say "Edit" instead of "Exit". 2004-07-07 18:21:33 +00:00
nathanw 993713df32 Recognize thread objects in addr2sync. 2004-07-06 19:33:53 +00:00
cube 2e61c89539 KERN_CP_TIME returns an arry of uint64_ts, not longs, as noted by Adam
Sampson in PR 23190.  Also, tell about ``kern.cp_time.#CPU''.
2004-07-05 11:45:12 +00:00
mycroft a10e4d1f3a Cardbus -> CardBus 2004-07-03 17:36:51 +00:00
junyoung 74d67c3551 Add strcasestr(3), case insensitive version of strstr(3).
Bump libc minor.

From FreeBSD.
2004-07-03 08:27:25 +00:00
simonb b52cdd0dd6 Copy the sparc/sparc64 __longjmp14() way of dealing with signal masks:
* Restore the signal mask with sigprocmask() instead of _UC_SIGMASK,
  * since libpthread may want to interpose on signal handling.

Fixes regress/lib/libpthread/siglongjmp1.
2004-07-03 05:44:55 +00:00
simonb b4f0be566a Catch up with changes to __fpregset_t.
In __longjmp14(), copy the FP CSR from the correct array and array slot.

Completes fix for PR port-mips/25942.
2004-07-03 05:10:06 +00:00
heas 2cc74cfa3e UDP checksums are always checked (RFC1122 S4.1.3.4), it is not controllable
by net.inet.udp.checksum.
2004-07-02 18:17:45 +00:00
drochner 3e7f9e1481 allocate stack space for temporary storage 2004-07-02 10:17:23 +00:00
christos 4b9f9bad8c remove __UNCONST definition; it is now in <sys/cdefs.h> 2004-07-02 03:00:01 +00:00
sjg 3a0c68edfd Add support for SHA1 hashed passwords.
The algorithm used is essentially PBKDF1 from RFC 2898 but using
hmac_sha1 rather than SHA1 directly (suggested by smb@research.att.com).

 * The format of the encrypted password is:
 * $<tag>$<iterations>$<salt>$<digest>
 *
 * where:
 *      <tag>           is "sha1"
 *      <iterations>    is an unsigned int identifying how many rounds
 *                      have been applied to <digest>.  The number
 *                      should vary slightly for each password to make
 *                      it harder to generate a dictionary of
 *                      pre-computed hashes.  See crypt_sha1_iterations.
 *      <salt>          up to 64 bytes of random data, 8 bytes is
 *                      currently considered more than enough.
 *      <digest>        the hashed password.

hmac.c implementes HMAC as defined in RFC 2104 and includes a unit
test for both hmac_sha1 and hmac_sha1 using a selection of the Known
Answer Tests from RFC 2202.

It is worth noting that to be FIPS compliant the hmac key (password)
should be 10-20 chars.
2004-07-02 00:05:23 +00:00
kleink d93fc4c14e Tidy up the namespace: lint -> __lint__. 2004-07-01 22:52:34 +00:00
drochner 07be12b505 also provide an alpha assembler implemtation of lrint() 2004-07-01 19:08:21 +00:00
nathanw 3a30736db7 td_sync_info(): explicitly clear the "locked" flag when unlocked,
instead of leaving it as garbage.
2004-07-01 18:59:52 +00:00
nathanw aaad58dd18 td_map_addr2sync(): recognize read-write lock objects. 2004-07-01 18:27:36 +00:00
drochner 5d151d763f enable lrint.S for amd64 (which doesn't build libm387),
and tighten the generic->machdep source distribution a bit to avoid
unwanted substitutions
2004-07-01 17:33:16 +00:00
drochner af7cf00a5a provide an assembler implementation of lrint() for i386 and amd64 2004-07-01 17:30:48 +00:00
drochner 9768ef916d bump libm minor version (functions added) 2004-07-01 16:14:18 +00:00
drochner 147d852dbc being here, add the (l)lround(f) functions to libm
(almost the same like lrint)
2004-07-01 16:09:21 +00:00
drochner 54e35f616a aboid to shift an int by more than 31 bits - behaviour is implementation
dependant in this case
2004-07-01 16:06:30 +00:00
kleink 2d356478dd Make the spelling of reentrant match the rest of the system. 2004-07-01 10:38:28 +00:00
skrll aeb58ad6a0 Add a cerror.S and re-work various syscalls and SYS.h to use __cerror.
With help from the OpenBSD version of SYS.h.
2004-07-01 06:50:04 +00:00
drochner d45473e8a3 fic the <close-to-1>^<huge number> fix as in e_pow.c 2004-06-30 18:45:25 +00:00
drochner a6d8e4cf79 -fix a long-standing bug which affects the <close-to-1>^<huge number> case
(fixed in fdlibm-5.3)
-being here, sync with -5.3 as far as possible (There is another bugfix -
 sign in overflow/underflow cases -; this doesn't change anything for us
 because the wrapper (w_pow.c) fixes this up. Keep things in sync anyway
 to ease further maintainance.)
2004-06-30 18:43:15 +00:00
drochner d76992e490 Implement (l)lrint(f).
(Could get some optimization for LP64; this would need a change to
the float access macros in math_private.h.)
2004-06-30 15:08:30 +00:00
drochner 0e6c93b9fa const'ify the arguments to pthread__assertfunc and _errorfunc;
needed because the __func__ pseudo-var is strictly "const*" in gcc-3.4
2004-06-25 16:33:32 +00:00
drochner dddd0e25a3 ANSIfy 2004-06-25 15:57:38 +00:00
wiz a26de71379 Do not xref ourselves; grammar fixes. 2004-06-25 15:29:25 +00:00
wiz da71bc8372 Sort sections. 2004-06-25 15:27:39 +00:00
itojun 7a97c46b28 support format for if_pflog.c (new format only/old format not supported)
Peter Postma
2004-06-25 12:22:23 +00:00
nathanw 47513cedb9 If the sleep sleeps for its full time and rmtp is non-NULL, clear it;
sleep(3) expects this, even though it's not a documented property of
nanosleep().

Fixes a problem where sleep() in a threaded program would return
nonzero even on success.
2004-06-24 22:18:11 +00:00
atatat eaa9fc4cc3 Reverse arguments to fcntl(2). 2004-06-22 13:49:43 +00:00
itojun 5e700978a6 fix missing license. 2004-06-21 21:20:05 +00:00
jmc b2f782612f Completely rework how tools/compat is done. Purge all uses/references to
_NETBSD_SOURCE as this makes cross building from older/newer versions of
NetBSD harder, not easier (and also makes the resulting tools 'different')

Wrap all required code with the inclusion of nbtool_config.h, attempt to
only use POSIX code in all places (or when reasonable test w. configure and
provide definitions: ala u_int, etc).

Reviewed by lukem. Tested on FreeBSD 4.9, Redhat Linux ES3, NetBSD 1.6.2 x86
NetBSD current (x86 and amd64) and Solaris 9.

Fixes PR's: PR#17762 PR#25944
2004-06-20 22:20:14 +00:00
thorpej a6ae8a84ac Slight hack to get this building on OS X again: Undo the renaming before
including the host's <pwd.h> to avoid renaming the host's versions of
these functions (which causes a prototype conflict).  After <pwd.h> has
been included, then re-apply the renaming.
2004-06-18 20:34:58 +00:00
christos 92cd5ee20c Don't allow openpty to succeed if the caller is non-superuser.
XXX: we cross-reference ptm 4 which does not exist (yet)
2004-06-18 02:42:57 +00:00
lha cc333b3dd7 Add list of async-signal-safe functions
Approved by wiz
2004-06-13 19:17:06 +00:00
scw 0f10094026 Cast integer to pointer types via intptr_t.
Problem reported by Havard Eidnes while building evbsh5.
2004-06-11 07:28:05 +00:00
lha bb3caff139 Expand a little bit on forks behavior in threaded programs
OK by nathanw and martin
2004-06-10 23:45:07 +00:00
martin 7347018381 Ouch. Lint didn't like the last change on sparc64. The reason:
<machine/reg.h> plays dirty naming tricks on sparc64 to allow 32bit
compatibility (reg ->  reg64 and the parameter in
PTHREAD_REG_TO_UCONTEXT() is called reg). This probably needs to be
fixed separately, but for now reordering the includes will do.
2004-06-10 18:06:19 +00:00
uebayasi 0571d32356 Minor fix in SEE ALSO; put xref first; .Pp before a sentence. 2004-06-10 14:01:45 +00:00
uebayasi f013145702 Split a sentence in SEE ALSO by a .Pp. 2004-06-10 13:58:47 +00:00
uebayasi 12db5f3635 Remove a superfluous .sp in the SEE ALSO section. 2004-06-10 13:53:48 +00:00
kleink 79d01decfe Update for use of uint{16,32}_t. 2004-06-10 11:37:35 +00:00
nathanw 41e871fe18 Avoid depending on declarations of struct reg and struct fpreg by using
the proc_regsize() callback to allocate reg and fpreg buffers as part of the
proc state (lazily initialized by the PT_STATE_RUNNING case of
td_thr_suspend()).

Fixes build on sh3 (and probably sh5) platforms.
2004-06-10 01:38:29 +00:00
christos 4b05f4b58a Jump through taller hoops to provide binary compatibility with programs
compiled with the older and shorter _res. We now use _nres internally
which is the new and bigger one.  We define a _res which is the old
size one if COMPAT__RES is set, and then we consult selected values from
this old _res in res_init(), to emulate the old behavior.
2004-06-09 18:07:03 +00:00
he 552a47b805 Revert previous; mhitch has already committed a workaround to ../Makefile.inc. 2004-06-06 17:09:48 +00:00
he 4b896b2324 It appears necessary to add -I. to CPPFLAGS for nslexer.c. This is
most probably caused by gcc 2.95.3; will be documented in doc/HACKS.
Reviewed by ragge.
2004-06-06 13:26:01 +00:00
ginsbach 9fcbc1ee6b Change remaining K&R style function definition to ANSI; Reviewd by <christos>. 2004-06-04 20:05:25 +00:00
christos 93b9ee2332 simplify and make more efficient (YAMAMOTO Takashi) 2004-06-03 19:32:27 +00:00
mhitch e1afa110dd A -I. is needed by vax; had gotten removed from elsewhere. 2004-06-03 16:34:19 +00:00
nathanw 568717a98d Get the td_thread_t * corresponding to nthread to mess with its lwp
data, rather than trying a nonsensical operation on a caddr_t from a
different address space.

Moral: test-compile in the same tree you're working in.
2004-06-03 15:22:08 +00:00
nathanw 387534cc0a Update cached LWP values when suspending the running thread. 2004-06-03 00:31:28 +00:00
nathanw bff67c76fe Add an offset to the thread ID numbers, because GDB really doesn't
cope with "thread 0".
2004-06-03 00:20:24 +00:00
nathanw 44a1e00a08 Remove a comment made obsolete by the previous commit. 2004-06-02 22:39:52 +00:00
nathanw 9edc974b8c Add support for reporting and examining suspended threads. 2004-06-02 21:18:25 +00:00
nathanw 24ddb5f789 td_map_lwps(): there's always one lwp. This makes the call work before
the thread system has started.

Additionally, mark not-on-LWP threads explicitly, so that there's no
risk of using stale information.
2004-06-02 21:15:42 +00:00
nathanw 92733106a3 Add td_thr_suspend() and td_thr_resume(), to suspend and resume
threads from the context of a debugger.
2004-06-02 21:13:42 +00:00
christos cd8fc4ae1f delete duplicate namespace protection. 2004-06-02 20:54:58 +00:00
pooka aff31bed2f pthread_spin_lock.3 also describes pthread_spin_trylock(),
so link them together
2004-06-02 14:07:07 +00:00
kleink d355352b08 Don't refer to errno as "global integer variable". 2004-06-01 16:12:51 +00:00
kleink 7de493a895 libc.so.12.120: addition of closefrom(3) 2004-06-01 16:07:17 +00:00
kleink e78a58d8d7 Sync section number with reality. 2004-06-01 16:06:43 +00:00
wiz ce20e7ac30 Use "In" instead of "Fd #include <...>". 2004-06-01 10:57:48 +00:00
itojun 347bbb94d3 oops, i've committed BSD auth stuff by mistake. 2004-05-31 06:51:59 +00:00
itojun 9e40b59093 EBADF is returned when fd < 0, so change text to tell the truth 2004-05-31 05:32:27 +00:00
itojun 34f8d0e9df closefrom(3) 2004-05-31 05:25:40 +00:00
itojun 56c1b44159 implement closefrom(3). 2004-05-31 05:06:51 +00:00
uwe 9da2eaca32 Provide _REENTRANT code. It's a wonder nobody has noticed this before.
Uncovered by multithreaded bind9 utils.
2004-05-28 23:39:09 +00:00
uwe 521748fbfa Fix typo in comment. 2004-05-28 22:58:25 +00:00
christos 388c103e83 PR/25003: John Kohl: File is missing a copyright. 2004-05-28 14:38:53 +00:00
wiz 508c6e7767 Uppercase Dt argument; \-1, not -1; sort SEE ALSO; & -> \*[Am]. 2004-05-28 00:10:57 +00:00
wiz 714885bde5 Drop trailing whitespace. 2004-05-28 00:06:50 +00:00
kleink 8bd97363d6 Merge tzcode2004a. 2004-05-27 20:39:49 +00:00
kleink 0e5c1261b9 Update for tzcode2004a. 2004-05-27 20:33:31 +00:00
christos 04562cac02 add a simple lock in _yp_check(), to make it re-entrant. 2004-05-27 18:41:11 +00:00
christos 71fe243008 make yp stuff re-entrant. 2004-05-27 18:40:07 +00:00
christos f099fa154d use the pty multiplexor if it exists. 2004-05-27 03:12:48 +00:00
christos d321ccdba8 bump; posix pty functions. 2004-05-27 03:08:07 +00:00
christos 892ad9caae unix/98 pty functions and manual pages. 2004-05-27 02:58:48 +00:00
petrov b4f8e35755 Add current directory to inlcude pathes as it needed for generated assym.h. 2004-05-25 21:06:50 +00:00
christos cbebf25ae4 remove stray NSUNLOCK(); pointed out by Brian Ginsbach. 2004-05-24 16:16:26 +00:00
lukem b8580dfae9 Put the description of "options" in a new paragraph, for consistency 2004-05-24 05:52:52 +00:00
christos 556949a68e Oops, forgot to commit this. 2004-05-24 01:20:17 +00:00
christos 3c2635eac1 Do all the _res initialization in __res_get_state() 2004-05-23 16:55:09 +00:00
christos 13cc3543b5 centralize res_*init() calls in __res_get_state() 2004-05-23 16:54:12 +00:00
christos 94564d94a6 make this thread-safe. 2004-05-23 16:53:22 +00:00
christos ba991ec242 one more missing weak_alias 2004-05-23 05:09:52 +00:00
lukem b817247988 Use MKPRIVATELIB=yes instead of providing an empty libinstall:: target and
setting NOLINT, NOPIC, NOPROFILE (etc)
2004-05-23 02:24:50 +00:00
christos 162504ee9b Provide access to the 8 symbols the bind8 resolver did, through weak aliases.
3 of them [res_send_*, and res_querydomain], were done incorrectly before...
2004-05-22 23:47:09 +00:00
christos b6b34b8065 fix memory leak; thanks to Logan Gabriel 2004-05-22 23:21:28 +00:00
christos 7168861fac Provide access to _res in the non-threaded case, and abort in the threaded
case.
2004-05-22 15:44:26 +00:00
kleink 6b3fbf5d75 IEEE Std 1003.1-2001/Cor 2-2004, item XSH/TC2/D6/5: fdatasync() shall
have cancellation points.

Note: we ride today's resolver-related version bumps.
2004-05-21 17:15:42 +00:00
christos 5ce4c264ed disable weak aliases for now; the resolver header file adds __ to all the
names.
2004-05-21 16:03:05 +00:00
christos 729d8bb9ff #ifdef protect __weak_alias 2004-05-21 16:02:40 +00:00
christos 6f3786f41c namespace protection for resolver routines. 2004-05-21 15:35:05 +00:00
martin 09e989c0e2 ptrdiff_t may be != int, so printf it with %tu instead of %u. 2004-05-21 08:20:50 +00:00
itojun 30dd6e8b37 inet6_{option,rthdr}_space are still alive. 2004-05-21 04:51:00 +00:00
christos d0631d4012 no support for printing dnssec key in libc 2004-05-21 04:24:53 +00:00
christos 627129c2d3 bump the version of this too. 2004-05-21 04:09:13 +00:00
christos 9b99e159b4 add pool code for res state.
XXX: could be more efficient.
2004-05-21 03:40:51 +00:00
christos 1dda7301b9 bump version.
XXX: this needs work
2004-05-21 03:33:44 +00:00
christos d14c1915e0 Finish bind9 resolver merge. 2004-05-21 02:30:03 +00:00
christos 3fa54233f6 Add the remaining files from net that are going to be moved here and
the Makefile glue.
2004-05-20 23:13:02 +00:00
christos df0952c6d2 - merge in our newer and better changes
- pass lint
- XXX: need to get rid of SPRINTF() macro
2004-05-20 23:12:33 +00:00
christos 39e7bb7142 import the parts of the bind9 lib/bind/inet directory directory that we
use.
2004-05-20 22:29:02 +00:00
christos e878251743 Add headers that ISC software [bind9] needs to include 2004-05-20 22:26:22 +00:00
christos fd00db407e - de-lint
- add NetBSD rcsid.
2004-05-20 20:35:05 +00:00
christos a8846ff30b - make prototypes for 16 and 32 bit types make sense.
- fix lint issues
- add NetBSD rcsid
2004-05-20 20:19:00 +00:00
christos 56d79e72ce add Makefile glue 2004-05-20 20:02:26 +00:00
christos 0c789e3239 import files needed from the nameser directory of bind9 2004-05-20 20:01:31 +00:00
christos 49a363f167 1. de-lint
2. NetBSD rcsid.
2004-05-20 19:52:31 +00:00
christos 3e5b2b5f54 makefile glue. 2004-05-20 19:52:14 +00:00
christos 8681712dac de-lint 2004-05-20 19:51:55 +00:00
christos 89abd4929c import isc specific header files. 2004-05-20 19:49:41 +00:00
christos ca31adbdcc netbsd rcsid. 2004-05-20 19:43:39 +00:00
christos 330989eefb import isc specific functions from bind9. 2004-05-20 19:34:32 +00:00
christos 50d86ec259 more lint fixes. 2004-05-20 19:31:52 +00:00
christos 7899178585 provide __h_errno_set() 2004-05-20 19:31:40 +00:00
christos fa406da826 Add glue files. 2004-05-20 18:00:55 +00:00
christos 1ad5eecb0b - add casts to appease lint
- fix unreachable condition pointed out by lint.
2004-05-20 17:59:43 +00:00
christos d2fb1f98f1 add casts to silence lint. 2004-05-20 17:43:31 +00:00
christos f5b0f7df42 silence lint. 2004-05-20 17:42:30 +00:00
christos d398b3c4b9 add casts to silence lint. 2004-05-20 17:41:00 +00:00
christos 08b5682b49 - add casts to silence lint
- add missing prototype
- rename variables to avoid hiding globals
2004-05-20 17:39:55 +00:00
christos df510acf5d - res_ourserver_p prototype was inconsistent (thanks lint)
- protect update functions with _LIBRESOLV
- add res_opt() to mirror res_nopt
2004-05-20 17:34:17 +00:00
christos f4f2cfc21a - don't use irs.
- h_errno is not going to be per-thread in our implementation.
2004-05-20 17:23:22 +00:00
christos 2b237084d1 Import libc portion of the resolver from bind9 2004-05-20 17:18:54 +00:00
kleink 675001e211 * Note string termination behaviour of NAME_MAX vs. PATH_MAX.
* Replace reference to non-existant KERN_NAME_MAX appropriately with
  {NAME_MAX}.
2004-05-19 11:40:51 +00:00
sjg 5d1af908f6 Apply patch from OGAWA Takaya to fix FreeBSD hosted builds.
The trick is to force use of the NetBSD versions of user_from_{uid,gid}().

PR: 24843
2004-05-18 22:14:35 +00:00
skrll 5e2026a163 Add code code for .init and .fini section fallthroughs and regression
test.
2004-05-18 19:19:34 +00:00
wiz 59c0620d8b Bump date for previous. 2004-05-18 14:53:47 +00:00
ragge 3a42a9c112 Update connect manpage to reflect current changes. 2004-05-18 12:21:29 +00:00
chs 255a1a9db8 __sigreturn14 -> compat_16___sigreturn14 2004-05-17 14:14:18 +00:00
skrll c007da99a0 Update for ELF. 2004-05-17 10:44:22 +00:00
lukem 7c3f906965 no need to define INTERNALLIB here 2004-05-17 05:49:54 +00:00
lukem 42415f999d Add entries for items found on the Microsoft Wireless MultiMedia Keyboard 1.1.
Spell "Microsoft" correctly.
2004-05-16 13:22:23 +00:00
mhitch a6d522d13c Add ceilf(), floorf(), and sqrtf() (as wrappers using ceil(), floor(), and
sqrt() repectively).  The fixes PR#22796.
2004-05-13 20:35:40 +00:00
wiz 64ebeb5cbc \- is a minus, not -. 2004-05-13 10:20:57 +00:00
wiz 339084de19 \- is a minus, not -. 2004-05-13 10:10:46 +00:00
kleink c54a69ad5a Like in shmget(2), elaborate on IPC_EXCL in the description. 2004-05-13 01:49:55 +00:00
kleink 2594bcf8ad Repair sentence in previous. 2004-05-13 01:43:13 +00:00
kleink aa87f3ef0e * Undo rev. 1.9, most of which was either redundant, inaccurate, or wrong.
* Elaborate on IPC_EXCL in the description.
2004-05-13 01:39:14 +00:00
kleink 15a5f3876a Don't use tm_gmtoff for %z: a strictly conforming ISO C application won't
initialize it.  However, instead of using what is suggested in this code
path, attempt get it right for DST as well.  Addresses PR standards/21722
from Richard Earnshaw.
2004-05-12 23:03:11 +00:00
toshii ac142bbda7 Fix typos. 2004-05-12 17:20:01 +00:00
wiz 7117989465 Sort sections; use \*[Lt]\*[Gt] instead of <>. 2004-05-11 20:02:54 +00:00
kleink 58c660fd11 When using PATH_MAX in the example, make sure we include <limits.h>! 2004-05-11 17:39:36 +00:00
kleink 3bb0518901 Add an example code piece; suggested by Thomas Klausner. 2004-05-11 17:38:18 +00:00
drochner f56a8e5871 make this build in the tools/compat reachover
case if HAVE_FPARSELN is not present
patch from Christian Limpach
2004-05-11 17:31:04 +00:00
wiz d5286aa001 End sentence with a dot. 2004-05-11 12:29:22 +00:00
kleink 4c5383c22f Don't use tm_zone for %Z: a strictly conforming ISO C application won't
initialize it.  Addresses PR standards/21722 from Richard Earnshaw.
2004-05-11 09:32:02 +00:00
kleink 8df3999b0c While I'm at it: add restrict qualifiers to readlink(2). 2004-05-10 22:33:08 +00:00
kleink 43b7ae77fa POSIX-2001: Change readlink(2)'s return type from int to ssize_t. 2004-05-10 22:28:23 +00:00
thorpej 1e627ed78e Make gmon / mcount work properly for threaded applications by keeping
thread-specific gmonparam structures and then merging them before dumping
the profile buffers.

Written by Nathan J. Williams, contributed by Wasabi Systems, Inc.
2004-05-10 22:16:42 +00:00
drochner d1a752ca4b put back the CAVEATS section
pointed out by wiz
2004-05-10 17:15:28 +00:00
drochner 1626697cbc remove the fgetstr manpage 2004-05-10 17:02:21 +00:00
drochner 64b5a4f2c6 Add FLOCKFILE() locking - should be threadsafe now.
(Didn't test the !HAVE_FPARSELN && !_REENTRANT case -- this might be
hit in tools/compat on some host platforms.)
2004-05-10 16:50:23 +00:00
drochner db594c6591 After discussion with christos, turn fgetstr() into an internal function.
Its API in inherently non-threadsafe (and it depends on certain properties
of the underlying stdio implementation), so it shouldn't be a first-class
function for general use, polluting the application namespace.
Also remove the FLOCKFILE() code from it - this is under control of the
calling function now.
(XXX I'm not sure whether the FLOCKFILE() should be kept in fgetln(),
this function cannot be used in multiple threads anyway. It doesn't
hurt much, and it might prevent corruption of internal FILE structures.)
2004-05-10 16:47:11 +00:00
kleink f52f2d3dfe Add a manual page for the standard-inspired offtime(3) and friends;
requested by Thomas Klausner.
2004-05-10 02:02:00 +00:00
lukem 2ebcc58148 sbsize should be parsed as R_CSIZE so that suffixes work correctly.
Fix from Christian Biere in PR [lib/25504].

(XXX: the R_CSIZE parsing should be changed to using strsuftollx(3))
2004-05-09 23:28:11 +00:00
kleink f379d2c8ac There are two instances of getsubopt.c, one in gen, which came by the
ways of 386BSD, and one in stdlib, which is from Lite-2.  The former was
picked up by the build process and has seen a little more maintenance
while the latter's location is "right", so bring the latter up to par
with the former and dispose of the (now) latter.

Reported by David A. Holland in PR lib/25160, which is worded in a
far less mind-boggling fashion than the above.
2004-05-09 19:34:11 +00:00
kleink a060c8818b We now need an internal name for fileno(), since when buildling libc
_REENTRANT we can no longer use the macro version from <stdio.h>.
2004-05-09 17:27:53 +00:00
yamt 609701c865 - note its typical usage.
- bump date.
2004-05-09 11:28:58 +00:00
kleink 95e4d0d7af Need namespace.h for internal names of strdup, strlcpy. 2004-05-09 11:26:33 +00:00
kleink 6352cc4399 Need namespace.h for internal names of fseeko, strlcpy. 2004-05-09 11:25:52 +00:00
kleink 6108f6dd87 Need namespace.h for internal name of strlcpy. 2004-05-09 11:25:20 +00:00