Home
last modified time | relevance | path

Searched refs:oldd (Results 1 – 6 of 6) sorted by relevance

/freebsd/crypto/heimdal/lib/roken/
H A Dsocket_wrapper.h137 #define dup(oldd) swrap_dup(oldd) argument
142 #define dup2(oldd, newd) swrap_dup2(oldd, newd) argument
H A Dsocket_wrapper.c1871 _PUBLIC_ int swrap_dup(int oldd) in swrap_dup() argument
1876 si = find_socket_info(oldd); in swrap_dup()
1878 return real_dup(oldd); in swrap_dup()
1888 _PUBLIC_ int swrap_dup2(int oldd, int newd) in swrap_dup2() argument
1893 if (newd == oldd) in swrap_dup2()
1896 si_oldd = find_socket_info(oldd); in swrap_dup2()
1900 return real_dup2(oldd, newd); in swrap_dup2()
/freebsd/libexec/flua/modules/
H A Dlposix.c181 int error, oldd, newd; in lua_dup2() local
185 oldd = luaL_checkinteger(L, 1); in lua_dup2()
186 if (oldd < 0) { in lua_dup2()
197 error = dup2(oldd, newd); in lua_dup2()
/freebsd/sys/fs/nfsclient/
H A Dnfs_clport.c124 struct nfsv4node *newd, *oldd; in nfscl_nget() local
180 oldd = newd = NULL; in nfscl_nget()
200 oldd = np->n_v4; in nfscl_nget()
214 if (oldd != NULL) in nfscl_nget()
215 free(oldd, M_NFSV4NODE); in nfscl_nget()
/freebsd/sys/kern/
H A Dkern_descrip.c1043 kern_dup(struct thread *td, u_int mode, int flags, int oldd, int newd) in kern_dup() argument
1059 AUDIT_ARG_FD(oldd); in kern_dup()
1067 if (oldd < 0) in kern_dup()
1077 if (fget_noref(fdp, oldd) == NULL) in kern_dup()
1079 if (mode == FDDUP_FIXED && oldd == newd) { in kern_dup()
1086 oldfde = &fdp->fd_ofiles[oldd]; in kern_dup()
1133 KASSERT(oldd != newd, ("new fd is same as old")); in kern_dup()
1136 oldfde = &fdp->fd_ofiles[oldd]; in kern_dup()
1139 oldd)); in kern_dup()
/freebsd/sys/sys/
H A Dsyscallsubr.h150 int kern_dup(struct thread *td, u_int mode, int flags, int oldd, int newd);