summaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* LANG->LC_ALLache2003-08-041-1/+1
| | | | Pointed by: ru
* Allow foot shooting as Linux emulation needs it.julian2003-08-041-1/+2
| | | | | | | | | Also change "Auto mode" to use a "special" value instead of 0, and define and document it. I had thought libpthread had already been switched to use auto mode but it appears that patch hasn't been committed yet. Discussed with: Davidxu
* Fix problem differently, useache2003-08-041-1/+1
| | | | | LANG=C tr 'a-z' 'A-Z' for hypotetical case that script may generate non-ascii characters
* Fix double-wrong tr usage: tr '[a-z]' '[A-Z]'ache2003-08-041-1/+1
| | | | | | | | First of all, it should be written as: tr 'a-z' 'A-Z' ranges not encolosed in [] according to POSIX, so [] just included in the replacement. Second, it should be written: tr '[:lower:]' '[:upper:]' since a-z and A-Z may have different length in some locales.
* Restore including of "collate.h", for its own prototype (mis)match detectionache2003-08-031-0/+1
|
* Remove commented out and never used codeache2003-08-031-34/+1
|
* Remove __collate_range_cmp() stabilization, it conflicts with rangesache2003-08-031-10/+2
|
* -15 is incorrect to be used to align stack to 16 bytes, use ~15 instead.davidxu2003-08-022-2/+2
|
* Override the default stubs for getcontext(2) and swapcontext(2) somarcel2003-08-023-2/+80
| | | | | | | | | | | | | that we can flush the register stack prior to entering the kernel. This avoids having dirty registers and saves us from having to manually write them to the backing store from within the kernel. In that respect, flushing the RSE is both functionally required as well as performance optimal. On average we had 18 dirty registers when getcontext(2) was called from libthr. Since libthr does not switch back to a context created by getcontext(2), not having dealt with the dirty registers was harmless.
* The END() must expand to the .endp directive with the same name asmarcel2003-08-013-6/+5
| | | | | | | on the corresponding .proc directive, or the .endp must not have a name at all. While here, remove an artificial dependency in Ovfork.S by performing manual register renaming.
* Use FSBase to map kse, GCC generates code which uses %fs to access TLS data.davidxu2003-07-311-4/+4
| | | | Reminded by: marcel
* Remove unnecssary <vm/swap_pager.h> includes.phk2003-07-313-3/+0
| | | | | These were probably not cleaned up back in whatever murky past these files were split into separate files.
* Remove various unused variables, prototypes and local variables.phk2003-07-311-25/+0
|
* Disable and lobotomize the kvm image reading swapinfo code, the kernelphk2003-07-311-125/+1
| | | | | | layout is about to change. The sysctl based method still returns correct information.
* Retire the SWIF_DUMP_TREE code, this is in the way for a rework ofphk2003-07-312-191/+0
| | | | the swap_pager layout.
* This file hasn't been used for some time; nuke it.deischen2003-07-311-42/+0
|
* Take the same approach for i386 as that for ia64 and amd64. Usedeischen2003-07-319-339/+150
| | | | | | | | | the userland version of [gs]etcontext to switch between a thread and the UTS scheduler (and back again). This also fixes a bug in i386 _thr_setcontext() which wasn't properly restoring the context. Reviewed by: davidxu
* Unifdef -UDEBUG_SWAPINFO The kernel data structures are about to change.phk2003-07-311-79/+0
|
* Set GSBASE for kse. Finally make libkse work on AMD64.davidxu2003-07-311-6/+3
|
* Fix some typos, correctly jump into UTS.davidxu2003-07-312-4/+4
|
* sysctlbyname needs size_t type, not int.davidxu2003-07-312-2/+2
|
* Cross-reference arc4random(3).das2003-07-311-0/+4
|
* The upper end of the range of arc4random(3) is 2**32-1, not 2**31-1.das2003-07-311-2/+4
|
* Update manual for i386_set_ldt to reflect newly added features.davidxu2003-07-311-0/+34
| | | | Submitted by: julian
* Don't forget to unlock the scheduler lock. Somehow this got removeddeischen2003-07-302-0/+2
| | | | | | | from one of my last commits. This only affected priority ceiling mutexes. Pointy hat to: deischen
* Only allow trapframe formats instead of sigframe formats like themarcel2003-07-301-4/+4
| | | | | comment says and don't write the first 3 arguments to FRAME_TRAPARG_* as they are specific to sigframes.
* Correct a cut'n'paste error in a comment.harti2003-07-291-1/+1
|
* Make a local static string const.harti2003-07-291-4/+4
|
* Use the appropriate [s]size_t type where a buffer size is meant.harti2003-07-296-78/+50
| | | | Add const specifiers to constant function arguments.
* Minor constification.phk2003-07-291-2/+2
|
* Add support for gb18030 encodingache2003-07-293-1/+170
| | | | | PR: 51729 Submitted by: Kang Liu <liukang@bjpu.edu.cn>
* * Merge index(3) and rindex(3) to index(3) since the two functions aresimon2003-07-285-216/+61
| | | | | | | | | | | | | almost identical. * Merge strchr(3) and strrchr(3) to strchr(3) since the two functions are almost identical. * Make the wording of index(3) and strchr(3) more similar. * mdoc(7) cleanup. Submitted by: SUZUKI Koichi <metal@gc5.so-net.ne.jp>, keramida, myself PR: docs/32054 Reviewed by: ru Approved by: ceri (mentor)
* Simplify sigwait code a bit by using a waitset and removing oldsigmask.davidxu2003-07-276-44/+34
| | | | Reviewed by: deischen
* Set mc_len to sizeof(mcontext_t), otherwise it is an invalid context.davidxu2003-07-261-0/+1
|
* Fix typo.davidxu2003-07-262-10/+10
|
* Revert previous commit. We don't use setjmp()/longjmp() for contextmarcel2003-07-251-4/+2
| | | | | | switching anymore, so there's no need to save and restore GP. This change breaks threaded applications linked against libc_r. Pull the tier 2 card again: relink. This will link against libthr instead.
* Fix for 64 bit platforms. sysctl's length args are pointers topeter2003-07-252-3/+6
| | | | | | size_t, not int. This could be fatal where size_t is long. Reviewed by: bp
* Add wrapper for kqueue() to keep track of the allocated fd and allow it tomp2003-07-252-0/+54
| | | | | | | be closed. This fixes a file descriptor leak when closing a kqueue() fd. Reviewed by: deischen MFC after: 1 week
* An u_int8_t can never be bigger than 255, so remove a useless check.mux2003-07-251-2/+0
| | | | Spotted by: GCC
* Make library WARNS=6 clean. The problems have been: alignment on sparc64harti2003-07-254-7/+8
| | | | and one of the usual sizeof(in_addr_t) == sizeof(u_long) bugs.
* Print group name in getfacl output when calculating an effectiverwatson2003-07-241-2/+3
| | | | | | permission set based on a more restrictive mask. Submitted by: Glen Gibb <grg@ridley.unimelb.edu.au>
* Turn on the extended syntax, which TCP_wrappers has by default, asmarkm2003-07-241-1/+1
| | | | distributed.
* Remove GCC-specific debugging option.markm2003-07-241-1/+1
| | | | OK'ed by: phk
* Don't check for the existance of src/crypto/ for building items thatmarkm2003-07-241-1/+1
| | | | | may contain crypto. The days of ITAR paranoia are over, and the simple macro tests that remain are sufficient.
* Make sure that a "make release" (more accurately the bit that makesmarkm2003-07-241-0/+2
| | | | | the crunched binary) get a non-cryptographic telnet. This is overkill in that it covers stuff that is not normally used in a crunched binary.
* Implement _get_curthread and _set_curthread. We use GCCs builtinmarcel2003-07-241-1/+6
| | | | | function this, which expands to PAL calls (rduniq and wruniq). This needs adjustment when TLS is implemented.
* Ensure that for the cryptographic instances of *telnet*, the "crypto"markm2003-07-241-0/+1
| | | | distribution is used. This only affects release-building.
* Connect libncp/libsmb to the build. They compile, but have a couple ofpeter2003-07-241-0/+5
| | | | | silly bugs that probably wont quite make a segfault. eg: passing a pointer to an int to sysctl instead of a pointer to a size_t.
* Document an additional error return value. The connect(2) call can alsodds2003-07-231-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | return EACCES on non-Unix domain sockets as demonstrated by the following program: #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <errno.h> #include <sys/types.h> #include <sys/socket.h> #include <netinet/in.h> #include <arpa/inet.h> int main(int argc, char *argv[]) { struct sockaddr_in rem_addr; int sock; if ((sock = socket(AF_INET, SOCK_STREAM, 0)) < 0) { perror("socket"); exit(1); } bzero((char *)&rem_addr, sizeof(rem_addr)); rem_addr.sin_family = AF_INET; rem_addr.sin_addr.s_addr = INADDR_NONE; rem_addr.sin_port = htons(10000); if (connect(sock, (struct sockaddr *)&rem_addr, sizeof(rem_addr)) < 0) { perror("connect"); exit(1); } } The call chain returning this value is probably: kern/uipc_syscalls.c:connect kern/uipc_socket.c:soconnect netinet/tcp_usrreq.c:tcp_usr_connect netinet/tcp_output.c:tcp_output netinet/ip_output.c:ip_output Reviewed by: schweikh (mentor) MFC after: 2 weeks
* Fixed some style bugs (misplacement and misformatting of some commented-outbde2003-07-231-4/+2
| | | | code).
OpenPOWER on IntegriCloud