Commit Graph

12625 Commits

Author SHA1 Message Date
John Baldwin
abd97995f5 MFC 200919:
Fix a bug in gzipfs that prevented lseek() from working and add lseek()
support to bzip2fs.  This fixes problems with loading compressed amd64
kernel modules containing debug symbols.
2009-12-30 17:53:07 +00:00
Jaakko Heinonen
694faf6751 MFC r199844:
Reset path name back to original correctly in fts_build() when
FTS_NOCHDIR option is used. fts_build() could strip a trailing slash
from path name in post-order visit if a path pointing to an empty
directory was given for fts_open().

PR:		bin/133907, kern/134513
Approved by:	trasz (mentor)
2009-12-30 17:22:00 +00:00
Markus Brueffer
0900fee4fb MFC r200992:
Use a local copy of entry_d for finding matches. Otherwise, if entry_d pointed
to an entry of 'acl', all ACL entries starting with entry_d would be deleted.

Approved by:	emax (mentor)
2009-12-30 16:37:58 +00:00
Edwin Groothuis
dd1c9c3da4 MFC of r200832, tzdata2009t
zic:
- Fix URL / reference to Calendrical Calculations: Third Edition

libc/stdtime:
- Fix typo in tzfile.5 (no changes in our part)
2009-12-29 10:05:20 +00:00
Konstantin Belousov
5300f787ac MFC r200038:
Properly support -fPIE by linking PIE binaries with specially-built
Scrt1.o instead of crt1.o, since the later is built as non-PIC.

Separate i386-elf crt1.c into the pure assembler part and C code,
supplying all data extracted by assembler stub as explicit parameters.
Hide and localize _start1 symbol used as an interface between asm and
C code.
2009-12-27 20:39:58 +00:00
Xin LI
8f923cfaf1 Explicitly say that this is an internal library which is intended to be
used within FreeBSD base system only, and discourage user applications
from using it.  User applications should use the expat version from the
ports/package collection.

Reviewed by:	simon (earlier version)
2009-12-27 07:04:27 +00:00
Peter Pentchev
29b0c308e2 MFC r199244:
Fix the grammar in the isgraph(3) description, almost as per the PR.

  PR:           140455
  Submitted by: Jeremy Huddleston <jeremyhu@apple.com>
2009-12-24 20:35:01 +00:00
Jilles Tjoelker
eb058880c4 MFC r200589: cpuset(2): fix a typo and a markup error in the man page 2009-12-22 13:45:29 +00:00
Sean Farley
86a2af8fd4 Merge from head to stable/8:
r200424:
Fix libusb_open_device_with_vid_pid() to return a NULL if no device is
found instead of the last device in its search list.

Reviewed by:	thompsa
2009-12-20 18:57:43 +00:00
Jamie Gritton
19022f2808 MFC r200623:
Add a null pointer check so "name" can be used as a key parameter in
  jailparam_get.

PR:		bin/141692
Submitted by:	delphij
2009-12-20 04:49:29 +00:00
Attilio Rao
9853fc7d63 MFC r199802:
Fix handling of empty attributes.

Sponsored by:	Sandvine Incorporated
2009-12-19 19:23:25 +00:00
Attilio Rao
9a46c76970 MFC r199801:
Fix a socket leak.

Sponsored by:	Sandvine Incorporated
2009-12-19 19:22:09 +00:00
Konstantin Belousov
7e76751181 MFC r198508, r198509:
Reimplement pselect() in kernel, making change of sigmask and sleep atomic.

MFC r198538:
Move pselect(3) man page to section 2.
2009-12-19 11:47:00 +00:00
Sean Farley
08c59cc33e Merge from head to stable/8:
r200423:
Remove a dead store.
2009-12-18 20:05:10 +00:00
Brooks Davis
c1dde08ce2 MFC r200366
Add a missing else that negated the truncation of ki_ngroups to NGROUPS.

Submitted by:   Dmitry Pryanishnikov <lynx dot ripe at gmail dot com>
2009-12-18 06:09:43 +00:00
John Baldwin
5ff95453cc MFC 199606, 199614:
Add an internal _once() method.  This works identical to pthread_once(3)
with the additional property that it is safe for routines in libc to use
in both single-threaded and multi-threaded processes.  Multi-threaded
processes use the pthread_once() implementation from the threading library
while single-threaded processes use a simplified "stub" version internal
to libc.
2009-12-17 20:41:27 +00:00
Konstantin Belousov
b6050120db MFC r199826:
sigset() is the name of function specified by SUSv4.
Replace it to avoid conflict.
2009-12-17 18:56:52 +00:00
Marcel Moolenaar
83fe91c2f0 MFC rev 200498:
Work-around a race condition on ia64 while unlocking a contested lock.
2009-12-17 02:06:07 +00:00
Robert Watson
f7000239aa Merge r197841 from head to stable/8:
Add a new errno, ENOTCAPABLE, to be returned when a process requests an
  operation on a file descriptor that is not authorized by the descriptor's
  capability flags.

  Sponsored by:	Google
2009-12-14 13:13:43 +00:00
Doug Barton
391a9677be MFC r199958:
Update to BIND 9.6.1-P2. The vulnerability this is designed to fix is
related to DNSSEC validation on a resolving name server that allows
access to untrusted users. If your system does not fall into all 3 of
these categories you do not need to update immediately.
2009-12-11 01:23:58 +00:00
Andrew Thompson
4b56fe67b6 MFC r199575
- fix a transfer cancelling bug/segfault [1]
  - correct a return code in the transfer cancel function.
  - add new API function, libusb20_tr_bulk_intr_sync().

 Submitted by:	HPS
 Reported by:	Robert Jenssen [1]
2009-12-09 21:34:38 +00:00
Fabien Thomas
d7fbf69d96 MFC 198433:
Not all Intel Core (TM) CPUs implement PMC_CLASS_IAF fixed-function
counters.  For such CPUs, use an alternate mapping of convenience
names to events supported by PMC_CLASS_IAP programmable counters.
2009-12-07 20:44:43 +00:00
Xin LI
931d13672c MFC revision 197579 and 199617:
Add two new fcntls to enable/disable read-ahead:

 - F_READAHEAD: specify the amount for sequential access.  The amount is
   specified in bytes and is rounded up to nearest block size.
 - F_RDAHEAD: Darwin compatible version that use 128KB as the sequential
   access size.

A third argument of zero disables the read-ahead behavior.

Please note that the read-ahead amount is also constrainted by sysctl
variable, vfs.read_max, which may need to be raised in order to better
utilize this feature.

Thanks Igor Sysoev for proposing the feature and submitting the original
version, and kib@ for his valuable comments.
2009-12-07 19:59:28 +00:00
John Baldwin
cd6d7a15cf MFC 200061:
The fd_mask type is an unsigned long, not an int, so treat the mask as a
long instead of an int when examining the results of select() to look for
RPC requests.  Previously this routine would ignore RPC requests to sockets
whose file descriptor mod 64 was greater than 31 on a 64-bit platform.
2009-12-07 19:07:45 +00:00
Christian Brueffer
02a7ccf746 MFC: r200019
Fix the dprintf() prototype.
2009-12-07 08:38:44 +00:00
Jilles Tjoelker
2ffbb2cea1 MFC r198406: wordexp(3): fix some bugs with signals and long outputs
* retry various system calls on EINTR
* retry the rest after a short read (common if there is more than about 1K
  of output)
* block SIGCHLD like system(3) does (note that this does not and cannot
  work fully in threaded programs, they will need to be careful with wait
  functions)

PR:		90580
2009-12-06 22:14:58 +00:00
Jaakko Heinonen
21148e9257 MFC r199843:
Clarify that the value of the fts_info field is different in post-order.

Approved by:	trasz (mentor)
2009-12-04 11:26:52 +00:00
Christian Brueffer
e043b4c399 MFC: r199988
Add an .Nm for strncat.
2009-12-04 07:08:15 +00:00
Garrett Wollman
28f2223875 MFC revs 199781,199782,199784,199785,199786:
Eliminate dead stores.

  In __mbsconv(), if prec was zero, nconv could have been used
  uninitialized.  Initialize it to a safe value so that there's no
  chance of returning an error if stack garbage happens to be equal to
  (size_t)-1 or (size_t)-2.

  In svc_raw_reply(), don't leave stat uninitialized if the MSG_ACCEPTED
  && SUCCESS case succeeds.  The stack garbage might be zero.

  In clnt_raw_create(), avoid minor race condition initializing the
  file-scope variable clntraw_private.

Found by:		Clang static analyzer
2009-12-02 02:47:29 +00:00
Fabien Thomas
9e5aec3978 MFC 198339:
Fix the NO_PROXY handling.

PR: 139751
2009-12-01 23:23:52 +00:00
Peter Pentchev
c6a4ef661d Merge rev. 199180 to 8.x-STABLE, the change to isblank(3):
Fix the grammar as in the PR, and then some.

PR:             140454
Submitted by:   Jeremy Huddleston <jeremyhu@apple.com>
2009-11-25 10:52:07 +00:00
Marcel Moolenaar
374a76c186 MFC r198450:
Implement _umtx_op_err() for ia64.
2009-11-24 03:23:40 +00:00
Christian Brueffer
25cf40cbc9 MFC: r199320
Fix grammar.
2009-11-23 09:44:08 +00:00
Christian Brueffer
234c497e6a MFC: r199317
Fix a memory leak in acl_from_text() in case the conversion succeeded.
2009-11-23 09:10:08 +00:00
Hajimu UMEMOTO
1b05fd6074 MFC r199092: Add gai_strerror() catalog for ja_JP.UTF-8
and ja_JP.eucJP.
2009-11-22 17:08:52 +00:00
Hajimu UMEMOTO
b119cf74a1 MFC r199083: Add NLS catalogs support to gai_strerror(3).
Controlled by NLS define.
2009-11-22 17:05:46 +00:00
Christian Brueffer
a154a457ff MFC: r199255, r199257
Improved the manpage description.  The committed wording
was provided by jhb.

Remove a note about vfork(4) going to be eliminated, it's here to stay.
2009-11-20 06:55:35 +00:00
Hajimu UMEMOTO
a1a32e5e31 MFC r199188: ANSIfy. 2009-11-18 14:40:00 +00:00
John Baldwin
41f114f107 MFC 198986:
Fix a copy-paste bug when reading data from the last 3 (7 for PAE) bytes of
a page mapped by a large page in the kernel.
2009-11-17 16:50:57 +00:00
Christian Brueffer
841de8ae65 MFC: r199046
Fix a copy+paste error by checking the correct variable against MM_NULLACT.
2009-11-16 08:26:56 +00:00
Hajimu UMEMOTO
26520868bc MFC r199080, r199081, r199082:
Add ja_JP.UTF-8 and ja_JP.eucJP catalogs.
2009-11-16 03:52:18 +00:00
Andrew Thompson
1110a4604f MFC r199055
- fix refcounting error during data transfer
 - fix a memory leak on the USB backend
 - fix invalid pointer computations (in one case memory outside the allocated
   area was written in LibUSB v1.0)
 - make sure memory is always initialised, also in failing cases
 - add missing functions from v1.0.4

PR:		usb/140325
2009-11-11 01:27:58 +00:00
Christian Brueffer
d5c7a9c3d9 MFC: r198542
Initialize f_rabuf in the raw device case. A subsequent close()
later on would try to free it, leading to a crash.
2009-11-04 13:40:04 +00:00
Alan Cox
225da9692c MFC r197524
Make malloc(3) superpage aware.
2009-11-02 18:44:01 +00:00
Alan Cox
12e8008e6d MFC r197163
Add the FBSD_1.2 namespace.

Reminded by:	kib
2009-11-01 20:24:17 +00:00
Alan Cox
588b5e6ee8 MFC r197331, r197394
Add getpagesizes(3).
2009-11-01 19:22:07 +00:00
Stacey Son
83613795b2 MFC 197240,197241,197242,197243,197293,197294,197407:
Add EVFILT_USER filter and EV_DISPATCH/EV_RECEIPT flags to kevent(2).

Approved by: rwatson (mentor)
2009-10-31 21:22:18 +00:00
Edwin Groothuis
05edd60be4 MFCs of r197764, r197765, r197766, r197847:
Modified locale(1) to be able to show the altmon_X fields and the
[cxX]_fmt's.  Also modify the "-k list" option to display only
fields with a certain prefix.

Add the comment "(FreeBSD only)" to the altmonth_x keywords
2009-10-31 06:35:40 +00:00
Alexander Motin
e4692ffe5b MFC rev. 197621:
Fix bug, when RADIUS client gave up after single sendto() error, do not
trying backup servers.

PR:		kern/103764, misc/139214
2009-10-30 13:02:08 +00:00
Alexander Motin
22c6623dc4 MFC rev. 197086:
Add simple embedded RADIUS server support to libradius, by extending existing
API, keeping backward compatibility.

First consumer for this functionality is going to become forthcoming MPD-5.4,
supporting CoA and DR of RFC 3576: Dynamic Authorization Extensions to RADIUS.
2009-10-30 12:57:28 +00:00