Searched refs:new (Results 1 - 25 of 383) sorted by relevance

1234567891011>>

/osnet-11/usr/src/lib/libparted/common/lib/
H A Dstrndup.c32 char *new = malloc (len + 1); local
34 if (new == NULL)
37 new[len] = '\0';
38 return memcpy (new, s, len);
/osnet-11/usr/src/grub/grub2/grub-core/gnulib/
H A Dstrndup.c30 char *new = malloc (len + 1); local
32 if (new == NULL)
35 new[len] = '\0';
36 return memcpy (new, s, len);
/osnet-11/usr/src/cmd/perl/5.8.4/distrib/lib/CGI/t/
H A Dquery_string.t9 my $q1 = CGI->new('b=2;a=1;a=1');
10 my $q2 = CGI->new('b=2&a=1&a=1');
H A Dinit.t12 my $q = CGI->new($IN);
/osnet-11/usr/src/cmd/perl/5.8.4/distrib/lib/Math/BigInt/t/
H A Dbiglog.t52 ok ($cl->new(-2)->blog(), 'NaN');
53 ok ($cl->new(-1)->blog(), 'NaN');
54 ok ($cl->new(-10)->blog(), 'NaN');
55 ok ($cl->new(-2,2)->blog(), 'NaN');
57 my $ten = $cl->new(10)->blog();
60 ok ($cl->new(10)->blog(), '2.302585092994045684017991454684364207601');
64 ok ($cl->new(0.1)->blog(), -$ten);
65 ok ($cl->new(0.01)->blog(), -$ten * 2);
66 ok ($cl->new(0.001)->blog(), -$ten * 3);
67 ok ($cl->new(0.000
[all...]
H A Ddowngrade.t30 ok (ref(Math::BigFloat->new('inf')),'Math::BigInt');
31 ok (ref(Math::BigFloat->new('-inf')),'Math::BigInt');
32 ok (ref(Math::BigFloat->new('NaN')),'Math::BigInt');
33 ok (ref(Math::BigFloat->new('0')),'Math::BigInt');
34 ok (ref(Math::BigFloat->new('1')),'Math::BigInt');
35 ok (ref(Math::BigFloat->new('10')),'Math::BigInt');
36 ok (ref(Math::BigFloat->new('-10')),'Math::BigInt');
37 ok (ref(Math::BigFloat->new('-10.0E1')),'Math::BigInt');
40 ok (Math::BigFloat->new('0.2E0'), '0.2');
41 ok (Math::BigFloat->new('0.
[all...]
/osnet-11/usr/src/cmd/perl/5.8.4/distrib/lib/Math/BigRat/t/
H A Dbigrat.t27 $x = Math::BigRat->new(1234); ok ($x,1234);
33 # new and bnorm()
35 foreach my $func (qw/new bnorm/)
66 $x = $cr->$func($mbi->new(1231)); ok ($x,'1231');
67 $x = $cr->$func($mbf->new(1232)); ok ($x,'1232');
68 $x = $cr->$func($mbf->new(1232.3)); ok ($x,'12323/10');
71 $x = $cr->new('-0'); ok ($x,'0'); ok ($x->{_n}, '0'); ok ($x->{_d},'1');
72 $x = $cr->new('NaN'); ok ($x,'NaN'); ok ($x->{_n}, '0'); ok ($x->{_d},'0');
73 $x = $cr->new('-NaN'); ok ($x,'NaN'); ok ($x->{_n}, '0'); ok ($x->{_d},'0');
74 $x = $cr->new('
[all...]
H A Dbig_ap.t19 my $proper = $r->new('12345678901234567890/2');
20 my $proper_inc = $r->new('12345678901234567890/2')->binc();
21 my $proper_dec = $r->new('12345678901234567890/2')->bdec();
22 my $proper_int = Math::BigInt->new('12345678901234567890');
23 my $proper_float = Math::BigFloat->new('12345678901234567890');
24 my $proper2 = $r->new('12345678901234567890');
34 # new()
36 $z = $r->new('12345678901234567890/2');
39 $z = $r->new('1234567890123456789E1');
42 $z = $r->new('1234567890123456789
[all...]
H A Dbigratup.t25 $x = $rat->new('49/4'); ok ($x->bfloor(),'12');
26 $x = $rat->new('49/4'); ok ($x->bceil(),'13');
31 $x = $rat->new('144'); ok ($x->bsqrt(),'12');
32 $x = $rat->new('144/16'); ok ($x->bsqrt(),'3');
33 $x = $rat->new('1/3'); ok ($x->bsqrt(),
/osnet-11/usr/src/lib/libc/port/gen/
H A Dualarm.c32 struct itimerval new, old; local
34 new.it_interval.tv_usec = reload % USPS;
35 new.it_interval.tv_sec = reload / USPS;
37 new.it_value.tv_usec = usecs % USPS;
38 new.it_value.tv_sec = usecs / USPS;
40 if (setitimer(ITIMER_REAL, &new, &old) != 0)
/osnet-11/usr/src/lib/libresolv2/include/
H A Dprobe_ipv6.sh12 new=new_${target}.h
34 cat > ${new} <<EOF
45 echo "#define HAS_INET6_STRUCTS" >> ${new}
50 echo "#define in6_addr in_addr6" >> ${new}
54 echo "#define HAVE_SIN6_SCOPE_ID" >> ${new}
56 echo "#undef HAVE_SIN6_SCOPE_ID" >> ${new}
59 echo "#undef HAS_INET6_STRUCTS" >> ${new}
61 echo >> ${new}
62 echo "#endif" >> ${new}
64 if cmp -s ${new}
[all...]
/osnet-11/usr/src/lib/libc/capabilities/hrt/common/
H A Dmap_hrt_info.c49 hrt_t *new; local
51 new = (hrt_t *)gethrt();
52 if (new == NULL)
59 atomic_swap_ptr((volatile void *)&hrt, (void *)new);
/osnet-11/usr/src/lib/libcurses/screen/
H A Ddupwin.c52 * SS: calling makenew to allocate a new window is wastefull, since
60 WINDOW *new; local
66 /* allocate storage for new window and do block copy of */
67 /* old one into new */
69 if ((new = (WINDOW *) malloc(sizeof (WINDOW))) == NULL)
72 (void) memcpy(new, win, sizeof (WINDOW));
74 /* allocate storage for "malloced" fields of the new window */
76 if ((new->_firstch = (short *)malloc((unsigned)2 * line_size)) == NULL)
81 if ((new->_y = (chtype **) malloc(nlines * sizeof (chtype *))) ==
87 free((char *)new
[all...]
H A Dsetcurscreen.c48 setcurscreen(SCREEN *new) argument
52 if (new != SP) {
56 fprintf(outf, "setterm: old %x, new %x\n", rv, new);
59 SP = new;
60 if (new) {
/osnet-11/usr/src/cmd/powertop/common/
H A Dsuggestions.c63 * Add a new suggestion. Only one suggestion per text allowed.
68 sugg_t *new, *n, *pos = NULL; local
80 if ((new = calloc(1, sizeof (sugg_t))) == NULL)
84 new->sb_msg = strdup(sb_msg);
87 new->text = strdup(text);
89 new->weight = weight;
90 new->key = key;
91 new->func = func;
92 new->slice = 0;
94 sugg = new;
[all...]
/osnet-11/usr/src/lib/libresolv2/common/isc/
H A Dev_connects.c67 evConn *new; local
70 OKNEW(new);
71 new->flags = EV_CONN_LISTEN;
72 OKFREE(mode = fcntl(fd, F_GETFL, NULL), new); /*%< side effect: validate fd. */
83 OKFREE(ioctl(fd, FIONBIO, (char *)&on), new); local
85 OKFREE(fcntl(fd, F_SETFL, mode | PORT_NONBLOCK), new);
87 new->flags |= EV_CONN_BLOCK;
89 OKFREE(listen(fd, maxconn), new); local
90 if (evSelectFD(opaqueCtx, fd, EV_READ, listener, new, &new
116 evConn *new; local
241 evAccept *new; local
290 int new; local
312 (*conn->func)(opaqueCtx, conn->uap, new, &la.sa, lalen, &ra.sa, ralen); local
[all...]
/osnet-11/usr/src/cmd/perl/5.8.4/distrib/lib/Net/demos/
H A Dnntp13 $nntp = Net::NNTP->new('news', Debug => $opt_debug ? 1 : 0);
26 $new = $nntp->newnews(time - 3600, lc $group);
28 if(ref($new) && scalar(@$new))
31 if $news = $nntp->article($new->[-1]);
H A Dinetd6 $p = new Net::DummyInetd qw(/usr/lib/sendmail -ba -bs);
8 $smtp = Net::SMTP->new('localhost', Port => $p->port, Debug => 7);
/osnet-11/usr/src/lib/libxcurses2/src/libc/xcurses/
H A Dscr_dump.c76 WINDOW *new; local
81 new = getwin(fp);
84 if (new == NULL)
87 if (new->_maxy != w->_maxy || new->_maxx != w->_maxx) {
88 (void) delwin(new);
96 new->_flags &= ~W_CLEAR_WINDOW; /* Removed default clear command */
97 *w = *new;
105 new->_base = NULL;
106 new
[all...]
/osnet-11/usr/src/grub/grub-0.97/docs/
H A Dsrc2texi15 ${dir}/${src} | expand > ${texi}.new
16 mv -f ${texi}.new ${dir}/${texi}
/osnet-11/usr/src/cmd/perl/5.8.4/distrib/lib/Digest/t/
H A Ddigest.t13 $d = Digest->new("Dummy");
21 $d = Digest->new("Dummy-24");
/osnet-11/usr/src/lib/libxcurses/src/libc/xcurses/
H A Dscr_dump.c78 WINDOW *new; local
83 new = getwin(fp);
86 if (new == (WINDOW *) 0)
89 if (new->_maxy != w->_maxy || new->_maxx != w->_maxx) {
90 (void) delwin(new);
98 *w = *new;
106 new->_base = (cchar_t *) 0;
107 new->_line = (cchar_t **) 0;
108 new
[all...]
/osnet-11/usr/src/lib/libgen/common/
H A Dstrtrns.c34 * in both `str' and `old' with the corresponding character from `new'.
39 strtrns(const char *str, const char *old, const char *new, argument
48 *r = new[o - old -1];
/osnet-11/usr/src/cmd/perl/5.8.4/distrib/lib/Test/Simple/t/
H A Dcurr_test.t7 $TB = Test::Builder->new;
H A Dok_obj.t17 sub new { bless {}, shift } subroutine
26 ok(my $foo = Foo->new, 'created Foo object');

Completed in 150 milliseconds

1234567891011>>