Commit Graph

1130 Commits

Author SHA1 Message Date
yamt
354b4aa135 put back inline to __inline, as it's a user-visible header. 2005-12-28 15:26:06 +00:00
perry
e67ad767f5 inline -> __inline for selected things (specifically, the header
file is POSIX visible and the usage isn't #ifdef _KERNEL)

Discussed with core. I may need to go farther than this but for now
compilations done with gcc -ansi (i.e. firefox) will be okay.
2005-12-27 17:21:28 +00:00
perry
5f65228b74 u_intN_t -> uintN_t 2005-12-26 19:01:47 +00:00
perry
971a8b8cc7 __const__ -> const
This is in an __attribute__ so it isn't really necessary, but it gets
it out of the listing of __keyword__s...
2005-12-24 23:04:05 +00:00
perry
a2cd732268 Remove leading __ from __(const|inline|signed|volatile) -- it is obsolete. 2005-12-24 19:12:23 +00:00
christos
724f51cbd9 expose setuserpath and setuserenv, now used by xdm. 2005-12-20 21:31:27 +00:00
yamt
347f995cea - constify and remove __UNCONST from caller of clnt_call().
- use __UNCONST where approproate.
2005-12-03 15:16:19 +00:00
christos
1f2f080275 sprinkle __UNCONST 2005-11-29 03:12:58 +00:00
christos
8e7266788d PR/32108: Greg Oster: fpgetmask() linking failure with g++ on macppc
Missing __{BEGIN,END}_DECLS.
2005-11-18 20:02:59 +00:00
kleink
34ef731cb3 Change the sched_*() functions to return -1 and set errno to ENOSYS
(per the standard) instead of returning ENOSYS.  Noted by Ian Zagorskih
in PR kern/30970.
2005-10-09 11:17:28 +00:00
rpaulo
35d2bef12a Add a comment asking to update sysexits(3) when adding more entries. 2005-09-30 20:56:19 +00:00
kleink
21ef7cfd14 Move ttyname_r() to the 1003.1c-1995 section. 2005-09-26 12:52:42 +00:00
kleink
ffff20ba60 Move getenv_r() to the local section. 2005-09-26 12:51:34 +00:00
christos
2b46305054 ttyname_r returns int. 2005-09-25 20:28:56 +00:00
christos
e86a6cb1b4 Add getenv_r and ttyname_r 2005-09-25 20:08:15 +00:00
xtraeme
af4a812af1 Add missing prototype for the MD5FileChunk() function. (hi elad!) 2005-09-25 00:48:21 +00:00
elad
b8cc6b61c3 Fix prototype. 2005-09-24 22:08:30 +00:00
elad
8b546d68f7 Define MD2_DIGEST_LENGTH and MD2_DIGEST_STRING_LENGTH.
Noted by xtraeme@.
2005-09-24 21:30:38 +00:00
elad
8c28d108b5 Use new location.
XXX This is left here for backwards compatibility.
2005-09-24 18:35:42 +00:00
christos
c4445bc71c rename osockaddr to talkd_sockaddr and use that instead. 2005-09-24 16:40:01 +00:00
drochner
ccaf4d6706 use __inline as before, otherwise "gcc -ansi" blows up 2005-09-15 13:44:41 +00:00
christos
9d2cc4eaf5 Fix opendir30 screwup and sort the compat defs for clarity. 2005-09-14 20:20:15 +00:00
elad
b86ce3e403 Forgot these when imported pw_policy(3).
Thanks to Hisashi T Fujinaka for noticing.
2005-09-14 15:59:10 +00:00
christos
66412e7240 compat code reorg 2005-09-13 01:44:32 +00:00
christos
99c8f5662d Change ino_t to u_int32_t for compatibility with the current dump/restore
format. Unfortunately this means that all dumps taken from the time of
the 64 bit inode changes (August 16th) will become unreadable with this
commit. To make them readable again, you can back-out this commit temporarily.
Please note, that I am not adding 64 bit inode support to the format on
purpose right now, because supporting 64 bit inodes on-disk will require
additional changes, and it is more appropriate to add such support then.
2005-09-06 17:03:59 +00:00
uwe
b2822da5b4 Get rid of the #if !HAVE_NBTOOL_CONFIG_H kludge. None of host tools
uses this header now.
2005-08-27 22:55:54 +00:00
christos
3303764533 64 bit inode changes 2005-08-19 02:04:54 +00:00
christos
b43b0b010f Add strerror_r. 2005-07-28 16:26:53 +00:00
christos
1f35645781 Add log2f 2005-07-21 12:56:29 +00:00
christos
76e7e3ea51 Cast large constant to int. 2005-07-16 17:20:12 +00:00
drochner
ecef4b3d3f The source array of lsearch() shouldn't be "const".
Being here, cleanup the const castaway stuff.
2005-07-06 15:47:15 +00:00
he
8d673b50bf Add const to the tsptype array, compiled under TSPTYPES.
Found while building for vax.
2005-07-05 21:57:08 +00:00
thorpej
65412a2710 Implement expansion of special "magic" strings in symlinks into
system-specific values.  Submitted by Chris Demetriou in Nov 1995 (!)
in PR kern/1781, modified only slighly by me.

This is enabled on a per-mount basis with the MNT_MAGICLINKS mount
flag.  It can be enabled at mountroot() time by building the kernel
with the ROOTFS_MAGICLINKS option.

The following magic strings are supported by the implementation:

	@machine	value of MACHINE for the system
	@machine_arch	value of MACHINE_ARCH for the system
	@hostname	the system host name, as set with sethostname()
	@domainname	the system domain name, as set with setdomainname()
	@kernel_ident	the kernel config file name
	@osrelease	the releaes number of the OS
	@ostype		the name of the OS (always "NetBSD" for NetBSD)

Example usage:

	mkdir /arch/i386/bin
	mkdir /arch/sparc/bin
	ln -s /arch/@machine_arch/bin /bin
2005-06-23 00:30:28 +00:00
dyoung
a37289db57 Make disklabel(8) and fdisk(8) into "host tools " last step: build
and install ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-disklabel,
${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-fdisk by "reaching over" to
the sources in ${NETBSDSRCDIR}/sbin/{disklabel fdisk}/.

To avoid clashes with a build-host's header files, especially on
*BSD, the host-tools versions of fdisk and disklabel search for
#includes such as disklabel.h, disklabel_acorn.h, disklabel_gpt.h,
and bootinfo.h in a new #includes namespace, nbinclude/.  That is,
they #include <nbinclude/sys/disklabel.h>, <nbinclude/machine/disklabel.h>,
<nbinclude/sparc64/disklabel.h>, instead of <sys/disklabel.h> and
such.  I have also updated the system headers to #include from
nbinclude/-space when HAVE_NBTOOL_CONFIG_H is #defined.
2005-06-12 19:46:15 +00:00
christos
08cd5f47c8 Add a macro __MKTEMP_OK__ that renames mktemp() to _mktemp() for uses that
have been checked, so that the linker does not warn us. There are valid
uses for mktemp() such as for creating filenames that are going to be
targets of the rename system call. Discussed with lukem.
2005-06-11 22:58:42 +00:00
christos
5b18fe838f PR/30503: Nicolas Joly: swapctl(2) prototype does not match corresponding
syscall
2005-06-11 22:54:43 +00:00
kleink
926eae7f66 Include <sys/ansi.h> after <sys/cdefs.h>; from Neil Booth in PR lib/30072. 2005-05-25 20:45:38 +00:00
kleink
691c56aa2e Belatedly move snprintf() and vnsnprintf() into the XPG4.2/C99 section. 2005-05-25 19:35:07 +00:00
kleink
13034da908 Add restrict qualifiers to fopen()/freopen() arguments. 2005-05-25 16:01:24 +00:00
kleink
abf1d9c9d1 Make namespace protection feature tests for reentrant functions more
accurate (and actually less restrictive).
2005-05-24 17:36:29 +00:00
kleink
484c40cd9f Remove the compatibility select() prototype. Going back to Lite2 select(2)
has also mandated <sys/time.h> to be included, which is now sufficient
for the prototype and all related declarations; thus the local duplicate
of the prototype can be removed.  Approved by Christos.
2005-05-22 19:10:15 +00:00
christos
cf3e6ebd2b add t_putws 2005-05-15 21:10:52 +00:00
thorpej
f2b0a44663 u_short -> uint16_t 2005-05-15 21:01:34 +00:00
dsl
54cc3da266 Make the arg to getnetconfigent const char * to match the man page (and
likely calling code).
2005-05-15 20:54:41 +00:00
christos
75b76923c6 Wide stdio functions. 2005-05-14 23:51:42 +00:00
kleink
9020a25f08 Instead of pulling in all of <wchar.h>, just define wchar_t here.
Addresses PR lib/29987.
2005-04-18 19:47:51 +00:00
kleink
4e3cae58ff Move the (at this time private) get{proto,serv}ent_r() prototypes and
data structures into the libc sources until the interface gets redone.
Approved by christos.
2005-04-18 19:39:45 +00:00
rillig
7f8368c35e Replaced the macro name "notyet" with a 0. There's always the possibility
that a strictly conforming C program uses that name itself, so it had to
be removed. Also put the long comment above the #if 0, because it describes
the #if, not the isblank() macro. Added two blank lines to make the grouping
clear. Approved by kleink.
2005-04-15 23:46:07 +00:00
christos
9f184f48a4 Add no-return attribute to all longjmp flavors. Approved by kleink. 2005-04-15 16:58:13 +00:00
christos
ada3b096d0 Add FreeBSD's strfmon(3). From Rui Paulo. No bump this time. Take advantage
of the getpwent_r bump.
2005-04-03 20:09:29 +00:00