Commit Graph
481 Commits
Author SHA1 Message Date
David E. O'Brien 6d9b5cdd0e MFC: back out wint_t and mbstate_t as I am tired of the complaints.
The STLport will probably become broken again, but I'll work on fixing it
later.

I wish someone would explain why the NetBSD Cirtus branch has the types
in their stddef.h...
2001-05-24 19:32:09 +00:00
Boris Popov 0df6a26414 MFC: include directories for netsmb and smbfs.
Submitted by:	ru
2001-05-22 09:03:27 +00:00
David E. O'Brien 9b8531a258 MFC: Add mbstate_t and wint_t.
Spell _BSD_TIME_T_ consistently as `int'.
	 Update comments.
	 Style tweaks.
2001-05-18 05:53:09 +00:00
cvs2svn 980ef5a617 This commit was manufactured by cvs2svn to create branch 'RELENG_4'. 2001-05-13 00:03:40 +00:00
Hajimu UMEMOTO d05b27ff8b MFC: IPv4 address is not unsigned int.
include/arpa/inet.h:		1.11->1.12
	lib/libc/net/inet.3:		1.11->1.12
	lib/libc/net/inet_addr.c:	1.12->1.13
	lib/libc/net/inet_lnaof.c:	1.2->1.3
	lib/libc/net/inet_makeaddr.c:	1.2->1.3
	lib/libc/net/inet_neta.c:	1.6->1.7
	lib/libc/net/inet_netof.c:	1.2->1.3
	lib/libc/net/inet_network.c:	1.6->1.7
	sys/alpha/include/endian.h:	1.3->1.4
	sys/netinet/in.h:		1.53->1.54
	sys/sys/types.h:		1.41->1.43
2001-04-21 14:53:06 +00:00
Hajimu UMEMOTO 781038bdd1 MFC: Nuke non-standard EAI_RESNULL.
include/netdb.h:		1.17->1.18
	lib/libc/net/getaddrinfo.c:	1.19->1.20
2001-04-21 14:25:50 +00:00
Jonathan Lemon c9038eeff1 MFC: Allow user to specify glob limits, default to unlimited matches. 2001-03-21 14:33:56 +00:00
David E. O'Brien c533cd080a MFC: mpool.c(1.6-7) & mpool.h(1.8): use TAILQ instead of CIRCLEQ 2001-03-05 23:05:08 +00:00
David E. O'Brien 250ca53067 MFC:
Convert all users of fldoff() to offsetof().  fldoff() is bad
because it only takes a struct tag which makes it impossible to
use unions, typedefs etc.

Define __offsetof() in <machine/ansi.h>
Define offsetof() in terms of __offsetof() in <stddef.h> and <sys/types.h>
2001-03-05 13:09:13 +00:00
David E. O'Brien cab169372f MFC: 1.129: Be extra certain that "#include <osreldate.h>" must not be used
in kernel code.
2001-03-05 12:54:39 +00:00
David E. O'Brien 26b26d84bb MFC: 1.4: Fix typo: seperate -> separate. 2001-03-05 12:47:48 +00:00
David E. O'Brien 6b1c3780e2 MFC: 1.6: Fix typo: compatability -> compatibility. 2001-03-05 12:46:40 +00:00
David E. O'Brien a2bf8af6ef Fix style nit I introduced. 2001-03-05 12:45:48 +00:00
David E. O'Brien e539ff49e7 MFC: getlogin rev 1.5
Change the interface of getlogin_r to return an int.  The former
interface was based on a draft version of POSIX whereas the final
(1996) version of POSIX specified that the error is returned.

While I'm here, fix getlogin_r so that it works for more than just
the first time it's called.
2001-03-05 09:06:51 +00:00
Alfred Perlstein 53629b01f8 MFC: mark pthread_exit() as a non-returning function 2001-03-04 22:38:48 +00:00
David E. O'Brien 77151c2072 MFC: Impliment the ISO-C99 strto[u]ll()
and rewrite strto[u]q() in terms of it.
2001-03-02 09:45:20 +00:00
Hajimu UMEMOTO 5e58195b50 MFC: Enable AI_ADDRCONFIG as a valid flag of getaddrinfo(3). Some
applications specify AI_ADDRCONFIG and fail to run under FreeBSD.
Latest mnews is known.  Now, getaddrinfo(3) behaves according to
AI_ADDRCONFIG.

	include/netdb.h:		1.16->1.17
	lib/libc/net/getaddrinfo.c:	1.16->1.17
2001-02-26 07:34:09 +00:00
Hajimu UMEMOTO 5c27b72a56 MFC: Correct 2nd argument of getnameinfo(3) to socklen_t.
include/netdb.h:		1.15->1.16
	lib/libc/net/getnameinfo.c:	1.6->1.7
	sys/alpha/include/ansi.h:	1.10->1.12
	sys/i386/include/ansi.h:	1.19->1.21
	sys/sys/socket.h:		1.47->1.49
2001-02-26 07:24:22 +00:00
Peter Wemm 736ede7e2b MFC: rfork_thread(3) 2001-02-07 00:12:45 +00:00
David E. O'Brien 6034d13a9e MFC: add /dev/zero and use PATH_* where possible. 2000-12-11 01:03:42 +00:00
Adrian Chadd 1bedf1a9d9 MFC des' import of the XPG4-based basename/devname into RELENG_4.
Approved by:	jkh
2000-11-12 18:01:57 +00:00
Brian Somers fd90637664 Create include/netnatm
Approved by:	jkh
2000-11-03 01:30:58 +00:00
David Malone 2bdc520c67 MFC: Vairous cleanups and fixes for the bitstring macros. 2000-10-30 11:21:04 +00:00
Ruslan Ermilov 9560793270 MFC: (rev 1.122) do not clobber ${DESTDIR}/usr/include/{isofs,ufs,dev}. 2000-10-03 09:38:36 +00:00
John Polstra 1b576e53c5 MFC: Add support for dlsym(RTLD_DEFAULT, ...).
dlfcn.h:      1.10 -> 1.11
  rtld.c:       1.48 -> 1.49
  rtld.h:       1.19 -> 1.20
2000-09-22 02:22:52 +00:00
John Polstra 3f2cc942f2 MFC 1.20 -> 1.21: Fix prototype of r_brk to agree with change to
dynamic linker.
2000-09-22 02:08:25 +00:00
Brian Feldman 0a25ad1031 MFC: login.conf password format switching 2000-09-20 11:19:55 +00:00
Brian Somers b31e3e417a MFC: Move setproctitle() from libutil to libc
and bump __FreeBSD_version to 410002 to mark the occasion.
2000-09-16 22:47:18 +00:00
cvs2svn 63f72fa3bd This commit was manufactured by cvs2svn to create branch 'RELENG_4'. 2000-09-11 07:14:44 +00:00
John Baldwin 38925f2ca4 MFC: VIS_HTTPSTYLE 2000-08-17 08:25:54 +00:00
John Baldwin c17ce707d2 MFC: Add missing const's and a missing prototype. 2000-08-17 08:17:58 +00:00
John Baldwin 95712d5942 MFC: Add $FreeBSD$ 2000-08-17 08:10:05 +00:00
John Baldwin e065e1b70f MFC: Use the same IEEE fp types on the alpha as on the i386. 2000-08-17 08:08:15 +00:00
John Baldwin 6c7f93e6a8 MFC: Binary search tree code. 2000-08-17 07:38:39 +00:00
Kris Kennaway e6d0854e13 MFC: Merge KAME 2000/07 code. 2000-07-15 07:29:31 +00:00
John Hay bf5e7d2875 Fix the world and releases.
PR:		19889
Submitted by:	Udo Schweigert <[email protected]>
2000-07-13 16:31:10 +00:00
David E. O'Brien df556fbf3e MFC: rev 1.113 (install /usr/include/dev/ppbus) 2000-07-12 22:56:00 +00:00
cvs2svn 209a6f5a68 This commit was manufactured by cvs2svn to create branch 'RELENG_4'. 2000-07-10 19:20:09 +00:00
Josef Karthauser 3657b038c7 MFC: revision 1.36.
Add fflagstostr and strtofflags prototypes.
2000-07-03 18:09:40 +00:00
Ruslan Ermilov 4e10331a2d MFC: (rev 1.110) Unbroke `make symlinks; make copies' sequence. 2000-06-13 08:10:34 +00:00
cvs2svn 842f308487 This commit was manufactured by cvs2svn to create branch 'RELENG_4'. 2000-03-13 04:59:44 +00:00
Jason Evans 60ad8853e0 Do not conditionalize function prototype definition for functions we
implement.

Noticed by:	Thimble Smith <[email protected]>
Approved by:	jkh
2000-02-20 07:40:25 +00:00
David E. O'Brien f506ed7467 There is a problem in that one cannot use ctype.h at the same time as parts
of the C++ stdlib.  Our ctype.h uses symbols of the form _<X> to denote the
various character classes.  Our ctype.h also extends the usual ctype.h
offering by adding the "_T" (special) class.  Problem is parts of the STL
also use the symbol "_T" as its parameterized type.  These two uses are
incompatible.

Thus change the form of the symbols used in ctype to something that fixes
the current problem and is less likely to cause conflicts in the future.

Requested by:	Tomoaki NISHIYAMA <[email protected]>
Ok'ed by:	JKH
2000-02-08 07:43:26 +00:00
Yoshinobu Inoue 12cefbcc20 Change IPv6 address scope delimeter from '@' to '%' as recent KAME change.
'@' conflicts with existing notations such as user@host, so '%' is better.

Approved by: jkh

Obtained from: KAME project
2000-02-08 05:12:45 +00:00
Josef Karthauser 418d67b0d9 Revert part of the last commit, remove {g|s}etflags from the libc
interface, and statically link them to the programs using them.
These functions, upon reflection and discussion, are too generically
named for a library interface with such specific functionality.
Also the api that they use, whilst ok for private use, isn't good
enough for a libc function.

Additionally there were complications with the build/install-world
process.  It depends heavily upon xinstall, which got broken by
the change in api, and caused bootstrap problems and general mayhem.

There is work in progress to address future problems that may be
caused by changes in install-chain tools, and better names for
{g|s}etflags can be derived when some future program requires them.
For now the code has been left in src/lib/libc/gen (it started off
in src/bin/ls).

It's important to provide library functions for manipulating file
flag strings if we ever want this interface to be adopted outside
of the source tree, but now isn't necessarily the right moment
with 4.0-release just around the corner.

Approved:	jkh
2000-02-05 18:42:36 +00:00
Yoshinobu Inoue e3be4d7b7e sync iruserok() extension API with other BSDs
Some of rcmd related function is need to be updated to
  support IPv6. Some of them are already updated as standard
  document. But there is also several de-facto functions and
  they are not listed in standard documents.
  They are,

    iruserok()  (used by rlogind, rshd)
    ruserok()   (used by kerberos, etc)

  KAME package updated those functions in original way.

    iruserok_af()
    ruserok_af()

  But recently there was discussion on IETF IPng mailing
  list about how to sync those API, and it is decided,

    -Those function is not standard and not documented.
    -But let BSDs sync their API as de-facto.

  And after some discussion, it is announced that

    -add update to iruserok() as iruserok_sa()
    -no ruserok() API change(it is only updated internaly)

So I sync those API before 4.0 is released.
The changes are,
   -prototype changes
   -ruserok() internal update (use iruserok_sa() inside)
   -removal of ruserok_af()
   -change iruserok_af() as static functioin, and also prefix the name with __.
   -add iruserok_sa() (Just call __iruserok_af() inside)
   -adding flag AI_ALL to getipnodebyaddr() called from __icheckhost().
    This is necessary to support IPv4 communication via AF_INET6 socket
    could be correctly authenticated via iruserok_sa()
   -irusreok_af() call is replaced to iruserok_sa() call
    in rlogind, and rshd.

Approved by: jkh
2000-02-01 15:55:56 +00:00
John Polstra 8a889bcb26 Add a #define for RTLD_LOCAL as required by the Single Unix
Specification.
2000-01-29 01:53:35 +00:00
Josef Karthauser 18c0eeddf7 Historically file flags (schg, uschg, etc) have been converted from
string to u_long and back using two functions, flags_to_string and
string_to_flags, which co-existed with 'ls'.  As time has progressed
more and more other tools have used these private functions to
manipulate the file flags.

Recently I moved these functions from /usr/src/bin/ls to libutil,
but after some discussion with bde it's been decided that they
really ought to go in libc.

There are two already existing libc functions for manipulating file
modes:  setmode and getmode.  In keeping with these flags_to_string
has been renamed getflags and string_to_flags to setflags.

The manual page could probably be improved upon ;)
2000-01-27 21:17:01 +00:00
Peter Wemm 4ba5197729 Sigh. Really fix it this time. It seems the first time through the
run it would modify the source tree, causing it to fail the second
time around. Sigh.
2000-01-26 17:38:51 +00:00
Peter Wemm 400dc95012 Fix world breakage (kdump, truss) causes by rev 1.107 (adding dev/usb).
It was creating ${.OBJDIR}/${MACHINE}/usr/include/dev -> .../sys/dev
and mkioctls would descend that and saw *all* of src/sys/dev/*/*.h,
not just dev/usb/*.h.  It then choked on the dpt includes.
2000-01-26 17:12:09 +00:00