Commit Graph

9829 Commits

Author SHA1 Message Date
kleink 9508efa066 Internally rename getdevmajor(); noted by Geoff Wing. 2004-12-16 12:30:04 +00:00
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