Something went wrong. Try again.
Cider Isn't Darwin Emulation, Really
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475.\" Copyright (c) 2004-2007 Apple Inc. All rights reserved..Dd December 31, 2007.Dt PTHREAD_ATTR 3.Os.Sh NAME.Nm pthread_attr_getstackaddr ,.Nm pthread_attr_setstackaddr.Nd thread attribute operations.Sh SYNOPSIS.Fd #include <pthread.h>.Ft int.Fo pthread_attr_getstackaddr.Fa "const pthread_attr_t *restrict attr".Fa "void **restrict stackaddr".Fc.Ft int.Fo pthread_attr_setstackaddr.Fa "pthread_attr_t *attr".Fa "void *stackaddr".Fc.Sh DESCRIPTIONThread attributes are used to specify parameters to.Fn pthread_create .One attribute object can be used in multiple calls to.Fn pthread_create ,with or without modifications between calls..PpThe functions .Fn pthread_attr_setstackaddrand .Fn pthread_attr_getstackaddrrespectively, set and get the address at which the stack of the newly created thread should be located.The stackaddr attribute is set within the.Fa attrargument, which can subsequently be used as an argument to.Fn pthread_create ..Sh RETURN VALUESIf successful, these functions return 0.Otherwise, an error number is returned to indicate the error..Fn pthread_attr_getstackaddrreturns the stackaddr attribute value in .Fa stackaddr if successful..Sh ERRORS.Fn pthread_attr_setstackaddrwill fail if:.Bl -tag -width Er.\" ========.It Bq Er EINVALInvalid value for.Fa attr ..\" ========.El.Pp.Fn pthread_attr_getstackaddrwill fail if:.Bl -tag -width Er.\" ========.It Bq Er EINVALInvalid value for.Fa attr ..\" ========.El.Pp.Sh SEE ALSO.Xr pthread_create 3 ,.Xr pthread_attr_init 3 ,.Xr pthread_attr_setdetachstate 3 ,.Xr pthread_attr_setstacksize 3.Sh STANDARDS.Fn pthread_attr_setstackaddr ,.Fn pthread_attr_getstackaddr ,conform to.St -p1003.1-96