[comp.sys.hp] utimes

hurf@theory.tn.cornell.edu (Hurf Sheldon) (02/14/91)

	There are some bsd based routines which I can't
	seem to successfully compensate for. One of them is
	utimes(),  Is there any way to implement this
	on hp-ux 7.0? 

Thanks in advance

Hurf

-- 
     Hurf Sheldon			 Network: hurf@theory.tn.cornell.edu
     Program of Computer Graphics	 Phone:   607 255 6713

     580 Eng. Theory Center, Cornell University, Ithaca, N.Y. 14853  

kriso@lombard.dartmouth.edu (Kris Olander) (02/15/91)

>Message-ID: <1991Feb13.212748.20841@batcomputer.tn.cornell.edu>
>
>	There are some bsd based routines which I can't
>	seem to successfully compensate for. One of them is
>	utimes(),  Is there any way to implement this
>	on hp-ux 7.0? 
>
>Thanks in advance
>
>Hurf


I was wondering the same thing not too long ago.  We just had to 
implement a usleep() routine using SIGALARM.  Sure would be nice 
if there was something in libBSD.a for these routines.

-Kris
-- 
Kris Olander
--------------kris.olander@dartmouth.edu----------------
"My thought, my whole thoughts, and nothing but my thoughts,
  so help me God",  -- My stdclaimer

rml@hpfcdc.HP.COM (Bob Lenk) (02/16/91)

In article <1991Feb13.212748.20841@batcomputer.tn.cornell.edu>
hurf@theory.tn.cornell.edu (Hurf Sheldon) writes:

	There are some bsd based routines which I can't
	seem to successfully compensate for. One of them is
	utimes(),  Is there any way to implement this
	on hp-ux 7.0? 

For utimes() specifically, you can probably use utime().  You can
even write an emulation of utimes() using utime(), just throwing
away the microsecond fields (4.3 does the same inside the kernel).

Many other BSD routines can be emulated, or have their functionality
replaced, in various specific ways.  Some are available in libBSD if you
haven't checked there.  Some other BSD functionality is be supported.

		Bob Lenk
		rml@fc.hp.com
		{uunet,hplabs}!fc.hp.com!rml

darrylo@hpnmdla.HP.COM (Darryl Okahata) (02/16/91)

In comp.sys.hp, hurf@theory.tn.cornell.edu (Hurf Sheldon) writes:


> 	There are some bsd based routines which I can't
> 	seem to successfully compensate for. One of them is
> 	utimes(),  Is there any way to implement this
> 	on hp-ux 7.0? 

     You can emulate utimes(2) using utime(2).  You just have to write a
simple wrapper to translate the different parameters/structures used.

     You can also emulate usleep(2) using select(2).  Just pass NULL
pointers for the file descriptor arrays, and pass a pointer to the
appropriately-filled-in struct timeval.

     -- Darryl Okahata
	UUCP: {hplabs!, hpcea!, hpfcla!} hpnmd!darrylo
	Internet: darrylo%hpnmd@hp-sde.sde.hp.com

DISCLAIMER: this message is the author's personal opinion and does not
constitute the support, opinion or policy of Hewlett-Packard or of the
little green men that have been following him all day.