×

Good News Everybody!

The new search engine is LIVE!

Please report any problems to david (at) midrange.com.




The prototype for sleep is expecting an unsigned integer, but you are
sending it a signed int.

Try changing your prototype to:
 Dsleep            PR            10u 0 extproc('sleep')
 D secs                          10u 0 const

HTH,
Andy

<MWalter=noMgtr8zgTcanlnWow0HJg@xxxxxxxxxxxxxxxx> wrote in message
news:<OF4465A413.38D9EA65-ON85256DCE.0075CE58@xxxxxxxxxxxxxxx>...
> Does anyone out there use the C function sleep()? It seems to be 
> locking up my session. I.E. not waking up.
> 
> code:
> 
> Hbnddir('QC2LE') dftactgrp(*no) actgrp(*new)
> Dsleep            PR            10i 0 extproc('sleep')
> D secs                          10i 0 const
> D curtime         S               t
> D rtn             S                   like(sleep)
> D secs            S             10i 0 inz(10)
>  /free
>      curtime = %time();
>      dsply curtime;
>      rtn = sleep(secs);
>      curtime = %time();
>      dsply curtime;
>      *inlr = *on;
>  /end-free
> 
> Thanks,
> 
> Mark
> 
> Mark D. Walter
> Senior Programmer/Analyst
> CCX, Inc.
> mwalter=7AQSK1ONhG/QT0dZR+AlfA@xxxxxxxxxxxxxxxx
> http://www.ccxinc.com
> 
> 
> _______________________________________________
> This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing 
> list To post a message email: 
> RPG400-L=Zwy7GipZuJhWk0Htik3J/w@xxxxxxxxxxxxxxxx
> To subscribe, unsubscribe, or change list options,
> visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
> or email: RPG400-L-request=Zwy7GipZuJhWk0Htik3J/w@xxxxxxxxxxxxxxxx
> Before posting, please take a moment to review the archives
> at http://archive.midrange.com/rpg400-l.
> 
> 



As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2026 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.