Commit Graph

5340 Commits

Author SHA1 Message Date
Axel Dörfler
5eb712b2dd Now correctly returns the available bytes in the pipe in st_size.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5360 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-11-14 13:21:37 +00:00
DarkWyrm
98a70bba4b Converted all BSessions used for replies to PortLinks
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5359 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-11-14 01:41:04 +00:00
Adi Oanca
2a006628cc small fix. removed 2 memebers.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5358 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-11-14 00:31:52 +00:00
DarkWyrm
2e4c9e2113 Attachment data bugfixes related to fDataSize
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5357 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-11-14 00:22:30 +00:00
DarkWyrm
018e96bd74 Fix for a data attachment bug
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5356 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-11-14 00:21:43 +00:00
Adi Oanca
7052fe60fa new optinized clipping code
new optimized redrawing code
changes in some handlers in ServerWindow.
other minor changes.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5355 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-11-14 00:15:29 +00:00
Axel Dörfler
57b3bc3b9c Added _kern_debug_output() syscall.
Fixed warning about missing user_strlcpy() prototype.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5354 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-11-13 22:08:30 +00:00
Axel Dörfler
9289abf0e4 Added _kern_debug_output() syscall.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5353 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-11-13 22:07:36 +00:00
Michael Pfeiffer
50d78f98e5 Bug fixed: virtual function must not be called in destructor.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5352 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-11-13 20:38:19 +00:00
Axel Dörfler
70a5b6f894 Fixed compilation on x86. Also moved the SmallDataStart() inline out of
the structure definition.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5351 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-11-13 19:42:15 +00:00
Michael Pfeiffer
938629a7e2 Bug fixes.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5350 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-11-13 18:30:19 +00:00
Jérôme Duval
36a4855350 Added a 3 seconds delayed save to disk
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5349 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-11-13 09:13:08 +00:00
Stefano Ceccherini
5480b4590e Another patch from Oliver Tappe: BString behaves better when the user supplies out-of bounds values in Insert(), Remove(), etc.
Code is refactored, and it fully complies with our guidelines.
Tests have been updated too (hint: try the replace tests with R5 and our implementation...)


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5348 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-11-13 07:35:16 +00:00
Michael Pfeiffer
81b9c77691 - scale bilinear (experimental: scaled image is too small by one pixel)
- bug fixes


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5347 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-11-13 06:54:48 +00:00
Axel Dörfler
8afbc3212d Fixed some bugs concerning switching the log when it's getting too large:
never closed old file - with BeOS, it would only get deleted if the server
would be restarted... good for disk fragmentation etc.
Also, renaming failed if there already was a syslog.old file - it's now
removed first.
Furthermore, the first time the syslog was opened, its size was not checked,
the first output always went through.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5346 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-11-13 03:33:24 +00:00
Axel Dörfler
f0e6952fc8 Added comments to LOG_SERIAL and LOG_PERROR.
Note, LOG_SERIAL does neither work in our implementation, nor in the original
implementation by Be.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5345 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-11-13 03:30:21 +00:00
Axel Dörfler
12d314225a Fixed the test; I wanted to use setlogmask_team() there...
Added tests for the repeated message suppressing.
Added test for having no ident string.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5344 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-11-13 02:59:09 +00:00
Axel Dörfler
1cb317b43c Implemented syslog output. For now, it will be put into /tmp (i.e. the tests
won't clobber your existing syslog).
The time stamp is currently #ifdef'd out. We might think about adding some
prefs; the facility could also only printed for kernel messages (like in
Be's implementation).


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5343 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-11-13 02:56:57 +00:00
Axel Dörfler
fe4817d5c0 Didn't set the facility correctly if set from both, openlog() and syslog().
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5342 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-11-13 02:51:15 +00:00
Axel Dörfler
37023b5035 Added new message codes for adding/removing a syslog listener.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5341 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-11-13 01:15:46 +00:00
Axel Dörfler
95f0fd9010 Implemented the syslog_daemon. Actual syslog output is not yet implemented;
it currently only puts out everything to stdout.
Is able to accept listeners who will get the syslog notes as well.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5340 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-11-13 01:14:19 +00:00
DarkWyrm
a7ec3bbbea Added reader class for BSession message streams
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5339 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-11-12 23:57:14 +00:00
Axel Dörfler
c094c0c22b Added a comment about a missing dump of the message to stderr if write_port()
fails.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5338 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-11-12 16:55:04 +00:00
Axel Dörfler
05f8d13ed9 Now also checks if the context is kept after a closelog().
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5337 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-11-12 16:42:13 +00:00
Axel Dörfler
21f3abb2b4 Added a test for the syslog functionality.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5336 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-11-12 16:37:46 +00:00
Axel Dörfler
0edba5de96 Added priority field to syslog_message.
Added macros to get the priority/facility.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5335 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-11-12 16:35:19 +00:00
Axel Dörfler
87a98412a1 Now correctly differentiates between options and priority/facilities.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5334 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-11-12 16:34:12 +00:00
Axel Dörfler
fa2f787a47 Added some comments and fixed LOG_AUTHPRIV.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5333 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-11-12 16:33:11 +00:00
Axel Dörfler
fb4dcd08dc Now checks in the argument's options as well for LOG_CONS.
The LOG_MASK() macro is now used correctly.
The non-standard LOG_PERROR is always visible in stderr as well (in BeOS,
so we copied it). Added a newline for stderr output.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5332 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-11-12 16:11:50 +00:00
Axel Dörfler
f2eb00db1e Fixed and simplified the user_*() team syscalls.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5331 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-11-12 15:37:44 +00:00
Axel Dörfler
9ff210a134 Use the SYSLOG_PORT_NAME constant instead of the name directly.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5330 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-11-12 15:14:48 +00:00
Axel Dörfler
41c6e8cc55 Fixed the setlogmask*() functions; the priority mask is only set if the
parameter is not 0, and it returns the old mask as well.
Also fixed the initial log mask for the team context; it's now set to -1
(enable all priorities) by default.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5329 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-11-12 14:44:31 +00:00
Axel Dörfler
8c894b6039 No longer needed, the new syslog.h is now correctly placed in the posix/
directory.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5328 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-11-12 14:41:30 +00:00
Axel Dörfler
94849cc617 Our new syslog.h. Note, this one might break source compatibility, as I
don't define some (unneeded) macros, and LOG_TMID & LOG_THID are gone
(they were specified to be the same as LOG_PID).


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5327 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-11-12 14:40:45 +00:00
Axel Dörfler
3b737adbda Implemented the POSIX syslog API including the BeOS extensions. In BeOS,
this API is found in libbe.so, in OpenBeOS, it's directly in libroot.so.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5326 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-11-12 14:35:22 +00:00
Axel Dörfler
7aaeb3f35a First round of the syslog_daemon implementation.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5325 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-11-12 14:31:34 +00:00
Jérôme Duval
4691dc7ff8 MediaFiles support added
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5324 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-11-12 10:24:42 +00:00
Jérôme Duval
adcc5beaca Struct and codes for MediaFiles
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5323 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-11-12 09:36:48 +00:00
Michael Pfeiffer
da87390fc5 - Scrolling with mouse wheel
- Moving image with third mouse button pressed
- Added pop up menu with contents of View menu of menu bar
- Center image in full screen mode
- Added Select None menu item
- To avoid flickering, disabled caption during moving image with mouse- Added key bindings:
  - Cursor keys: moves image
  - Enter or space bar: next file
  - Backspace: previous file
  - Escape: Stops slide show
  - SHIFT + first mouse button: simulate third mouse button
  - CONTROL + first mouse button: simulates second mouse button


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5322 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-11-12 08:49:30 +00:00
DarkWyrm
a2c4bea185 almost forgot this file for funzip building
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5321 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-11-11 22:16:38 +00:00
DarkWyrm
1ed56ea3b2 funzip finally builds, courtesy of the work of Michael Lotz
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5320 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-11-11 22:16:04 +00:00
Tyler Dauwalder
43c2ddb481 Upgraded my vocabulary.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5319 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-11-11 19:11:25 +00:00
Tyler Dauwalder
c6c7acd44e Removed PartitionMap.cpp from the build.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5318 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-11-11 09:17:06 +00:00
Tyler Dauwalder
b65e0cf963 Adjusted Udf::Volume::Mount() parameter order according to new Mount() function.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5317 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-11-11 09:12:28 +00:00
Tyler Dauwalder
d4e8b936cc Enormous cleanup.
- Finished migration of current capabilities (i.e. vanilla physical partition
  support) to new partition mapping system.
- Eliminated a lot of unnecesary cruft.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5316 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-11-11 09:11:43 +00:00
Tyler Dauwalder
3d8229dc67 - Got rid of some warnings
- Changed a variable name to eliminate shadowing.
- Fixed (I think) N and N-256 avdp locations.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5315 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-11-11 09:08:40 +00:00
Tyler Dauwalder
a1b5a724ed Physical blocks are off_t's, not uint32's.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5314 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-11-11 09:06:53 +00:00
Tyler Dauwalder
78b6ddea31 - Added partition type id udf_entity_id constants
- Added udf_entity_id::{udf_entity_id(),matches()}
- Added partial udf_metadata_partition_map
- Added actual space for partition maps to udf_logical_descriptor,
  since I now allocate said descriptors on the stack sometimes,
  instead of just casting a pre-allocated chunk of memory to said
  descriptor type.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5313 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-11-11 09:04:23 +00:00
Tyler Dauwalder
6d5694a8ea Added C-String constructor and SetTo().
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5312 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-11-11 09:00:51 +00:00
Tyler Dauwalder
f5317138d6 Removed. No longer needed with new partition system.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5311 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-11-11 08:59:50 +00:00