Commit Graph

6049 Commits

Author SHA1 Message Date
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
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
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
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
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
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
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
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
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
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
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