summaryrefslogtreecommitdiffstats
path: root/lib/libc/sys/lseek.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Make consistent the syscall stubs for the syscalls that got specialguenther2011-10-161-4/+4
| | | | | | | | handling to fix up the alignment of 64bit arguments so that they do the same dance where _thread_sys_FOO is the real stub and FOO is a weak alias. For some of them, this is needed for cancellation handling. From discussions with fgsch@, ok millert@
* _FD_LOCK/UNLOCK() is libpthread specific and not needed for librthread, sokurt2007-06-051-12/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | isolate its usage to libpthread only and replace with generic non-static mutex support in the one place it is needed: - remove _FD_LOCK/UNLOCK from lseek and ftruncate in libc and make the functions weak so that libpthread can override with its own new versions that do the locking. - remove _thread_fd_lock/unlock() weak functions from libc and adjust libpthread for the change. - add generic _thread_mutex_lock/unlock/destroy() weak functions in libc to support non-static mutexes in libc and add libpthread and librthread implementations for them. libc can utilize non-static mutexes via the new _MUTEX_LOCK/UNLOCK/DESTROY() macros. Actually these new macros can support both static and non-static mutexes but currently only using them for non-static. - make opendir/closedir/readdir/readdir_r/seekdir/telldir() thread-safe for both thread libraries by using a non-static mutex in the struct _dirdesc (typedef DIR), utilizing it in the *dir functions and remove remaining and incorrect _FD_LOCK/UNLOCK() use in libc. - add comments to both thread libraries to indicate libc depends on the current implementation of static mutex initialization. suggested by marc@ - major bump libc and libpthread due to function removal, structure change and weak symbol conversions. okay marc@, tedu@
* zap remaining rcsid.espie2005-08-081-4/+1
| | | | | | Kill old files that are no longer compiled. okay theo
* Make __syscall prototypes more consistent. Use register_t as themillert2005-04-061-3/+3
| | | | | return value for system calls that return size_t or ssize_t and quad_t for those that return off_t.
* major bump to libc and libpthread to break the dependency of amarc2004-06-071-1/+3
| | | | | | particular implementation of libpthread for libc. libc no longer needs pthread.h to compile. OK millert@, brad@, tedu@
* ansification; checked by pvalderaadt2003-06-111-5/+2
|
* Remove the advertising clause in the UCB license which Berkeleymillert2003-06-021-6/+2
| | | | rescinded 22 July 1999. Proofed by myself and Theo.
* uncommit, since it breaks macppc libc. millert and miod have now said theyderaadt2002-09-171-3/+3
| | | | | | did NOT approve those for commit. why did mickey feel he was ok to go commiting a set of diffs which had not been passed around and tested by people? we don't know. mickey, have you got something to say for yourself?
* move __syscall prototype into unistd.h (like everybody else) and avoid private protos for it everywhere; millert@ okmickey2002-09-171-3/+3
|
* Add thread-safety to libc, so that libc_r will build (on i386 at least).d1998-11-201-2/+10
| | | | | | | | | | | | | All POSIX libc api now there (to P1003.1c/D10) (more md stuff is needed for other libc/arch/*) (setlogin is no longer a special syscall) Add -pthread option to gcc (that makes it use -lc_r and -D_POSIX_THREADS). Doc some re-entrant routines Add libc_r to intro(3) dig() uses some libc srcs and an extra -I was needed there. Add more md stuff to libc_r. Update includes for the pthreads api Update libc_r TODO
* Use SYSLIBC_SCCS; these are syscallstholo1997-04-261-3/+3
|
* Fix RCS idstholo1996-08-191-7/+1
| | | | Make sure everything uses {SYS,}LIBC_SCCS properly
* do not proto __syscall or you will experience excruciating painderaadt1996-05-011-1/+1
|
* Prototype __syscall() correctlytholo1996-03-251-1/+1
|
* initial import of NetBSD treederaadt1995-10-181-0/+60