search for: getpt

Displaying 13 results from an estimated 13 matches for "getpt".

Did you mean: getopt
2016 Jan 06
0
[klibc:master] Remove obsolete getpt() function
...libs/klibc/klibc.git;a=commit;h=7671eacc1ad3b8582dce1ec6f1e295c517f514ff Author: H. Peter Anvin <hpa at linux.intel.com> AuthorDate: Tue, 5 Jan 2016 18:01:55 -0800 Committer: H. Peter Anvin <hpa at linux.intel.com> CommitDate: Tue, 5 Jan 2016 18:01:55 -0800 [klibc] Remove obsolete getpt() function getpt() has long since been obsolete; instead use posix_openpt(O_RDWR|O_NOCTTY). Signed-off-by: H. Peter Anvin <hpa at linux.intel.com> --- usr/include/stdlib.h | 1 - usr/klibc/Kbuild | 2 +- usr/klibc/getpt.c | 16 ---------------- 3 files changed, 1 insertion(+), 18...
2010 Nov 20
3
[PATCH 1/4] utils: cleanup unused includes
several errno.h for no good reasons. cleanup losesetup which is not using getopt_long, thus doesn't need getopt.h included. Move stdarg.h include up in losesetup to more proper place. Signed-off-by: maximilian attems <max at stro.at> --- usr/utils/dmesg.c | 1 - usr/utils/losetup.c | 4 +--- usr/utils/mkfifo.c | 1 - usr/utils/nuke.c | 1 - usr/utils/umount.c | 1
2005 Mar 03
5
klibc 0.207 released
This changes the RPM spec file to have -devel and -utils packages; the klibc main package is now only the runtime (plus libc.so and interp.o to avoid version skew; someone who is better at RPM than I am might be able to do the right thing with Requires and Provides to make sure there is a 100% binary match between files, using the hash code.) I'd like to let this stew for a bit, to smoke
2011 Jul 29
3
[PATCH 1/3] klibc: Add scandir() and alphasort() support.
...lib-y := vsnprintf.o snprintf.o vsprintf.o sprintf.o \ seteuid.o setegid.o \ getenv.o setenv.o putenv.o __put_env.o unsetenv.o \ clearenv.o nullenv.o \ - getopt.o getopt_long.o readdir.o remove.o \ + getopt.o getopt_long.o readdir.o scandir.o remove.o \ syslog.o closelog.o pty.o getpt.o posix_openpt.o isatty.o reboot.o \ time.o utime.o llseek.o nice.o getpriority.o \ qsort.o bsearch.o \ diff --git a/usr/klibc/scandir.c b/usr/klibc/scandir.c new file mode 100644 index 0000000..1f58b15 --- /dev/null +++ b/usr/klibc/scandir.c @@ -0,0 +1,76 @@ +/* + * scandir.c: scandir/alph...
2011 Aug 02
6
[PATCH v2 0/4] Support drop directories directly from kinit
This patchset applies to klibc mainline. This patchset introduces the ability to kinit to execute scripts or executable files present in in the initramfs before switching over to the root filesystem. It is implemented by first implementing scandir() and alphasort() as present in POSIX.1-2008 in klibc itself, and then using that as the basis for iterating and executing files via a run_scripts()
2011 Aug 10
1
[PATCH v2] dirent.h add fdopendir()
...\ seteuid.o setegid.o \ getenv.o setenv.o putenv.o __put_env.o unsetenv.o \ clearenv.o nullenv.o \ - getopt.o getopt_long.o readdir.o scandir.o alphasort.o remove.o \ + getopt.o getopt_long.o \ + readdir.o scandir.o fdopendir.o alphasort.o remove.o \ syslog.o closelog.o pty.o getpt.o posix_openpt.o isatty.o reboot.o \ time.o utime.o llseek.o nice.o getpriority.o \ qsort.o bsearch.o \ diff --git a/usr/klibc/fdopendir.c b/usr/klibc/fdopendir.c new file mode 100644 index 0000000..e22cba8 --- /dev/null +++ b/usr/klibc/fdopendir.c @@ -0,0 +1,40 @@ +#include <sys/types.h...
2019 Jan 19
1
[ANNOUNCE] klibc 2.0.5
...#39; build spew [klibc] add more PHONY targets to $(PHONY) H. Peter Anvin (14): [klibc] 2.0.4 released, next version is 2.0.5 [klibc] Inline __arch_libcinit() [klibc] i386: remove special handling of socketcall [klibc] Update README.klibc [klibc] Remove obsolete getpt() function [klibc] Remove sys/socketcalls.h [klibc] Add accept4(), handle fallback from accept() to accept4() [klibc] Remove open_cloexec() [klibc] accept.c: fix file header [klibc] Make posix_openpt() an inline [klibc] stdlib.h: include <fcntl.h> for inlin...
2007 Aug 15
0
[git patch] fstype support + minor stuff
....o strspn.o strcspn.o strpbrk.o strsep.o strtok.o \ - fnmatch.o \ - gethostname.o getdomainname.o getcwd.o \ - seteuid.o setegid.o \ - getenv.o setenv.o putenv.o __put_env.o unsetenv.o \ - clearenv.o nullenv.o \ - getopt.o getopt_long.o readdir.o remove.o \ - syslog.o closelog.o pty.o getpt.o isatty.o reboot.o \ - time.o utime.o llseek.o nice.o getpriority.o \ - qsort.o bsearch.o \ - lrand48.o jrand48.o mrand48.o nrand48.o srand48.o seed48.o \ - inet/inet_ntoa.o inet/inet_aton.o inet/inet_addr.o \ - inet/inet_ntop.o inet/inet_pton.o inet/bindresvport.o \ - send.o recv.o \...
2006 Oct 17
0
[PATCH] misc compile fixes for tools on Solaris
...AME_LDFLAG = -Wl,-h SHLIB_FLAGS = -static-libgcc -shared diff --git a/tools/console/daemon/io.c b/tools/console/daemon/io.c --- a/tools/console/daemon/io.c +++ b/tools/console/daemon/io.c @@ -147,7 +147,7 @@ static int domain_create_tty(struct doma int master; bool success; - if ((master = getpt()) == -1 || + if ((master = open("/dev/ptmx",O_RDWR|O_NOCTTY)) == -1 || grantpt(master) == -1 || unlockpt(master) == -1) { dolog(LOG_ERR, "Failed to create tty for domain-%d", dom->domid); diff --git a/tools/console/daemon/utils.c b/tools/console/daemon/util...
2005 Aug 30
4
Re: [Xen-changelog] New console transport and update xenconsoled.
...ze, buffer->size - size); >+ buffer->size -= size; >+} > > static bool domain_is_valid(int domid) > { >@@ -107,7 +140,7 @@ > > static int domain_create_tty(struct domain *dom) > { >- char path[1024]; >+ char *path; > int master; > > if ((master = getpt()) == -1 || >@@ -126,22 +159,106 @@ > tcsetattr(master, TCSAFLUSH, &term); > } > >- xs_mkdir(xs, "/console"); >- snprintf(path, sizeof(path), "/console/%d", dom->domid); >- xs_mkdir(xs, path); >- strcat(path, "/tty"); >- >...
2013 Aug 21
0
Build problems: klibc with Linux 3.10.7
...oot/gen/trunk/knl/linux/usr//include -I/root/gen/trunk/knl/linux/usr//arch/powerpc/include -D__KLIBC__=2 -D__KLIBC_MINOR__=0 -D_BITSIZE=32 -fno-stack-protector -fwrapv -m32 -Os -W -Wall -Wno-sign-compare -Wno-unused-parameter -c -o usr/klibc/pty.o usr/klibc/pty.c ppc-linux-gcc -Wp,-MD,usr/klibc/.getpt.o.d -nostdinc -iwithprefix include -I/root/ofs/trunk/packages/klibc-2.0.2/usr/include/arch/ppc -Iusr/include/arch/ppc -I/root/ofs/trunk/packages/klibc-2.0.2/usr/include/bits32 -Iusr/include/bits32 -I/root/ofs/trunk/packages/klibc-2.0.2/usr/klibc/../include -Iusr/klibc/../include -I/root/ofs/trunk/...
2013 Aug 21
5
Build problems: klibc with Linux 3.10.7
On Tue, Aug 20, 2013 at 07:44:39AM +0200, leroy christophe wrote: > > > Find attached two patches I have in order to build klibc 2.0.2 > against kernel 3.8.13 > We had to introduce those patches when going from kernel 3.6 to kernel 3.7 > Hope it helps. > those patches are wrong and again very brittle. just use the way it is described in `make help': A) cd ~/src/linux
2006 Jun 28
35
[klibc 00/31] klibc as a historyless patchset (updated and reorganized)
I have updated the klibc patchset based on feedback received. In particular, the patchset has been reorganized so as not to break git-bisect. Additionally, this updates the patch base to 2.6.17-git12 (d38b69689c349f35502b92e20dafb30c62d49d63) and klibc 1.4.8; the main difference on the klibc side is removal of obsolete code. This is also available as a git tree at: