Commit Graph

44 Commits

Author SHA1 Message Date
elric bbf4f2d867 Sync this file up with its counterpart in libc,
src/lib/libc/gen/getgrent.c
Patch and PR provided by: FUKAUMI Naoki

Addresses PR lib/20365
2003-02-19 08:04:29 +00:00
chris e1f2f4db9e As sys/locale.h no longer includes some extraneous headers, localeconv.c
needs to include limits.h itself.
2002-11-19 23:15:59 +00:00
itojun 9b10247223 have setloginx() and friends to avoid linking *.o from libutil. PR 17820 2002-08-03 11:37:17 +00:00
elric 7836706b6a Modified pwmatchline to return the value to pw_class. This is not
strictly necessary for the install floppy, but it enables one to
build a rescue floppy with ssh(1) on it.  ssh dereferences pw->pw_class
and will therefore core dump if it is not set to something.

Reviewed By: simonb@NetBSD.ORG
2002-05-13 06:38:14 +00:00
tsutsui b85c5addbb Don't override DBG here. It should be defined in parent Makefiles. 2002-04-06 18:12:50 +00:00
lukem 484f8db2eb - Be consistent how libhack is used: If extra HACKOBJS (e.g., gethost.o) are
required, define them before pulling in libhack/Makefile.inc so that the
  dependencies work correctly.
- Other minor cleanups
2002-03-28 04:33:21 +00:00
lukem 25c4cc30b2 Disable libhack's gethost.o (replacement gethostby{name,addr}()) by default,
as they only support reading /etc/hosts, and its the "least useful" of
the libhack routines.  Add gethost.o back to Really Small media which
appears to need the space savings.
2002-03-25 07:43:39 +00:00
lukem a23934fd2a permanently disable opendir.o until its link bugs (on ELF platforms
only?) are sorted out.  speculation (based on some analysis by simonb)
is that it's because fts calls _opendir2 directly, which forces both
the libhack and the libc versions of opendir.o to be linked in.
in any case, there's space saves to be had elsewhere...
2002-02-03 22:39:52 +00:00
lukem 3ec71ac24d replace previous "cut down" getpwent.c with a version which is closer
to libc/gen/getpwent.c.  this version reads from master.passwd instead
of passwd  (thus removing the need to keep both in the mini file system
and having to run pwd_mkdb to generate the latter)
2002-02-02 15:57:54 +00:00
lukem d50281b041 sync closer to libc version 2002-02-02 15:31:58 +00:00
lukem 6d6c0437fa ansify 2002-02-02 15:08:06 +00:00
tv 7ec460046d Major readability cleanup; nuke redundancies; MKfoo=no -> NOfoo=. 2001-12-12 00:05:09 +00:00
jmc 0eadbed94d Change all COPTS+=-Os to DBG=-Os as that var actually controls the optimization
levels
2001-10-05 01:17:27 +00:00
martin c45ea630d3 Drop ``-Os'' on sparc64 due to toolchain issues.
The same change has already been applied on the 1.5 branch. The problems
(i.e. ifconfig not showing IP addresses) have been verified to still exist
with the new toolchain.
2001-08-20 12:19:43 +00:00
tsutsui f768d0ff1a Add definitions for weak aliases so that libhack functions
are actually linked instead of libc ones on ELF systems.
Fixes install/13050 and install/13153.
2001-06-15 17:26:50 +00:00
kleink 8a9b17ef14 Sync with gethostbyaddr() declaration change in <netdb.h> rev. 1.21;
from <lha@stacken.kth.se> in PR misc/12775.
2001-04-28 14:56:42 +00:00
abs bd9b9e0b4c Shave another few bytes here and there - compile with -Os 2000-08-22 14:06:37 +00:00
tshiozak 2ef55c239a Add __mb_cur_max and rename setlocale function.
(Lack of __mb_cur_max causes to import setlocale.o in libc.a
and causes conflict of symbol, pointed out by Johan Danielsson.)
2000-08-11 19:58:34 +00:00
matt e123fd0f5a Compile things with -Os. I wonder if compiling -Mno-pic for mips and vax
would shrink them even more?
2000-05-18 00:43:05 +00:00
pk e42055a6de Deal with name space issues after libc/net updates. 2000-01-14 13:52:13 +00:00
dan 800ff533b4 Combine the Makefile.inc and Makefile, and specify the $(HACKOBJS)
directly to work around the fact that $(OBJS) seems to produce a double list of
each .o for some reason.

XXX Why does $(OBJS) list doubles?
1999-09-26 04:49:37 +00:00
christos f6b5fa06ab Fix floppy build in the presense of weak symbols. 1999-09-19 19:51:11 +00:00
fvdl 440bb56d81 Don't use .PATH here, it won't work because of crunchgen. XXX 1999-06-30 22:21:57 +00:00
mrg e7e33e2136 miniroot changes:
install.sub:
	- fix interface grovelling, ifmedia support, allow ifmedia and link
	  to have a "none" (-> "") answer (which lets you give nothing when
	  a default answer is given)
	- allow installing more than one set at a time, including "all" as
	  a synonym for all remaining sets
	- mount -o async when extracting sets
    makeconf.awk:
	- put default "libs" section at the end rather than the start, so
	  you can put other "libs" in before this list
	- minor cleanup

    mtree.conf:
	- create /kern

    sparc install.md:
	- MDSETS are now "kern xbase xcomp xcontrib xfont xserver"
	- use /kern & kernfs (replaces dmesg)
	- replace grep & cut pipe lines with sed
	- replace grep hackery with sed hackery
	- grep and cut are no longer required!  yay!
	- deal with no /usr/bin/vi -- call disklabel -i
	- in md_copy_kern() link the netbsd.GENERIC we got from the kern set,
	  rather than the miniroot kernel
    sparc miniroot list:
	- no more dmesg, cut or grep

sparc ramdisk changes:
    Makefile:
	- `ramdiskbin.conf' is now generated by makeconf.awk
	- don't use libhack's opendir, it breaks
    dot.profile:
	- don't assume terminal is `sun'
	- set EDITOR=ed
	-
    list:
	- instbin -> ramdiskbin to make `makeconf.awk' work
	- CRUNCHSPECIAL those special dirs
	- add our LIBS as necessary

libhack changes:
	- if NOLIBHACKOPENDIR is set, don't build opendir.o
1999-06-27 12:55:58 +00:00
danw a70101fd7b const poison login 1999-06-21 02:32:20 +00:00
gwr 74d4236abd Warning fixes from kurt.schreiner 1999-05-27 05:41:15 +00:00
gwr b6019bb35a fix warning allegedly reported on i386 1999-05-23 22:08:17 +00:00
gwr bb4c388e4e New files... 1999-05-19 03:58:13 +00:00
gwr a68da00556 Prune out NLS stuff. 1999-05-19 03:55:33 +00:00
gwr 0538cba737 Stubbed-out utmp file functions. 1999-05-19 03:54:40 +00:00
gwr 573562df6c Slimmed-down localeconv 1999-05-19 03:53:58 +00:00
gwr 1cf8e1e36b Prune out references to qsort in opendir unionfs code.
(Never needed on a ramdisk root.)
1999-05-19 03:53:03 +00:00
wrstuden f2a11156e3 We don't need to give explicit rules for .c.o conversion, the default
ones work fine, and are correct for cross-compiling.
1999-05-06 18:48:23 +00:00
sommerfe 93c6dea365 Make it more clear where this came from. 1999-03-13 19:11:54 +00:00
sommerfe a8ff351bae Warnsify.
Add reduced version of getcap routines, so sysinst need not drag in
the database goop via libtermcap.
1999-03-13 19:08:43 +00:00
lukem dcab0210a0 convert from NOxxx= to MKxxx=no.
include <bsd.own.mk> if testing a MKxxx variable.
1999-02-13 02:54:17 +00:00
perry 4900e681b0 bcmp->memcmp 1998-08-10 02:22:30 +00:00
perry 3fe138c146 RCS Id Police. 1998-01-09 08:03:16 +00:00
gwr 727536cab0 Add getnet.c 1997-12-12 03:36:38 +00:00
gwr 717a6b07a9 Keep getnetbyname from pulling in the resolver. 1997-12-12 03:05:59 +00:00
jtc 34d9f1513d merge in 1.2 branch 1996-10-09 00:13:36 +00:00
gwr 713bf81a5b lob off some more libc code 1996-09-13 18:57:38 +00:00
gwr cba18d24c6 Minor cleanup 1995-10-13 18:10:06 +00:00
gwr f75c79d821 Add some utilities all ports might use in a ramdisk root. 1995-10-08 23:08:46 +00:00