search for: topslot

Displaying 3 results from an estimated 3 matches for "topslot".

Did you mean: toplot
2005 Mar 30
1
utmp update for bsd systems
...No subroutine interface: probably a BSD system. @@ -268,8 +269,50 @@ static void pututline_my(pstring uname, struct utmp *u, BOOL claim) { - DEBUG(1,("pututline_my: not yet implemented\n")); - /* BSD implementor: may want to consider (or not) adjusting "lastlog" */ + int fd, topslot; + struct utmp ubuf; + + if ((fd = open(uname, O_RDWR, 0)) < 0) + return; + + if (!setttyent()) + return; + + for (topslot = 0; getttyent() != (struct ttyent *)NULL; ) + topslot++; + + if (!endttyent()) + return; + + (void) lseek(fd, (off_t)(topslot * sizeof(struct utmp)), SEEK_SET); + + DEB...
2005 Apr 14
1
utmp update for bsd systems (try 2)
...No subroutine interface: probably a BSD system. @@ -268,8 +269,50 @@ static void pututline_my(pstring uname, struct utmp *u, BOOL claim) { - DEBUG(1,("pututline_my: not yet implemented\n")); - /* BSD implementor: may want to consider (or not) adjusting "lastlog" */ + int fd, topslot; + struct utmp ubuf; + + if ((fd = open(uname, O_RDWR, 0)) < 0) + return; + + if (!setttyent()) + return; + + for (topslot = 0; getttyent() != (struct ttyent *)NULL; ) + topslot++; + + if (!endttyent()) + return; + + (void) lseek(fd, (off_t)(topslot * sizeof(struct utmp)), SEEK_SET); + + DEB...
2009 Nov 05
1
How to load a specific variable from an RData file?
I'm wondering if there is any option available in load() such that I can specify which variable I want to load from an RData file. I don't see such option in the help.