summaryrefslogtreecommitdiffstats
path: root/include
Commit message (Collapse)AuthorAgeFilesLines
* Install the old usb headers under /usr/include/legacy/dev/usb as they arethompsa2009-02-241-1/+1
| | | | | | | | needed by the hal port. This will be removed before 8.0. Add an exclusion to kdump as some structs will be redefined. Requested by: marcus
* Build fixups for the new USB stack.thompsa2009-02-231-1/+1
|
* sys/pccard is gone.nyan2009-02-151-1/+1
|
* Add two new routines: fdevname() and fdevname_r().ed2009-02-111-0/+2
| | | | | | | | | | | | | | A more elegant way of obtaining a name of a character device by its file descriptor on FreeBSD, is to use the FIODGNAME ioctl. Because a valid file descriptor implies a file descriptor is visible in /dev, it will always resolve a valid device name. I'm adding a more friendly wrapper for this ioctl, called fdevname(). It is a lot easier to use than devname() and also has better error handling. When a device name cannot be resolved, it will just return NULL instead of a generated device name that makes no sense. Discussed with: kib
* Also un-split _PATH_STDPATH for grepability.obrien2009-02-011-4/+3
| | | | While I'm here, fix other style bugs reported to me.
* Add a function attribute called `__malloc_like', which informs gccdas2009-01-313-5/+5
| | | | | | | | | | | | | | that the annotated function returns a pointer that doesn't alias any extant pointer. This results in a 50%+ speedup in microbenchmarks such as the following: char *cp = malloc(1), *buf = malloc(BUF); for (i = 0; i < BUF; i++) buf[i] = *cp; In real programs, your mileage will vary. Note that gcc already performs this optimization automatically for any function called `malloc', `calloc', `strdup', or `strndup' unless -fno-builtins is used.
* No need to wrap _PATH_SYSPATH. It makes it harder to grep(1) for itsobrien2009-01-261-2/+1
| | | | value. (also unwrapping better matches existing style)
* Merge the resolver part of BIND 9.4.3 into HEAD.ume2008-12-142-3/+8
| | | | | | | | | | It includes the following fix: 2426. [bug] libbind: inet_net_pton() can sometimes return the wrong value if excessively large netmasks are supplied. [RT #18512] Reported by: Maksymilian Arciemowicz <cxib__at__securityreason.com>
* Add strndup(3) prototype to string.h.kib2008-12-081-0/+1
| | | | | | | | | | | This change was erronously ommitted from the r185690, and attempt to simply add the prototype to string.h has revealed that several contributed programs defined local prototypes for strndup(), controlled by autoconfed config.h. So, manually change #undef HAVE_STRNDUP to #define HAVE_STRNDUP 1. Next import of the corresponding program would regenerate config.h, overriding the changes in this commit. No objections from: kan
* src/sys/dev/usb2/controller/uss820dci_pccard.calfred2008-11-191-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | src/sys/dev/usb2/core/usbdevs src/sys/dev/usb2/include/urio2_ioctl.h src/sys/dev/usb2/storage/ustorage2_fs.h These files are not used any more. src/usr.sbin/Makefile src/etc/mtree/BSD.include.dist src/include/Makefile src/lib/Makefile src/share/man/man7/hier.7 src/share/mk/bsd.libnames.mk src/etc/mtree/BSD.include.dist Make "usbconfig" and "libusb20" a part of the default build. src/sys/dev/usb/rio500_usb.h src/sys/dev/usb2/storage/urio2.c Use common include file. src/sys/dev/usb2/bluetooth/ng_ubt2.c Make USB bluetooth depend on "ng_hci" module. src/sys/dev/usb2/controller/ehci2.c src/sys/dev/usb2/controller/ehci2.h Patches for Marvell EHCI. src/sys/dev/usb2/core/usb2_busdma.c Bugfix for 64-bit platforms. Need to unload the previously loaded DMA map and some cleanup regarding some corner cases. src/sys/dev/usb2/core/usb2_core.h src/sys/dev/usb2/core/usb2_dev.c src/sys/dev/usb2/core/usb2_dev.h Bugfix for libusb filesystem interface. New feature: Add support for filtering device data at the expense of the userland process. Add some more comments. Some minor code styling. Remove unused function, usb2_fifo_get_data_next(). Fix an issue about "fifo_index" being used instead of "ep_index". src/sys/dev/usb2/core/usb2_device.c src/sys/dev/usb2/core/usb2_generic.c Bugfix for Linux USB compat layer. Do not free non-generic FIFOs when doing an alternate setting. Cleanup USB IOCTL and USB reference handling. Fix a corner case where USB-FS was left initialised after setting a new configuration or alternate setting. src/sys/dev/usb2/core/usb2_hub.c Improvement: Check all USB HUB ports by default at least one time. src/sys/dev/usb2/core/usb2_request.c Bugfix: Make sure destination ASCII string is properly zero terminated in all cases. Improvement: Skip invalid characters instead of replacing with a dot. src/sys/dev/usb2/core/usb2_util.c src/sys/dev/usb2/image/uscanner2.c Spelling. src/sys/dev/usb2/include/Makefile Share "usbdevs" with the old USB stack. src/sys/dev/usb2/include/usb2_devid.h src/sys/dev/usb2/include/usb2_devtable.h Regenerate files. Alfred: Please fix the RCS tag at the top. src/sys/dev/usb2/include/usb2_ioctl.h Fix compilation of "kdump". src/sys/dev/usb2/serial/ubsa2.c src/sys/dev/usb2/serial/ugensa2.c Remove device ID's which will end up in a new 3G driver. src/sys/dev/usb2/sound/uaudio2.c Correct a debug printout. src/sys/dev/usb2/storage/umass2.c Sync with old USB stack. src/lib/libusb20/libusb20.3 Add more documentation. src/lib/libusb20/libusb20.c Various bugfixes and improvements. src/usr.sbin/usbconfig/dump.c src/usr.sbin/usbconfig/usbconfig.c New commands for dumping strings and doing custom USB requests from the command line. Remove keyword requirements from generated files: "head/sys/dev/usb2/include/usb2_devid.h" "head/sys/dev/usb2/include/usb2_devtable.h"
* Add a comment to utmp.h about the sizes of UT_HOSTSIZE and UT_LINESIZE.ed2008-11-161-0/+7
| | | | | | | | | UT_HOSTSIZE and UT_LINESIZE are too small right now. If we ever bump UT_HOSTSIZE, we must not forget to increase UT_LINESIZE as well. If we add a comment, we're pretty sure we increase both values at the same time. PR: bin/108743 (maybe others)
* Implement support for RPCSEC_GSS authentication to both the NFS clientdfr2008-11-031-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | and server. This replaces the RPC implementation of the NFS client and server with the newer RPC implementation originally developed (actually ported from the userland sunrpc code) to support the NFS Lock Manager. I have tested this code extensively and I believe it is stable and that performance is at least equal to the legacy RPC implementation. The NFS code currently contains support for both the new RPC implementation and the older legacy implementation inherited from the original NFS codebase. The default is to use the new implementation - add the NFS_LEGACYRPC option to fall back to the old code. When I merge this support back to RELENG_7, I will probably change this so that users have to 'opt in' to get the new code. To use RPCSEC_GSS on either client or server, you must build a kernel which includes the KGSSAPI option and the crypto device. On the userland side, you must build at least a new libc, mountd, mount_nfs and gssd. You must install new versions of /etc/rc.d/gssd and /etc/rc.d/nfsd and add 'gssd_enable=YES' to /etc/rc.conf. As long as gssd is running, you should be able to mount an NFS filesystem from a server that requires RPCSEC_GSS authentication. The mount itself can happen without any kerberos credentials but all access to the filesystem will be denied unless the accessing user has a valid ticket file in the standard place (/tmp/krb5cc_<uid>). There is currently no support for situations where the ticket file is in a different place, such as when the user logged in via SSH and has delegated credentials from that login. This restriction is also present in Solaris and Linux. In theory, we could improve this in future, possibly using Brooks Davis' implementation of variant symlinks. Supporting RPCSEC_GSS on a server is nearly as simple. You must create service creds for the server in the form 'nfs/<fqdn>@<REALM>' and install them in /etc/krb5.keytab. The standard heimdal utility ktutil makes this fairly easy. After the service creds have been created, you can add a '-sec=krb5' option to /etc/exports and restart both mountd and nfsd. The only other difference an administrator should notice is that nfsd doesn't fork to create service threads any more. In normal operation, there will be two nfsd processes, one in userland waiting for TCP connections and one in the kernel handling requests. The latter process will create as many kthreads as required - these should be visible via 'top -H'. The code has some support for varying the number of service threads according to load but initially at least, nfsd uses a fixed number of threads according to the value supplied to its '-n' option. Sponsored by: Isilon Systems MFC after: 1 month
* Add the ffsll and flsll functions. These are ffs and fls operatingkib2008-11-031-0/+2
| | | | | | | | on long long arguments. Reviewed by: bde (previous version, that included asm implementation for all ffs and fls functions on i386 and amd64) MFC after: 2 weeks
* Move getosreldate(3) prototype from the machine generated <osreldate.h>peter2008-09-262-10/+2
| | | | | | to <unistd.h> in the BSD section. Suggested by: kib
* Re-add getosreldate(3) function prototype in the form that I've been usingpeter2008-09-261-1/+10
| | | | | | for quite some time now. While I'm not sure if it'll break IA64 again, this way doesn't cause problems with my builds of XFree86/Xorg and the way they #include <osreldate.h> via cpp in the imake system.
* Add missing prototypes for uuid_enc,dec_le,be() functions.emax2008-09-151-0/+4
| | | | | | Pointy hat goes to me. MFC after: 3 days
* Fix TELOPT(opt) when opt > TELOPT_TN3270E.antoine2008-09-131-2/+2
| | | | | | PR: 127194 Submitted by: Joost Bekkers MFC after: 1 month
* Initialise the SVCAUTH field for new transport structures when they aredfr2008-09-091-0/+2
| | | | | | | allocated instead of waiting for the first request. This fixes an issue with rpcbind's support for PMAPPROC_CALLIT. Reviewed by: markm
* Implement cproj{,f,l}().das2008-08-071-0/+4
|
* Annotate creal(), cimag(), and conj() with __pure2.das2008-08-071-9/+10
|
* Add an implementation of the RPCSEC_GSS authentication protocol for RPC. Thisdfr2008-08-065-3/+248
| | | | | | | | is based on an old implementation from the University of Michigan with lots of changes and fixes by me and the addition of a Solaris-compatible API. Sponsored by: Isilon Systems Reviewed by: alfred
* Remove <sgtty.h> now it has no practical usage.ed2008-07-252-4/+1
| | | | | | | | | | When I turned sgtty into a binary-only interface (last month), I added this explicit #error to the header file, to make sure nobody forgot to remove the header file after updating world. I think it is now a good moment to remove this header file. Approved by: philip (mentor)
* Add arc4random_uniform()ache2008-07-221-0/+2
| | | | Obtained from: OpenBSD
* Add arc4random_buf.ache2008-07-211-1/+2
| | | | Style: remove arg names from arc4random_addrandom.
* posix_spawn() is supported, set _POSIX_SPAWN to 200212L.davidxu2008-07-081-1/+1
|
* Turn execvpe() into an internal libc routine.ed2008-06-231-1/+0
| | | | | | | | | | | | Adding exevpe() has caused some ports to break. Even though execvpe() is a useful routine, it does not conform to any standards. This patch is a little bit different from the patch sent to the mailing list. I forgot to remove execvpe from the Symbol.map (which does not seem to miscompile libc, though). Reviewed by: davidxu Approved by: philip
* Remove __restrict keywords from array arguments to make GCC's -std=c99 work.ed2008-06-191-2/+5
| | | | | | | | | | | | | | | | | When GCC is invoked with -std=c99, the following errors are displayed when including <spawn.h>: /usr/include/spawn.h:69: error: static or type qualifiers in abstract declarator /usr/include/spawn.h:69: error: static or type qualifiers in abstract declarator /usr/include/spawn.h:72: error: static or type qualifiers in abstract declarator /usr/include/spawn.h:72: error: static or type qualifiers in abstract declarator We'd better remove the __restrict keywords here. The same is also done in <regex.h>. Submitted by: Andrzej Tobola <ato iem pw edu pl> Reviewed by: davidxu Approved by: philip (mentor, implicit)
* Change my email address to the one from the FreeBSD project.ed2008-06-171-1/+1
| | | | Approved by: philip (mentor, implicit), davidxu
* Add POSIX routines called posix_spawn() and posix_spawnp(), whichdavidxu2008-06-173-1/+117
| | | | | | | | | can be used as replacements for exec/fork in a lot of cases. This change also added execvpe() which allows environment variable PATH to be used for searching executable file, it is used for implementing posix_spawnp(). PR: standards/122051
* Turn sgtty into a binary-only compatibility interface.ed2008-06-141-39/+3
| | | | | | | | | | | | | | | | sgtty was the original interface to configure terminal attributes on my UNIX-like operating systems. It has been deprecated by the POSIX termios interface, which is implemented in almost any modern system. An advantage of turning this into a binary compatibility interface, is that we can now eventually remove the COMPAT_43TTY switch from kernel configurations. This removes many ioctl()'s from the TTY layer. While there, increase the __FreeBSD_version, which may be useful for the people working on the Ports tree. Reviewed by: kib Approved by: philip (mentor)
* Make pthread_cleanup_push() and pthread_cleanup_pop() as a pair of macros,davidxu2008-06-091-2/+21
| | | | | | | use stack space to keep cleanup information, this eliminates overhead of calling malloc() and free() in thread library. Discussed on: thread@
* Remove ISDN4BSD (I4B) from HEAD as it is not MPSAFE andbz2008-05-261-15/+0
| | | | | | | | | | | | | | | | | | parts relied on the now removed NET_NEEDS_GIANT. Most of I4B has been disconnected from the build since July 2007 in HEAD/RELENG_7. This is what was removed: - configuration in /etc/isdn - examples - man pages - kernel configuration - sys/i4b (drivers, layers, include files) - user space tools - i4b support from ppp - further documentation Discussed with: rwatson, re
* Remove netatm from HEAD as it is not MPSAFE and relies on the now removedrwatson2008-05-251-2/+0
| | | | | | | | | | | | | | | | | | | NET_NEEDS_GIANT. netatm has been disconnected from the build for ten months in HEAD/RELENG_7. Specifics: - netatm include files - netatm command line management tools - libatm - ATM parts in rescue and sysinstall - sample configuration files and documents - kernel support as a module or in NOTES - netgraph wrapper nodes for netatm - ctags data for netatm. - netatm-specific device drivers. MFC after: 3 weeks Reviewed by: bz Discussed with: bms, bz, harti
* Expand dump to allow MAX_INT dump levels.mckusick2008-05-241-9/+0
| | | | | PR: bin/100732 Submitted by: Matthew Vincenz <msvincen@midway.uchicago.edu>
* Make this c++ compatible.dfr2008-05-161-0/+4
| | | | PR: 87726
* Add definition for OM_uint64.dfr2008-05-151-0/+1
| | | | Submitted by: tmclaugh
* Define the size_t type since readpassphrase(3) requires it in itsscf2008-05-081-0/+6
| | | | | | | definition and sys/types.h is not listed within the synopsis of the man page. MFC after: 1 week
* Tag FILE's _bf as being part of the public ABI as well due to the in-treejhb2008-05-071-1/+1
| | | | sort(1) referencing it.
* Fix conflicts after heimdal-1.1 import and add build infrastructure. Importdfr2008-05-071-13/+94
| | | | all non-style changes made by heimdal to our own libgssapi.
* Install the mpilib headers from mpt(4) into /usr/include/dev/mpt/mpilib.jhb2008-05-071-1/+3
| | | | | | This allows <sys/mpt_ioctl.h> to be used from userland. Prodded by: scottl
* Retire the __fgetcookie(), __fgetpendout(), and __fsetfileno() accessorsjhb2008-05-051-6/+0
| | | | as we aren't hiding FILE's internals anymore.
* Note that FILE's __cookie is also part of the public ABI.jhb2008-05-051-1/+1
|
* Expose FILE's internals to the world again in all their glory. Restorejhb2008-05-051-4/+172
| | | | | all the previous inline optimizations as well. FILE is back to using __mbstate_t, struct pthread *, and struct pthread_mutex *.
* Unbreak build: gnu sort has been configured to grope inside structmarcel2008-05-031-0/+3
| | | | | | | __sFILE. It's opaque now, so add a function that returns the pending output bytes. Pointy hat: jhb
* Unbreak build: libftpio gropes inside struct __sFILE. Implementmarcel2008-05-031-0/+3
| | | | | | | | accessor functions for its benefit now thaat FILE is opaque. I'm sure there's a better way. I leave that for people to work on in a src tree that isn't broken. Pointy hat: jhb
* Axe now-empty __BSD_VISIBLE block that held renameat().jhb2008-05-021-2/+0
| | | | | Reported by: kib Pointy hat: jhb
* - Move declaration of renameat() to the existing section of BSD_VISIBLEjhb2008-05-021-6/+6
| | | | | | | function prototypes. - Fix a few whitespace inconsistencies in prototypes. MFC after: 1 month
* Next round of stdio changes: Remove all inlining of stdio operations andjhb2008-05-021-172/+4
| | | | | | | | | | | | | | | | move the definition of the type backing FILE (struct __sFILE) into an internal header. - Remove macros to inline certain operations from stdio.h. Applications will now always call the functions instead. - Move the various foo_unlocked() functions from unlocked.c into foo.c. This lets some of the inlining macros (e.g. __sfeof()) move into foo.c. - Update a few comments. - struct __sFILE can now go back to using mbstate_t, pthread_t, and pthread_mutex_t instead of knowing about their private, backing types. MFC after: 1 month Reviewed by: kan
* Next stage of stdio cleanup: Retire __sFILEX and merge the fields back intojhb2008-04-171-4/+7
| | | | | | | | | | | | | | | | | | | __sFILE. This was supposed to be done in 6.0. Some notes: - Where possible I restored the various lines to their pre-__sFILEX state. - Retire INITEXTRA() and just initialize the wchar bits (orientation and mbstate) explicitly instead. The various places that used INITEXTRA didn't need the locking fields or _up initialized. (Some places needed _up to exist and not be off the end of a NULL or garbage pointer, but they didn't require it to be initialized to a specific value.) - For now, stdio.h "knows" that pthread_t is a 'struct pthread *' to avoid namespace pollution of including all the pthread types in stdio.h. Once we remove all the inlines and make __sFILE private it can go back to using pthread_t, etc. - This does not remove any of the inlines currently and does not change any of the public ABI of 'FILE'. MFC after: 1 month Reviewed by: peter
* Specifically mark the members of 'FILE' that are accessed via inlinejhb2008-04-171-6/+10
| | | | | | functions or macros since they are part of the public ABI as a result. MFC after: 1 month
OpenPOWER on IntegriCloud