summaryrefslogtreecommitdiffstats
path: root/common/sys
Commit message (Collapse)AuthorAgeFilesLines
* * 'l' looks like '1' and confusing. rename to 's'.kcwu2009-06-151-16/+16
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4622 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * change toread/towrite's return value to be '-1 for EOF and error'.piaip2009-06-151-2/+4
| | | | | | | * make the callers of toread/towrite more robust git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4621 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * handle (to)read/write return value more correctlypiaip2009-06-151-4/+4
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4617 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* chdir after opening files, so relative paths workwens2009-06-141-5/+5
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4612 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * more checks on net systempiaip2009-06-141-4/+16
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4606 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * make AYT customizablepiaip2009-06-121-16/+23
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4571 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * revert previous disable of perror... it should not be the reason of crashespiaip2009-06-101-2/+2
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4549 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * no need to exit process when passing fd failed... (or not?)piaip2009-06-101-2/+2
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4548 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * fix: telnet protocol state error: quotes must be also considered in prescan.piaip2009-06-101-1/+3
| | | | | | | * this error will occur if input buffer is small and split IAC in the middle. git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4540 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * sendmsg() with ancillary on Linux seems like requiring unix domain socket ↵piaip2009-06-101-1/+8
| | | | | | original path, even if the socket was already opened. git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4531 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * add client code detection to tunnel modepiaip2009-06-081-25/+54
| | | | | | | * refine telnet library to support write customization git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4517 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * fix: crashed for read_more case in tty_read.piaip2009-06-071-1/+1
| | | | | | | | * example: got waterball then SEGV * reason: telnet_process should take signed size_t. git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4515 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * change telnet interface to accept extra parameter for callbacks (*_arg)piaip2009-06-071-18/+18
| | | | | | | * refine mbbsd to allow pre-setting terminal window git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4514 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* * improve tobind() with customizable parameterspiaip2009-06-071-4/+102
| | | | | | | * add ancillary remote fd API git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4507 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* - extract telnet.c to cmsyskcwu2009-06-072-1/+345
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4505 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* - fix compile error on linuxkcwu2009-06-071-1/+2
| | | | | | | - fix compile warnings git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4502 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* - fix compile warningskcwu2009-06-071-4/+5
| | | | | | | - str_decode_M3: Assume output size is shorter than input size. git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4501 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* - move code of innbbsd/str_decode.c to cmsys/string.ckcwu2009-06-071-0/+260
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4499 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* - many small revisekcwu2009-05-272-3/+4
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4487 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* Move settings for bsd.lib.mk down to pttbbs.mkwens2009-03-011-7/+1
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4443 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* remove my_ctimewens2009-03-011-13/+8
| | | | | | | add ctime4_r git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4442 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* Don't build profiling libraries on FreeBSDwens2009-03-011-0/+4
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4440 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* Fix DBCS_strcasestr return typewens2008-11-011-1/+1
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4413 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* strstr is char *, not const char *wens2008-10-011-1/+1
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4407 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* revert last commitwens2008-08-211-1/+1
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4403 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* *:xxx and :xxx should listen on INADDR_ANYwens2008-08-211-1/+1
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4402 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* Don't close all fds, do it in daemon for more flexibilitywens2008-08-211-0/+2
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4401 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* Common daemonize functionwens2008-08-212-1/+91
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4399 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* Change Vector_searchwens2008-07-051-2/+2
| | | | | | | fix namecomplete case error git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4385 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* Split out os dependent librarywens2008-06-172-298/+1
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4378 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* Clean up header dependencieswens2008-06-171-0/+2
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4377 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* Add const modifierwens2008-06-161-3/+3
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4374 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* Fix maxlength counterwens2008-06-161-2/+2
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4373 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* Constant vector (initialized with reference to given data)wens2008-06-161-1/+19
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4369 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* General vector-like listwens2008-06-152-1/+162
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4357 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* Move BBS non-related functions to independent librarywens2008-06-132-1/+195
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4350 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* Makefile cleanupwens2008-06-131-15/+6
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4349 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* Clean up makefileswens2008-06-121-2/+0
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4346 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* - (internal) fix DBCS_strcasestr() APIpiaip2008-05-101-6/+10
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4291 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* - (internal) replace all localtime4() by localtime4_r().piaip2008-05-051-0/+14
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4272 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* - (internal) add localtime4_r thread-safe APIpiaip2008-05-051-0/+14
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4271 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* - (internal) change localtime() to localtime_r() API.piaip2008-05-051-12/+18
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4270 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* - (internal) add more Cdate format functionpiaip2008-05-051-4/+17
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4268 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* - (internal) export osdep from cmsys, fixing bbsctl linking errorpiaip2008-04-191-1/+1
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4196 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* - (internal) tobind/toconnect: allow specifying INADDR_ANY (*:port) or ↵piaip2008-04-181-14/+29
| | | | | | loopback (:port). git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4186 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* - (internal) change chat to use vgetstring with new callback systempiaip2008-04-171-0/+60
| | | | | | | - (internal) move DBCS API to string lib git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4176 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* - (internal) visio: add vgetspiaip2008-04-171-0/+20
| | | | | | | | - (internal) add key name KEY_BS2 - (internal) move getDBCSstatus to DBCS_Status git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4174 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* - (internal) visio: add columned output API.piaip2008-04-161-0/+44
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4170 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* - (internal) un sockets requires removing file path first.piaip2008-04-111-0/+3
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4131 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* - net: should not change constant string.piaip2008-04-101-2/+6
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4126 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* Change tobind/toconnect interface.wens2008-04-101-12/+29
| | | | | | | **OUTTACACHE is now UTMPD** git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4121 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* fix if/else sequencewens2008-04-091-2/+2
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4117 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* Support UNIX socket domainswens2008-04-091-29/+71
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4116 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* Drop Solaris supportwens2008-04-091-79/+0
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4115 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* - (internal) change mail/log to specific API.piaip2008-04-032-1/+15
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4070 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* - enable angel to temporary disable pager again.piaip2008-04-011-1/+2
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4054 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* - (internal) enable building utmpserverpiaip2008-03-311-0/+43
| | | | git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4053 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
* (internal) refine directory layout: libbbs/libbbsutil -> common/bbs,sys.piaip2008-03-2710-0/+2187
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4027 63ad8ddf-47c3-0310-b6dd-a9e9d9715204