aboutsummaryrefslogtreecommitdiff
path: root/runit/runit_lib.c
diff options
context:
space:
mode:
authorvda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277>2006-11-17 18:58:16 +0000
committervda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277>2006-11-17 18:58:16 +0000
commite89087e8ac2bbd0d510f9291f8bd704059f4e48b (patch)
treebd51123a09a6e587b98dfa156ca7bf0ba55b2325 /runit/runit_lib.c
parent85f0978efd4641525ebcc47aa7c25aa8898241d7 (diff)
downloadbusybox-w32-e89087e8ac2bbd0d510f9291f8bd704059f4e48b.tar.gz
busybox-w32-e89087e8ac2bbd0d510f9291f8bd704059f4e48b.tar.bz2
busybox-w32-e89087e8ac2bbd0d510f9291f8bd704059f4e48b.zip
runit: add runsv, runsvdir and sv. Oh yes.
It even seems to work. +11K. :( git-svn-id: svn://busybox.net/trunk/busybox@16569 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'runit/runit_lib.c')
-rw-r--r--runit/runit_lib.c23
1 files changed, 13 insertions, 10 deletions
diff --git a/runit/runit_lib.c b/runit/runit_lib.c
index 322bef858..c95d641f1 100644
--- a/runit/runit_lib.c
+++ b/runit/runit_lib.c
@@ -519,6 +519,7 @@ void taia_uint(struct taia *t,unsigned s)
519 519
520 520
521/*** stralloc_cat.c ***/ 521/*** stralloc_cat.c ***/
522#if 0
522 523
523int stralloc_cat(stralloc *sato,const stralloc *safrom) 524int stralloc_cat(stralloc *sato,const stralloc *safrom)
524{ 525{
@@ -577,6 +578,7 @@ int stralloc_copys(stralloc *sa,const char *s)
577 578
578GEN_ALLOC_append(stralloc,char,s,len,a,i,n,x,30,stralloc_readyplus,stralloc_append) 579GEN_ALLOC_append(stralloc,char,s,len,a,i,n,x,30,stralloc_readyplus,stralloc_append)
579 580
581#endif /* stralloc */
580 582
581/*** iopause.c ***/ 583/*** iopause.c ***/
582 584
@@ -643,7 +645,7 @@ int ndelay_on(int fd)
643 645
644int open_append(const char *fn) 646int open_append(const char *fn)
645{ 647{
646 return open(fn,O_WRONLY | O_NDELAY | O_APPEND | O_CREAT,0600); 648 return open(fn, O_WRONLY|O_NDELAY|O_APPEND|O_CREAT, 0600);
647} 649}
648 650
649 651
@@ -651,7 +653,7 @@ int open_append(const char *fn)
651 653
652int open_read(const char *fn) 654int open_read(const char *fn)
653{ 655{
654 return open(fn,O_RDONLY | O_NDELAY); 656 return open(fn, O_RDONLY|O_NDELAY);
655} 657}
656 658
657 659
@@ -667,12 +669,12 @@ int open_trunc(const char *fn)
667 669
668int open_write(const char *fn) 670int open_write(const char *fn)
669{ 671{
670 return open(fn,O_WRONLY | O_NDELAY); 672 return open(fn, O_WRONLY|O_NDELAY);
671} 673}
672 674
673 675
674/*** openreadclose.c ***/ 676/*** openreadclose.c ***/
675 677#if 0
676int openreadclose(const char *fn,stralloc *sa,unsigned bufsize) 678int openreadclose(const char *fn,stralloc *sa,unsigned bufsize)
677{ 679{
678 int fd; 680 int fd;
@@ -684,10 +686,11 @@ int openreadclose(const char *fn,stralloc *sa,unsigned bufsize)
684 if (readclose(fd,sa,bufsize) == -1) return -1; 686 if (readclose(fd,sa,bufsize) == -1) return -1;
685 return 1; 687 return 1;
686} 688}
689#endif
687 690
688 691
689/*** pathexec_env.c ***/ 692/*** pathexec_env.c ***/
690 693#if 0
691static stralloc plus; 694static stralloc plus;
692static stralloc tmp; 695static stralloc tmp;
693 696
@@ -748,10 +751,10 @@ void pathexec(char **argv)
748 pathexec_run(*argv,argv,e); 751 pathexec_run(*argv,argv,e);
749 free(e); 752 free(e);
750} 753}
751 754#endif
752 755
753/*** pathexec_run.c ***/ 756/*** pathexec_run.c ***/
754 757#if 0
755static stralloc tmp; 758static stralloc tmp;
756 759
757void pathexec_run(const char *file,char *const *argv,char *const *envp) 760void pathexec_run(const char *file,char *const *argv,char *const *envp)
@@ -792,7 +795,7 @@ void pathexec_run(const char *file,char *const *argv,char *const *envp)
792 path += 1; 795 path += 1;
793 } 796 }
794} 797}
795 798#endif
796 799
797/*** pmatch.c ***/ 800/*** pmatch.c ***/
798 801
@@ -853,7 +856,7 @@ int prot_uid(int uid)
853 856
854 857
855/*** readclose.c ***/ 858/*** readclose.c ***/
856 859#if 0
857int readclose_append(int fd,stralloc *sa,unsigned bufsize) 860int readclose_append(int fd,stralloc *sa,unsigned bufsize)
858{ 861{
859 int r; 862 int r;
@@ -871,7 +874,7 @@ int readclose(int fd,stralloc *sa,unsigned bufsize)
871 if (!stralloc_copys(sa,"")) { close(fd); return -1; } 874 if (!stralloc_copys(sa,"")) { close(fd); return -1; }
872 return readclose_append(fd,sa,bufsize); 875 return readclose_append(fd,sa,bufsize);
873} 876}
874 877#endif
875 878
876/*** scan_ulong.c ***/ 879/*** scan_ulong.c ***/
877 880