Commit Graph

17260 Commits

Author SHA1 Message Date
dholland
01e782f371 Revert the following changes:
src/sys/sys/quotactl.h 1.37
   src/sys/compat/netbsd32/netbsd32.h 1.101
   src/sys/compat/netbsd32/netbsd32_netbsd.c 1.188, 1.189
   src/sys/kern/vfs_quotactl.c 1.39
   src/sys/kern/vfs_syscalls.c 1.483
   src/sys/ufs/lfs/ulfs_quota.c 1.11
   src/sys/ufs/ufs/ufs_quota.c 1.116
   src/lib/libquota/quota_kernel.c 1.5

and do them correctly.

If you're going to change the name of something, you need to change
the name of *all* the things with the same name, not just a handful,
and you should change it to something similar so it still matches the
rest of the system rather than just picking an arbitrarily different
name.

Hi, Joerg.

To wit, rename the quotactl "delete" operation to "del", because
"delete" is a reserved word in C++ and for some reason Joerg wants to
run internal interfaces used only by C code through his C++ compiler.
Do not rename it to "remove" instead, because this doesn't match
libquota or the rest of the usage throughout the system; and rename
all the related identifiers, not just the ones that blew the mind of
Joerg's C++ compiler.

Because this is not a user-facing API (the only userland consumer
sys/quotactl.h is libquota) it is sort of ok to make arbitrary
source-incompatible changes; however, by the same token it's completely
unnecessary. If it *were* a user-facing API that someone might have a
semi-rational reason to want to run a C++ compiler on, it would be
incorrect to change it at this point.
2014-06-28 22:27:50 +00:00
christos
321c9aef65 don't depend on expandtc to open the database or not. 2014-06-26 20:14:32 +00:00
spz
dd745abb62 Fix our iconv version for the issues that apply to us from CVE-2014-3951
(which are the:
- Consistently pass around context information using a simple pointer.
  This fixes some dereferencing bugs in Chinese character set conversions.
- Fix Simplified Chinese character set conversions by switching around the
  fields of an internal struct so it corresponds with the way variables of
  this type are initialised.
part)
Patch taken from FreeBSD and mutilated to fit.
FreeBSD credits: Manuel Mausz (reporter), Tijl Coosemans (report handler)
2014-06-24 22:24:18 +00:00
riastradh
7fd5a93a52 Add `remove arc4random' to mythical libc major bump todo list. 2014-06-23 14:14:10 +00:00
pooka
2f525beeee Hrmph, revert previous pending another fix. I tested it yesterday with
a slightly older tree, and of course it doesn't work anymore ...
2014-06-23 12:38:18 +00:00
shm
11ea949f80 PR/42032 fixed overrun in bm_exec(), free(3) clean ups 2014-06-23 10:43:25 +00:00
pooka
fbc749c67d Wrap pthread_create(). Shouldn't really have a functional effect,
apart from testing that rumpuser_thread_create() can actually survive
an unschedule/schedule cycle (which may or may not be necessary with
other hypercall implementations).
2014-06-22 20:17:23 +00:00
christos
f2d4db7cf6 use fparseln() instead of fgetln() for consistency (this was the last fgetln()
using parser in net/.
cVS: ----------------------------------------------------------------------
2014-06-19 15:09:07 +00:00
christos
08d13064c0 use fparseln() instead of abusing fgetln(), so that the last line that
might not have a terminating newline is processed.
2014-06-19 15:08:18 +00:00
christos
52e916d949 Fix incorrect example (what happens when len == 0?) 2014-06-19 14:27:50 +00:00
wiz
cdfd633d25 Add all functions to NAME section. End sentences with dots.
Bump date for previous.
2014-06-19 09:30:33 +00:00
msaitoh
5edf37f383 Fix "shadows a global declaration" compile error. 2014-06-19 05:31:15 +00:00
christos
20efb692ab cast gotsig because it is long on some systems. 2014-06-18 20:12:15 +00:00
christos
cc52c7c3a4 Add stdlib.h for abort() (Jess Thrysoee) 2014-06-18 18:52:49 +00:00
christos
e06822a79d Don't depend on weak aliases to define the vi "alias" expansion function,
provide an API instead to set it.
2014-06-18 18:12:28 +00:00
christos
1015249915 more man pages links 2014-06-18 17:50:55 +00:00
christos
017500be43 add mkostemp, mkostemps, mkstemps from FreeBSD. 2014-06-18 17:47:58 +00:00
christos
0bd5e60967 accomodate FreeBSD's flavor of weak references. 2014-06-18 13:03:08 +00:00
justin
9dd44a1195 Applications are not supposed to and do not need to include <features.h> explicitly 2014-06-17 09:53:59 +00:00
alnsn
f6181a22c5 Antti objected to including rumpuser_sync_icache. Exclude it from the build. 2014-06-17 08:42:35 +00:00
alnsn
e0a3ca70e0 For consistency with other files in the same directory
don't include <sys/cdefs.h> before __RCSID.
2014-06-17 06:43:21 +00:00
alnsn
bb8c3186cb Implement rumpuser_sync_icache hypercall. 2014-06-17 06:31:47 +00:00
alnsn
46b0c1cbc8 Add __RCSID. 2014-06-16 21:07:28 +00:00
christos
1913c9411a Recognize CR as end of line too. the telnet client passes that to us instead
of linefeed.
2014-06-16 16:29:30 +00:00
joerg
13b8fa7d71 Add modfl(3). From FreeBSD. 2014-06-16 12:54:42 +00:00
mrg
ac641cb906 remove remaining makefile support for GCC < 45 that i found. 2014-06-14 20:49:36 +00:00
wiz
c85844adb6 Sort errors. 2014-06-14 19:02:29 +00:00
christos
0970d31e3c welcome to 2014e 2014-06-14 17:49:27 +00:00
apb
637cec4115 Document the relationship between uname(3) and sysctl(7) variables. 2014-06-14 14:32:43 +00:00
apb
f37ea538b1 If sysctl kern.version returns a string that's too long
to fit in {struct utsname}.version then just use the
truncated value.
2014-06-14 13:09:37 +00:00
pooka
ce1cd03e24 Remove one more symbol reference to librump (missed in previous commit
to this file)
2014-06-14 11:52:42 +00:00
njoly
6b27a22c99 Follow OpenGroup online documents for truncate[1] and ftruncate[2].
Fail with EINVAL for length argument negative values.

[1] http://pubs.opengroup.org/onlinepubs/9699919799/functions/truncate.html
[2] http://pubs.opengroup.org/onlinepubs/9699919799/functions/ftruncate.html
2014-06-14 11:37:35 +00:00
apb
e72cca9651 Teach fmtcheck(3) that a pointer and a long are not the same. 2014-06-14 08:18:24 +00:00
wiz
8333f359ba Remove trailing whitespace. Use more markup. Merge sections describing
the same error code.
2014-06-13 22:05:15 +00:00
joerg
3adc1c7681 Add asysctl(3) and asysctlbyname(3) wrappers for the common idiom of
fetching dynamically sized data via sysctl.
2014-06-13 15:45:05 +00:00
pooka
a25813f127 Add rump_boot_etfs_register(), which can be used to specify etfs
nodes that will be available immediately when mountroot is done
and file systems are available.

The intended use is for example for firmware images to be available when
config_mountroot() hooks run.
2014-06-13 15:45:01 +00:00
mrg
26f35dd6b6 remove the build support for GCC 4.1, and any hacks i found for it.
there could still be more -- i only looked for lines matching
both "HAVE_GCC" and "4" as words (grep -w.)
2014-06-13 01:17:45 +00:00
justin
76fd41999f gcc cannot always work out initialization here 2014-06-12 22:21:20 +00:00
joerg
ef53e37514 Don't t use a C++ keyword as field name. 2014-06-12 21:39:45 +00:00
apb
e7f11a1a5a fix missing backslash in previous 2014-06-12 19:12:19 +00:00
apb
bb0d3eec51 Wrap complex macros in do { ... } while (0). Also replace the magic
number 1600000 with a macro.
2014-06-12 19:05:37 +00:00
christos
b27e135433 rename to 60 2014-06-12 18:49:37 +00:00
christos
32baae8990 update for new signatures 2014-06-12 18:46:12 +00:00
christos
1eb0dcbb1d fix srandom and initstate signatures (from enh at google) 2014-06-12 18:44:36 +00:00
martin
eb04decfe5 Some more errno remapping: if the NFS server is unreachable because we have
no route to it, assume there are no quotas. While this might sound like
an impossible scenario, it actually happens inside rump tests when we have
a virtual shmif network but are querying quotas for / which happens to
be on NFS (but of course outside of the shmif setup).
This fixes tests/fs/nfs/t_rquotad on diskless clients.
2014-06-11 08:43:01 +00:00
njoly
e4ae04a902 Replace wrong numeric values with corresponding symbolic constants.
While here, remove unneeded paragraph macro.
2014-06-09 09:15:48 +00:00
roy
c7009a57fe Re-stir after forking, fixes PR lib/25367.
Re-stir after consuming 1600000 bytes, fixes PR lib/45952.
2014-06-07 20:55:47 +00:00
joerg
86ed47b359 Fix conditionals. 2014-06-06 11:38:41 +00:00
christos
955a80396c be friendlier to nbcompat 2014-06-06 01:41:00 +00:00
wiz
abf14c83e2 Remove trailing whitespace. 2014-06-05 22:09:50 +00:00