Ben Gras
dee29bbd3c
some extra math functions from netbsd for netpbm.
2011-01-30 23:40:51 +00:00
Ben Gras
dc1cc91df1
<ansi.h> -> <minix/ansi.h>
2011-01-28 11:35:02 +00:00
Erik van der Kouwe
04229f0581
Servers request TSC freq from kernel rather than each one measuring it individually
2011-01-11 11:03:37 +00:00
Arun Thomas
4fe0dfa9aa
libc and csu updates for ELF
2010-12-10 23:04:04 +00:00
Arun Thomas
d824b54d82
csu/build support for ELF
2010-12-10 22:20:12 +00:00
Arun Thomas
372b873413
VFS/RS support for ELF
2010-12-10 09:27:56 +00:00
Dirk Vogt
9ed280d1ec
decouple file system server start/termination from mount/umount
2010-11-23 19:34:56 +00:00
Arun Thomas
7a4149a3f5
For GCC/clang, don't build in ACK int64 routines
2010-11-19 12:36:44 +00:00
Tomas Hruby
504abf4b34
Inlining 64bit integer handling functions
...
- if gcc/clang is used the C functions that use long long can be
inlined to get better performance (yes, it makes difference)
2010-11-18 16:37:40 +00:00
Dirk Vogt
6208131459
libdriver without mandatory driver main loop
2010-11-17 15:10:20 +00:00
Dirk Vogt
c22564335f
Added possibility to inject input events to tty
...
M include/Makefile
A include/minix/input.h
M include/minix/com.h
M drivers/tty/keyboard.c
M drivers/tty/tty.c
M drivers/tty/tty.h
M include/minix/syslib.h
M lib/libsys/Makefile
A lib/libsys/input.c
2010-11-17 14:53:07 +00:00
Arun Thomas
f0ab18377d
GCC/clang: int64 routines in C
2010-11-12 18:38:10 +00:00
Arun Thomas
aaaad89244
Use int64 functions consistently
...
Instead of manipulating the u64_t type directly, use the
ex64hi()/ex64lo()/make64() functions.
2010-11-07 23:35:29 +00:00
Arun Thomas
998af6f111
Move minix/paths.h to paths.h
...
Also, merge in relevant macros from NetBSD
2010-11-06 20:40:15 +00:00
Arun Thomas
40fb96b838
Remove revision IDs from files
2010-11-04 01:13:59 +00:00
Ben Gras
efcfaf4b96
stdio: split vsprintf and vsnprintf
...
- workaround for linking problems
2010-11-02 22:05:40 +00:00
Ben Gras
51d9144e9f
stdio/freopen.c: fill __iotab table with stream pointer
...
- lets fclose()d and then freopen()ed streams be fclose()d again
without error
2010-11-02 22:02:50 +00:00
Ben Gras
09569d399f
stdio/fclose.c: reset _buf
...
- if the stream gets freopen()ed, avoid buffer being seen as valid
2010-11-02 22:01:47 +00:00
Erik van der Kouwe
470a185909
Add libdriver support for async ioctl replies
2010-10-08 09:33:18 +00:00
Erik van der Kouwe
ada0b4ca04
Fix warnings due to missing __dead attribute on exit
2010-10-05 07:25:47 +00:00
Erik van der Kouwe
591201c1a0
Fix warnings in libmthread
2010-10-04 20:19:40 +00:00
Erik van der Kouwe
b0eaf0bc27
make system server vprintf check for NULL
2010-10-04 17:53:18 +00:00
Ben Gras
68de328ac1
make the asynsend table size NPROCS-dependent.
...
this is a fix for e.g. the situation where lots of processes die
instantly, and PM has to send an asyn msg for each one to VFS, and
panics if there are too many. there are likely more situations in
which this table should be dependent on the no. of processes.
reported by pikpik on #minix3.
2010-10-01 14:39:04 +00:00
Thomas Veerman
a7072a5e1c
Revamp the mthread library and update test59
...
Before, the 'main thread' of a process was never taken into account anywhere in
the library, causing mutexes not to work properly (and consequently, neither
did the condition variables). For example, if the 'main thread' (that is, the
thread which is started at the beginning of a process; not a spawned thread by
the library) would lock a mutex, it wasn't actually locked.
2010-09-30 13:44:13 +00:00
Tomas Hruby
74c5cd7668
The profile utility can set the sprofiling mode
...
- profile --nmi | --rtc sets the profiling mode
- --rtc is default, uses BIOS RTC, cannot profile kernel the presetted
frequency values apply
- --nmi is only available in APIC mode as it uses the NMI watchdog, -f
allows any frequency in Hz
- both modes use compatible data structures
2010-09-23 10:49:42 +00:00
David van Moolenbroek
adbc4e4ea7
libsys: tsc_to_micros support for large TSC delta values
2010-09-23 09:26:42 +00:00
Thomas Veerman
12e167f672
Add libmthread and test59 to test the implementation
2010-09-21 12:22:38 +00:00
Ben Gras
250fb23dc0
lib/libsys/gcov.c - fix gcc warning
2010-09-20 11:36:41 +00:00
Tomas Hruby
06b6e5624a
SMP - Changed prototype of sys_schedule()
...
- sys_schedule can change only selected values, -1 means that the
current value should be kept unchanged. For instance we mostly want
to change the scheduling quantum and priority but we want to keep
the process at the current cpu
- RS can hand off its processes to scheduler
- service can read the destination cpu from system.conf
- RS can pass the information farther
2010-09-15 14:10:42 +00:00
David van Moolenbroek
354da24f5b
make getsysinfo() a system-land call
2010-09-14 21:50:05 +00:00
David van Moolenbroek
d7b10963c2
make library calls use ProcFS
2010-09-14 21:28:34 +00:00
Ben Gras
a5a8c57fe7
add EHOSTDOWN errno.
2010-09-14 11:51:41 +00:00
Ben Gras
23311d9819
lib: fixes to make clang not error
2010-09-13 15:50:54 +00:00
Arun Thomas
7c3cfbde1a
Update PATHs for llvm and X11
2010-09-12 17:56:53 +00:00
David van Moolenbroek
d29833c5aa
remove hardcoding of system.conf path in various service calls
2010-09-10 09:22:22 +00:00
Erik van der Kouwe
5cc29a6c7e
Make realpath deal with double slashes
2010-09-06 07:45:32 +00:00
Thomas Veerman
e8ddc0f46e
- Add support for file descriptor passing to PFS.
...
- For security reasons move some libc code to PFS.
- Fix a few bugs in PFS.
Contributed by Thomas Cort.
2010-08-30 13:46:44 +00:00
Thomas Veerman
2297e26660
Prepare headers to support file descriptor passing over UNIX Domain Sockets.
...
Contributed by Thomas Cort.
2010-08-30 13:41:22 +00:00
Ben Gras
c81f201c8c
added missing sef_gcov.c
2010-08-25 13:23:32 +00:00
Ben Gras
5d6c2aae0a
gcov support, based on work contributed by Anton Kuijsten.
2010-08-25 13:06:43 +00:00
Ben Gras
d8466ce31f
libaudiodriver <minix/audio_fw.h> fixes
2010-08-25 11:18:38 +00:00
Ben Gras
1c359afad4
connect libaudiodriver.
2010-08-25 11:07:36 +00:00
Ben Gras
0f4eda33eb
new base libaudiodriver out of -lcommon in drivers/audio.
...
- this lets the drivers that used that library be compiled easily with
different compilers.
2010-08-25 11:03:53 +00:00
Erik van der Kouwe
a2647a4181
Fix buffer overflow in libarchive if a UTF-8 encoded string has codepoints that require two UTF-16 words
2010-08-23 16:32:05 +00:00
Erik van der Kouwe
d743c5c6f3
Solve buffer overflow on tab completion in ash
2010-08-23 16:30:58 +00:00
Arun Thomas
de231a713e
Move MIN() and MAX() macros to sys/params.h
2010-08-21 13:10:41 +00:00
Arun Thomas
60a71efca8
easprintf() and evasprintf()
2010-08-21 13:07:25 +00:00
Erik van der Kouwe
292f98dc29
Minor malloc-debug fixes
2010-08-20 19:50:36 +00:00
Erik van der Kouwe
2a736d0c2e
Add MALLOC_DEBUG env var to debug applications using malloc
2010-08-20 19:16:31 +00:00
Erik van der Kouwe
b337d3f8e5
move rrrrrrread_tsc from libsys to libc so anyone can use it
2010-08-20 18:43:56 +00:00
Arun Thomas
9a21d1a2fd
Macros for symbols used in both ASM and C
...
-The macros take care of prepending the leading underscore when
necessary.
2010-08-17 16:44:07 +00:00
Erik van der Kouwe
551374c228
Add ftello function
2010-08-16 17:07:40 +00:00
Erik van der Kouwe
a3e4dcafe0
Add fseeko function
2010-08-16 17:06:08 +00:00
David van Moolenbroek
bee1f38e01
VTreeFS library
2010-08-10 20:05:51 +00:00
Ben Gras
42bbd56673
lib: when building clang/gcc libraries: add /usr/pkg/bin to $PATH
2010-08-03 11:21:25 +00:00
Erik van der Kouwe
a719ab7780
Auto-detect ext2 partitions in mount
2010-08-03 06:28:58 +00:00
David van Moolenbroek
20eced94e7
libdriver: allow driver to break out of message loop
2010-08-01 22:07:46 +00:00
Ben Gras
05bbf81f93
new EPFNOSUPPORT errno
2010-07-28 16:32:21 +00:00
Arun Thomas
ee1cabf06c
Import poll() from NetBSD's libnbcompat
2010-07-26 20:46:04 +00:00
Ben Gras
541b5c5c38
inet_pton(), patched by Thomas Cort.
2010-07-26 14:47:10 +00:00
Ben Gras
c297701987
libarchive: sanitize out-of-range uids/gids
2010-07-26 12:44:48 +00:00
Ben Gras
9f0364df60
lib - sanity check for group_from_gid etc.
2010-07-24 10:40:55 +00:00
Ben Gras
34a58c8d82
inet_ntop, contributed by Thomas Cort.
2010-07-23 09:54:47 +00:00
Erik van der Kouwe
f389ad2655
Move sensitive instructions from libc into kernel
2010-07-23 07:12:47 +00:00
Erik van der Kouwe
a06e5c383d
Throw out ins[bwl] and out[bwl] from libc as they are not used
2010-07-23 07:10:47 +00:00
Ben Gras
c4bb6abc2b
vsprintf: fix special yet useful case for vsprintf where n < 1.
...
reported by jaldhar.
2010-07-22 22:35:44 +00:00
Ben Gras
6c2c2f3c34
libfp: use ${CC} instead of cc, reported by Antoine Leca.
2010-07-22 22:24:08 +00:00
Arun Thomas
dbde088d98
Replace NULL macro defs with null.h include
2010-07-22 10:03:31 +00:00
Ben Gras
6ed6e31e80
un-duplicate sha2hl.c
2010-07-19 13:08:48 +00:00
Ben Gras
ffe7e9166e
lib - extra file for libutil; strnstr and strcasestr from freebsd for libc.
2010-07-19 10:46:26 +00:00
Ben Gras
09c18bc918
lib: bugfix for mbstowcs, debugged by Gautam Tirumala.
2010-07-18 20:57:55 +00:00
Ben Gras
4aca722796
lib - link in new u64 functions.
2010-07-16 00:12:51 +00:00
Ben Gras
2a556de6d2
further sha2 conversion by Gautam Tirumala
2010-07-16 00:12:16 +00:00
Ben Gras
feaa082ea8
libutil - sha1 functions.
2010-07-16 00:11:16 +00:00
Ben Gras
117bac1e2d
libutil: md5 functions.
2010-07-16 00:06:00 +00:00
Ben Gras
6c66933f90
64-bit bitwise manipulation functions, by Gautam Tirumala.
2010-07-15 23:48:56 +00:00
Thomas Veerman
f531dba2d2
Add support for UNIX Domain Sockets to the C lib. Contributed by Thomas Cort
2010-07-15 14:05:23 +00:00
Thomas Veerman
ecc8a52f82
Add getnucred system call. Contributed by Thomas Cort
2010-07-15 13:24:57 +00:00
Thomas Veerman
ca0bed1400
Add EOVERFLOW error condition
2010-07-15 12:36:41 +00:00
Ben Gras
8a0c10fcb9
lib: mkdtemp(), contributed by by Gautam Tirumala
2010-07-14 22:45:28 +00:00
Ben Gras
2639ae9b17
libc: add db code from netbsd
2010-07-14 17:46:18 +00:00
Ben Gras
8d24932c80
lib: don't give back the same temporary filenames even if removed.
...
workaround for what seems to be a clang/llvm bug/assumption.
2010-07-14 15:18:50 +00:00
Cristiano Giuffrida
f8a8ea0a79
Dynamic configuration in system.conf for boot system services.
2010-07-13 21:11:44 +00:00
Ben Gras
f6e558f5d4
errno EFTYPE
2010-07-13 20:05:47 +00:00
Ben Gras
470ab03b86
libarchive port by Gautam Tirumala.
2010-07-13 19:17:02 +00:00
Cristiano Giuffrida
8cedace2f5
Scheduling parameters out of the kernel.
2010-07-13 15:30:17 +00:00
Ben Gras
0574bb5a63
lib: clang-libraries top-level target.
2010-07-13 14:11:31 +00:00
David van Moolenbroek
1ecdac623a
libsys: add standard condition spinning primitives
2010-07-12 23:14:40 +00:00
Arun Thomas
bcaf746508
Import strsep() from NetBSD's libnbcompat
...
Ported by Gautam Tirumala
2010-07-12 17:41:31 +00:00
Arun Thomas
652618e458
shquote() from NetBSD's libnbcompat
...
Ported by Gautam Tirumala
2010-07-12 17:32:57 +00:00
Arun Thomas
1cee6fe95e
Import asprintf() and vasprintf()
...
Ported from libnbcompat by Gautam Tirumala
2010-07-11 13:46:58 +00:00
Cristiano Giuffrida
8427d774b6
RS live update support.
2010-07-09 18:29:04 +00:00
David van Moolenbroek
895850b8cf
move timers code to libsys
2010-07-09 12:58:18 +00:00
David van Moolenbroek
8182a9d972
libdriver: don't panic so easily
2010-07-07 11:04:33 +00:00
Cristiano Giuffrida
1f8dbed029
RS crash recovery support.
2010-07-06 22:05:21 +00:00
Ben Gras
68db8ed0b9
lib: fixes for warnings that clang has for libraries.
2010-07-06 12:08:22 +00:00
Erik van der Kouwe
37325bd7c5
Make service ABI backwards compatible again
2010-07-03 05:02:59 +00:00
Erik van der Kouwe
b5ae3961bb
Fix unintended changes in r7614
2010-07-01 11:56:02 +00:00
David van Moolenbroek
2488cc6442
PCI: expose BAR sizes
2010-07-01 09:10:16 +00:00
Erik van der Kouwe
4690e8b015
Opps, forgot to svn add these files
2010-07-01 08:38:15 +00:00
Erik van der Kouwe
23284ee7bd
User-space scheduling for system processes
2010-07-01 08:32:33 +00:00
Ben Gras
65be30daed
libfetch - move fetch.3 to man and fetch.h to include
2010-07-01 00:05:48 +00:00
Ben Gras
429639f938
lib: added libfetch
2010-06-30 23:55:55 +00:00
Ben Gras
098412be83
small fixes for pkgsrc by Buccapatnam Tirumala, Gautam.
2010-06-30 12:18:34 +00:00
Cristiano Giuffrida
180358ffb4
Give RS a page table.
2010-06-28 22:07:49 +00:00
Cristiano Giuffrida
06700d05d1
Give RS a page table.
2010-06-28 21:53:37 +00:00
Ben Gras
8379b08845
library function to retrieve kernel proc table and sanity check it
2010-06-28 11:05:15 +00:00
Cristiano Giuffrida
377f4e7e31
Fix and comment a race in SEF Init
2010-06-27 09:01:15 +00:00
Ben Gras
01b5238d50
getsubopt: use regular assert()s
2010-06-26 02:37:17 +00:00
Ben Gras
aa6ff4c8be
lib: setprogname() + getsubopt()
2010-06-26 00:44:24 +00:00
Arun Thomas
c0c8d25799
Rename mkfiles from minix.*.mk to bsd.*.mk
...
Makes things easier for pkgsrc
2010-06-25 18:29:09 +00:00
Ben Gras
45e4cce8c2
libc stubs for statvfs, contributed by Buccapatnam Tirumala, Gautam.
2010-06-23 23:51:29 +00:00
Erik van der Kouwe
50539c12f5
Remove obsolete mstats call
2010-06-23 10:43:08 +00:00
Ben Gras
24a5f48921
lib - a pwrite() implementation (Contributed by Buccapatnam Tirumala, Gautam)
2010-06-22 22:04:43 +00:00
Ben Gras
ddc3f62290
strptime() for minix.
2010-06-22 21:42:49 +00:00
Ben Gras
08f731bae0
original strptime.
2010-06-22 21:41:56 +00:00
Ben Gras
08e4312998
forget netbsd strptime.
2010-06-22 21:41:20 +00:00
Ben Gras
c7050eea55
original netbsd strptime
2010-06-22 21:37:54 +00:00
Ben Gras
81056ac999
stdio: j modifier for %d. (Contributed by Buccapatnam Tirumala, Gautam)
2010-06-22 16:22:17 +00:00
Tomas Hruby
21725c107d
cd subdir && $(MAKE) targets -> $(MAKE) -C subdir targets
...
- first step towards parallel building
2010-06-22 12:03:09 +00:00
Ben Gras
15210b3e06
forget about multiple zeros on non-ack compiler, tracker item 457
2010-06-22 09:40:04 +00:00
Ben Gras
82dee9dbc3
add LC_MESSAGES
2010-06-22 09:31:16 +00:00
Ben Gras
6c0fcd575e
lib: getproname: only return last path component
2010-06-20 00:24:35 +00:00
Ben Gras
3cc5e1add4
lib: no visibility features; fixes gcc warnings
2010-06-20 00:24:11 +00:00
Ben Gras
f60593cc35
libraries: fgetln() from pkgsrc branch.
2010-06-18 14:02:00 +00:00
Arun Thomas
042b5bf606
We have sys/cdefs.h now, so remove hacks.
2010-06-17 15:14:57 +00:00
Ben Gras
7b7091e905
zlib includes in lib/libz, install them too in /usr/include from toplevel makefile.
2010-06-17 15:05:20 +00:00
Ben Gras
ae947059e6
libraries, includes: libz: original libz source files with minix makefile.
2010-06-17 13:29:20 +00:00
David van Moolenbroek
eeab8e0680
libdriver: make partition code use a contiguous buffer
2010-06-13 10:40:22 +00:00
Arun Thomas
1b2c01db1b
Makefile updates:
...
Turn on optimization
Remove some redundancy in FLAGS
2010-06-11 16:05:36 +00:00
Arun Thomas
f0a158d8c1
More cleanup to remove MM and FS references
2010-06-10 14:04:46 +00:00
David van Moolenbroek
2758519ed2
Change default hostname resolution order
...
Hostnames that contain at least one period, are now first attempted
to be resolved as FQDNs, before adding local domains is tried.
2010-06-10 11:14:36 +00:00
Ben Gras
1ce7983ee3
lib: declarations that needed ANSIfication since prototypes are declared
2010-06-09 13:01:11 +00:00
Ben Gras
c046958745
crtso.S: save *argv[] and argc globally, to be used by getprogname().
2010-06-09 12:10:31 +00:00
Ben Gras
ba9990cc00
libc: minor minix changes for new netbsd files
2010-06-09 12:09:39 +00:00
Ben Gras
60d52d68da
libc: add original netbsd files
2010-06-09 12:08:32 +00:00
Ben Gras
a0147a8c32
libutil: minix efun.c
2010-06-09 12:05:53 +00:00
Ben Gras
7b87ff5b11
libutil: original netbsd efun.c
2010-06-09 12:05:04 +00:00
Tomas Hruby
1207fcc6f0
int to endpoint_t conversions in mmap
2010-06-09 09:14:53 +00:00
Ben Gras
cccfe8e0ce
lib: move tzfile.h from lib/libc/stdtime/ to include/ for general usage.
2010-06-08 19:11:42 +00:00
Arun Thomas
4c10a31440
Remove legacy MM, FS, and FS_PROC_NR macros
2010-06-08 13:58:01 +00:00
Ben Gras
035c5a369c
move drivers/random SHA implementation to libutil and header to <minix/sha2.h>
2010-06-02 22:58:29 +00:00
Kees van Reeuwijk
36e12d5bd8
Use endpoint_t for the destination of mini_send and _syscall, and the
...
source of mini_receive.
Also some small cleanup.
2010-06-02 21:51:32 +00:00
Thomas Veerman
6bbcab3ec4
Clean up MFS a bit:
...
- Remove unused includes.
- Add include guards to headers.
- Use unsigned variables in case they're never going to hold a negative
value. This causes GCC's complaints to disappear and should make flexelint
a lot happier, too.
- Make functions private when they're used only within a module.
- Remove unused variables.
- Add casts where appropriate.
2010-06-01 12:35:33 +00:00
Erik van der Kouwe
8bca982581
Remove those annoying $Id and $Revision tags
2010-05-31 20:00:08 +00:00
Erik van der Kouwe
8d06457241
Remove obsolete _fpu_present variable from crtso.S
2010-05-27 09:46:42 +00:00
Erik van der Kouwe
a31e9b0400
Oops, committed too much
2010-05-27 09:20:50 +00:00
Erik van der Kouwe
fc7438181b
Avoid use of C++ reserved word class in headers (reported by Aki Goto, tracker item 375)
2010-05-27 09:18:49 +00:00
Arun Thomas
b48b037fbe
Reorganize some directories
...
servers/hgfs/hgfs_server => servers/hgfs
servers/hgfs/libhgfs => lib/libhgfs
servers/rs/service => commands/service
drivers/memory/memory_driver => drivers/memory
drivers/memory/ramdisk => drivers/ramdisk
2010-05-26 22:49:57 +00:00
Tomas Hruby
a8111c5027
Various small scheduling related fixes
2010-05-26 07:16:39 +00:00