Commit Graph

27 Commits

Author SHA1 Message Date
kan
06738040d3 Avoid casts as lvalues. 2004-07-28 05:44:52 +00:00
bp
55abc27e2c Distinguish cases when ncp module not loaded and when module have old
interface.
2004-06-02 03:41:10 +00:00
bde
6ef6df415f Fixed a misspelling of 0 as NULL. Removed a spelling of NULL as 0. 2004-03-14 05:19:38 +00:00
peter
7fa8de132d Fix for 64 bit platforms. sysctl's length args are pointers to
size_t, not int.  This could be fatal where size_t is long.

Reviewed by:	bp
2003-07-25 19:17:46 +00:00
imp
3dc2fb1b37 No need to have ifdef < FreeBSD 4.0-current in here. Remove it to
avoid false positive while searching for __FreeBSD_version abuse.
2003-04-04 04:16:06 +00:00
tjr
f0f7e125c8 Use a character device and ioctl() for communication between libncp
and the kernel instead of adding more syscalls at runtime. As a bonus,
you can now restrict access to the kernel NCP interface with chmod.
2003-02-28 04:31:29 +00:00
peter
8d8b96d08c Zap now-unused SHLIB_MINOR 2002-09-28 00:25:32 +00:00
wollman
6242faab63 Add missing newline at end of file. 2002-05-30 20:51:53 +00:00
bp
ecdbecd6df Add character translation table between Unix and NetWare according
to Sweden standards.

Submitted by:	Roger Olofsson <roger.olofsson@kommun.engelholm.se>
MFC after:	1 week
2002-04-20 05:35:02 +00:00
markm
146609ba72 Do not use __progname directly (except in [gs]etprogname(3)).
Also, make an internal _getprogname() that is used only inside
libc. For libc, getprogname(3) is a weak symbol in case a
function of the same name is defined in userland.
2002-03-29 22:43:43 +00:00
obrien
b68f4814f6 Remove multi-line __P() usage. 2002-03-22 09:22:15 +00:00
obrien
f597ce10f8 Remove __P() usage. 2002-03-21 23:54:04 +00:00
mike
b2f3aa6012 o Move NTOHL() and associated macros into <sys/param.h>. These are
deprecated in favor of the POSIX-defined lowercase variants.
o Change all occurrences of NTOHL() and associated marcros in the
  source tree to use the lowercase function variants.
o Add missing license bits to sparc64's <machine/endian.h>.
  Approved by: jake
o Clean up <machine/endian.h> files.
o Remove unused __uint16_swap_uint32() from i386's <machine/endian.h>.
o Remove prototypes for non-existent bswapXX() functions.
o Include <machine/endian.h> in <arpa/inet.h> to define the
  POSIX-required ntohl() family of functions.
o Do similar things to expose the ntohl() family in libstand, <netinet/in.h>,
  and <sys/param.h>.
o Prepend underscores to the ntohl() family to help deal with
  complexities associated with having MD (asm and inline) versions, and
  having to prevent exposure of these functions in other headers that
  happen to make use of endian-specific defines.
o Create weak aliases to the canonical function name to help deal with
  third-party software forgetting to include an appropriate header.
o Remove some now unneeded pollution from <sys/types.h>.
o Add missing <arpa/inet.h> includes in userland.

Tested on:	alpha, i386
Reviewed by:	bde, jake, tmm
2002-02-18 20:35:27 +00:00
bde
94220967cf Compensate for "Compensate for header dethreading" by backing it out. 2001-10-10 17:48:44 +00:00
dillon
bb1769d86f Add __FBSDID()s to libncp 2001-09-30 22:01:19 +00:00
kris
7a9caa3fb8 Mark some functions as __printflike() and/or taking const char * arguments
instead of char *.

MFC after:	2 weeks
2001-08-20 12:53:36 +00:00
ru
f94bdbba2f - sys/n[tw]fs moved to sys/fs/n[tw]fs
- /usr/include/n[tw]fs moved to /usr/include/fs/n[tw]fs
2001-05-26 11:57:45 +00:00
markm
dbb5c016a0 Compensate for header dethreading. 2001-05-01 09:24:15 +00:00
jake
5e208b0c18 Back out the previous change to the queue(3) interface.
It was not discussed and should probably not happen.

Requested by:		msmith and others
2000-05-26 02:09:24 +00:00
jake
1d685644e0 Change the way that the queue(3) structures are declared; don't assume that
the type argument to *_HEAD and *_ENTRY is a struct.

Suggested by:	phk
Reviewed by:	phk
Approved by:	mdodd
2000-05-23 20:41:01 +00:00
bp
78524f4810 Remove duplicated extern.
Submitted by:	Nathan Ahlstrom <nrahlstr@winternet.com>
2000-01-01 14:21:31 +00:00
peter
c410dc5e8e Repo copy ncp_cfg.h ncp_lib.h ncp_file.h ncp_rcfile.h from here to
sys/netncp/*.  Disconnect them from here to avoid breakage.

Submitted by:	 bp
1999-11-12 15:09:58 +00:00
bp
447387e892 Change structure field tolower to to_lower. The same for the toupper. 1999-11-03 03:17:31 +00:00
bp
2a2e1c0de0 Add support for C++ in the headers. Some style cleanup.
Pointed by:	bde
1999-10-31 03:39:03 +00:00
bp
e039eb5fe8 Handle SAP responces in a more correct way. Allow connection number
greater than 255 in the broadcast messages.
1999-10-29 12:59:59 +00:00
bp
4be9d9cfea Use ${INSTALL} instead of 'install'. 1999-10-21 01:50:21 +00:00
bp
d0481cae52 Initial import of ncp library sources.
Reviewed by:	jdp, mdodd
1999-10-12 11:56:41 +00:00