Re: Adding functions to libutil, part 1

2024-06-21 Thread Reinoud Zandijk
Hi Michael, On Fri, Jun 21, 2024 at 05:50:56AM -, Michael van Elst wrote: > rein...@netbsd.org (Reinoud Zandijk) writes: > > > int getdiskinfo(const char *s, int fd, const char *dt, struct disk_geom > > *geo, > > struct dkwedge_info *dkw); > > int getdisksize(const char *name, u_int *s

Re: Adding functions to libutil, part 1

2024-06-20 Thread Michael van Elst
rein...@netbsd.org (Reinoud Zandijk) writes: > int getdiskinfo(const char *s, int fd, const char *dt, struct disk_geom *geo, > struct dkwedge_info *dkw); > int getdisksize(const char *name, u_int *secsize, off_t *mediasize); There are kernel functions of the same name: int getdiskinfo(s